/* =========================================================
   自由客科技官网 — 样式
   品牌色：电光紫 #7C5CFF（AI / 专业） + 荧光青柠 #C8FF3D（快 / 活力）
   ========================================================= */

:root {
  /* 品牌色 */
  --color-violet: #7C5CFF;
  --color-violet-deep: #4B2EE8;
  --color-violet-light: #A794FF;
  --color-lime: #C8FF3D;
  --color-cyan: #3DE0FF;
  --color-orange: #FF9F43;
  --color-red: #FF5A6E;
  --color-green: #3DFF9A;

  /* 底色与文字 */
  --color-bg: #0A0A14;
  --color-bg-alt: #0E0E1B;
  --color-surface: #141424;
  --color-surface-2: #1C1C30;
  --color-border: #2A2A42;
  --color-border-strong: #3A3A58;
  --color-text: #F2F2F8;
  --color-text-secondary: #A3A3BC;
  --color-text-dim: #6C6C88;
  --color-on-lime: #0A0A14;

  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Menlo, Consolas, "Courier New", monospace;

  /* 间距 */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 72px;
  --section-pad: 72px;

  /* 圆角 / 阴影 / 动效 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-glow-violet: 0 0 0 1px rgba(124, 92, 255, .35), 0 12px 40px rgba(124, 92, 255, .25);
  --shadow-glow-lime: 0 8px 30px rgba(200, 255, 61, .25);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --header-height: 64px;
  --container: 1180px;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, pre { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--color-lime); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { position: relative; width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-md); }

/* ---------- 文字层级 ---------- */
.text-heading { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.text-caption { font-size: .85rem; line-height: 1.5; color: var(--color-text-secondary); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: .85rem; font-weight: 600; color: var(--color-text-secondary);
  background: var(--color-surface); border: 1px solid var(--color-border);
}
.section-title { font-size: 1.75rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; margin-top: var(--space-md); }
.section-sub { font-size: 1rem; color: var(--color-text-secondary); margin-top: var(--space-sm); max-width: 640px; }
.section-head { margin-bottom: var(--space-xl); }
.hl-lime { color: var(--color-lime); }
.hl-violet { background: linear-gradient(90deg, var(--color-violet-light), var(--color-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl-cyan { color: var(--color-cyan); }
.hl-orange { color: var(--color-orange); }
.hide-mobile { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 44px; padding: 0 var(--space-lg);
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; white-space: nowrap;
  transition: transform .2s var(--ease-out), box-shadow .2s, background .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--color-lime); color: var(--color-on-lime); box-shadow: var(--shadow-glow-lime); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(200, 255, 61, .4); }
.btn-ghost { background: transparent; border-color: var(--color-border-strong); color: var(--color-text); }
.btn-ghost:hover { border-color: var(--color-violet-light); background: rgba(124, 92, 255, .1); }
.btn-lg { min-height: 52px; padding: 0 var(--space-xl); font-size: 1.05rem; }
.btn-small { min-height: 44px; padding: 0 var(--space-md); font-size: .9rem; }
.btn-block { width: 100%; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.badge {
  display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill);
  font-size: .75rem; font-weight: 600; color: var(--color-cyan);
  background: rgba(61, 224, 255, .1); border: 1px solid rgba(61, 224, 255, .25);
}
.badge-violet { color: var(--color-violet-light); background: rgba(124, 92, 255, .12); border-color: rgba(124, 92, 255, .35); }
.badge-live { margin-left: var(--space-xs); color: var(--color-green); background: rgba(61, 255, 154, .1); border-color: rgba(61, 255, 154, .3); }

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 60; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--color-violet), var(--color-lime));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-height);
  background: rgba(10, 10, 20, .72);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-text { display: flex; flex-direction: column; gap: 4px; line-height: 1.3; }
.brand-text strong { font-size: 1.05rem; letter-spacing: .02em; }
.brand-text small { display: block; font-size: .62rem; line-height: 1; letter-spacing: .28em; color: var(--color-text-dim); font-weight: 600; }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; background: none; border: 0;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--color-text); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  position: fixed; top: var(--header-height); left: 0; right: 0;
  display: flex; flex-direction: column; padding: var(--space-md);
  background: rgba(10, 10, 20, .97); border-bottom: 1px solid var(--color-border);
  transform: translateY(-120%); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease-out), opacity .25s;
}
.main-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
.main-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--space-sm); font-weight: 600; color: var(--color-text-secondary); border-radius: var(--radius-sm); }
.main-nav a:hover { color: var(--color-text); background: var(--color-surface); }
.main-nav .nav-cta { margin-top: var(--space-xs); justify-content: center; background: var(--color-lime); color: var(--color-on-lime); }
.main-nav .nav-cta:hover { background: var(--color-lime); color: var(--color-on-lime); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: var(--space-2xl) 0 var(--space-3xl); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(40% 40% at 75% 30%, rgba(124, 92, 255, .35), transparent 70%),
    radial-gradient(30% 30% at 15% 20%, rgba(200, 255, 61, .12), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--color-border) 1px, transparent 1px), linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: var(--space-2xl); }
.hero-title { font-size: 2.4rem; font-weight: 900; line-height: 1.15; letter-spacing: -.02em; margin-top: var(--space-md); }
.hero-sub { margin-top: var(--space-md); font-size: 1.05rem; color: var(--color-text-secondary); }
.hero-sub strong { color: var(--color-lime); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); margin-top: var(--space-xl); }
.hero-stats li { padding-left: var(--space-sm); border-left: 2px solid var(--color-violet); }
.hero-stats strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1.2; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.hero-stats strong em { margin-left: 3px; font-style: normal; font-size: .6em; font-family: var(--font-sans); color: var(--color-lime); }
.hero-stats li > span { font-size: .8rem; color: var(--color-text-secondary); }

