/* ============================================================
   畅宥菜谱 · 官网与用户中心样式
   设计语言沿用畅宥平台（global.css / themes.css），
   所有颜色只通过设计令牌引用；令牌定义集中在下方主题区块。
   ============================================================ */

/* ---------- 设计令牌：默认 Claude 暖白（无 JS 时也是默认主题） ---------- */

:root {
  /* 基础语义色 */
  --bg: #f7f3ea;
  --bg-soft: #f1ebe0;
  --surface: #fffdf8;
  --surface-2: #f4eee3;
  --text: #2b2823;
  --text-soft: #45403a;
  --muted: #6f685d;
  --muted-2: #8b8174;
  --line: rgba(61, 54, 42, 0.13);
  --line-strong: rgba(61, 54, 42, 0.23);
  --brand: #c15f3c;
  --brand-2: #d97757;
  --teal: #7b8b6f;
  --danger: #b5473b;
  --on-brand: #fffaf4;

  /* 品牌衍生色 */
  --brand-soft: rgba(193, 95, 60, 0.09);
  --brand-line: rgba(193, 95, 60, 0.24);
  --brand-strong: #9e4a2f;
  --ok-soft: rgba(123, 139, 111, 0.1);
  --ok-line: rgba(123, 139, 111, 0.26);
  --ok-text: #5f7053;
  --danger-soft: rgba(181, 71, 59, 0.07);
  --danger-line: rgba(181, 71, 59, 0.26);
  --danger-text: #9f392f;
  --focus: #c15f3c;

  /* 渐变与装饰 */
  --grad: linear-gradient(120deg, #b4532f 0%, #d97757 52%, #b98b5e 100%);
  --grad-soft: linear-gradient(120deg, rgba(193, 95, 60, 0.12), rgba(217, 119, 87, 0.08), rgba(123, 139, 111, 0.09));
  --grad-text: linear-gradient(108deg, #9e4a2f 0%, #c15f3c 45%, #b98b5e 100%);
  --hero-bg: linear-gradient(180deg, #fbf8f1 0%, #f7f3ea 58%, #f7f3ea 100%);
  --grid-line: rgba(61, 54, 42, 0.055);
  --orb-a: rgba(217, 119, 87, 0.28);
  --orb-b: rgba(123, 139, 111, 0.2);
  --orb-c: rgba(185, 139, 94, 0.16);
  --mask-solid: #000000;

  /* 表面与容器 */
  --header-bg: rgba(247, 243, 234, 0.84);
  --header-line: rgba(61, 54, 42, 0.1);
  --card-bg: linear-gradient(180deg, #fffdf8, #fbf7ef);
  --card-bg-hover: #fffdf8;
  --card-line-hover: rgba(61, 54, 42, 0.24);
  --chip-bg: rgba(255, 253, 248, 0.72);
  --chip-line: rgba(61, 54, 42, 0.14);
  --glass-bg: rgba(255, 253, 248, 0.86);
  --glass-line: rgba(61, 54, 42, 0.16);
  --browser-bg: #fffdf8;
  --browser-chrome: #f4eee3;
  --browser-url: #ece5d8;
  --browser-url-text: #857b6c;
  --phone-frame: linear-gradient(160deg, #e8e0d2, #fbf7ef 38%, #ded4c4);
  --phone-screen: #fffdf8;
  --final-bg: radial-gradient(ellipse at 18% 0%, rgba(217, 119, 87, 0.2), transparent 55%),
    radial-gradient(ellipse at 92% 100%, rgba(123, 139, 111, 0.16), transparent 55%), #fbf7ef;
  --final-line: rgba(61, 54, 42, 0.16);
  --footer-bg: linear-gradient(180deg, rgba(255, 253, 248, 0.6), transparent 65%);
  --account-bg: radial-gradient(120% 80% at 100% 0%, rgba(217, 119, 87, 0.08), transparent 52%), #f7f3ea;

  /* 控件 */
  --btn-primary-bg: linear-gradient(135deg, #c15f3c, #d97757);
  --btn-primary-shadow: 0 12px 28px -14px rgba(193, 95, 60, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  --btn-secondary-bg: #fffdf8;
  --btn-secondary-line: rgba(61, 54, 42, 0.23);
  --btn-secondary-hover: #f5efe4;
  --input-bg: #fffdf8;
  --input-line: rgba(61, 54, 42, 0.23);
  --input-focus-line: rgba(193, 95, 60, 0.62);
  --input-focus-shadow: 0 0 0 4px rgba(193, 95, 60, 0.12);
  --skeleton: rgba(61, 54, 42, 0.07);
  --skeleton-shine: rgba(61, 54, 42, 0.03);
  --toast-bg: rgba(255, 253, 248, 0.97);
  --toast-line: rgba(61, 54, 42, 0.2);
  --divider-dashed: rgba(61, 54, 42, 0.18);
  --app-icon-bg: linear-gradient(135deg, #c15f3c, #d97757);
  --app-icon-text: #fffaf4;

  /* 阴影 */
  --shadow-lg: 0 34px 80px -40px rgba(61, 54, 42, 0.45);
  --shadow-md: 0 20px 44px -28px rgba(61, 54, 42, 0.38);
  --shadow-sm: 0 10px 24px -16px rgba(61, 54, 42, 0.32);

  /* 排版与动效 */
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Noto Sans SC", "PingFang SC",
    "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia,
    "Times New Roman", serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
}

/* ---------- 设计令牌：星云深色 ---------- */

[data-theme='nebula'] {
  --bg: #06070c;
  --bg-soft: #080a11;
  --surface: #0c0f18;
  --surface-2: #10141f;
  --text: #eef1f9;
  --text-soft: #cdd3e2;
  --muted: #8f98ad;
  --muted-2: #667086;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --brand: #7c6cff;
  --brand-2: #5b9dff;
  --teal: #2dd4bf;
  --danger: #ff6b7a;
  --on-brand: #f5f7ff;

  --brand-soft: rgba(124, 108, 255, 0.12);
  --brand-line: rgba(124, 108, 255, 0.28);
  --brand-strong: #c4b5fd;
  --ok-soft: rgba(45, 212, 191, 0.1);
  --ok-line: rgba(45, 212, 191, 0.26);
  --ok-text: #6ee7b7;
  --danger-soft: rgba(255, 107, 122, 0.09);
  --danger-line: rgba(255, 107, 122, 0.3);
  --danger-text: #ffb3bb;
  --focus: #9c8cff;

  --grad: linear-gradient(120deg, #a78bfa 0%, #6d8dff 48%, #2dd4bf 100%);
  --grad-soft: linear-gradient(120deg, rgba(167, 139, 250, 0.16), rgba(109, 141, 255, 0.12), rgba(45, 212, 191, 0.1));
  --grad-text: linear-gradient(108deg, #c4b5fd 0%, #93b4ff 46%, #5eead4 100%);
  --hero-bg: linear-gradient(180deg, #080a11 0%, #06070c 58%, #06070c 100%);
  --grid-line: rgba(255, 255, 255, 0.05);
  --orb-a: rgba(124, 108, 255, 0.45);
  --orb-b: rgba(45, 212, 191, 0.26);
  --orb-c: rgba(91, 157, 255, 0.24);
  --mask-solid: #000000;

  --header-bg: rgba(6, 7, 12, 0.78);
  --header-line: rgba(255, 255, 255, 0.07);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014));
  --card-bg-hover: rgba(255, 255, 255, 0.05);
  --card-line-hover: rgba(255, 255, 255, 0.17);
  --chip-bg: rgba(255, 255, 255, 0.035);
  --chip-line: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(12, 15, 24, 0.88);
  --glass-line: rgba(255, 255, 255, 0.14);
  --browser-bg: #0b0e16;
  --browser-chrome: rgba(255, 255, 255, 0.035);
  --browser-url: rgba(255, 255, 255, 0.05);
  --browser-url-text: #7e879c;
  --phone-frame: linear-gradient(160deg, #2a3041, #0a0c13 38%, #1b2030);
  --phone-screen: #070910;
  --final-bg: radial-gradient(ellipse at 18% 0%, rgba(124, 108, 255, 0.24), transparent 55%),
    radial-gradient(ellipse at 92% 100%, rgba(45, 212, 191, 0.16), transparent 55%), #080a11;
  --final-line: rgba(255, 255, 255, 0.13);
  --footer-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 60%);
  --account-bg: radial-gradient(120% 80% at 100% 0%, rgba(124, 108, 255, 0.12), transparent 52%), #06070c;

  --btn-primary-bg: linear-gradient(135deg, #8b7bff, #5b8cff);
  --btn-primary-shadow: 0 12px 34px -12px rgba(108, 124, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  --btn-secondary-bg: rgba(255, 255, 255, 0.045);
  --btn-secondary-line: rgba(255, 255, 255, 0.13);
  --btn-secondary-hover: rgba(255, 255, 255, 0.08);
  --input-bg: rgba(255, 255, 255, 0.035);
  --input-line: rgba(255, 255, 255, 0.1);
  --input-focus-line: rgba(138, 122, 255, 0.65);
  --input-focus-shadow: 0 0 0 4px rgba(124, 108, 255, 0.13);
  --skeleton: rgba(255, 255, 255, 0.07);
  --skeleton-shine: rgba(255, 255, 255, 0.03);
  --toast-bg: rgba(14, 17, 26, 0.95);
  --toast-line: rgba(255, 255, 255, 0.14);
  --divider-dashed: rgba(255, 255, 255, 0.14);
  --app-icon-bg: linear-gradient(135deg, #7c6cff, #5b9dff);
  --app-icon-text: #f5f7ff;

  --shadow-lg: 0 34px 80px -34px rgba(0, 0, 0, 0.95);
  --shadow-md: 0 24px 48px -24px rgba(0, 0, 0, 0.9);
  --shadow-sm: 0 12px 26px -18px rgba(0, 0, 0, 0.85);

  --font-display: "Segoe UI", -apple-system, BlinkMacSystemFont, "Noto Sans SC", "PingFang SC",
    "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

/* ---------- 基础 ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--brand-soft);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 99px;
  border: 2px solid var(--bg-soft);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-2);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 104px 0;
}

section[id] {
  scroll-margin-top: 92px;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--ok-soft);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.section-head {
  max-width: 760px;
  margin-bottom: 52px;
}

.section-head.is-center {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
  text-align: center;
}

.section-title {
  margin: 16px 0 18px;
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-desc {
  max-width: 660px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.section-head.is-center .section-desc {
  margin: 0 auto;
}

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 按钮 ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s,
    color 0.25s, filter 0.25s;
}

.btn svg {
  flex: 0 0 auto;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  color: var(--on-brand);
  background: var(--btn-primary-bg);
  box-shadow: var(--btn-primary-shadow);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  color: var(--text);
  background: var(--btn-secondary-bg);
  border-color: var(--btn-secondary-line);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover);
  border-color: var(--line-strong);
}

.btn-ghost {
  color: var(--muted);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--brand-soft);
}

.btn-danger {
  color: var(--danger-text);
  background: var(--danger-soft);
  border-color: var(--danger-line);
}

.btn-danger:hover {
  filter: brightness(1.03);
}

.btn-lg {
  height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 15px;
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  gap: 7px;
}

.btn-xs {
  height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  gap: 5px;
}

.btn-block {
  width: 100%;
}

/* ---------- 顶栏 ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 74px;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: var(--header-bg);
  border-bottom-color: var(--header-line);
  backdrop-filter: blur(18px) saturate(1.2);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--grad);
  color: var(--on-brand);
  box-shadow: var(--shadow-sm);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

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

.brand-sub {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
}

.header-link {
  padding: 8px 11px;
  border-radius: var(--radius-xs);
  color: var(--muted);
  font-size: 13.5px;
  transition: color 0.2s, background 0.2s;
}

.header-link:hover {
  color: var(--text);
  background: var(--brand-soft);
}

.header-link.is-active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.header-account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--chip-bg);
  color: var(--text-soft);
  font-size: 12.5px;
  transition: background 0.2s, border-color 0.2s;
}

.header-account:hover {
  background: var(--surface);
  border-color: var(--line-strong);
}

.header-account svg {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-soft);
  background: var(--chip-bg);
}

.menu-toggle:hover {
  border-color: var(--line-strong);
}

.mobile-nav {
  display: none;
}

/* ---------- 主题切换 ---------- */

.theme-switcher {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.theme-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--chip-bg);
  color: var(--muted);
  font-size: 12px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.theme-trigger:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.theme-trigger-chevron {
  opacity: 0.55;
}

.theme-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 140;
  width: 264px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  animation: modalIn 0.2s var(--ease);
}

.theme-popover-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 7px;
}

.theme-popover-head strong {
  font-size: 12px;
  font-weight: 600;
}

.theme-popover-head span {
  color: var(--muted-2);
  font-size: 9.5px;
}

.theme-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text-soft);
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}

.theme-option:hover {
  background: var(--brand-soft);
}

.theme-option.is-selected {
  background: var(--brand-soft);
  border-color: var(--brand-line);
}

.theme-swatch {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.theme-swatch-claude {
  background: linear-gradient(135deg, var(--swatch-claude-a) 0 38%, var(--swatch-claude-b) 38% 70%, var(--swatch-claude-c) 70%);
}

.theme-swatch-nebula {
  background: linear-gradient(135deg, var(--swatch-nebula-a) 0 38%, var(--swatch-nebula-b) 38% 70%, var(--swatch-nebula-c) 70%);
}

.theme-swatch-system {
  background: linear-gradient(135deg, var(--swatch-claude-a) 0 50%, var(--swatch-nebula-a) 50% 100%);
}

.theme-option-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.theme-option-copy strong {
  font-size: 12px;
  font-weight: 600;
}

.theme-option-copy em {
  color: var(--muted-2);
  font-size: 10px;
  font-style: normal;
}

.theme-check {
  display: grid;
  place-items: center;
  width: 18px;
  color: var(--brand);
}

/* 主题色板（仅供切换器色块使用，属于主题定义的一部分） */
:root,
[data-theme='claude'] {
  --swatch-claude-a: #f7f3ea;
  --swatch-claude-b: #c15f3c;
  --swatch-claude-c: #3d3929;
  --swatch-nebula-a: #07080d;
  --swatch-nebula-b: #7c6cff;
  --swatch-nebula-c: #2dd4bf;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 158px 0 0;
  overflow: hidden;
  background: var(--hero-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: -20% -10% 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.7;
  -webkit-mask-image: radial-gradient(ellipse 80% 62% at 50% 18%, var(--mask-solid) 8%, transparent 76%);
  mask-image: radial-gradient(ellipse 80% 62% at 50% 18%, var(--mask-solid) 8%, transparent 76%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.hero-orb-a {
  top: -260px;
  left: -180px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, var(--orb-a), transparent 66%);
}

.hero-orb-b {
  top: -180px;
  right: -160px;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, var(--orb-b), transparent 66%);
}

.hero-orb-c {
  top: 260px;
  left: 36%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--orb-c), transparent 66%);
  opacity: 0.4;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 52px;
  align-items: center;
}

.hero-copy {
  max-width: 610px;
}

.hero-title {
  margin: 22px 0 22px;
  font-size: clamp(42px, 5.2vw, 68px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 530px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.hero-note svg {
  color: var(--teal);
  flex: 0 0 auto;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-stat dt {
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-stat dt small {
  margin-left: 3px;
  color: var(--muted);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.hero-stat dd {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 11px;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.hero-aurora {
  position: absolute;
  inset: 6% -4% 0;
  border-radius: 50%;
  background: radial-gradient(circle at 55% 45%, var(--orb-a), transparent 62%),
    radial-gradient(circle at 80% 70%, var(--orb-b), transparent 55%);
  filter: blur(50px);
  z-index: 0;
}

.hero-browser-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  transform: translate(10px, -6px);
}

.browser-frame {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--browser-bg);
  box-shadow: var(--shadow-lg);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--browser-chrome);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.browser-dots i:nth-child(1) {
  background: var(--danger);
  opacity: 0.55;
}

.browser-dots i:nth-child(2) {
  background: var(--brand-2);
  opacity: 0.6;
}

.browser-dots i:nth-child(3) {
  background: var(--teal);
  opacity: 0.6;
}

.browser-url {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 20px;
  width: min(250px, 62%);
  margin: 0 auto;
  border-radius: 6px;
  background: var(--browser-url);
  color: var(--browser-url-text);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.browser-lock {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.8;
}

.browser-spacer {
  width: 32px;
}

.browser-body {
  background: var(--browser-bg);
}

.browser-body img {
  width: 100%;
}

.hero-phone {
  position: absolute;
  left: -22px;
  bottom: -18px;
  z-index: 3;
  width: 150px;
  transform: rotate(-4deg);
  animation: floatSlow 9s ease-in-out infinite;
}

.phone-frame {
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: var(--phone-frame);
  box-shadow: var(--shadow-md);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 21px;
  background: var(--phone-screen);
}

.phone-screen img {
  width: 100%;
}

.hero-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px 9px 9px;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  background: var(--glass-bg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.hero-chip-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ok-soft);
  color: var(--ok-text);
  flex: 0 0 auto;
}

.hero-chip-icon.soft {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.hero-chip strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.hero-chip small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.3;
}

.hero-chip-a {
  top: 2px;
  right: -8px;
}

.hero-chip-b {
  left: -14px;
  bottom: 92px;
}

.hero-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 56px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.hero-foot i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-2);
  opacity: 0.6;
}

/* ---------- 特性 ---------- */

.features-section {
  padding-top: 96px;
}

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

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card-bg);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-line-hover);
  background: var(--card-bg-hover);
  box-shadow: var(--shadow-md);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-line), transparent);
  opacity: 0.7;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.feature-card h3 {
  margin-bottom: 9px;
  font-size: 16.5px;
}

.feature-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.feature-tags span {
  padding: 3px 9px;
  border: 1px solid var(--chip-line);
  border-radius: 99px;
  background: var(--chip-bg);
  color: var(--muted);
  font-size: 10.5px;
}

/* ---------- 截图 ---------- */

.shots-section {
  padding-top: 84px;
}

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

.shot-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card-bg);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.shot-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-line-hover);
  box-shadow: var(--shadow-md);
}

.shot-media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.shot-media img {
  width: 100%;
  aspect-ratio: 1440 / 1000;
  object-fit: cover;
  object-position: top center;
}

.shot-card.is-wide {
  grid-column: 1 / -1;
}

.shot-card.is-wide .shot-media img {
  aspect-ratio: 1440 / 700;
}

.shot-caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
}

.shot-caption strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}

.shot-caption span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.shot-caption em {
  flex: 0 0 auto;
  padding: 2px 8px;
  border: 1px solid var(--chip-line);
  border-radius: 99px;
  color: var(--muted-2);
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

/* ---------- 使用指南 ---------- */

.guide-section {
  padding-top: 96px;
}

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

.guide-card {
  position: relative;
  height: 100%;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card-bg);
}

.guide-card::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -66px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--brand-soft), transparent 70%);
  pointer-events: none;
}

