/* ============================================================
   浩浩工具箱 · 主域名着陆页
   Aurora UI v7 · 深色基底 / 开发者网关体系
   ============================================================ */

/* —— 主题变量 —— */
:root, [data-theme="dark"] {
  --bg: #0B0E14;
  --bg-elev: #0F131B;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.075);
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.17);
  --text: #F3F5F9;
  --text-dim: #9AA5B8;
  --text-faint: #7E8899;
  --accent: #FF5C39;
  --accent-2: #FFB454;
  --accent-3: #3DD6C4;
  --accent-4: #7A8BFF;
  --grad: linear-gradient(135deg, #FF5C39 0%, #FFB454 52%, #3DD6C4 100%);
  --glow: rgba(255,92,57,0.16);
  --shadow-mark: rgba(0,0,0,0.5);
  --grid-line: rgba(255,255,255,0.045);
  --shadow-1: 0 1px 2px rgba(0,0,0,0.35), 0 18px 40px -18px rgba(0,0,0,0.55);
  --topbar-bg: rgba(11,14,20,0.72);
  --scrollbar: #2A3242;
  --font-sans: "IBM Plex Sans", "IBM Plex Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
[data-theme="light"] {
  --bg: #F3F5F9;
  --bg-elev: #FFFFFF;
  --surface: rgba(17,26,46,0.035);
  --surface-2: rgba(17,26,46,0.06);
  --border: rgba(17,26,46,0.11);
  --border-strong: rgba(17,26,46,0.22);
  --text: #1B2436;
  --text-dim: #56617A;
  --text-faint: #6E7787;
  --accent: #E04A2E;
  --accent-2: #C77D1B;
  --accent-3: #0E9A8A;
  --accent-4: #4B5BDD;
  --grad: linear-gradient(135deg, #E04A2E 0%, #E8A33D 52%, #0E9A8A 100%);
  --glow: rgba(224,74,46,0.10);
  --shadow-mark: rgba(23,32,58,0.4);
  --grid-line: rgba(17,26,46,0.05);
  --shadow-1: 0 1px 2px rgba(23,32,58,0.05), 0 18px 40px -18px rgba(23,32,58,0.22);
  --topbar-bg: rgba(243,245,249,0.78);
  --scrollbar: #C9D2E0;
}
[data-theme="dark"] { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }

/* —— 基础 —— */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px; line-height: 1.7; overflow-x: hidden;
  transition: background-color .5s ease, color .5s ease;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
body.no-scroll { overflow: hidden; }

/* —— 容器 —— */
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
main { position: relative; z-index: 1; }
.section { padding: 104px 0; position: relative; }
.section-alt { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* —— 标题 —— */
.sec-head { max-width: 620px; margin-bottom: 52px; }
.sec-title {
  font-size: clamp(27px, 3.2vw, 38px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.22; margin-bottom: 12px;
}
.sec-sub { color: var(--text-dim); font-size: 15.5px; max-width: 62ch; }

/* —— 滚动揭示（无 JS 时内容照常可见） —— */
.js .reveal {
  opacity: 0; transform: translateY(18px); filter: blur(7px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ============================================================
   顶栏
   ============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--topbar-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background-color .5s ease, border-color .5s ease;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; position: relative; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; flex-shrink: 0; z-index: 2; }
/* 品牌标：图片 logo（透明底），不再使用渐变方块 + SVG */
.logo-mark {
  width: 30px; height: 30px; flex-shrink: 0;
  display: block; object-fit: contain;
  filter: drop-shadow(0 4px 8px var(--shadow-mark));
}
.logo em { font-style: normal; color: var(--accent); }

.nav {
  display: flex; gap: 2px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav a {
  padding: 8px 13px; border-radius: 9px; font-size: 14px; color: var(--text-dim);
  transition: color .25s var(--ease), background-color .25s var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--text); background: var(--surface-2); }

.topbar-actions { display: flex; align-items: center; gap: 10px; z-index: 2; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-dim); border: 1px solid var(--border); background: var(--surface);
  transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-sun { display: block; }
[data-theme="light"] .theme-icon-moon { display: none; }
.hamburger { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 95; padding: 88px 24px 32px;
  background: var(--bg); display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  padding: 15px 8px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--border);
  color: var(--text); min-height: 54px; display: flex; align-items: center;
}
.mobile-menu .mm-cta {
  margin-top: 22px; border-bottom: none; justify-content: center;
  background: var(--grad); color: #fff; border-radius: 999px; font-weight: 600; min-height: 52px;
}

/* ============================================================
   按钮
   ============================================================ */
@keyframes btn-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes btn-glow-pulse {
  0%, 100% { box-shadow: 0 4px 18px -6px var(--accent), 0 0 0 0 rgba(255,92,57,.25), 0 1px 0 rgba(255,255,255,.18) inset; }
  50%      { box-shadow: 0 8px 28px -4px var(--accent), 0 0 24px 2px rgba(255,92,57,.35), 0 2px 0 rgba(255,255,255,.22) inset; }
}

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  min-height: 48px; letter-spacing: 0.01em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .35s var(--ease),
              background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease),
              filter .3s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 40%);
  pointer-events: none; z-index: 1;
}
.btn::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 160% at 50% -40%, rgba(255,255,255,.18), transparent 55%);
  pointer-events: none; z-index: 1;
}
.btn > * { position: relative; z-index: 2; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:active { transform: scale(.96); transition-duration: .12s; }

/* —— Primary —— */
.btn-primary {
  background: var(--grad);
  background-size: 200% 200%;
  color: #fff;
  box-shadow:
    0 4px 18px -6px var(--accent),
    0 1px 0 rgba(255,255,255,.18) inset,
    0 -1px 0 rgba(0,0,0,.12) inset;
  animation: btn-shimmer 6s ease-in-out infinite;
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: saturate(1.12) brightness(1.06);
  animation: btn-glow-pulse 1.6s ease-in-out infinite;
}
.btn-primary:hover::after {
  background: radial-gradient(140% 200% at 50% -30%, rgba(255,255,255,.28), transparent 60%);
}

/* —— Ghost —— */
.btn-ghost {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px var(--glow);
  color: var(--accent);
}
.btn-ghost:hover::before {
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 50%);
}