.dot-live, .dot-rec { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--color-green); box-shadow: 0 0 0 0 rgba(61, 255, 154, .6); animation: pulse 1.6s infinite; }
.dot-rec { background: var(--color-red); box-shadow: 0 0 0 0 rgba(255, 90, 110, .6); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(0, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); } }

/* 现场开工舞台 */
.build-stage {
  position: relative; padding: var(--space-md); padding-right: 148px;
  border-radius: var(--radius-xl); background: linear-gradient(160deg, var(--color-surface-2), var(--color-surface));
  border: 1px solid var(--color-border); box-shadow: var(--shadow-card);
  min-height: 340px;
}
.stage-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-sm); }
.stage-label { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: var(--color-text-secondary); }
.stage-timer { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--color-lime); font-variant-numeric: tabular-nums; }
.editor { border-radius: var(--radius-md); background: #0B0B16; border: 1px solid var(--color-border); overflow: hidden; }
.editor-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--color-border); }
.editor-bar i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.editor-bar i:nth-child(2) { background: #FEBC2E; }
.editor-bar i:nth-child(3) { background: #28C840; }
.editor-bar span { margin-left: var(--space-xs); font-size: .72rem; color: var(--color-text-dim); font-family: var(--font-mono); }
.editor-code {
  margin: 0; padding: var(--space-sm); height: 236px; overflow: hidden;
  font-size: .62rem; line-height: 1.7; color: var(--color-text-secondary); white-space: pre-wrap; word-break: break-all;
}
.editor-code .ln { display: inline-block; width: 1.8em; color: var(--color-text-dim); user-select: none; }
.caret { display: inline-block; width: 7px; height: 1.1em; vertical-align: text-bottom; background: var(--color-lime); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tk-tag { color: #FF7AB6; }
.tk-attr { color: var(--color-cyan); }
.tk-str { color: var(--color-lime); }
.tk-com { color: var(--color-text-dim); font-style: italic; }
.tk-ok { color: var(--color-green); font-weight: 700; }

/* 手机模型 */
.phone {
  position: absolute; right: 12px; top: 44px; width: 128px; height: 270px;
  border-radius: 24px; padding: 6px; background: #05050A;
  border: 2px solid var(--color-border-strong); box-shadow: 0 20px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}
.phone-notch { position: absolute; top: 9px; left: 50%; width: 46px; height: 12px; transform: translateX(-50%); border-radius: 10px; background: #05050A; z-index: 2; }
.phone-screen {
  position: relative; height: 100%; border-radius: 20px; overflow: hidden;
  background: #FFF8F1; color: #2B1D12; display: flex; flex-direction: column; gap: 5px;
  padding: 22px 6px 40px; font-size: 7px; line-height: 1.4;
}
.phone-screen > * { animation: popIn .45s var(--ease-spring) both; }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
.ph-header { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 10px; }
.ph-header span:last-child { width: 18px; height: 18px; border-radius: 50%; background: #FFD8B0; display: grid; place-items: center; font-size: 9px; }
.ph-search { padding: 5px 8px; border-radius: 99px; background: #F1E6DA; color: #9C8572; }
.ph-banner { padding: 10px 8px; border-radius: 10px; color: #fff; font-weight: 800; font-size: 9px; background: linear-gradient(120deg, #FF9F43, #FF6B6B); }
.ph-banner small { display: block; font-weight: 500; font-size: 7px; opacity: .9; }
.ph-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; text-align: center; }
.ph-grid span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.ph-grid b { font-size: 12px; }
.ph-ai { display: flex; gap: 4px; align-items: flex-start; }
.ph-ai p { padding: 5px 7px; border-radius: 4px 10px 10px 10px; background: #EFEAFF; color: #3A2A8C; line-height: 1.4; }
.ph-ai b { flex: none; font-size: 12px; }
.ph-tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 36px; display: grid; grid-template-columns: repeat(4, 1fr);
  align-items: center; text-align: center; background: #fff; border-top: 1px solid #F0E6DC; color: #9C8572;
}
.ph-tabbar span:first-child { color: #FF7A2E; font-weight: 800; }
.ph-success {
  position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); padding: 6px 10px; border-radius: 99px;
  white-space: nowrap; font-weight: 800; color: var(--color-on-lime); background: var(--color-lime); box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
  animation: successIn .45s var(--ease-spring) both, fadeAway .4s 1.6s forwards;
}
@keyframes successIn { from { opacity: 0; transform: translate(-50%, -20%) scale(.8); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes fadeAway { from { opacity: 1; transform: translate(-50%, -50%); } to { opacity: 0; transform: translate(-50%, -90%); } }

.stage-done {
  position: absolute; left: var(--space-md); right: 148px; bottom: var(--space-md); z-index: 3;
  padding: var(--space-md); border-radius: var(--radius-md);
  background: rgba(10, 10, 20, .92); border: 1px solid var(--color-lime); box-shadow: var(--shadow-glow-lime);
  animation: popIn .5s var(--ease-spring) both;
}
.stage-done-title { font-weight: 800; font-size: 1rem; }
.stage-done-title span { color: var(--color-lime); font-family: var(--font-mono); }
.stage-done-sub { margin: 4px 0 var(--space-sm); font-size: .9rem; color: var(--color-text-secondary); }
.stage-done-sub strong { color: var(--color-text); }

/* ---------- 四个关键词 ---------- */
.pillars { padding: 0 0 var(--section-pad); }
.pillars-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
.pillar {
  position: relative; padding: var(--space-lg) var(--space-md); border-radius: var(--radius-lg);
  background: var(--color-surface); border: 1px solid var(--color-border); overflow: hidden;
  transition: transform .3s var(--ease-out), border-color .3s;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--pillar-color); }
.pillar-char {
  display: block; font-size: 3rem; font-weight: 900; line-height: 1; color: var(--pillar-color);
  text-shadow: 0 0 30px color-mix(in srgb, var(--pillar-color) 50%, transparent);
}
.pillar h3 { margin-top: var(--space-sm); font-size: 1.05rem; font-weight: 700; }
.pillar p { margin-top: 6px; font-size: .85rem; color: var(--color-text-secondary); line-height: 1.55; }

/* ---------- 通用 section ---------- */
.section { position: relative; padding: var(--section-pad) 0; }
.section-alt { background: var(--color-bg-alt); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

/* ---------- 报价样板间 ---------- */
.estimator { display: grid; gap: var(--space-lg); }
.estimator-input, .estimator-output {
  padding: var(--space-lg); border-radius: var(--radius-lg);
  background: var(--color-surface); border: 1px solid var(--color-border);
}
.estimator-input { display: flex; flex-direction: column; gap: var(--space-sm); align-self: start; }
.estimator-output { min-height: 360px; display: flex; flex-direction: column; }
.field-label { font-size: .9rem; font-weight: 700; color: var(--color-text); }
.field-label em { color: var(--color-red); font-style: normal; }
.field-hint { font-weight: 400; color: var(--color-text-dim); }
.field-error { color: var(--color-red); font-size: .85rem; }
.idea-input, .text-input {
  width: 100%; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md);
  font: inherit; font-size: 16px; line-height: 1.5; color: var(--color-text);
  background: var(--color-bg); border: 1px solid var(--color-border-strong); resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.text-input { min-height: 48px; }
.idea-input:focus, .text-input:focus { outline: none; border-color: var(--color-violet); box-shadow: 0 0 0 3px rgba(124, 92, 255, .25); }
.idea-input::placeholder, .text-input::placeholder { color: var(--color-text-dim); }

.example-chips, .platform-chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.chip {
  min-height: 36px; padding: 6px 12px; border-radius: var(--radius-pill); font-size: .82rem;
  color: var(--color-text-secondary); background: var(--color-bg); border: 1px dashed var(--color-border-strong);
  text-align: left; transition: border-color .2s, color .2s, background .2s;
}
.chip:hover { color: var(--color-text); border-color: var(--color-violet-light); }
.platform-chips .chip { min-height: 44px; border-style: solid; font-weight: 600; }
.chip.is-active { color: var(--color-on-lime); background: var(--color-lime); border-color: var(--color-lime); }
.text-link { color: var(--color-lime); text-decoration: underline; text-underline-offset: 3px; }

.sample-list { display: grid; gap: var(--space-xs); }
.sample-card {
  position: relative; display: flex; align-items: center; gap: var(--space-sm); width: 100%; min-height: 60px;
  padding: 10px 12px; border-radius: var(--radius-md); text-align: left; color: var(--color-text-secondary);
  background: var(--color-bg); border: 1px solid var(--color-border-strong);
  transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease-spring);
}
.sample-card:hover { border-color: var(--color-violet-light); color: var(--color-text); transform: translateX(3px); }
.sample-card.is-active { color: var(--color-text); background: linear-gradient(140deg, rgba(200, 255, 61, .14), rgba(124, 92, 255, .1)); border-color: var(--color-lime); }
.sample-emoji { font-size: 1.6rem; flex: none; }
.sample-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.sample-text strong { font-size: .95rem; color: var(--color-text); }
.sample-text small { font-size: .75rem; color: var(--color-text-dim); }
.sample-quote { display: flex; flex-direction: column; align-items: flex-end; flex: none; line-height: 1.3; font-family: var(--font-mono); }
.sample-quote b { font-size: .9rem; color: var(--color-lime); }
.sample-quote small { font-size: .72rem; color: var(--color-text-dim); }

.empty-state { margin: auto; text-align: center; padding: var(--space-xl) var(--space-md); color: var(--color-text-secondary); }
.empty-icon { font-size: 3rem; margin-bottom: var(--space-sm); animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

.ai-thinking { display: flex; align-items: center; gap: var(--space-sm); color: var(--color-violet-light); font-weight: 600; font-family: var(--font-mono); font-size: .9rem; }
.ai-thinking i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: bounce 1s infinite; }
.ai-thinking i:nth-child(2) { animation-delay: .15s; }
.ai-thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 50% { transform: translateY(-5px); opacity: .4; } }

.est-block { padding: var(--space-md) 0; border-bottom: 1px dashed var(--color-border); animation: popIn .4s var(--ease-out) both; }
.est-block:last-child { border-bottom: 0; }
.est-block-title { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--color-text-dim); margin-bottom: var(--space-xs); }
.est-summary { font-size: 1.05rem; line-height: 1.6; }
.est-summary strong { color: var(--color-lime); }
.est-design { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); }
.est-design span { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-text-secondary); }
.est-design b { color: var(--color-text); font-weight: 600; }
.swatch { width: 18px; height: 18px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .2); }
.page-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.page-chips span { padding: 4px 10px; border-radius: var(--radius-sm); font-size: .82rem; background: var(--color-surface-2); border: 1px solid var(--color-border); }
.est-upgrades { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.est-upgrades li { position: relative; padding-left: 1.4em; color: var(--color-text-secondary); line-height: 1.5; }
.est-upgrades li::before { content: '→'; position: absolute; left: 0; color: var(--color-lime); font-weight: 700; }

.blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xs); }
.block {
  position: relative; display: flex; align-items: center; gap: var(--space-xs); min-height: 52px;
  padding: 8px 10px; border-radius: var(--radius-md); text-align: left;
  background: var(--color-bg); border: 1px solid var(--color-border); color: var(--color-text-dim);
  transition: transform .25s var(--ease-spring), border-color .2s, background .2s, color .2s;
}
.block:hover { border-color: var(--color-violet-light); color: var(--color-text-secondary); }
.block-icon { font-size: 1.2rem; filter: grayscale(1); opacity: .6; transition: filter .2s, opacity .2s; }
.block-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.block-text strong { font-size: .85rem; }
.block-text small { font-size: .72rem; font-family: var(--font-mono); }
.block.is-on { color: var(--color-text); background: linear-gradient(140deg, rgba(124, 92, 255, .22), rgba(124, 92, 255, .06)); border-color: var(--color-violet); }
.block.is-on .block-icon { filter: none; opacity: 1; }
.block.is-on small { color: var(--color-lime); }
.block.is-on::after { content: "✓"; position: absolute; top: 4px; right: 8px; font-size: .7rem; color: var(--color-lime); font-weight: 800; }
.block.is-bump { animation: bump .35s var(--ease-spring); }
@keyframes bump { 50% { transform: scale(1.06); } }
.blocks-group-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px var(--space-xs); margin: var(--space-sm) 0 6px; font-size: .78rem; font-weight: 700; color: var(--color-text-secondary); }
.blocks-group-title:first-child { margin-top: 0; }
.blocks-group-title span { font-weight: 400; font-family: var(--font-mono); font-size: .7rem; color: var(--color-text-dim); }
.blocks-custom { grid-template-columns: 1fr; }
.block.is-custom { align-items: flex-start; padding: 10px 12px; }
.block.is-custom .block-icon { margin-top: 2px; }
.block.is-custom em { font-style: normal; font-size: .75rem; line-height: 1.4; margin: 2px 0; color: var(--color-text-dim); }
.block.is-custom.is-on { background: linear-gradient(140deg, rgba(200, 255, 61, .14), rgba(124, 92, 255, .08)); border-color: var(--color-lime); }
.block.is-custom.is-on em { color: var(--color-text-secondary); }
.est-notes { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.est-notes li { position: relative; padding-left: 1.4em; color: var(--color-text-secondary); line-height: 1.5; font-size: .9rem; }
.est-notes li::before { content: '!'; position: absolute; left: 0; top: .2em; width: 1em; height: 1em; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: var(--color-on-lime); background: var(--color-orange); }
.level-tag { font-style: normal; font-size: .7rem; padding: 0 5px; border-radius: 4px; color: var(--color-lime); border: 1px solid rgba(200, 255, 61, .35); }

/* 赠送积木：原价划掉 */
.block.is-gift::before { content: "送"; position: absolute; top: -8px; left: -6px; padding: 1px 6px; border-radius: 6px; font-size: .68rem; font-weight: 800; color: #0B0B14; background: var(--color-lime); transform: rotate(-8deg); }
.block.is-gift s, .quote-lines s, .quote-gift s { color: var(--color-text-dim); }
.gift-tag { font-style: normal; font-size: .7rem; padding: 0 5px; border-radius: 4px; color: #0B0B14; background: var(--color-lime); }
.gift-banner { display: inline-block; margin-top: var(--space-md); padding: 6px 14px; border-radius: 999px; font-size: .88rem; color: var(--color-text-secondary); background: rgba(200, 255, 61, .08); border: 1px dashed rgba(200, 255, 61, .45); }
.gift-banner strong { color: var(--color-lime); }
.quote-gift { margin-top: var(--space-sm); padding: 8px 12px; border-radius: var(--radius-sm); font-size: .85rem; background: rgba(200, 255, 61, .08); border: 1px dashed rgba(200, 255, 61, .45); }
.quote-gift strong { color: var(--color-lime); }

.quote-box { padding: var(--space-md); border-radius: var(--radius-md); background: var(--color-bg); border: 1px solid var(--color-border-strong); }
.quote-totals { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-lg); }
.quote-totals div { display: flex; flex-direction: column; }
.quote-totals small { font-size: .78rem; color: var(--color-text-secondary); }
.quote-price { font-family: var(--font-mono); font-size: 2rem; font-weight: 800; color: var(--color-lime); line-height: 1.1; font-variant-numeric: tabular-nums; }
.quote-days { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.compare { margin-top: var(--space-md); display: grid; gap: 6px; }
.compare-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: var(--space-xs); font-size: .8rem; color: var(--color-text-secondary); }
.compare-track { height: 10px; border-radius: 99px; background: var(--color-surface-2); overflow: hidden; }
.compare-fill { height: 100%; border-radius: inherit; width: 0; transition: width .8s var(--ease-out); }
.compare-fill.is-us { background: linear-gradient(90deg, var(--color-lime), var(--color-green)); }
.compare-fill.is-market { background: var(--color-text-dim); }
.compare-row b { font-family: var(--font-mono); font-weight: 700; color: var(--color-text); }
.compare-save { margin-top: var(--space-sm); font-size: .9rem; }
.compare-save strong { color: var(--color-lime); }
.quote-lines { margin-top: var(--space-md); font-size: .82rem; color: var(--color-text-secondary); }
.quote-lines summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; color: var(--color-violet-light); font-weight: 600; }
.quote-lines li { display: grid; grid-template-columns: 1fr auto auto; gap: var(--space-sm); padding: 6px 0; border-bottom: 1px dashed var(--color-border); font-family: var(--font-mono); }
.quote-lines li span:first-child { font-family: var(--font-sans); }
.est-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.est-disclaimer { margin-top: var(--space-sm); font-size: .75rem; color: var(--color-text-dim); }

/* ---------- 案例墙 ---------- */
.case-filters { display: flex; gap: var(--space-xs); overflow-x: auto; padding-bottom: var(--space-xs); margin-bottom: var(--space-lg); scrollbar-width: none; }
.case-filters::-webkit-scrollbar { display: none; }
.case-filters .chip { flex: none; min-height: 40px; border-style: solid; font-weight: 600; }
.case-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.case-card { perspective: 1200px; height: 320px; cursor: pointer; animation: popIn .45s var(--ease-out) both; }
.case-inner { position: relative; width: 100%; height: 100%; transition: transform .7s var(--ease-out); transform-style: preserve-3d; }
.case-card.is-flipped .case-inner { transform: rotateY(180deg); }
.case-face {
  position: absolute; inset: 0; border-radius: var(--radius-lg); overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 1px solid var(--color-border);
}
.case-front { display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-lg); background: linear-gradient(140deg, var(--c1), var(--c2)); }
.case-front::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .35), transparent 45%), linear-gradient(transparent 45%, rgba(0, 0, 0, .55));
}
.case-front > * { position: relative; }
.case-emoji { position: absolute; top: var(--space-lg); right: var(--space-lg); font-size: 4.5rem; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .25)); transition: transform .4s var(--ease-spring); }
.case-card:hover .case-emoji { transform: rotate(-8deg) scale(1.08); }
.case-cover { position: absolute !important; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-cat { align-self: flex-start; padding: 3px 10px; border-radius: var(--radius-pill); font-size: .75rem; font-weight: 700; background: rgba(0, 0, 0, .35); color: #fff; backdrop-filter: blur(6px); }
.case-title { margin-top: var(--space-sm); font-size: 1.4rem; font-weight: 800; color: #fff; }
.case-tagline { font-size: .9rem; color: rgba(255, 255, 255, .85); }
.case-hint { margin-top: var(--space-sm); font-size: .75rem; color: rgba(255, 255, 255, .7); }
.case-back { transform: rotateY(180deg); padding: var(--space-lg); background: var(--color-surface-2); display: flex; flex-direction: column; gap: var(--space-sm); }
.case-figures { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.case-figures div { padding: var(--space-sm); border-radius: var(--radius-md); background: var(--color-bg); border: 1px solid var(--color-border); }
.case-figures small { display: block; font-size: .75rem; color: var(--color-text-secondary); }
.case-figures strong { font-family: var(--font-mono); font-size: 1.4rem; color: var(--color-lime); }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case-quote { flex: 1; font-size: .9rem; line-height: 1.6; color: var(--color-text); }
.case-quote::before { content: "“"; color: var(--color-violet-light); font-size: 1.4rem; font-weight: 900; margin-right: 2px; }
.case-client { font-size: .8rem; color: var(--color-text-secondary); }
.skeleton-card { height: 320px; border-radius: var(--radius-lg); background: linear-gradient(100deg, var(--color-surface) 30%, var(--color-surface-2) 50%, var(--color-surface) 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.load-error { grid-column: 1 / -1; padding: var(--space-xl); text-align: center; color: var(--color-text-secondary); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-lg); }

/* ---------- 透明工地 ---------- */
.board { position: relative; padding: var(--space-lg); border-radius: var(--radius-xl); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-card); }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding-bottom: var(--space-lg); border-bottom: 1px solid var(--color-border); }
.board-project { font-size: 1.15rem; font-weight: 800; }
.board-link { margin-top: 4px; font-size: .82rem; color: var(--color-text-secondary); }
.board-link code { color: var(--color-cyan); }
.board-ring { position: relative; flex: none; width: 104px; height: 104px; }
.board-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--color-surface-2); stroke-width: 10; }
.ring-bar { fill: none; stroke: var(--color-lime); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.4s var(--ease-out); }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-label strong { font-family: var(--font-mono); font-size: 1.4rem; }
.ring-label small { font-size: .65rem; color: var(--color-text-secondary); }
.board-body { display: grid; gap: var(--space-xl); padding-top: var(--space-lg); }
.board-col-title { font-size: .8rem; letter-spacing: .08em; color: var(--color-text-dim); margin-bottom: var(--space-sm); }
.milestones li { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px var(--space-sm); padding: 10px 0 10px 26px; font-size: .9rem; }
.milestones li::before { content: ""; position: absolute; left: 0; top: 13px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--color-border-strong); }
.milestones li.is-done::before { background: var(--color-lime); border-color: var(--color-lime); }
.milestones li.is-doing::before { border-color: var(--color-cyan); animation: pulseCyan 1.6s infinite; }
@keyframes pulseCyan { 0% { box-shadow: 0 0 0 0 rgba(61, 224, 255, .5); } 70% { box-shadow: 0 0 0 8px rgba(61, 224, 255, 0); } }
.milestones em { font-style: normal; font-size: .75rem; color: var(--color-text-dim); font-family: var(--font-mono); }
.milestones .bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--color-surface-2); overflow: hidden; }
.milestones .bar::after { content: ""; display: block; height: 100%; width: 0; background: var(--color-lime); transition: width 1.2s var(--ease-out); }
.milestones li.is-doing .bar::after { background: var(--color-cyan); }
.board.is-visible .milestones .bar::after { width: var(--w); }
.daily-log li { position: relative; padding: 0 0 var(--space-md) var(--space-md); border-left: 2px solid var(--color-border); }
.daily-log li:last-child { padding-bottom: 0; }
.daily-log li::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--color-violet); }
.daily-log time { font-size: .75rem; color: var(--color-text-dim); font-family: var(--font-mono); }
.daily-log p { font-size: .88rem; margin: 2px 0 6px; }
.board-beta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); }
.board-beta img { border-radius: var(--radius-md); background: #fff; padding: 6px; }
.board-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); width: 100%; }
.board-metrics div { padding: var(--space-sm); border-radius: var(--radius-md); background: var(--color-bg); border: 1px solid var(--color-border); }
.board-metrics strong { display: block; font-family: var(--font-mono); font-size: 1.3rem; }
.board-metrics small { font-size: .72rem; color: var(--color-text-secondary); }