.guide-num {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.guide-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.guide-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.guide-card p {
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.8;
}

.guide-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--chip-bg);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.guide-note svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--teal);
}

/* ---------- FAQ ---------- */

.faq-section {
  padding-top: 96px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 64px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 104px;
}

.faq-intro .section-desc {
  margin-bottom: 22px;
}

.faq-intro .section-desc a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--chip-bg);
  transition: border-color 0.25s, background 0.25s;
}

.faq-item[open] {
  border-color: var(--brand-line);
  background: var(--brand-soft);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-toggle {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
}

.faq-toggle::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-toggle {
  color: var(--brand);
  background: var(--brand-soft);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.faq-answer a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 底部 CTA ---------- */

.final-cta-section {
  padding: 16px 0 104px;
}

.final-cta {
  position: relative;
  padding: 72px 56px;
  overflow: hidden;
  border: 1px solid var(--final-line);
  border-radius: var(--radius-xl);
  background: var(--final-bg);
  text-align: center;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.7;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, var(--mask-solid), transparent);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, var(--mask-solid), transparent);
}

.final-cta > * {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  margin: 18px 0 16px;
  font-size: clamp(32px, 4.2vw, 52px);
  letter-spacing: -0.035em;
}

.final-cta p {
  color: var(--muted);
  font-size: 14.5px;
}

