/* Noto Sans / Serif SC — SIL OFL（见 fonts/OFL-Noto.txt） */
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/noto-sans-sc-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/noto-sans-sc-400-zh.woff2") format("woff2");
  unicode-range: U+4E00-9FFF, U+3400-4DBF, U+F900-FAFF, U+3000-303F, U+FF00-FFEF;
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/noto-sans-sc-500-zh.woff2") format("woff2");
  unicode-range: U+4E00-9FFF, U+3400-4DBF, U+F900-FAFF, U+3000-303F, U+FF00-FFEF;
}
@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/noto-serif-sc-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/noto-serif-sc-600-zh.woff2") format("woff2");
  unicode-range: U+4E00-9FFF, U+3400-4DBF, U+F900-FAFF, U+3000-303F, U+FF00-FFEF;
}
@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/noto-serif-sc-700-zh.woff2") format("woff2");
  unicode-range: U+4E00-9FFF, U+3400-4DBF, U+F900-FAFF, U+3000-303F, U+FF00-FFEF;
}


/* 暗夜黑（默认）：对齐运营后台 / aipm.center / aipm.email 纯黑白 */
:root,
html[data-theme="noir"] {
  --bg-void: #000000;
  --panel: rgba(17, 17, 17, 0.78);
  --hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --glass-blur: 16px;
  --glass-shine: rgba(255, 255, 255, 0.06);
  --glass-shadow: rgba(0, 0, 0, 0.55);
  --text: #ffffff;
  --text-2: #a0a0a0;
  --text-3: #6e6e6e;
  --brand: #ffffff;
  --brand-deep: #141414;
  --brand-void: #000000;
  --brand-soft: rgba(255, 255, 255, 0.12);
  --brand-glow: rgba(255, 255, 255, 0.16);
  --brand-btn-from: rgba(255, 255, 255, 0.98);
  --brand-btn-to: rgba(232, 234, 237, 0.96);
  --brand-btn-from-hover: #ffffff;
  --brand-btn-to-hover: #f5f5f7;
  --brand-btn-border: rgba(255, 255, 255, 0.4);
  --brand-btn-border-hover: rgba(255, 255, 255, 0.55);
  --brand-btn-text: #000000;
  --brand-btn-text-hover: #000000;
  --brand-btn-glow: rgba(255, 255, 255, 0.12);
  --on-solid: #000000;
  --glow-primary: rgba(255, 255, 255, 0.08);
  --glow-secondary: rgba(255, 255, 255, 0.03);
  --bg-grad-top: #0a0a0a;
  --bg-grad-bot: #000000;
  --theme-chrome: #000000;
  --mark-underline: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.22) 42%,
    rgba(255, 255, 255, 0.06) 72%,
    transparent 100%
  );
  --mark-underline-soft: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.16) 45%,
    transparent 100%
  );
  --mark-dot: rgba(255, 255, 255, 0.7);
  --scrollbar-thumb: linear-gradient(
    180deg,
    rgba(80, 80, 80, 0.85) 0%,
    rgba(48, 48, 48, 0.9) 40%,
    rgba(28, 28, 28, 0.95) 100%
  );
  --scrollbar-thumb-hover: linear-gradient(
    180deg,
    rgba(120, 120, 120, 0.9) 0%,
    rgba(64, 64, 64, 0.95) 45%,
    rgba(36, 36, 36, 0.98) 100%
  );
  --scrollbar-thumb-active: linear-gradient(
    180deg,
    rgba(160, 160, 160, 0.9) 0%,
    rgba(72, 72, 72, 0.96) 50%,
    rgba(40, 40, 40, 0.98) 100%
  );
  --scrollbar-edge: rgba(120, 120, 120, 0.55);
  --radius: 16px;
  --font: "Noto Sans SC", system-ui, sans-serif;
  --display: "Noto Serif SC", "Noto Sans SC", serif;
  --code: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --max: 1120px;
  --page-inline: 24px;
  --rail: min(var(--max), calc(100% - (var(--page-inline) * 2)));
  --scrollbar-size: 7px;
  --scrollbar-track: transparent;
}