/* ---------- 运维心跳 ---------- */
.monitor {
  position: relative; display: grid; gap: var(--space-md); padding: var(--space-lg); overflow: hidden;
  border-radius: var(--radius-xl); background: #07070F; border: 1px solid var(--color-border);
  box-shadow: inset 0 0 80px rgba(61, 255, 154, .05);
}
.monitor-ecg { width: 100%; height: 90px; }
.monitor-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
.stat-tile { padding: var(--space-md); border-radius: var(--radius-md); background: rgba(255, 255, 255, .03); border: 1px solid var(--color-border); }
.stat-tile small { display: block; font-size: .78rem; color: var(--color-text-secondary); }
.stat-tile strong { font-family: var(--font-mono); font-size: 1.6rem; color: var(--color-green); font-variant-numeric: tabular-nums; }
.stat-tile em { font-style: normal; font-size: .85rem; color: var(--color-text-secondary); margin-left: 2px; }
.monitor-log { height: 132px; overflow: hidden; font-family: var(--font-mono); font-size: .75rem; color: var(--color-text-secondary); mask-image: linear-gradient(transparent, #000 35%); -webkit-mask-image: linear-gradient(transparent, #000 35%); display: flex; flex-direction: column; justify-content: flex-end; }
.monitor-log p { padding: 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: popIn .4s var(--ease-out) both; }
.monitor-log time { color: var(--color-text-dim); margin-right: var(--space-xs); }
.monitor-log b { color: var(--color-green); font-weight: 700; margin-right: var(--space-xs); }

.plans { display: grid; gap: var(--space-md); margin-top: var(--space-xl); }
.plan { position: relative; padding: var(--space-lg); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); transition: transform .3s var(--ease-out), border-color .3s; }
.plan:hover { transform: translateY(-4px); border-color: var(--color-violet-light); }
.plan.is-featured { border-color: var(--color-lime); box-shadow: var(--shadow-glow-lime); }
.plan-badge { position: absolute; top: -12px; right: var(--space-lg); padding: 3px 12px; border-radius: var(--radius-pill); font-size: .75rem; font-weight: 800; background: var(--color-lime); color: var(--color-on-lime); }
.plan h3 { font-size: 1.1rem; }
.plan-price { margin: var(--space-xs) 0 var(--space-md); font-family: var(--font-mono); font-size: 2rem; font-weight: 800; }
.plan-price small { font-family: var(--font-sans); font-size: .85rem; font-weight: 500; color: var(--color-text-secondary); }
.plan li { position: relative; padding: 6px 0 6px 22px; font-size: .9rem; color: var(--color-text-secondary); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--color-lime); font-weight: 800; }
.plans-note { margin-top: var(--space-md); text-align: center; }

