/* =========================================================
   Lumen · 可定制一页式网站
   1 设计令牌 · 2 基础 · 3 排版 · 4 按钮 · 5 头部
   6 首屏 · 7 区块 · 8 定制面板 · 9 响应式 · 10 动效偏好
   ========================================================= */

/* ---------- 1. 设计令牌 ---------- */
:root {
  color-scheme: light;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --accent: #ff5a36;
  --accent-2: #ff8a3d;
  --accent-3: #ff3d80;
  --accent-ink: #ffffff;
  --accent-soft: rgba(255, 90, 54, 0.13);
  --accent-line: rgba(255, 90, 54, 0.38);

  --r: 16px;
  --page-max: 1180px;

  --bg: #f7f5f1;
  --bg-2: #efece5;
  --surface: #fffdfa;
  --surface-2: #f1eee7;
  --text: #17150f;
  --muted: #6d6960;
  --line: rgba(23, 21, 15, 0.1);
  --line-strong: rgba(23, 21, 15, 0.18);

  --shadow-sm: 0 1px 2px rgba(23, 21, 15, 0.06);
  --shadow-md: 0 16px 40px -22px rgba(23, 21, 15, 0.35), 0 2px 8px -4px rgba(23, 21, 15, 0.08);
  --shadow-lg: 0 50px 90px -40px rgba(23, 21, 15, 0.45);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0d;
  --surface: #141419;
  --surface-2: #1b1b22;
  --text: #f3f1eb;
  --muted: #9c988f;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 16px 40px -22px rgba(0, 0, 0, 0.9);
  --shadow-lg: 0 60px 110px -50px rgba(0, 0, 0, 0.95);
}

/* ---------- 2. 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 背景层：mesh / grid / plain 三种，跟随配置切换 */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  background:
    radial-gradient(58% 52% at 50% -14%, var(--accent-soft), transparent 68%),
    radial-gradient(42% 44% at 102% 2%, var(--accent-soft), transparent 72%),
    radial-gradient(56% 46% at -6% 34%, var(--accent-soft), transparent 74%);
  opacity: 0.9;
}

body[data-bg="grid"] .bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(78% 66% at 50% 0%, #000 8%, transparent 82%);
  -webkit-mask-image: radial-gradient(78% 66% at 50% 0%, #000 8%, transparent 82%);
  opacity: 0.8;
}

body[data-bg="plain"] .bg { opacity: 0; }

#site { position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
::selection { background: var(--accent-soft); color: var(--text); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 0.85rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.wrap { width: min(var(--page-max), calc(100% - 40px)); margin-inline: auto; }
.hidden { display: none !important; }

/* ---------- 3. 排版 ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display, var(--font-sans));
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 46em;
  text-wrap: pretty;
}

.section { padding: clamp(56px, 8vw, 104px) 0; scroll-margin-top: 80px; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  letter-spacing: -0.03em;
}
.section-head .sub { margin-top: 14px; font-size: 1.02rem; }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: calc(var(--r) * 0.7);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}
.btn svg { width: 16px; height: 16px; }

.btn-solid {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 26px -14px var(--accent-line);
}
.btn-solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -16px var(--accent-line);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md);
}

.btn-sm { padding: 8px 14px; font-size: 0.86rem; border-radius: 10px; }
.btn-lg { padding: 14px 24px; font-size: 1rem; border-radius: calc(var(--r) * 0.75); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-strong); }

/* ---------- 5. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.is-scrolled {
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 24px);
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 10px 22px -12px var(--accent-line);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 0.98rem; letter-spacing: -0.01em; }
.brand-text small { margin-top: 3px; font-size: 0.66rem; letter-spacing: 0.06em; color: var(--muted); }

.nav { display: flex; gap: 2px; }
.nav-link {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-toggle { display: none; }

/* ---------- 6. 首屏 ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 84px) 0 clamp(36px, 5vw, 64px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { max-width: 620px; }

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(2.15rem, 5.1vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.hero-title .hl {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: var(--accent);
  background-image: linear-gradient(var(--accent-soft), var(--accent-soft));
  background-repeat: no-repeat;
  background-size: 100% 0.3em;
  background-position: 0 88%;
}

.lede {
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 44px);
  margin: clamp(30px, 4vw, 42px) 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-size: 1.42rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }

/* 首屏视觉：一个纯 CSS 的「网站预览」 */
.hero-visual { position: relative; }
.mock {
  position: relative;
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 8px);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotateX(4deg) rotateY(-7deg);
  transform-origin: 60% 40%;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-visual:hover .mock { transform: none; }

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.mock-url {
  margin-left: 8px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
}
.mock-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 268px;
  padding: 18px;
  overflow: hidden;
}
.mock-blob {
  position: absolute;
  right: -50px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--accent), var(--accent-2) 60%, transparent 72%);
  opacity: 0.22;
  filter: blur(6px);
  pointer-events: none;
}
.mock-nav { display: flex; align-items: center; gap: 7px; position: relative; }
.mock-nav b { font-size: 9px; letter-spacing: 0.2em; }
.mock-nav i { width: 24px; height: 5px; border-radius: 99px; background: var(--text); opacity: 0.16; }
.mock-nav i:first-of-type { margin-left: auto; }