html[data-theme="noir"] .atmosphere {
  background-color: var(--bg-void);
  background-image:
    radial-gradient(ellipse at 20% 0%, var(--glow-primary), transparent 50%),
    radial-gradient(ellipse at 85% 100%, var(--glow-secondary), transparent 45%),
    linear-gradient(165deg, var(--bg-grad-top) 0%, var(--bg-void) 48%, var(--bg-grad-bot) 100%);
}

html[data-theme="noir"] .nav.glass {
  background: rgba(10, 10, 10, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.45);
}

html[data-theme="noir"] .btn--solid {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 10px 36px rgba(0, 0, 0, 0.45);
}

html[data-theme="noir"] .theme-switch__btn.is-active {
  color: #000;
  background: linear-gradient(165deg, #fff, #e8eaed);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

html[data-theme="wine"] {
  --bg-void: #070708;
  --panel: rgba(22, 22, 26, 0.72);
  --hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.28);
  --glass-blur: 14px;
  --glass-shine: rgba(255, 255, 255, 0.06);
  --glass-shadow: rgba(0, 0, 0, 0.35);
  --text: #f2f2f2;
  --text-2: #a0a0a0;
  --text-3: #6e6e6e;
  --brand: #c4786a;
  --brand-deep: #5c2428;
  --brand-void: #2a0e12;
  --brand-soft: rgba(120, 48, 52, 0.45);
  --brand-glow: rgba(140, 52, 58, 0.28);
  --brand-btn-from: rgba(92, 36, 40, 0.92);
  --brand-btn-to: rgba(42, 14, 18, 0.96);
  --brand-btn-from-hover: rgba(110, 44, 50, 0.96);
  --brand-btn-to-hover: rgba(52, 18, 22, 0.98);
  --brand-btn-border: rgba(180, 120, 112, 0.32);
  --brand-btn-border-hover: rgba(210, 150, 140, 0.42);
  --brand-btn-text: #f6efed;
  --brand-btn-text-hover: #fffaf8;
  --brand-btn-glow: rgba(120, 48, 52, 0.22);
  --on-solid: #0a0a0a;
  --glow-primary: rgba(232, 90, 60, 0.12);
  --glow-secondary: rgba(255, 255, 255, 0.04);
  --bg-grad-top: #121214;
  --bg-grad-bot: #050506;
  --theme-chrome: #070708;
  --mark-underline: linear-gradient(
    90deg,
    rgba(232, 90, 60, 0.72) 0%,
    rgba(196, 120, 106, 0.42) 38%,
    rgba(92, 36, 40, 0.14) 68%,
    transparent 100%
  );
  --mark-underline-soft: linear-gradient(
    90deg,
    rgba(232, 90, 60, 0.65) 0%,
    rgba(196, 120, 106, 0.35) 45%,
    transparent 100%
  );
  --mark-dot: rgba(232, 90, 60, 0.78);
  --radius: 16px;
  /* Noto SIL OFL — 自托管 apps/site/fonts/（禁止以未授权专有字体为主字体） */
  --font: "Noto Sans SC", system-ui, sans-serif;
  --display: "Noto Serif SC", "Noto Sans SC", serif;
  --code: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --max: 1120px;
  /* 与「快速上手」玻璃盒外缘对齐的页面左右留白 */
  --page-inline: 24px;
  --rail: min(var(--max), calc(100% - (var(--page-inline) * 2)));
  /* 右侧滚动条：对齐「立即使用」深酒红毛玻璃渐变 */
  --scrollbar-size: 7px;
  --scrollbar-track: transparent;
  --scrollbar-thumb: linear-gradient(
    180deg,
    rgba(110, 44, 50, 0.72) 0%,
    rgba(92, 36, 40, 0.88) 28%,
    rgba(58, 20, 24, 0.92) 62%,
    rgba(42, 14, 18, 0.96) 100%
  );
  --scrollbar-thumb-hover: linear-gradient(
    180deg,
    rgba(130, 56, 62, 0.82) 0%,
    rgba(110, 44, 50, 0.92) 30%,
    rgba(72, 26, 32, 0.96) 65%,
    rgba(48, 16, 20, 0.98) 100%
  );
  --scrollbar-thumb-active: linear-gradient(
    180deg,
    rgba(150, 70, 76, 0.9) 0%,
    rgba(100, 40, 46, 0.96) 45%,
    rgba(52, 18, 22, 0.98) 100%
  );
  --scrollbar-edge: rgba(92, 36, 40, 0.85);
}

/* 森绿：对齐酒红布局结构 —— 深色底 + 标题中心浅绿光晕 + 暗色玻璃卡片；顶栏单独保留 */
html[data-theme="forest"] {
  --bg-void: #020504;
  --panel: rgba(32, 42, 38, 0.78);
  --hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(200, 255, 230, 0.32);
  --glass-blur: 16px;
  --glass-shine: rgba(255, 255, 255, 0.1);
  --glass-shadow: rgba(0, 0, 0, 0.55);
  --text: #f5faf7;
  --text-2: #b4c4bc;
  --text-3: #7a8c84;
  --brand: #5ee4a8;
  --brand-deep: #0a1f1a;
  --brand-void: #020504;
  --brand-soft: rgba(31, 107, 79, 0.5);
  --brand-glow: rgba(94, 228, 168, 0.32);
  --brand-btn-from: rgba(31, 107, 79, 0.94);
  --brand-btn-to: rgba(6, 28, 22, 0.98);
  --brand-btn-from-hover: rgba(52, 160, 110, 0.96);
  --brand-btn-to-hover: rgba(10, 42, 34, 0.98);
  --brand-btn-border: rgba(110, 210, 170, 0.36);
  --brand-btn-border-hover: rgba(140, 230, 190, 0.48);
  --brand-btn-text: #f3fcf7;
  --brand-btn-text-hover: #ffffff;
  --brand-btn-glow: rgba(31, 107, 79, 0.28);
  --on-solid: #020504;
  /* 标题中心浅绿光晕更亮，边缘更深 */
  --glow-primary: rgba(120, 240, 190, 0.32);
  --glow-secondary: rgba(0, 0, 0, 0.55);
  --bg-grad-top: #07110e;
  --bg-grad-bot: #010302;
  --theme-chrome: #020504;
  --mark-underline: linear-gradient(
    90deg,
    rgba(120, 240, 190, 0.82) 0%,
    rgba(94, 228, 168, 0.48) 38%,
    rgba(31, 107, 79, 0.16) 68%,
    transparent 100%
  );
  --mark-underline-soft: linear-gradient(
    90deg,
    rgba(120, 240, 190, 0.72) 0%,
    rgba(94, 228, 168, 0.4) 45%,
    transparent 100%
  );
  --mark-dot: rgba(120, 240, 190, 0.85);
  --scrollbar-thumb: linear-gradient(
    180deg,
    rgba(52, 160, 110, 0.72) 0%,
    rgba(31, 107, 79, 0.88) 28%,
    rgba(12, 42, 34, 0.92) 62%,
    rgba(6, 20, 16, 0.96) 100%
  );
  --scrollbar-thumb-hover: linear-gradient(
    180deg,
    rgba(74, 222, 154, 0.55) 0%,
    rgba(52, 160, 110, 0.82) 30%,
    rgba(31, 107, 79, 0.92) 65%,
    rgba(12, 42, 34, 0.98) 100%
  );
  --scrollbar-thumb-active: linear-gradient(
    180deg,
    rgba(110, 230, 180, 0.7) 0%,
    rgba(52, 160, 110, 0.9) 45%,
    rgba(31, 107, 79, 0.98) 100%
  );
  --scrollbar-edge: rgba(31, 107, 79, 0.85);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-edge) transparent;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-void);
  -webkit-font-smoothing: antialiased;
}