/* ---------- 承诺 & 流程 ---------- */
.promise { display: grid; gap: var(--space-lg); }
.promise-main { position: relative; padding: var(--space-xl) var(--space-lg); border-radius: var(--radius-xl); background: linear-gradient(150deg, rgba(255, 159, 67, .14), var(--color-surface) 55%); border: 1px solid var(--color-border); }
.promise-stamp {
  position: absolute; top: var(--space-lg); right: var(--space-lg); padding: 4px 12px; transform: rotate(8deg);
  border: 2px solid var(--color-red); border-radius: 6px; color: var(--color-red); font-weight: 900; letter-spacing: .1em; font-size: .85rem; opacity: .9;
}
.promise-main h3 { font-size: 2rem; font-weight: 900; color: var(--color-orange); }
.promise-main > p { margin-top: var(--space-sm); color: var(--color-text-secondary); }
.promise-points { margin-top: var(--space-lg); display: grid; gap: var(--space-sm); }
.promise-points li { font-size: .95rem; }
.promise-tree { padding: var(--space-lg); border-radius: var(--radius-xl); background: #07070F; border: 1px solid var(--color-border); overflow-x: auto; }
.promise-tree pre { margin: 0; font-size: .82rem; line-height: 1.9; color: var(--color-text); }
.t-dim { color: var(--color-text-dim); }
.t-cyan { color: var(--color-cyan); }
.t-lime { color: var(--color-lime); }
.t-orange { color: var(--color-orange); font-weight: 700; }

.process-title { margin: var(--space-3xl) 0 var(--space-lg); font-size: 1.3rem; text-align: center; }
.process { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); padding-bottom: var(--space-2xl); }
.process li {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: var(--space-md) var(--space-xs); text-align: center;
  border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border);
  opacity: .35; filter: grayscale(1); transition: opacity .5s, filter .5s, border-color .5s, transform .5s var(--ease-spring);
}
.process li.is-lit { opacity: 1; filter: none; border-color: var(--color-violet); transform: translateY(-3px); }
.process li:last-child.is-lit { border-color: var(--color-lime); }
.process-icon { font-size: 1.6rem; }
.process strong { font-size: .95rem; }
.process small { font-size: .75rem; color: var(--color-text-secondary); }