.final-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- 页脚 ---------- */

.site-footer {
  position: relative;
  padding: 60px 0 30px;
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.35fr 2fr;
  gap: 72px;
}

.footer-brand p {
  max-width: 340px;
  margin: 18px 0 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid var(--ok-line);
  border-radius: 99px;
  background: var(--ok-soft);
  color: var(--ok-text);
  font-size: 11px;
}

.footer-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--ok-soft);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-column h2 {
  margin-bottom: 14px;
  color: var(--muted-2);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 13.5px;
  transition: color 0.2s, transform 0.2s;
}

.footer-column a:hover {
  color: var(--text);
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
  flex-wrap: wrap;
}

.footer-note {
  color: var(--muted-2);
}

/* ---------- Toast ---------- */

.toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--toast-line);
  border-radius: 12px;
  background: var(--toast-bg);
  box-shadow: var(--shadow-md);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
  pointer-events: auto;
  animation: toastIn 0.3s var(--ease);
}

.toast-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  margin-top: 1px;
}

.toast-success .toast-icon {
  color: var(--ok-text);
  background: var(--ok-soft);
}

.toast-error .toast-icon {
  color: var(--danger-text);
  background: var(--danger-soft);
}

.toast-info .toast-icon {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.toast strong {
  font-weight: 600;
}

.toast p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- 入场动画 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes floatSlow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.82);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

