/* Home theme tokens and type/button styles; Auth adds only its form layout. */
/* BEGIN GENERATED: web-tokens v1 (source: Web/tokens.css) */
:root {
  color-scheme: light;
  --color-bg-page: #f7f7f5;
  --color-bg-subtle: #eeeeec;
  --color-panel: #ffffff;
  --color-panel-elevated: #ffffff;
  --color-header-bg: rgba(247, 247, 245, .96);
  --color-header-veil: rgba(23, 24, 25, .62);
  --color-text: #222426;
  --color-text-muted: #62666a;
  --color-text-faint: #6e7276;
  --color-border: #dddfdc;
  --color-border-strong: #c9ccc8;
  --color-accent: #b83c35;
  --color-accent-hover: #a3342e;
  --color-accent-rgb: 184, 60, 53;
  --color-accent-soft: rgba(184, 60, 53, .06);
  --color-accent-tint: rgba(184, 60, 53, .05);
  --color-accent-wash: rgba(184, 60, 53, .045);
  --color-accent-solid: #f3d9d6;
  --color-on-accent: #ffffff;
  --color-focus: #b83c35;
  --color-danger: #b83c35;
  --color-ok: #2f6b45;
  --color-warn-bg: #fbf3e6;
  --color-error-bg: #fbedec;
  --color-error-border: #e7b8b4;
  --color-ok-bg: #eef5ef;
  --color-ok-border: #bfd6c4;
  --color-scrim-rgb: 0, 0, 0;
  --color-on-accent-deep: #171819;
  --color-shade: rgba(23, 24, 25, .12);
  --shadow-book: rgba(23, 24, 25, .12);
  --shadow-elevated: 0 16px 32px rgba(23, 24, 25, .08);
  --shadow-panel: 0 4px 24px rgba(0, 0, 0, .04);
  --radius-base: 8px;
  --font-serif: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --bg: var(--color-bg-page);
  --bg2: var(--color-bg-subtle);
  --panel: var(--color-panel);
  --text: var(--color-text);
  --muted: var(--color-text-muted);
  --faint: var(--color-text-faint);
  --line: var(--color-border);
  --line-strong: var(--color-border-strong);
  --accent: var(--color-accent);
  --accent-hover: var(--color-accent-hover);
  --accent-glow: var(--color-accent-soft);
  --hover-tint: var(--color-accent-tint);
  --step-tint: var(--color-accent-wash);
  --primary-text: var(--color-on-accent);
  --header-bg: var(--color-header-bg);
  --focus: var(--color-focus);
  --danger: var(--color-danger);
  --notice: var(--color-ok);
  --warn-bg: var(--color-warn-bg);
  --error-bg: var(--color-error-bg);
  --error-line: var(--color-error-border);
  --notice-bg: var(--color-ok-bg);
  --notice-line: var(--color-ok-border);
  --book-shadow: var(--shadow-book);
  --serif: var(--font-serif);
  --sans: var(--font-sans);
  --radius: var(--radius-base);
  --paper: var(--color-bg-page);
  --paper-2: var(--color-bg-subtle);
  --ink: var(--color-text);
  --gold: var(--color-accent);
  --gold-soft: var(--color-accent-solid);
  --ok: var(--color-ok);
  --shadow: var(--shadow-elevated);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg-page: #171819;
  --color-bg-subtle: #1e2022;
  --color-panel: #242628;
  --color-panel-elevated: #242628;
  --color-header-bg: rgba(23, 24, 25, .96);
  --color-header-veil: rgba(23, 24, 25, .72);
  --color-text: #ecedeb;
  --color-text-muted: #adb1b5;
  --color-text-faint: #8e9296;
  --color-border: #3a3d40;
  --color-border-strong: #4a4e52;
  --color-accent: #f08b82;
  --color-accent-hover: #f5a39c;
  --color-accent-rgb: 240, 139, 130;
  --color-accent-soft: rgba(240, 139, 130, .07);
  --color-accent-tint: rgba(240, 139, 130, .05);
  --color-accent-wash: rgba(240, 139, 130, .045);
  --color-accent-solid: #3a2a28;
  --color-on-accent: #171819;
  --color-focus: #f08b82;
  --color-danger: #f0a39c;
  --color-ok: #9cc7a8;
  --color-warn-bg: #262019;
  --color-error-bg: #2a1d1c;
  --color-error-border: #6b403c;
  --color-ok-bg: #1b241d;
  --color-ok-border: #3f5a46;
  --color-on-accent-deep: #171819;
  --color-shade: rgba(0, 0, 0, .5);
  --shadow-book: rgba(0, 0, 0, .35);
  --shadow-elevated: 0 16px 32px rgba(0, 0, 0, .45);
  --shadow-panel: 0 4px 24px rgba(0, 0, 0, .28);
}
/* END GENERATED: web-tokens v1 */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { min-height: 100vh; background: radial-gradient(900px 650px at 85% 0%, var(--accent-glow), transparent 70%), var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .55; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.auth-shell { width: min(100%, 468px); padding: 52px 24px 32px; margin-inline: auto; }
.auth-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.brand { font-size: 17px; font-weight: 650; letter-spacing: .3px; }
.brand span { color: var(--muted); font-weight: 400; font-size: 13px; }
.auth-card { padding: 30px 28px 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 20px 60px var(--book-shadow); }
.eyebrow { color: var(--accent); font-size: 11px; letter-spacing: 1.5px; margin-bottom: 12px; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(25px, 5vw, 29px); line-height: 1.5; }
.intro { margin-top: 10px; color: var(--muted); font-size: 14px; }
.auth-steps { display: flex; gap: 28px; margin: 24px 0; list-style: none; color: var(--faint); font-size: 13px; }
.auth-steps span { font-family: Georgia, serif; margin-right: 5px; }
.auth-steps [aria-current] { color: var(--accent); }
.field-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.phone-row { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--bg); overflow: hidden; }
.phone-prefix { padding: 0 13px; border-right: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 28px; }
input { min-width: 0; width: 100%; min-height: 48px; padding: 10px 13px; border: 0; background: transparent; color: var(--text); font-size: 16px; line-height: 1.6; }
input::placeholder { color: var(--faint); }
.phone-row:focus-within { border-color: var(--accent); }
#otp { border: 1px solid var(--line-strong); border-radius: 5px; background: var(--bg); letter-spacing: .12em; }
#otp::placeholder { letter-spacing: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 50px; padding: 12px 21px; border: 1px solid transparent; border-radius: 5px; font-size: 14px; font-weight: 600; line-height: 1.6; text-align: center; transition: background .18s ease, border-color .18s ease; }
.btn.primary { color: var(--primary-text); background: var(--accent); }
.btn.primary:hover:enabled { background: var(--accent-hover); }
.btn.ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn.ghost:hover:enabled { border-color: var(--accent); background: var(--hover-tint); }
#send, #verify { margin-top: 16px; }
#resend { margin-top: 10px; }
.field-hint { margin-top: 10px; color: var(--faint); font-size: 12px; line-height: 1.7; }
.code-destination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.text-link { display: inline-block; color: var(--text); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-strong); }
button.text-link { min-height: 44px; border: 0; background: transparent; font-size: 13px; }
.text-link:hover { color: var(--accent); }
.auth-status, .auth-error { font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.auth-status:empty { display: none; }
.auth-status { margin-top: 16px; color: var(--muted); }
.auth-error { margin-top: 16px; padding: 10px 12px; border-left: 2px solid var(--accent); background: var(--step-tint); color: var(--text); }
.auth-return { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; margin-top: 18px; padding-top: 10px; font-size: 13px; }
.auth-footnote { margin-top: 24px; color: var(--faint); text-align: center; font-size: 12px; }
@media (max-width: 420px) { .auth-shell { padding: 24px 16px; } .auth-card { padding: 24px 20px 20px; } .brand span { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ===== Login page layout (ported from design preview, graphite-coral) ===== */
/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio, geometry.
   Put this @layer first; product CSS outside the layer wins ordinary layout rules.
   Native hidden and closed-dialog states take precedence over component display rules. */
@layer od-layout {
  [hidden]:not([hidden="until-found" i]) { display: none !important; }
  dialog:not([open]) { display: none !important; }

  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  /* containers */
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  /* stacked information: each piece is its own line — never sibling inline spans */
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  /* media keeps its intrinsic ratio by default; never a distorted or cropped
     cover by accident. height:auto lets the ratio win over an <img height="…">
     attribute. Cropping to a uniform box is an explicit opt-in: set --od-ratio
     AND add .od-media-cover together (per the core rule, only where a crop is
     deliberate — tile thumbs, decorative fills — never on full-frame content). */
  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  /* functional inline SVG icons opt into bounded geometry; content SVGs keep their own */
  .od-icon { display: inline-block; inline-size: var(--od-icon-size, 1em); block-size: var(--od-icon-size, 1em); flex: none; }

  /* data text only — authored copy is rewritten to its budget instead */
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }   /* block-level reservation for a shared baseline */
  .od-nowrap  { white-space: nowrap; }           /* 数字+单位 · 价格+起 · 日期+星期 */
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; } /* CJK labels break at spaces / <wbr> first */

  /* screen skeleton (optional): bars take their own space, the middle scrolls — no padding guessed for chrome */
  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

  /* horizontal rail: the next item peeks at the edge; trailing room survives overflow */
  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
:root [hidden]:where(:not([hidden="until-found" i])) { display: none; }
/* /OD-LAYOUT-PRIMITIVES v1 */

    :root {
      --serif: "Songti SC", "Noto Serif SC", SimSun, Georgia, serif;
      --body: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
      --wordmark: Georgia, "Times New Roman", serif;
      --gutter: clamp(20px, 4vw, 64px);
    }
    :root[data-theme="dark"] {
    }
    * { box-sizing: border-box; }
    body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 16px/1.85 var(--body); -webkit-font-smoothing: antialiased; }
    h1, h2, p { margin: 0; }
    h1, h2 { font-family: var(--serif); font-weight: 500; }
    a { color: inherit; text-decoration: none; }
    button, input { font: inherit; }
    button { cursor: pointer; color: inherit; }
    a, button { -webkit-tap-highlight-color: transparent; }
    :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
    ::selection { background: var(--accent); color: var(--primary-text); }
    .container { width: calc(100% - var(--gutter) * 2); max-width: 1280px; margin-inline: auto; }
    .header { border-bottom: 1px solid var(--line); }
    .navigation { min-height: 80px; justify-content: space-between; --od-gap: 24px; }
    .brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; flex: none; }
    .brand img { display: block; flex: none; width: 32px; height: auto; filter: brightness(0); opacity: .86; }
    :root[data-theme="dark"] .brand img { filter: brightness(0) invert(1); opacity: .92; }
    .wordmark { font: 24px/1.2 var(--wordmark); letter-spacing: -.055em; }
    .nav-links { --od-gap: 32px; margin-left: auto; }
    .nav-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; }
    .nav-links a:hover, .text-button:hover, .skip-link:hover { color: var(--accent); }
    main { flex: 1; display: flex; align-items: center; }
    .login-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; --od-gap: clamp(48px, 7vw, 112px); padding-block: clamp(64px, 8vw, 112px); }
    .eyebrow { color: var(--accent); font-size: 12px; font-weight: 500; letter-spacing: 2px; line-height: 1.6; }
    .narrative h1 { margin-top: 24px; font-size: clamp(32px, 3.2vw, 44px); letter-spacing: -.035em; line-height: 1.5; text-wrap: balance; }
    .narrative h1 span { display: block; }
    .intro { max-width: 26em; margin-top: 28px; color: var(--muted); font-size: 17px; line-height: 2; }
    .editorial-note { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 410px; --od-gap: 20px; }
    .folio { font: italic 28px/1.4 var(--wordmark); color: var(--muted); }
    .editorial-copy { --od-gap: 5px; }
    .editorial-copy p:first-child { font: 21px/1.6 var(--serif); }
    .editorial-copy p:last-child { font-size: 13px; color: var(--muted); }
    .form-column { width: 100%; max-width: 456px; justify-self: end; }
    .login-panel { padding: clamp(28px, 3.2vw, 40px); border-radius: 8px; background: var(--panel); box-shadow: 0 4px 24px var(--shadow-panel); }
    .panel-top { justify-content: space-between; --od-gap: 16px; margin-bottom: 22px; }
    .demo-tag { padding: 4px 10px; color: var(--muted); background: var(--bg2); border-radius: 8px; font-size: 12px; letter-spacing: 1px; }
    .step-count { color: var(--muted); font: 13px/1.5 var(--wordmark); letter-spacing: 2px; }
    .login-panel h2 { font-size: 32px; line-height: 1.5; }
    .panel-description { margin-top: 8px; color: var(--muted); font-size: 14px; }
    .demo-notice { margin-block: 24px 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.9; }
    .demo-notice strong { display: block; color: var(--text); font-weight: 500; }
    .field { --od-gap: 8px; }
    .label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
    label { font-size: 14px; font-weight: 500; }
    .region { font-size: 12px; color: var(--muted); }
    input { width: 100%; min-width: 0; min-height: 54px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font-size: 16px; line-height: 1.6; }
    input::placeholder { color: var(--muted); opacity: .8; }
    input[readonly] { color: var(--muted); background: var(--bg2); }
    input[aria-invalid="true"] { border-color: var(--danger); }
    .field-hint { color: var(--muted); font-size: 12px; }
    .field-error { color: var(--danger); font-size: 12px; }
    .text-button { min-height: 44px; min-width: 44px; padding: 4px 0; border: 0; background: transparent; color: var(--accent); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
    .code-step { margin-top: 20px; }
    .demo-code { margin-bottom: 16px; padding: 12px 16px; background: var(--bg2); color: var(--muted); font-size: 12px; }
    .demo-code strong { display: block; color: var(--accent); font: 26px/1.6 var(--wordmark); letter-spacing: 6px; }
    #code { letter-spacing: 6px; }
    #code::placeholder { letter-spacing: 0; }
    .primary-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; margin-top: 24px; padding: 12px 20px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: var(--primary-text); font-size: 14px; }
    .primary-button:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
    .button-arrow { font-size: 20px; line-height: 1; }
    .status { min-height: 23px; margin-top: 12px; color: var(--muted); font-size: 12px; }
    .skip-area { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; }
    .skip-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; color: var(--muted); font-size: 13px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
    .below-panel { margin-top: 18px; color: var(--muted); font-size: 12px; text-align: center; }
    .footer { padding-block: 24px; border-top: 1px solid var(--line); justify-content: space-between; --od-gap: 16px; color: var(--muted); font-size: 12px; }
    .footer-signature { font-family: var(--serif); letter-spacing: 1px; }
    noscript p { margin-top: 16px; color: var(--danger); font-size: 13px; }
    @media (max-width: 960px) {
      .navigation { --od-gap: 20px; }
      .nav-links { --od-gap: 20px; }
      .login-layout { --od-gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
      .login-panel { padding: 28px; }
    }
    @media (max-width: 760px) {
      .navigation { flex-wrap: wrap; padding-block: 16px; --od-gap: 12px; }
      .brand { margin-right: auto; }
      .nav-links { order: 3; width: 100%; margin: 0; padding-block: 4px; border-top: 1px solid var(--line); justify-content: space-between; --od-gap: 12px; }
      .login-layout { grid-template-columns: minmax(0, 1fr); --od-gap: 32px; padding-block: 24px 40px; max-width: 560px; }
      .narrative h1 { margin-top: 12px; font-size: 28px; line-height: 1.5; }
      .narrative h1 span { display: inline; }
      .intro { margin-top: 12px; font-size: 15px; line-height: 1.8; }
      .editorial-note { margin-top: 20px; padding-top: 14px; max-width: none; }
      .folio { font-size: 26px; }
      .editorial-copy p:first-child { font-size: 19px; }
      .form-column { max-width: none; order: -1; }
      .footer { align-items: flex-start; flex-direction: column; --od-gap: 6px; }
    }
    @media (max-width: 380px) {
      :root { --gutter: 20px; }
      .login-panel { padding: 24px 20px; }
      .nav-links a { font-size: 13px; }
    }

/* 产品登录页新增元素（预览稿没有对应节点） */
.return-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; }
.code-destination { justify-content: space-between; margin-bottom: 8px; }
.region { color: var(--muted); font-size: 12px; }

/* 面板内部节奏（新增元素后需要补回预览稿的间距） */
.login-panel h2 { margin: 0 0 6px; }
.login-panel .panel-description { margin-bottom: 22px; }
.login-panel form .field { --od-gap: 8px; margin-bottom: 4px; }
.login-panel .primary-button { margin-top: 18px; }

/* 品牌标：白 logo + 亮度滤镜（浅色压黑、暗色保持白），与设计稿一致 */
.brand img { filter: brightness(0); opacity: .86; width: 30px; height: auto; }
:root[data-theme="dark"] .brand img { filter: none; opacity: 1; }
.brand-link { text-decoration: none; }

/* 步骤指示只供读屏使用；视觉上沿用石墨稿的极简卡片 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.bridge-feedback { margin: auto; padding: 24px; flex: none; flex-direction: column; text-align: center; }

.login-art { display: block; width: 100%; height: auto; border-radius: var(--radius-base); }
@media (max-width: 760px) {
  .login-art { display: none; }
  .login-layout { grid-template-columns: minmax(0, 1fr); }
}
