/* ============================================================
   ALLYOU 官网落地页 · style.css
   设计语言与 App 完全一致：
   - 主色 勿忘草 #7DB9DE（App 默认主题）
   - 背景 白練 #FFFBF7 / 墨 #1C1C1C（浅/深）
   - 圆角体系 16 / 12 / 8 · Noto Sans SC · Apple HIG 风格
   ============================================================ */

:root {
  /* 品牌色（来自 App 默认主题 勿忘草） */
  --primary: #7DB9DE;
  --primary-strong: #4F9ED0;
  --primary-deep: #3A87BA;
  --primary-soft: rgba(125, 185, 222, 0.14);
  --primary-softer: rgba(125, 185, 222, 0.08);
  --grad-main: linear-gradient(135deg, #7DB9DE 0%, #A8D3EC 100%);
  --grad-accent: linear-gradient(135deg, #F17C67 0%, #FC9F4D 100%);

  /* 中性色 */
  --bg: #FFFBF7;            /* 白練 */
  --bg-soft: #F7F3EE;
  --card: #FFFFFF;
  --card-hover: #FFFFFF;
  --text: #333333;
  --text-secondary: #8E8E93;
  --text-tertiary: #B8B8BD;
  --divider: #E5E5EA;
  --shadow-color: rgba(51, 51, 51, 0.08);

  /* 圆角体系 */
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;

  --nav-h: 64px;
  --container: 1120px;
}

[data-theme="dark"] {
  --bg: #1C1C1C;            /* 墨 */
  --bg-soft: #232325;
  --card: #2C2C2E;
  --card-hover: #323234;
  --text: #F5F5F5;
  --text-secondary: #AEAEB2;
  --text-tertiary: #7A7A80;
  --divider: #38383A;
  --shadow-color: rgba(0, 0, 0, 0.45);
  --primary-soft: rgba(125, 185, 222, 0.16);
  --primary-softer: rgba(125, 185, 222, 0.09);
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
}

img { display: block; max-width: 100%; }
a { color: var(--primary-strong); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

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

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

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--divider); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 12px 22px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
  user-select: none;
}
.btn i { font-size: 1.05em; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(125, 185, 222, 0.35);
}
.btn-primary:hover { background: var(--primary-strong); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(125, 185, 222, 0.45); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--divider);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-strong); transform: translateY(-2px); }

.btn-disabled {
  background: var(--bg-soft);
  color: var(--text-tertiary);
  border: 1px dashed var(--divider);
  cursor: not-allowed;
}

.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 16px;
  transition: background-color .18s ease, color .18s ease;
}
.icon-btn:hover { background: var(--primary-soft); color: var(--primary-strong); }

.link-btn {
  border: none;
  background: none;
  color: var(--primary-strong);
  font-family: inherit;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
  padding: 8px 4px;
  transition: opacity .18s ease;
}
.link-btn:hover { opacity: .8; }