/* ---------- 联系我们 ---------- */
.section-contact { background: radial-gradient(60% 80% at 80% 0%, rgba(124, 92, 255, .2), transparent 70%), var(--color-bg-alt); border-top: 1px solid var(--color-border); }
.contact-grid { display: grid; gap: var(--space-2xl); }
.contact-form { display: flex; flex-direction: column; gap: var(--space-md); margin-top: var(--space-lg); }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-tip { text-align: center; }
.privacy-note { font-size: .78rem; line-height: 1.6; color: var(--color-text-dim); }
.privacy-note summary { cursor: pointer; list-style: none; text-align: center; }
.privacy-note summary::-webkit-details-marker { display: none; }
.privacy-note summary span { margin-left: 4px; color: var(--color-text-secondary); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.privacy-note ul { display: grid; gap: 4px; margin: var(--space-xs) 0 0; padding: var(--space-sm) var(--space-md); list-style: none; border-radius: var(--radius-sm); background: var(--color-bg); border: 1px solid var(--color-border); }
.privacy-note b { color: var(--color-text-secondary); }
.plan-attach { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: 6px 6px 6px 12px; border-radius: var(--radius-sm); font-size: .82rem; color: var(--color-lime); background: rgba(200, 255, 61, .08); border: 1px solid rgba(200, 255, 61, .35); }
.plan-attach button { width: 32px; height: 32px; border-radius: 6px; color: var(--color-text-secondary); }
.plan-attach button:hover { color: var(--color-text); background: rgba(255, 255, 255, .06); }
.contact-success { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); margin-top: var(--space-lg); padding: var(--space-xl) var(--space-lg); border-radius: var(--radius-lg); text-align: center; background: var(--color-surface); border: 1px solid var(--color-lime); box-shadow: var(--shadow-glow-lime); animation: bump .5s var(--ease-spring); }
.contact-success .success-icon { font-size: 2.6rem; }
.contact-success h3 { font-size: 1.3rem; }
.lead-id { padding: 8px 18px; border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 1.25rem; font-weight: 800; letter-spacing: .04em; color: var(--color-lime); background: rgba(200, 255, 61, .08); border: 1px dashed rgba(200, 255, 61, .5); cursor: copy; }
.contact-side { position: relative; display: flex; flex-direction: column; gap: var(--space-lg); }
.qr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
.qr-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--space-sm); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); text-align: center; transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s; }
.qr-card:hover { transform: translateY(-4px); border-color: var(--color-violet-light); }
.qr-card.is-highlight { border-color: var(--color-lime); box-shadow: var(--shadow-glow-lime); animation: bump .5s var(--ease-spring) 2; }
.qr-card img { width: 100%; max-width: 132px; aspect-ratio: 1; border-radius: var(--radius-sm); background: #fff; padding: 4px; }
.qr-card strong { font-size: .9rem; }
.qr-card small { font-size: .7rem; color: var(--color-text-secondary); line-height: 1.4; }
.contact-lines { display: grid; gap: var(--space-xs); }
.contact-lines li { display: flex; align-items: center; gap: var(--space-sm); min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); font-size: .92rem; }
.contact-lines span { color: var(--color-text-secondary); min-width: 3em; }
.contact-lines a:hover { color: var(--color-lime); }