.mock-hero { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; position: relative; }
.mock-line { height: 9px; border-radius: 99px; background: var(--text); opacity: 0.14; }
.mock-line.w92 { width: 92%; }
.mock-line.w74 { width: 74%; }
.mock-line.w46 { width: 46%; }
.mock-line.accent { height: 11px; width: 58%; background: var(--accent); opacity: 1; }

.mock-cta { display: flex; gap: 8px; margin-top: 6px; }
.mock-cta span { width: 66px; height: 22px; border-radius: 7px; background: var(--accent); opacity: 0.9; }
.mock-cta span + span { background: transparent; border: 1px solid var(--line-strong); opacity: 1; }

.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; position: relative; }
.mock-card {
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(160deg, var(--surface-2), transparent);
}

.float-note {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}
.float-note svg { width: 14px; height: 14px; color: var(--accent); }
.fn-a { top: 6%; left: -7%; animation: floaty 7s ease-in-out infinite; }
.fn-b { right: -5%; bottom: 10%; animation: floaty 9s ease-in-out infinite reverse; }

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

/* ---------- 7. 区块 ---------- */
/* Logo 条 */
.logos { padding: 8px 0 clamp(20px, 3vw, 36px); }
.logos-label {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 3.4vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.logo {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  opacity: 0.78;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.logo:hover { opacity: 1; color: var(--text); }

/* 能力卡片 */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md);
}
.ficon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.ficon svg { width: 20px; height: 20px; }
.card h3 { margin-bottom: 8px; font-size: 1.06rem; }
.card p { color: var(--muted); font-size: 0.93rem; line-height: 1.65; }

/* 案例 */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 58%, var(--accent-3));
  overflow: hidden;
}
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  mask-image: radial-gradient(80% 80% at 30% 20%, #000, transparent 85%);
  -webkit-mask-image: radial-gradient(80% 80% at 30% 20%, #000, transparent 85%);
}
.thumb span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  right: 18px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 -18px 0 rgba(255, 255, 255, 0.42), 0 -34px 0 rgba(255, 255, 255, 0.26);
}
.tile-body { padding: 20px 22px 24px; }
.tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tile h3 { font-size: 1.05rem; margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: 0.9rem; }

/* 价格 */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.price {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.price:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.price.is-featured {
  top: -6px;
  border-color: var(--accent-line);
  box-shadow: 0 34px 60px -40px var(--accent-line), var(--shadow-sm);
}
.price.is-featured:hover { top: -8px; }
.price-badge {
  position: absolute;
  top: -11px;
  left: 24px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.price-name { font-size: 0.92rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.amount { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 6px; }
.amount b { font-size: 2.1rem; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.amount span { font-size: 0.8rem; color: var(--muted); }
.price-desc { color: var(--muted); font-size: 0.9rem; }
.price-feats { display: flex; flex-direction: column; gap: 9px; margin: 20px 0 22px; padding: 0; list-style: none; }
.price-feats li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--text);
}
.price-feats svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 3px; color: var(--accent); }
.price-cta { margin-top: auto; width: 100%; }

/* 评价 */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.quote-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.quote-card::before {
  content: "“";
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.55;
}
.quote { font-size: 0.98rem; line-height: 1.7; }
.who { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 20px; }
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}
.who strong { display: block; font-size: 0.88rem; }
.who small { font-size: 0.76rem; color: var(--muted); }

/* 问答 */
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.25s ease, color 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item[open] summary { color: var(--accent); }
.faq-a { padding: 0 36px 22px 4px; color: var(--muted); font-size: 0.94rem; line-height: 1.75; }

/* 结尾行动 */
.cta-band { padding: clamp(20px, 4vw, 40px) 0 clamp(56px, 8vw, 96px); }
.cta-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 60px);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) * 1.5);
  background: radial-gradient(120% 140% at 50% -20%, var(--accent-soft), transparent 62%), var(--surface);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(60% 60% at 50% 100%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 100%, #000, transparent 78%);
  opacity: 0.55;
  pointer-events: none;
}
.cta-inner > * { position: relative; }
.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.9rem);
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}
.cta-text { color: var(--muted); max-width: 38em; margin: 0 auto 26px; }

/* 页脚 */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 44px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-note { color: var(--muted); font-size: 0.86rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a {
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent); }

.footer-link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.86rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}
.footer-link-btn:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}
.footer-bottom button { font-size: 0.78rem; }

/* ---------- 8. 定制面板 ---------- */
.cf {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(408px, 100%);
  height: 100dvh;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.4s;
}
body.is-panel-open .cf { transform: none; visibility: visible; }

.cf-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--line);
}
.cf-title { display: flex; flex-direction: column; gap: 3px; }
.cf-title strong { font-size: 0.98rem; }
.cf-title small { font-size: 0.72rem; color: var(--muted); }