/* 页面最右侧滚动条 · 深邃酒红毛玻璃 */
*::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 210, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(180, 120, 112, 0.22),
    0 0 10px rgba(40, 10, 14, 0.35);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 220, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(210, 150, 140, 0.28),
    0 0 14px rgba(120, 48, 52, 0.28);
}

*::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-active);
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--code);
  font-size: 0.92em;
  color: var(--text-2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.atmosphere {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, var(--glow-primary), transparent 42%),
    radial-gradient(ellipse at 80% 60%, var(--glow-secondary), transparent 45%),
    linear-gradient(180deg, var(--bg-grad-top) 0%, var(--bg-void) 48%, var(--bg-grad-bot) 100%);
}

.glass {
  background: var(--panel);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 var(--glass-shine),
    0 12px 40px var(--glass-shadow);
}

/* 深色底更沉 + 中心光晕更亮 + 边缘暗角，拉开景深 */
html[data-theme="forest"] .atmosphere {
  background-color: var(--bg-void);
  background-image:
    radial-gradient(ellipse 68% 46% at 50% 8%, rgba(130, 245, 200, 0.34) 0%, transparent 56%),
    radial-gradient(ellipse 100% 80% at 50% 55%, transparent 35%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, var(--bg-grad-top) 0%, var(--bg-void) 42%, var(--bg-grad-bot) 100%);
}