/* —— Icon button —— */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--border);
  transition: all .25s var(--ease);
}
.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -6px var(--glow);
}

/* —— Sizes —— */
.btn-sm { padding: 9px 18px; border-radius: 999px; font-size: 14px; min-height: 38px; gap: 7px; }
.btn-sm svg { width: 14px; height: 14px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: 148px 0 32px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 100%;
  -webkit-mask-image: radial-gradient(120% 88% at 50% 0%, #000 28%, transparent 76%);
  mask-image: radial-gradient(120% 88% at 50% 0%, #000 28%, transparent 76%);
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(42% 44% at 84% 4%, var(--glow), transparent 70%),
    radial-gradient(34% 38% at 2% 98%, rgba(61,214,196,0.09), transparent 72%);
}
[data-theme="light"] .hero-glow {
  background:
    radial-gradient(42% 44% at 84% 4%, var(--glow), transparent 70%),
    radial-gradient(34% 38% at 2% 98%, rgba(14,154,138,0.07), transparent 72%);
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 64px; align-items: center; }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 74px);
  font-weight: 700; line-height: 1.06; letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-sub { color: var(--text-dim); font-size: clamp(15px, 1.6vw, 17.5px); max-width: 46ch; margin-bottom: 38px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cta-note { flex-basis: 100%; font-size: 13px; color: var(--text-faint); }

/* —— 终端卡片（Authored moment） —— */
.term {
  --term-bg: #0A0D13;
  --term-line: rgba(255,255,255,0.08);
  --term-text: #C9D3E3;
  --term-dim: #8A93A6;
  border: 1px solid var(--term-line); border-radius: 16px; background: var(--term-bg);
  overflow: hidden; box-shadow: var(--shadow-1);
}
.term-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--term-line); }
.term-dots { display: inline-flex; gap: 6px; flex-shrink: 0; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.term-title {
  font-family: var(--font-mono); font-size: 12px; color: var(--term-dim); letter-spacing: .02em;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.copy-btn {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--font-mono); font-size: 12px; color: var(--term-dim);
  border: 1px solid var(--term-line); border-radius: 8px; padding: 5px 12px; min-height: 30px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.copy-btn:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.copy-btn.done { color: #3DD6C4; border-color: rgba(61,214,196,0.5); }
.term-body {
  padding: 22px 24px 26px; font-family: var(--font-mono); font-size: 13px; line-height: 1.85;
  color: var(--term-text); overflow-x: auto; white-space: pre; -webkit-overflow-scrolling: touch;
}
.term-body code { font-family: inherit; }
.t-p { color: #3DD6C4; font-weight: 600; }
.t-cmd { color: #F4F7FC; font-weight: 600; }
.t-url { color: #8C9BFF; }
.t-dim { color: #8A93A6; }
.t-str { color: #FFB454; }
.t-out { color: #3DD6C4; }
.t-key { color: #FF7A5C; }
.t-num { color: #FFB454; }
.term-caret {
  display: inline-block; width: 8px; height: 15px; margin-left: 2px;
  background: #3DD6C4; vertical-align: -2px;
  animation: blink 1.15s steps(1, end) infinite;
}
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* —— 信任条 —— */
.assure { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 76px; border-top: 1px solid var(--border); }
.assure > div { padding: 26px 28px 4px 0; }
.assure > div + div { border-left: 1px solid var(--border); padding-left: 28px; }
.assure b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.assure span { display: block; font-size: 12.5px; color: var(--text-dim); line-height: 1.65; max-width: 30ch; }

/* ============================================================
   核心能力（细线矩阵）
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.feat { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 34px 30px 38px; transition: background-color .35s var(--ease); }
.feat:hover { background: var(--surface); }
.feat .ic { width: 26px; height: 26px; color: var(--text-dim); margin-bottom: 26px; transition: color .35s var(--ease); }
.feat:hover .ic { color: var(--accent); }
.feat h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.feat p { font-size: 14px; color: var(--text-dim); line-height: 1.75; max-width: 42ch; }

/* ============================================================
   产品服务
   ============================================================ */
.product-list { display: grid; grid-template-columns: 1fr; gap: 20px; }
.prod {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  overflow: hidden; color: inherit;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
a.prod { cursor: pointer; }
a.prod:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-1); }
.prod-badge {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 4px 12px; border-radius: 999px; color: #fff;
  background: var(--grad); box-shadow: 0 6px 14px -6px var(--shadow-mark);
}
.prod-banner {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  height: 104px; padding: 18px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border);
  color: var(--text-dim); transition: color .3s var(--ease);
}
a.prod:hover .prod-banner { color: var(--accent); }
.p-ic { width: 38px; height: 38px; }
.p-tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .2em; color: var(--text-faint); }
.prod-info { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 24px 26px 26px; text-align: left; }
.prod-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.prod-desc { font-size: 14px; color: var(--text-dim); line-height: 1.75; flex: 1; }
.prod-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.prod-tag { font-size: 12px; padding: 4px 11px; border-radius: 7px; background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); }
.prod-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 13.5px; font-weight: 500; color: var(--accent); }
.prod-link svg { width: 14px; height: 14px; }

/* 浩浩画布下载（产品卡片内的双平台按钮） */
.prod-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.dl-meta { font-size: 12px; color: var(--text-faint); }
.dl-note { font-size: 12.5px; color: var(--text-faint); line-height: 1.7; }

/* ============================================================
   接入指南
   ============================================================ */
.quick-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: start; }
.steps { border-top: 1px solid var(--border); }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.step .no { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent); padding-top: 4px; }
.step h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-dim); line-height: 1.75; }
code.inl {
  font-family: var(--font-mono); font-size: .9em; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px;
  overflow-wrap: anywhere;
}
.code-card .term-body { font-size: 13px; }

.models { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); }
.models-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); }
.models-label:not(:first-child) { margin-left: 18px; }
.chip { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; }
.models-link { margin-left: auto; font-size: 13.5px; color: var(--accent); text-underline-offset: 4px; }
.models-link:hover { text-decoration: underline; }