/* ---------- 导航栏 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.scrolled { border-bottom-color: var(--divider); box-shadow: 0 4px 24px var(--shadow-color); }

.nav-inner { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; }
.brand-name { font-size: 20px; font-weight: 900; letter-spacing: 1.5px; }
.brand-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary-deep);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 3px 9px;
  letter-spacing: .5px;
}

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .18s ease, background-color .18s ease;
}
.nav-links a:hover { color: var(--text); background: var(--primary-softer); }
.nav-links a.active { color: var(--primary-strong); background: var(--primary-soft); font-weight: 700; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 72px) 0 88px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.blob-a { width: 520px; height: 520px; background: rgba(125,185,222,.28); top: -160px; right: -80px; animation: drift 14s ease-in-out infinite alternate; }
.blob-b { width: 420px; height: 420px; background: rgba(252,159,77,.16); bottom: -140px; left: -120px; animation: drift 18s ease-in-out infinite alternate-reverse; }
.blob-c { width: 260px; height: 260px; background: rgba(241,124,103,.14); top: 30%; left: 42%; animation: drift 20s ease-in-out infinite alternate; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--primary) 16%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 32%, black, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 65% at 50% 32%, black, transparent 72%);
  opacity: .55;
  pointer-events: none;
}

.phone-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 400px; height: 400px;
  margin: -200px 0 0 -200px;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--primary) 45%, transparent);
  pointer-events: none;
  animation: ringSpin 48s linear infinite;
}
.phone-ring::after {
  content: "";
  position: absolute; inset: 34px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, -30px) scale(1.08); }
}

.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-deep);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 22px;
}
[data-theme="dark"] .hero-badge { color: #BFE0F3; }

.hero h1 { font-size: 52px; font-weight: 900; line-height: 1.25; letter-spacing: 1px; margin-bottom: 20px; }
.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub { font-size: 16.5px; color: var(--text-secondary); max-width: 520px; margin-bottom: 32px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-secondary); }
.hero-meta i { color: var(--primary); }

/* Hero 手机模型 */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-frame {
  position: relative;
  width: 264px;
  border-radius: 34px;
  padding: 6px;
  background: linear-gradient(160deg, #3A3A3C, #1C1C1E);
  box-shadow: 0 30px 70px rgba(30, 60, 90, 0.28), inset 0 0 0 2px rgba(255,255,255,.06);
  animation: floaty 6s ease-in-out infinite;
}
.phone-frame img { border-radius: 28px; width: 100%; aspect-ratio: 9/19; object-fit: cover; }
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 18px; border-radius: 999px; background: #1C1C1E; z-index: 2;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  padding: 10px 14px;
  box-shadow: 0 12px 32px var(--shadow-color);
  animation: floaty 6s ease-in-out infinite;
}
.fc-1 { top: 14%; left: -6%; animation-delay: .4s; }
.fc-2 { bottom: 20%; right: -8%; animation-delay: 1.2s; }
.fc-3 { bottom: -4%; left: 2%; flex-direction: column; align-items: flex-start; gap: 6px; animation-delay: .8s; }
.fc-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary-strong); font-size: 16px;
}
.fc-body { display: flex; flex-direction: column; line-height: 1.35; }
.fc-num { font-size: 13px; font-weight: 700; }
.fc-label { font-size: 11.5px; color: var(--text-secondary); }

.mini-heatmap { display: grid; grid-template-columns: repeat(7, 10px); gap: 3px; }
.mini-heatmap i { width: 10px; height: 10px; border-radius: 3px; background: var(--primary-softer); }
.mini-heatmap .l1 { background: rgba(125,185,222,.28); }
.mini-heatmap .l2 { background: rgba(125,185,222,.55); }
.mini-heatmap .l3 { background: var(--primary); }

/* ---------- 通用 Section ---------- */
.section { padding: 96px 0; scroll-margin-top: calc(var(--nav-h) + 16px); }
.section-alt { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--primary-strong);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 34px; font-weight: 900; letter-spacing: .5px; margin-bottom: 14px; }
.section-head p { color: var(--text-secondary); font-size: 15.5px; }

/* ---------- 功能卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.feature-card {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 28px; right: 28px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--primary);
  opacity: 0;
  transition: opacity .22s ease;
}
.feature-card { position: relative; }
.feature-card:hover::before { opacity: .65; }
.feature-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  box-shadow: 0 16px 40px var(--shadow-color);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary-strong);
  font-size: 20px;
  margin-bottom: 18px;
  transition: transform .22s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }
.feature-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; }

/* ---------- 界面预览 ---------- */
.preview-sub {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: var(--text-secondary);
  margin: 8px 0 24px;
}
.preview-sub i { color: var(--primary); }
.preview-sub:not(:first-of-type) { margin-top: 56px; }

.phone-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.phone-mini { cursor: zoom-in; }
.pm-frame {
  position: relative;
  border-radius: 22px;
  padding: 5px;
  background: linear-gradient(160deg, #3A3A3C, #1C1C1E);
  box-shadow: 0 14px 34px var(--shadow-color);
  transition: transform .22s ease, box-shadow .22s ease;
  aspect-ratio: 9/18.6;
}
.pm-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 17px; }
.phone-mini:hover .pm-frame { transform: translateY(-8px) scale(1.02); box-shadow: 0 22px 44px var(--shadow-color); }