/* 卡片走酒红同款 .glass（变量驱动）；仅顶栏保留森绿实色雾面 */
html[data-theme="forest"] .nav.glass {
  background: linear-gradient(
    180deg,
    rgba(10, 40, 32, 0.82) 0%,
    rgba(5, 16, 14, 0.7) 100%
  );
  border-bottom-color: rgba(74, 222, 154, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(180, 255, 220, 0.2),
    0 10px 28px rgba(0, 0, 0, 0.32);
}

html[data-theme="forest"] .btn--solid {
  box-shadow:
    0 0 0 1px rgba(74, 222, 154, 0.25),
    0 10px 36px rgba(31, 107, 79, 0.35);
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
}

.nav__brand-mark,
.nav__brand-sub {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
  line-height: 1;
}

.nav__brand-divider {
  width: 1.5px;
  height: 16px;
  background: var(--text);
  flex-shrink: 0;
  opacity: 0.95;
}

.nav__name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-left: 12px;
  flex: 1;
  justify-content: center;
}

.nav__links a {
  font-size: 13px;
  color: var(--text-2);
  padding: 6px 4px;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.nav__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav__login:hover {
  color: var(--text);
  background: var(--hover);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav__cta:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.theme-switch__trigger {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
}

.theme-switch__trigger:hover,
.theme-switch.is-open .theme-switch__trigger {
  color: var(--text);
}

.theme-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 112px;
  padding: 4px;
  display: grid;
  gap: 2px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12, 12, 14, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.theme-switch__menu[hidden] {
  display: none;
}

.theme-switch__btn {
  appearance: none;
  border: 0;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.theme-switch__btn:hover {
  color: var(--text);
  background: var(--hover);
}

.theme-switch__btn.is-active {
  color: var(--brand-btn-text);
  background: linear-gradient(165deg, var(--brand-btn-from), var(--brand-btn-to));
  box-shadow: inset 0 1px 0 var(--glass-shine);
}

.mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06) url("/assets/aipmclaw-logo.png") center / cover no-repeat;
  position: relative;
  display: inline-block;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.mark::after {
  content: none;
}

.mark--lg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--hover);
}

.btn:active {
  transform: scale(0.98);
}

.btn--brand {
  background: linear-gradient(165deg, var(--brand-btn-from), var(--brand-btn-to));
  border-color: var(--brand-btn-border);
  color: var(--brand-btn-text);
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 var(--glass-shine),
    0 8px 28px var(--glass-shadow),
    0 0 0 1px rgba(0, 0, 0, 0.25);
}