/* ============================================================
   计费
   ============================================================ */
.price-rows { border-top: 1px solid var(--border); }
.price-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.price-row h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.price-row p { font-size: 14.5px; color: var(--text-dim); line-height: 1.75; max-width: 66ch; }
.price-note { margin-top: 30px; font-size: 13.5px; color: var(--text-dim); }
.price-note a { color: var(--accent); text-underline-offset: 4px; }
.price-note a:hover { text-decoration: underline; }

/* ============================================================
   关于我们
   ============================================================ */
.about-card { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); padding: 38px 36px; max-width: 800px; }
.about-card p { font-size: 15px; color: var(--text-dim); margin-bottom: 16px; }
.about-card p:last-child { margin-bottom: 0; }
.about-card strong { color: var(--text); font-weight: 600; }

/* ============================================================
   联系我们
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.contact-card {
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  padding: 28px 26px; color: inherit;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
a.contact-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-1); }
.contact-card .ic { width: 22px; height: 22px; color: var(--text-dim); margin-bottom: 8px; }
.contact-label { font-size: 13px; color: var(--text-dim); }
.contact-value { font-size: 16px; font-weight: 600; }
.contact-value.mono { font-family: var(--font-mono); font-size: 15px; }
.contact-hint { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }

/* ============================================================
   页脚
   ============================================================ */