.cf-body { flex: 1; overflow-y: auto; padding: 0 14px 32px; overscroll-behavior: contain; }

.cf-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 4px;
  padding: 10px 0;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
}
.cf-tab {
  flex: 1;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cf-tab.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.cf-pane { display: none; }
.cf-pane.is-on { display: block; }

.cf-group {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.cf-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  list-style: none;
}
.cf-group > summary::-webkit-details-marker { display: none; }
.cf-group > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.cf-group[open] > summary { border-bottom: 1px solid var(--line); }
.cf-group[open] > summary::after { transform: rotate(225deg); }
.cf-group-inner { padding: 12px 14px 4px; }

.cf-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.cf-field > span,
.cf-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.cf-field > span b { color: var(--accent); font-variant-numeric: tabular-nums; }

.cf-field input[type="text"],
.cf-field input[type="url"],
.cf-field textarea,
.cf-field select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cf-field textarea { resize: vertical; min-height: 60px; }
.cf-field input:focus,
.cf-field textarea:focus,
.cf-field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.cf-color { display: flex; gap: 8px; align-items: center; }
.cf-color input[type="color"] {
  flex: 0 0 auto;
  width: 42px;
  height: 36px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-2);
  cursor: pointer;
}
.cf-color .cf-hex {
  flex: 1;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.cf-seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--surface-2);
}
.cf-seg button {
  flex: 1;
  padding: 7px 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.cf-seg button.is-on {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.cf-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.swatch {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.swatch:hover { transform: scale(1.12); }
.swatch.is-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }

.cf-list { display: flex; flex-direction: column; gap: 8px; }
.cf-item {
  padding: 10px 10px 2px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
}
.cf-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cf-item-no {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.cf-item-tools { display: flex; gap: 4px; }
.cf-item-tools button,
.cf-tools button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.cf-item-tools button:hover,
.cf-tools button:hover { color: var(--accent); border-color: var(--accent-line); }
.cf-item-tools button:disabled,
.cf-tools button:disabled { opacity: 0.35; cursor: default; }

.cf-add {
  padding: 9px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.cf-add:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

.cf-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  cursor: pointer;
}
.cf-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.cf-order { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.cf-order li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.cf-order li.is-off { opacity: 0.45; }
.cf-tools { display: flex; gap: 4px; }

.cf-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.cf-btn {
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.84rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.cf-btn:hover { border-color: var(--accent-line); color: var(--accent); }
.cf-btn.cf-danger:hover { border-color: #e5484d; color: #e5484d; }
.cf-btn-wide { width: 100%; }

.cf-hint { margin: 2px 0 12px; font-size: 0.74rem; line-height: 1.6; color: var(--muted); }

.cf-open {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 18px 40px -18px var(--accent-line);
  transition: transform 0.22s ease, opacity 0.22s ease, box-shadow 0.22s ease;
}
.cf-open svg { width: 17px; height: 17px; }
.cf-open:hover { transform: translateY(-2px); box-shadow: 0 24px 46px -18px var(--accent-line); }
body.is-panel-open .cf-open { opacity: 0; pointer-events: none; transform: translateY(10px); }

/* 桌面端编辑时仍然可以点站点预览，遮罩只在窄屏出现 */
.cf-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(10, 10, 12, 0.45);
  backdrop-filter: blur(2px);
}
@media (max-width: 720px) {
  .cf-backdrop:not([hidden]) { display: block; }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  padding: 11px 18px;
  border-radius: 999px;
  background: #16161a;
  color: #f6f4ef;
  font-size: 0.84rem;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-grid { gap: 36px; }
  .fn-a, .fn-b { display: none; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .hero-visual { max-width: 560px; }
  .mock { transform: none; }
  .cards, .tiles, .quotes, .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price.is-featured { transform: none; }
  .nav {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
  }
  .site-header.is-open .nav { display: flex; }
  .nav-link { padding: 11px 12px; color: var(--text); }
  .nav-toggle { display: grid; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { height: 62px; }
  .header-actions .btn { display: none; }
  .hero { padding-top: 24px; }
  .stats { gap: 18px 26px; }
  .cards, .tiles, .quotes, .price-grid { grid-template-columns: 1fr; }
  .price.is-featured { transform: none; }
  .footer-inner { flex-direction: column; }
  .cf { width: 100%; }
  .cf-open { right: 14px; bottom: 14px; padding: 11px 15px; }
  .toast { bottom: 74px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 2rem; }
  .mock-body { min-height: 220px; padding: 14px; }
  .amount b { font-size: 1.8rem; }
}

/* ---------- 10. 动效偏好 ---------- */
/* 用独立的 translate 属性做入场，避免和 hover 的 transform 打架 */
.reveal {
  opacity: 0;
  translate: 0 16px;
}
.reveal.in {
  opacity: 1;
  translate: 0 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), translate 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0ms);
}
/* 编辑配置时的重渲染不重播动画 */
#site.is-instant .reveal,
#site.is-instant .reveal.in { opacity: 1; translate: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; translate: none; }
}