.btn--brand:hover {
  filter: none;
  background: linear-gradient(165deg, var(--brand-btn-from-hover), var(--brand-btn-to-hover));
  border-color: var(--brand-btn-border-hover);
  color: var(--brand-btn-text-hover);
  box-shadow:
    inset 0 1px 0 var(--glass-shine),
    0 10px 32px var(--glass-shadow),
    0 0 36px var(--brand-btn-glow);
}

.btn--solid {
  background: #fff;
  color: var(--on-solid);
  border-color: #fff;
  font-weight: 600;
  height: 44px;
  padding: 0 22px;
}

.btn--solid:hover {
  background: #e8e8e8;
}

.btn--ghost {
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  height: 44px;
  padding: 0 20px;
}

.btn--ghost:hover {
  border-color: var(--border-strong);
}

.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* 下载门禁：视觉禁用，但仍可点击打开弹窗 */
.btn[aria-disabled="true"].is-download-gated,
a.is-download-gated[aria-disabled="true"] {
  pointer-events: auto;
  cursor: not-allowed;
}

/* —— 敬请期待 · 官网暗红毛玻璃弹窗 —— */
.download-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.download-gate-modal.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.download-gate-modal__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(92, 36, 40, 0.22), transparent 52%),
    rgba(7, 7, 8, 0.62);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
}
.download-gate-modal__panel {
  position: relative;
  width: min(400px, 100%);
  padding: 40px 34px 30px;
  border-radius: 20px;
  text-align: center;
  color: var(--text);
  /* 对齐「立即使用」暗红毛玻璃，而非实心酒红块 */
  background:
    linear-gradient(
      165deg,
      rgba(92, 36, 40, 0.55) 0%,
      rgba(42, 14, 18, 0.62) 48%,
      rgba(22, 12, 14, 0.72) 100%
    ),
    rgba(16, 12, 14, 0.45);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  border: 1px solid rgba(180, 120, 112, 0.28);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(92, 36, 40, 0.22),
    inset 0 1px 0 rgba(255, 220, 210, 0.14),
    inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  transform: translateY(14px) scale(0.97);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.34s ease;
  isolation: isolate;
  overflow: hidden;
}
.download-gate-modal.is-on .download-gate-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.download-gate-modal__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(196, 120, 106, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%);
  z-index: 0;
}
.download-gate-modal__panel::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 0;
}
.download-gate-modal__panel > * {
  position: relative;
  z-index: 1;
}
.download-gate-modal__mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(180, 120, 112, 0.35);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.download-gate-modal__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: rgba(196, 120, 106, 0.85);
}
.download-gate-modal__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 34px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  line-height: 1.3;
  color: #f6efed;
  text-shadow: 0 0 40px rgba(92, 36, 40, 0.45);
}
.download-gate-modal__sub {
  margin: 14px auto 0;
  max-width: 28em;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-2);
}
.download-gate-modal__rule {
  width: 40px;
  height: 1px;
  margin: 24px auto 20px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(180, 120, 112, 0.55),
    transparent
  );
  border: 0;
}
.download-gate-modal__close {
  appearance: none;
  border: 1px solid rgba(180, 120, 112, 0.32);
  background: linear-gradient(165deg, rgba(92, 36, 40, 0.88), rgba(42, 14, 18, 0.94));
  color: #f6efed;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  padding: 11px 26px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 210, 0.14),
    0 8px 24px rgba(40, 10, 14, 0.4);
  transition: filter 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.download-gate-modal__close:hover {
  filter: brightness(1.08);
  border-color: rgba(196, 120, 106, 0.45);
  transform: translateY(-1px);
}
.download-gate-modal__x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.download-gate-modal__x:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .download-gate-modal,
  .download-gate-modal__panel {
    transition: none;
  }
}