/* ---------- 页脚 & 备案 ---------- */
.site-footer { padding: var(--space-2xl) 0 var(--space-lg); background: #06060D; border-top: 1px solid var(--color-border); }
.footer-inner { display: flex; flex-direction: column; gap: var(--space-lg); }
.footer-brand { display: flex; align-items: center; gap: var(--space-sm); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); font-size: .9rem; color: var(--color-text-secondary); }
.footer-links a { min-height: 32px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--color-text); }
.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-xs) var(--space-lg);
  margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-border);
  font-size: .8rem; color: var(--color-text-dim); text-align: center;
}
.footer-legal a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.footer-legal > span { line-height: 32px; }
.footer-legal a:hover { color: var(--color-text-secondary); }

/* ---------- 抓虫彩蛋 ---------- */
.bug {
  position: absolute; z-index: 5; width: 44px; height: 44px; padding: 0; border: 0; background: none;
  font-size: 1.15rem; line-height: 44px; opacity: .55; transition: opacity .2s, transform .2s;
  animation: wiggle 2.4s ease-in-out infinite;
}
.bug:hover { opacity: 1; transform: scale(1.3); }
.bug.is-caught { animation: squash .5s forwards; pointer-events: none; }
@keyframes wiggle { 0%, 100% { transform: rotate(-12deg) translateX(0); } 50% { transform: rotate(12deg) translateX(4px); } }
@keyframes squash { 30% { transform: scale(1.6); opacity: 1; } 100% { transform: scale(0) rotate(180deg); opacity: 0; } }
.bug-hud {
  position: fixed; left: var(--space-md); bottom: var(--space-md); z-index: 40;
  padding: 8px 14px; border-radius: var(--radius-pill); font-family: var(--font-mono); font-weight: 700; font-size: .9rem;
  background: var(--color-surface-2); border: 1px solid var(--color-lime); box-shadow: var(--shadow-card);
  animation: popIn .4s var(--ease-spring) both;
}