/* ---------- 响应式：平板 ---------- */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-showcase {
    min-height: 0;
    max-width: 640px;
    margin: 0 auto;
  }

  .hero-phone {
    left: 4px;
    bottom: -10px;
    width: 132px;
  }

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

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-intro {
    position: static;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .header-nav {
    display: none;
  }

  .header-account span {
    display: none;
  }

  .header-account {
    padding: 7px;
  }

  .menu-toggle {
    display: grid;
  }

  .header-actions {
    margin-left: auto;
    gap: 10px;
  }

  .mobile-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 74px);
    overflow: auto;
    padding: 14px 24px 24px;
    border-top: 1px solid var(--line);
    background: var(--bg);
    box-shadow: var(--shadow-md);
  }

  .mobile-nav.is-open {
    display: block;
  }

  .mobile-nav nav {
    display: flex;
    flex-direction: column;
  }

  .mobile-nav nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 15px;
  }

  .mobile-nav nav a svg {
    color: var(--muted-2);
  }

  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
  }

  .mobile-theme {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .mobile-theme .theme-switcher {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .mobile-theme .theme-trigger {
    width: 100%;
    justify-content: flex-start;
    gap: 9px;
    height: 42px;
    font-size: 14px;
  }

  .mobile-theme .theme-trigger-chevron {
    margin-left: auto;
  }

  .mobile-theme .theme-popover {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }
}

/* ---------- 响应式：手机 ---------- */

@media (max-width: 768px) {
  .container {
    width: calc(100% - 36px);
  }

  .section {
    padding: 72px 0;
  }

  .site-header,
  .header-inner {
    height: 66px;
  }

  .header-inner {
    gap: 12px;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-browser-wrap {
    transform: none;
  }

  .shot-card.is-wide .shot-media img {
    aspect-ratio: 1440 / 1000;
  }

  .mobile-nav {
    top: 66px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-sub {
    display: none;
  }

  .hero {
    padding-top: 118px;
  }

  .hero-title {
    font-size: clamp(34px, 9.5vw, 46px);
  }

  .hero-lead {
    font-size: 14.5px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
    margin-top: 34px;
  }

  .hero-foot {
    margin-top: 38px;
    gap: 10px;
    font-size: 10.5px;
  }

  .hero-chip {
    display: none;
  }

  .hero-phone {
    width: 108px;
    left: 2px;
    bottom: -8px;
  }

  .section-title {
    font-size: clamp(27px, 7vw, 34px);
  }

  .section-desc {
    font-size: 14px;
  }

  .feature-grid,
  .guide-grid,
  .shots-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .guide-card {
    padding: 24px 22px;
  }

  .faq-question {
    padding: 15px 16px;
    font-size: 13.5px;
  }

  .faq-answer {
    padding: 0 16px 18px;
  }

  .final-cta {
    padding: 48px 22px;
    border-radius: var(--radius-lg);
  }

  .final-actions .btn {
    flex: 1 1 auto;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-bottom {
    margin-top: 34px;
  }

  .theme-trigger-label {
    display: none;
  }

  .theme-trigger {
    padding: 0 8px;
  }

  .toast-stack {
    right: 16px;
    bottom: 16px;
  }
}

/* ---------- 减少动效 ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