/* —— 页面内容轨：外缘统一对齐「快速上手」模块 —— */
.hero,
.features,
.scenes,
.placeholder,
.footer,
.page-hero,
.pricing,
.pricing-enterprise,
.enterprise-grid {
  width: var(--rail);
  max-width: var(--rail);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* —— Hero —— */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  display: inline-block;
  /* 主题强调下划线 */
  background-image: var(--mark-underline);
  background-repeat: no-repeat;
  background-size: 100% 0.32em;
  background-position: 0 86%;
}

.hero__slogan {
  margin: 0 auto 12px;
  max-width: 640px;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--text);
  line-height: 1.45;
}

.hero__sub {
  margin: 0 auto 28px;
  max-width: 520px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hero__hint {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--code);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rise {
  animation: rise 0.55s ease both;
}

.delay-1 {
  animation-delay: 0.06s;
}
.delay-2 {
  animation-delay: 0.12s;
}
.delay-3 {
  animation-delay: 0.18s;
}
.delay-4 {
  animation-delay: 0.24s;
}

.mark--lg {
  animation: mark-float 4.5s ease-in-out infinite;
}

@keyframes mark-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rise,
  .mark--lg,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* —— Scenes —— */
.scenes {
  margin-bottom: 16px;
  padding: 8px 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-family: var(--display);
  font-weight: 600;
  display: inline-block;
  background-image: var(--mark-underline-soft);
  background-repeat: no-repeat;
  background-size: 100% 0.4em;
  background-position: 0 88%;
}

.section-head p:last-child {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  max-width: 520px;
  line-height: 1.55;
}

.scenes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.scene {
  border-radius: var(--radius);
  padding: 22px 20px;
  min-height: 140px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.scene:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.scene__tag {
  margin: 0 0 10px;
  font-family: var(--code);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.scene h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.scene p:last-child {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) {
  transition-delay: 0.05s;
}
.reveal:nth-child(3) {
  transition-delay: 0.1s;
}
.reveal:nth-child(4) {
  transition-delay: 0.15s;
}
.reveal:nth-child(5) {
  transition-delay: 0.2s;
}

@media (max-width: 720px) {
  .scenes__grid {
    grid-template-columns: 1fr;
  }
}

/* —— Features —— */
.features {
  padding: 8px 0 40px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.card {
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 180px;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card--accent {
  border-color: var(--brand-soft);
  box-shadow:
    inset 0 1px 0 var(--glass-shine),
    0 0 0 1px var(--brand-glow),
    0 12px 40px var(--glass-shadow);
}

.card--accent:hover {
  border-color: var(--brand);
}

.card__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
}

.card h3 {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

.card__link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 12px;
  color: var(--brand);
  font-weight: 500;
}

.card__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Placeholders（快速上手等：外缘即对齐基准） —— */
.placeholder {
  margin-bottom: 16px;
  padding: 28px 24px;
  border-radius: var(--radius);
}

.eyebrow {
  margin: 0 0 8px;
  font-family: var(--code);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

.placeholder h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-family: var(--display);
  font-weight: 600;
  display: inline-block;
  background-image: var(--mark-underline-soft);
  background-repeat: no-repeat;
  background-size: 100% 0.4em;
  background-position: 0 88%;
}

.placeholder p {
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
  max-width: 640px;
}

.file-list {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
}

.install-pre {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--code);
  font-size: 12px;
  color: var(--text-2);
  overflow: auto;
  line-height: 1.5;
  white-space: pre-wrap;
}

.steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.steps li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: center;
  padding: 14px 8px 14px 4px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  transition: background 0.2s ease;
}

.steps li:last-child {
  border-bottom: none;
}

.steps li:hover {
  background: rgba(255, 255, 255, 0.02);
}

.steps li strong {
  grid-column: 1;
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  /* 用 background 画条，避免 z-index:-1 被 .glass 挡住 */
  background-image: var(--mark-underline-soft);
  background-repeat: no-repeat;
  background-size: 100% 0.42em;
  background-position: 0 88%;
}

.steps li:hover strong,
.steps li.is-active strong,
.steps li:first-child strong {
  background-image: var(--mark-underline);
  background-size: 108% 0.48em;
}

.steps li span {
  grid-column: 1;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
}

.steps li .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  height: 34px;
}

.muted-line {
  color: var(--text-3) !important;
  font-size: 13px !important;
}

.release-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 12px;
}