/* ---------- 弹窗 & 提示 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--space-md); background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); }
.modal-card { width: 100%; max-width: 380px; padding: var(--space-xl) var(--space-lg); border-radius: var(--radius-xl); background: var(--color-surface); border: 1px solid var(--color-border-strong); text-align: center; animation: popIn .45s var(--ease-spring) both; }
.coupon-emoji { font-size: 3rem; }
.coupon h3 { font-size: 1.4rem; margin: var(--space-xs) 0; }
.coupon > p { color: var(--color-text-secondary); font-size: .92rem; }
.coupon-ticket {
  position: relative; margin: var(--space-lg) 0 var(--space-sm); padding: var(--space-lg);
  border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--color-lime), #8BE33B); color: var(--color-on-lime);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.coupon-ticket strong { font-size: 2.6rem; font-weight: 900; line-height: 1; }
.coupon-ticket code { margin-top: var(--space-xs); padding: 4px 10px; border-radius: 6px; border: 1px dashed rgba(10, 10, 20, .5); font-weight: 700; }
.modal-actions { display: flex; justify-content: center; gap: var(--space-sm); margin-top: var(--space-lg); }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--space-xl) + env(safe-area-inset-bottom)); z-index: 110; transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 12px 20px; border-radius: var(--radius-pill);
  background: var(--color-surface-2); border: 1px solid var(--color-border-strong); box-shadow: var(--shadow-card);
  font-size: .92rem; text-align: center; animation: toastIn .35s var(--ease-spring) both;
}
.toast.is-error { border-color: var(--color-red); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 16px); } }

/* ---------- 滚动入场 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   平板 / 桌面
   ========================================================= */
