:root {
  --brand: #178c45;
  --brand-strong: #0d6f35;
  --brand-soft: #eaf6ee;
  --accent: #ef6a2c;
  --ink: #17221b;
  --text: #344139;
  --muted: #6b776f;
  --line: #dfe7e1;
  --canvas: #f4f7f5;
  --surface: #fff;
  --danger: #c93b32;
  --warning: #b56b08;
  --shadow: 0 14px 36px rgba(25, 50, 34, .08);
  color-scheme: light;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--text); background: var(--canvas); font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid rgba(23, 140, 69, .25); outline-offset: 2px; }
.hidden { display: none !important; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease; }
.button:active { transform: translateY(1px); }
.button.primary { color: #fff; background: var(--brand); }
.button.primary:hover { background: var(--brand-strong); }
.button.secondary { color: var(--brand-strong); background: var(--brand-soft); border-color: #cce6d3; }
.button.ghost { color: var(--text); background: #fff; border-color: var(--line); }
.button.danger { color: var(--danger); background: #fff5f4; border-color: #f1d4d1; }
.button.warning { color: #925600; background: #fff8e8; border-color: #efd8aa; }
.button.warning:hover { color: #754500; background: #fff1cf; border-color: #e5c57f; }
.button.small { min-height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.portal-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, #edf9f0 0, transparent 35%), radial-gradient(circle at 80% 80%, #fff1e9 0, transparent 35%), var(--canvas); }
.portal-card { width: min(600px, 100%); padding: 54px; text-align: center; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.brand-mark { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 20px; color: #fff; background: var(--brand); border-radius: 20px; font-size: 28px; font-weight: 800; }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.portal-card h1 { margin: 0; color: var(--ink); font-size: clamp(28px,5vw,42px); letter-spacing: -.04em; }
.portal-card > p:not(.eyebrow) { max-width: 480px; margin: 16px auto 0; color: var(--muted); font-size: 16px; }
.portal-actions { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
.portal-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; color: var(--muted); font-size: 13px; }
.portal-status span { width: 8px; height: 8px; background: #1aad5a; border-radius: 50%; box-shadow: 0 0 0 5px #e3f6e9; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 3000; max-width: 420px; padding: 14px 18px; color: #fff; background: #213129; border-radius: 11px; box-shadow: 0 16px 40px rgba(0,0,0,.2); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: #a9322b; }
.empty { padding: 44px 20px; color: var(--muted); text-align: center; }
@media (max-width: 620px) { .portal-card { padding: 34px 22px; } .portal-actions { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