.release-table th,
.release-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.release-table th {
  color: var(--text-3);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.release-table .mono {
  font-family: var(--code);
  font-size: 12px;
}

.release-table .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 12px 0 4px;
}

.metrics div {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.metrics em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 4px;
}

.metrics strong {
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .steps li {
    grid-template-columns: 1fr;
  }
  .steps li .btn {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 6px;
  }
}

/* —— Footer —— */
.footer {
  margin-top: 24px;
  padding: 20px 0 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-3);
  border-top: 1px solid var(--border);
}

.footer__links {
  display: flex;
  gap: 14px;
}

.footer__links a:hover {
  color: var(--text);
}

/* —— Pricing / Enterprise pages —— */
.page-hero {
  padding: 72px 0 40px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  margin: 8px 0 12px;
  letter-spacing: 0.02em;
  display: inline-block;
  background-image: var(--mark-underline-soft);
  background-repeat: no-repeat;
  background-size: 100% 0.36em;
  background-position: 0 88%;
}

.page-hero__sub {
  max-width: 560px;
  margin: 0 auto 20px;
  color: var(--text-2);
  line-height: 1.6;
}

.pricing {
  padding: 0 0 32px;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing__grid--tiers {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.price {
  padding: 24px 20px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  box-sizing: border-box;
}

.price--accent {
  border-color: var(--brand-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px var(--brand-glow),
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.price__tag {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  text-transform: uppercase;
}

.price h3 {
  margin: 0;
  font-size: 20px;
}

.price__num {
  margin: 0;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 600;
}

.pricing__grid--tiers .price__num {
  font-size: 30px;
}

.price__meta {
  margin: 0;
  font-size: 13px;
  color: var(--brand);
  letter-spacing: 0.01em;
}

.price__desc {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

.price__list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  flex: 1 1 auto;
}

.price__list li::before {
  content: "· ";
  color: var(--brand);
}

.price__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
}

.price__actions .btn {
  width: 100%;
  justify-content: center;
}

.pricing-enterprise {
  margin: 0 auto 48px;
  padding: 28px 24px;
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: flex-end;
  justify-content: space-between;
}

.pricing-enterprise__copy {
  display: grid;
  gap: 10px;
  flex: 1 1 280px;
  max-width: 640px;
}

.pricing-enterprise h2 {
  margin: 0;
  font-size: 24px;
}

.pricing-enterprise > .price__actions {
  flex: 0 0 auto;
}

.enterprise-grid {
  padding: 0 0 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1100px) {
  .pricing__grid--tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .pricing__grid,
  .enterprise-grid {
    grid-template-columns: 1fr;
  }

  .pricing__grid--tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .pricing__grid--tiers {
    grid-template-columns: 1fr;
  }
}

.lead-form {
  display: grid;
  gap: 10px;
  max-width: 480px;
  margin-top: 16px;
  text-align: left;
}

.lead-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
}

.lead-form input,
.lead-form textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
}

@media (max-width: 980px) {
  .features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav__links {
    display: none;
  }
}

@media (max-width: 560px) {
  .features__grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 48px;
  }
  .nav {
    padding: 10px 14px;
    gap: 10px;
  }

  .nav__brand-mark,
  .nav__brand-sub {
    font-size: 15px;
    letter-spacing: 0.1em;
  }

  .nav__brand-divider {
    height: 14px;
  }

  .nav__actions {
    gap: 4px;
  }

  .nav__login {
    padding: 6px 6px;
    font-size: 12px;
  }

  .nav__cta {
    padding: 7px 12px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }
}