@media (min-width: 768px) {
  :root { --section-pad: 104px; --header-height: 72px; }
  .container { padding: 0 var(--space-xl); }
  .hide-mobile { display: inline; }
  .section-title { font-size: 2.4rem; }
  .section-sub { font-size: 1.1rem; }

  .nav-toggle { display: none; }
  .main-nav {
    position: static; flex-direction: row; align-items: center; gap: var(--space-2xs); padding: 0;
    background: none; border: 0; transform: none; opacity: 1; pointer-events: auto;
  }
  .main-nav a { min-height: 44px; padding: 0 14px; font-size: .95rem; }
  .main-nav .nav-cta { margin: 0 0 0 var(--space-xs); padding: 0 20px; border-radius: var(--radius-pill); }

  .hero { padding: var(--space-3xl) 0 104px; }
  .hero-title { font-size: 3.6rem; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .build-stage { padding: var(--space-lg); padding-right: 210px; min-height: 440px; }
  .editor-code { height: 330px; font-size: .78rem; }
  .phone { width: 196px; height: 396px; right: 22px; top: 54px; border-radius: 32px; padding: 8px; }
  .stage-done { left: var(--space-lg); right: 230px; bottom: var(--space-lg); }
  .phone-screen { border-radius: 25px; font-size: 10px; padding: 30px 10px 54px; gap: 8px; }
  .ph-ai b { font-size: 16px; }
  .ph-header { font-size: 13px; }
  .ph-banner { font-size: 12px; padding: 14px 10px; }
  .ph-banner small { font-size: 9px; }
  .ph-grid b { font-size: 16px; }
  .ph-tabbar { height: 48px; }

  .pillars-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
  .pillar { padding: var(--space-xl) var(--space-lg); }
  .pillar-char { font-size: 4rem; }

  .blocks { grid-template-columns: repeat(3, 1fr); }
  .blocks-custom { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
  .board { padding: var(--space-xl); }
  .board-ring { width: 120px; height: 120px; }
  .monitor { padding: var(--space-xl); }
  .monitor-stats { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .process { grid-template-columns: repeat(7, 1fr); }
  .process::before {
    content: ""; position: absolute; left: 7%; right: 7%; top: 50%; height: 2px; z-index: -1;
    background: linear-gradient(90deg, var(--color-violet), var(--color-lime)); opacity: .4;
  }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-legal { justify-content: flex-start; text-align: left; }
}

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1.1fr; align-items: center; gap: var(--space-2xl); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .estimator { grid-template-columns: 380px 1fr; }
  .estimator-input { position: sticky; top: calc(var(--header-height) + var(--space-lg)); }
  .case-grid { grid-template-columns: repeat(4, 1fr); }
  .board-body { grid-template-columns: 1.2fr 1.2fr .8fr; }
  .promise { grid-template-columns: 1.3fr 1fr; align-items: stretch; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

@media (min-width: 1200px) {
  .hero-title { font-size: 4.2rem; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .hero-stats strong { font-size: 1.6rem; }
}

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