footer { border-top: 1px solid var(--border); padding: 0 0 42px; }
.foot-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 34px 0; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.foot-cta p { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.f-left { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-dim); }
.f-left .logo-mark { width: 26px; height: 26px; }
.f-right { font-size: 12.5px; color: var(--text-faint); font-family: var(--font-mono); }
.f-right a { color: inherit; text-underline-offset: 4px; transition: color .25s var(--ease); }
.f-right a:hover { color: var(--text-dim); }
.beian-link { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.beian-link img { display: block; width: 14px; height: 16px; }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 300;
  background: var(--bg-elev); color: var(--text); border: 1px solid var(--border);
  padding: 12px 22px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-1);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s var(--ease);
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast svg { width: 16px; height: 16px; color: var(--accent-3); }

/* ============================================================
   弹窗（小程序码 / 微信客服码）
   ============================================================ */
.modal-mask {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.modal-mask.show { display: flex; animation: modalIn .22s ease; }
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 20px;
  padding: 34px; text-align: center; max-width: 340px; width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.modal-qr {
  width: 200px; height: 200px; margin: 0 auto 18px; border-radius: 14px;
  overflow: hidden; background: var(--surface-2); border: 1px solid var(--border);
}
.modal-qr img { width: 100%; height: 100%; object-fit: cover; }
.qr-fallback {
  display: none; align-items: center; justify-content: center; height: 100%; padding: 18px;
  font-size: 14px; color: var(--text-dim); line-height: 1.8;
}
.modal-desc { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; line-height: 1.7; }
.modal-hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-faint); }
.modal-close {
  padding: 9px 30px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); border-radius: 999px; font-size: 14px; min-height: 40px;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.modal-close:hover { background: var(--surface-2); border-color: var(--accent); }

/* 粒子点线背景 */
#particle-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ============================================================
   响应式
   ============================================================ */
@media (min-width: 700px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 760px) {
  .prod-hero { flex-direction: row; }
  .prod-hero .prod-banner {
    width: 230px; flex: 0 0 230px; height: auto; border-bottom: none;
    border-right: 1px solid var(--border);
    background: linear-gradient(160deg, var(--surface-2), transparent 72%);
  }
  .prod-hero .p-ic { width: 46px; height: 46px; }
  .prod-hero .prod-info { padding: 34px 38px; justify-content: center; }
  .prod-hero .prod-title { font-size: 19px; }
  .price-row { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: baseline; padding: 32px 0; }
}
@media (min-width: 1000px) {
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-list { grid-template-columns: repeat(3, 1fr); }
  .prod-hero { grid-column: 1 / -1; }
  .quick-grid { grid-template-columns: minmax(0, 88fr) minmax(0, 112fr); gap: 64px; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .hamburger { display: inline-flex; }
  .section { padding: 84px 0; }
  .hero { padding-top: 128px; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .assure { grid-template-columns: repeat(2, 1fr); row-gap: 20px; margin-top: 56px; }
  .assure > div { padding: 20px 20px 0 0; }
  .assure > div + div { padding-left: 20px; }
  .assure > div:nth-child(odd):nth-child(n+3) { border-left: none; padding-left: 0; }
  .assure > div:nth-child(even) { border-left: 1px solid var(--border); }
  .term-body { font-size: 12px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 112px; }
  .term-body { padding: 18px 16px 20px; }
  .assure { grid-template-columns: 1fr; }
  .assure > div { border-left: none !important; padding: 18px 0 0; }
  .assure > div + div { border-top: 1px solid var(--border); margin-top: 14px; }
  .models-link { margin-left: 0; width: 100%; }
  .foot-cta p { font-size: 16.5px; }
  .foot-cta .btn { width: 100%; justify-content: center; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .term-caret { animation: none; }
}