.download-list{list-style:none;margin:16px 0;padding:0;display:grid;gap:10px;text-align:left;max-width:560px}
.download-list li{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.download-list code{font-size:12px;opacity:.85}

/* —— 注册 / 登录弹窗（暗夜高端玻璃） —— */
.auth-modal,
.auth-soon-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.auth-modal.is-on,
.auth-soon-modal.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.auth-modal__scrim,
.auth-soon-modal__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.06), transparent 55%),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}
.auth-modal__panel,
.auth-soon-modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  padding: 40px 40px 32px;
  border-radius: 22px;
  color: var(--text);
  background:
    linear-gradient(165deg, rgba(22, 22, 24, 0.96) 0%, rgba(8, 8, 10, 0.98) 100%),
    rgba(6, 6, 8, 0.92);
  backdrop-filter: blur(28px) saturate(1.15);
  -webkit-backdrop-filter: blur(28px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.36s ease;
}
.auth-modal.is-on .auth-modal__panel,
.auth-soon-modal.is-on .auth-soon-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.auth-modal__panel::before,
.auth-soon-modal__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 42%);
}
.auth-modal__x,
.auth-soon-modal__x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 20px;
  cursor: pointer;
}
.auth-modal__x:hover,
.auth-soon-modal__x:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.auth-modal__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.auth-modal__mark,
.auth-modal__sub {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.auth-modal__divider {
  width: 1.5px;
  height: 14px;
  background: var(--text);
}
.auth-modal__title,
.auth-soon-modal__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
}
.auth-modal__lead,
.auth-soon-modal__sub {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
}
.auth-modal__methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 22px 0 14px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}
.auth-modal__method {
  appearance: none;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 10px 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.auth-modal__method.is-active,
.auth-modal__method:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}
.auth-modal__modes {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 18px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
.auth-modal__mode {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  padding: 7px 16px;
  cursor: pointer;
}
.auth-modal__mode.is-active {
  color: #f2f2f2;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.auth-modal__form {
  display: grid;
  gap: 14px;
}
.auth-modal__form[hidden] {
  display: none !important;
}
.auth-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--text-2);
}
.auth-field em {
  font-style: normal;
  color: var(--text-3);
  font-size: 11px;
}
.auth-field input {
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  color-scheme: dark;
}
.auth-field input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}
.auth-field input:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}
.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f5f5f5;
  caret-color: #f5f5f5;
  box-shadow: 0 0 0 1000px #141416 inset;
  border-color: rgba(255, 255, 255, 0.14);
  transition: background-color 99999s ease-out;
}
.auth-modal__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-3);
}
.auth-modal__err {
  margin: 0;
  font-size: 13px;
  color: #f0a8a8;
}
.auth-modal__submit,
.auth-soon-modal__close {
  appearance: none;
  height: 48px;
  margin-top: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  color: #f5f5f5;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.auth-modal__submit:hover,
.auth-soon-modal__close:hover {
  filter: none;
  border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  transform: translateY(-1px);
}
.auth-modal__submit:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}
.auth-avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.auth-avatar-pick {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.auth-avatar-pick:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}
.auth-avatar-pick img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-avatar-row__meta {
  min-width: 0;
  display: grid;
  gap: 6px;
  justify-items: start;
}
.auth-avatar-row__title {
  margin: 0;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.auth-avatar-row__sub {
  margin: 0;
  font-size: 12px;
  color: var(--text-3);
}
.auth-avatar-upload {
  appearance: none;
  margin-top: 2px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.auth-avatar-upload:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}
.auth-soon-modal__panel {
  width: min(380px, 100%);
  text-align: center;
  padding: 40px 30px 28px;
}
.auth-soon-modal__eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
}
.auth-soon-modal__rule {
  width: 40px;
  height: 1px;
  margin: 22px auto 18px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}
.auth-soon-modal__close {
  width: auto;
  padding: 0 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (prefers-reduced-motion: reduce) {
  .auth-modal,
  .auth-modal__panel,
  .auth-soon-modal,
  .auth-soon-modal__panel {
    transition: none;
  }
}