.desktop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.browser-frame { cursor: zoom-in; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--divider); background: var(--card); box-shadow: 0 10px 30px var(--shadow-color); transition: transform .22s ease, box-shadow .22s ease; }
.browser-frame:hover { transform: translateY(-6px); box-shadow: 0 20px 44px var(--shadow-color); }
.bf-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--divider); }
.bf-dot { width: 11px; height: 11px; border-radius: 50%; }
.bf-dot.r { background: #FF5F57; }
.bf-dot.y { background: #FEBC2E; }
.bf-dot.g { background: #28C840; }
.bf-url { margin-left: 8px; font-size: 11.5px; color: var(--text-tertiary); background: var(--card); border-radius: 999px; padding: 3px 14px; flex: 0 1 auto; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-body img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ---------- 数据同步 ---------- */
.sync-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.sync-copy .lead { color: var(--text-secondary); margin: 4px 0 28px; }

.sync-list { display: flex; flex-direction: column; gap: 4px; }
.sync-list li { display: flex; gap: 16px; padding: 12px 0; }
.sl-icon {
  flex: 0 0 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary-strong); font-size: 17px;
}
.sync-list strong { font-size: 15px; display: block; margin-bottom: 2px; }
.sync-list p { font-size: 13.5px; color: var(--text-secondary); }

/* 同步示意图 */
.sync-visual { display: flex; justify-content: center; }
.sync-diagram {
  position: relative;
  width: 100%; max-width: 430px;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  padding: 34px 26px 26px;
  box-shadow: 0 16px 44px var(--shadow-color);
}
.sd-node {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--primary-softer);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: var(--r-md);
  padding: 16px 8px;
}
.sd-node i { font-size: 26px; color: var(--primary-strong); }
.sd-node span { font-size: 12.5px; font-weight: 700; }
.sd-cloud { background: var(--bg-soft); border-color: var(--divider); }
.sd-cloud i { color: var(--text-secondary); }

.sd-flow { position: relative; height: 56px; }
.sd-line {
  position: absolute; top: 50%; left: 8%; right: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--primary) 0 10px, transparent 10px 18px);
  opacity: .5;
}
.sd-packet {
  position: absolute; top: 50%;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary);
  transform: translateY(-50%);
  animation: packet 3.2s linear infinite;
  box-shadow: 0 0 10px rgba(125,185,222,.7);
}
.p1 { left: 6%; }
.p2 { left: 6%; animation-delay: 1.6s; }
.p3 { left: 6%; animation-delay: .8s; }
.p4 { left: 6%; animation-delay: 2.4s; }
@keyframes packet {
  0% { left: 8%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 88%; opacity: 0; }
}
.sd-tag { position: absolute; font-size: 10.5px; font-weight: 700; color: var(--primary-deep); display: inline-flex; align-items: center; gap: 3px; }
[data-theme="dark"] .sd-tag { color: #BFE0F3; }
.sd-tag-up { top: 6px; left: 34%; }
.sd-tag-down { bottom: 6px; right: 34%; }
.sd-note {
  margin-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.sd-note i { color: #5DAC81; }

/* ---------- 主题设计 ---------- */
.swatch-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-bottom: 48px; }
.swatch {
  --sw: #7DB9DE;
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--sw) 40%, transparent);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.swatch:hover { transform: translateY(-6px) scale(1.06); box-shadow: 0 12px 26px color-mix(in srgb, var(--sw) 50%, transparent); }
.swatch::after {
  content: attr(data-name);
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text); color: var(--bg);
  font-size: 11.5px; font-weight: 500;
  padding: 5px 12px; border-radius: 8px;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.swatch:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

.theme-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 720px; margin: 0 auto; }
.demo-card { border-radius: var(--r-lg); border: 1px solid var(--divider); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.demo-light { background: #FFFBF7; color: #333; }
.demo-dark { background: #1C1C1C; color: #F5F5F5; }
.dc-top { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.dc-pill { margin-left: auto; font-size: 10.5px; font-weight: 500; opacity: .6; border-radius: 999px; padding: 3px 10px; background: rgba(127,127,127,.14); }
.dc-row { display: flex; align-items: center; gap: 8px; }
.demo-dot { color: #7DB9DE; font-size: 15px; }
.dc-line { flex: 1; height: 8px; border-radius: 4px; background: rgba(127,127,127,.18); }
.demo-dark .dc-line { background: rgba(255,255,255,.14); }
.dc-chip { width: 46px; height: 14px; border-radius: 7px; background: rgba(127,127,127,.18); }
.demo-dark .dc-chip { background: rgba(255,255,255,.14); }
.dc-chip:first-child { background: #7DB9DE; }

/* ---------- 下载 ---------- */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; }

.download-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  text-align: center;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.download-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px var(--shadow-color); }
.download-card::before {
  content: "";
  position: absolute;
  top: 0; left: 28px; right: 28px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--dc-color, var(--primary));
  opacity: .5;
}
.os-windows { --dc-color: #0078D4; }
.os-android { --dc-color: #3DDC84; }
.os-ios { --dc-color: #A2AAAD; }

.dc-platform {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
}
.os-windows .dc-platform { background: rgba(0,120,212,.12); color: #0078D4; }
.os-ios .dc-platform { background: rgba(90,90,90,.1); color: #555; }
.os-android .dc-platform { background: rgba(61,220,132,.12); color: #1FA95C; }
[data-theme="dark"] .os-ios .dc-platform { color: #C9C9C9; }
.os-windows .dc-platform { background: linear-gradient(135deg, rgba(0,120,212,.16), rgba(0,120,212,.05)); }
.os-android .dc-platform { background: linear-gradient(135deg, rgba(61,220,132,.16), rgba(61,220,132,.05)); }
.os-ios .dc-platform { background: linear-gradient(135deg, rgba(90,90,90,.14), rgba(90,90,90,.05)); }

.download-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.dc-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; line-height: 1.6; }

.dc-meta { display: flex; justify-content: center; gap: 16px; margin-bottom: 22px; }
.dc-meta li { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-secondary); }
.dc-meta i { color: var(--text-tertiary); }
.dc-meta li.ok i { color: #5DAC81; }
.dc-meta li.warn i { color: #CA7A2C; }
.dc-meta li.pending i { color: var(--text-tertiary); }

.dc-actions { display: flex; flex-direction: column; }
.dc-flag {
  position: absolute; top: 16px; right: 16px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px;
  color: var(--primary-deep);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 4px 10px;
  display: none;
}
.download-card.highlight { border-color: color-mix(in srgb, var(--primary) 55%, transparent); box-shadow: 0 0 0 4px var(--primary-softer), 0 18px 44px var(--shadow-color); }
.dc-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #CA7A2C;
  background: rgba(202, 122, 44, 0.08);
  border: 1px solid rgba(202, 122, 44, 0.25);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  margin-top: 14px;
  text-align: left;
}
.dc-note i { margin-top: 3px; flex: 0 0 auto; }

.download-card.highlight .dc-flag { display: inline-block; }

.notice {
  display: flex; gap: 16px;
  background: var(--primary-softer);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  max-width: 860px; margin: 0 auto;
}
.notice > i { color: var(--primary-strong); font-size: 18px; margin-top: 3px; }
.notice strong { font-size: 14.5px; }
.notice p { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--divider); background: var(--bg-soft); padding: 48px 0 26px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-name { font-size: 17px; font-weight: 900; letter-spacing: 1px; }
.footer-tag { font-size: 12.5px; color: var(--text-secondary); }
.footer-meta { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-meta span { font-size: 12.5px; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 7px; }
.footer-meta i { color: var(--primary); }
.footer-bar {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--divider);
  padding-top: 18px;
  font-size: 12px; color: var(--text-tertiary);
}

/* ---------- 弹窗 / 灯箱 ---------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(20, 20, 22, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn .22s ease;
}
.overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  background: var(--card);
  border-radius: var(--r-lg);
  max-width: 520px;
  width: 100%;
  padding: 36px 32px 30px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  animation: popIn .28s cubic-bezier(.2,.9,.3,1.2);
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes popIn { from { transform: translateY(24px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 14px; right: 14px; }
.modal h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 900; margin-bottom: 22px; }
.modal h3 i { color: #555; }

.guide-steps { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; counter-reset: step; }
.guide-steps li { display: flex; gap: 14px; align-items: flex-start; }
.gs-num {
  flex: 0 0 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 700;
}
.guide-steps p { font-size: 14px; color: var(--text-secondary); padding-top: 2px; }
.guide-steps strong { color: var(--text); }
.guide-note {
  display: flex; gap: 8px;
  font-size: 12.5px; color: #CA7A2C;
  background: rgba(202,122,44,.1);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: 20px;
}
.guide-note i { margin-top: 2px; }

/* 灯箱 */
.lightbox { padding: 0; }
.lightbox-figure {
  max-width: min(960px, 92vw);
  max-height: 88vh;
  display: flex; flex-direction: column; gap: 12px;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  object-fit: contain;
  background: #101012;
}
.lightbox-figure figcaption { text-align: center; font-size: 13px; color: rgba(255,255,255,.75); }
.lightbox-close { position: absolute; top: 20px; right: 20px; color: #fff; background: rgba(255,255,255,.12); z-index: 2; }
.lightbox-close:hover { background: rgba(255,255,255,.22); color: #fff; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; background: rgba(255,255,255,.12); width: 48px; height: 48px; font-size: 18px; z-index: 2; }
.lightbox-nav:hover { background: rgba(255,255,255,.24); color: #fff; }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text); color: var(--bg);
  font-size: 13.5px; font-weight: 500;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  z-index: 300;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- 会员权益标记 ---------- */
.feature-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #B8860B;
  background: rgba(255, 215, 0, 0.16);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 14px;
}
[data-theme="dark"] .feature-tag { color: #FFD75E; }

.benefit-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  background: var(--primary-softer);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  line-height: 1.6;
}
.benefit-note i { color: #B8860B; margin-top: 3px; }
[data-theme="dark"] .benefit-note i { color: #FFD75E; }
.sync-copy .benefit-note { margin-top: 18px; }
.swatch-row + .benefit-note { max-width: 720px; margin: 0 auto 20px; }

/* ---------- 常见问题 ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: color-mix(in srgb, var(--primary) 45%, transparent); box-shadow: 0 12px 32px var(--shadow-color); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 15px; font-weight: 700;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary-strong); }
.faq-item summary i {
  color: var(--text-tertiary);
  font-size: 13px;
  flex: 0 0 auto;
  transition: transform .25s ease, color .25s ease;
}
.faq-item[open] summary i { transform: rotate(45deg); color: var(--primary-strong); }
.faq-item p {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ---------- 阅读进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0;
  height: 3px;
  background: var(--grad-main);
  box-shadow: 0 0 8px rgba(125, 185, 222, 0.6);
  z-index: 210;
  pointer-events: none;
  transition: width .1s linear;
}

/* ---------- 更新日志 ---------- */
.changelog { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.cl-item {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cl-item:hover { border-color: color-mix(in srgb, var(--primary) 35%, transparent); box-shadow: 0 12px 32px var(--shadow-color); }
.cl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cl-ver {
  font-size: 17px; font-weight: 900;
  color: var(--primary-deep);
  background: var(--primary-soft);
  border-radius: 10px;
  padding: 6px 14px;
  letter-spacing: .5px;
}
[data-theme="dark"] .cl-ver { color: #BFE0F3; }
.cl-date { font-size: 12.5px; color: var(--text-tertiary); }
.cl-body { display: flex; flex-direction: column; gap: 14px; }
.cl-type {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700;
  margin-bottom: -8px;
}
.cl-type.new i { color: #5DAC81; }
.cl-type.fix i { color: #CA7A2C; }
.cl-type.opt i { color: var(--primary-strong); }
.cl-body ul { display: flex; flex-direction: column; gap: 6px; padding-left: 2px; }
.cl-body li {
  position: relative;
  font-size: 13.5px;
  color: var(--text-secondary);
  padding-left: 16px;
  line-height: 1.7;
}
.cl-body li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.72em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: .55;
}

/* ---------- FAQ 展开动画 ---------- */
.faq-item p { animation: faqIn .25s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  background: var(--card);
  color: var(--text-secondary);
  font-size: 15px;
  box-shadow: 0 10px 26px var(--shadow-color);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(16px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background-color .2s ease, color .2s ease;
  z-index: 90;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--primary-soft); color: var(--primary-strong); }

/* ---------- 滚动显现动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .hero h1 { font-size: 42px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .phone-strip { grid-template-columns: repeat(3, 1fr); }
  .download-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .sync-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 72px; }
  .hero-visual { order: -1; margin-top: 8px; }
  .float-card.fc-1 { left: 4%; }
  .float-card.fc-2 { right: 2%; }
}

@media (max-width: 960px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    border-bottom: 1px solid var(--divider);
    padding: 12px 20px 18px;
    gap: 2px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
    box-shadow: 0 20px 40px var(--shadow-color);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; font-size: 15px; }
  .nav-links a.active { background: var(--primary-soft); }
  .nav-burger { display: inline-flex; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn { display: none; }
}

@media (max-width: 720px) {
  .hero { padding-top: calc(var(--nav-h) + 44px); }
  .hero-visual { display: none; }
  .hero h1 { font-size: 34px; }
  .hero-cta .btn { width: 100%; }
  .section { padding: 68px 0; }
  .section-head h2 { font-size: 26px; }
  .feature-grid { grid-template-columns: 1fr; }
  .phone-strip { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .desktop-grid { grid-template-columns: 1fr; }
  .theme-demo { grid-template-columns: 1fr; }
  .swatch { width: 46px; height: 46px; }
  .float-card.fc-3 { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .to-top { right: 16px; bottom: 16px; }
  .phone-strip { grid-template-columns: repeat(2, 1fr); }
  .float-card.fc-1 { top: 8%; }
  .float-card.fc-2 { bottom: 12%; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
}

/* ---------- 无障碍：减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}