/* ==========================================================================
   欧八同学个人站 · 旗舰版设计系统 (Obsidian & Warm Gold Craft · Taste 2.5)
   仅作用于首页（/ 与 /en/），与子页面 /tools/*、/guides/* 的 styles.css 完全隔离
   ========================================================================== */

:root {
  --bg: #0C0B0A;
  --bg-elevated: #141210;
  --surface-shell: rgba(244, 239, 230, 0.036);
  --surface-core: #161412;
  --surface-core-top: #1C1916;
  --ink: #F4EFE6;
  --ink-2: #BEB6A9;
  --ink-muted: #8C8478;
  --accent: #E26D47;
  --accent-hover: #EE7B56;
  --gold: #D8B26E;
  --emerald: #34D399;
  --border-hair: rgba(244, 239, 230, 0.095);
  --border-strong: rgba(244, 239, 230, 0.2);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-ui: cubic-bezier(0.2, 0.8, 0.2, 1);
  --max-w: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(780px 460px at 84% 4%, rgba(226, 109, 71, 0.13), transparent 72%),
    radial-gradient(620px 400px at 66% 10%, rgba(216, 178, 110, 0.075), transparent 74%),
    var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: 78px;
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

/* 固定于视口的细腻胶片颗粒膜（pointer-events: none，不引起滚动重绘） */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 建筑细坐标网格（仅作首屏远景肌理） */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(244, 239, 230, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 239, 230, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 55% 28%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 55% 28%, #000 10%, transparent 78%);
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 18px;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--accent);
  color: #110D0B;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 90;
}
.skip-link:focus { left: 16px; }

/* 保留原版「8」品牌方块 Logo */
.brand-logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #EEF4F6;
  background-color: #1E1714;
  border: 1.5px solid rgba(238, 244, 246, 0.36);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 4px 4px 0 var(--accent);
  transition: transform 0.14s var(--ease-ui), box-shadow 0.14s var(--ease-ui);
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
}

.brand-logo:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--accent);
}

.brand-logo:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--accent);
}

/* ==========================================================================
   悬浮流体岛屿导航栏 (Floating Island Nav)
   ========================================================================== */
.nav-dock-wrap {
  position: sticky;
  top: 12px;
  z-index: 45;
  padding: 12px 16px 0;
}

.nav-island {
  max-width: 1136px;
  margin: 0 auto;
  background: rgba(18, 16, 14, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(244, 239, 230, 0.13);
  border-radius: 999px;
  padding: 8px 10px 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow:
    inset 0 1px 0 rgba(244, 239, 230, 0.11),
    0 16px 40px rgba(0, 0, 0, 0.38);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 700; font-size: 0.94rem; line-height: 1.2; letter-spacing: -0.01em; white-space: nowrap; }
.brand-sub { font-family: var(--font-mono); font-size: 0.68rem; color: var(--gold); line-height: 1.2; white-space: nowrap; }

@media (max-width: 519px) {
  .brand-sub,
  .nav-cta-desktop {
    display: none !important;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.18s var(--ease-ui);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.24s var(--ease-out);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left center; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(244, 239, 230, 0.04);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  transition: border-color 0.16s var(--ease-ui), background-color 0.16s var(--ease-ui);
}

.lang-pill:hover {
  border-color: var(--gold);
  background: rgba(216, 178, 110, 0.12);
}

/* 移动端变形汉堡按钮 */
.nav-burger {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(244, 239, 230, 0.04);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}

@media (min-width: 960px) {
  .nav-burger { display: none; }
}

.nav-burger span {
  position: absolute;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.28s var(--ease-out);
}

.nav-burger span:first-child { transform: translateY(-3.5px); }
.nav-burger span:last-child { transform: translateY(3.5px); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(0) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(0) rotate(-45deg); }

/* 移动端全屏磨砂抽屉 */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 42;
  background: rgba(12, 11, 10, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 28px 104px;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-out);
}

.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer a {
  text-decoration: none;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 700;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-hair);
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.36s var(--ease-out), opacity 0.36s var(--ease-out), color 0.16s;
}

.mobile-drawer.is-open a { transform: translateY(0); opacity: 1; }
.mobile-drawer.is-open a:nth-child(2) { transition-delay: 0.04s; }
.mobile-drawer.is-open a:nth-child(3) { transition-delay: 0.08s; }
.mobile-drawer.is-open a:nth-child(4) { transition-delay: 0.12s; }
.mobile-drawer.is-open a:nth-child(5) { transition-delay: 0.16s; }
.mobile-drawer a:hover { color: var(--gold); }

/* ==========================================================================
   Double-Bezel（双层精雕硬件边框）& Spotlight 追光
   ========================================================================== */
.bezel-shell {
  position: relative;
  min-width: 0;
  max-width: 100%;
  padding: 6px;
  border-radius: 24px;
  background: var(--surface-shell);
  border: 1px solid var(--border-hair);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.38);
  transition: border-color 0.24s var(--ease-ui), transform 0.24s var(--ease-out);
}

.bezel-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(216, 178, 110, 0.16), transparent 60%);
  transition: opacity 0.25s var(--ease-ui);
}

@media (hover: hover) and (pointer: fine) {
  .bezel-shell:hover::before { opacity: 1; }
  .bezel-shell.is-interactive:hover {
    border-color: rgba(216, 178, 110, 0.32);
    transform: translateY(-2px);
  }
}

.bezel-shell.is-gold {
  border-color: rgba(216, 178, 110, 0.34);
  background: linear-gradient(145deg, rgba(216, 178, 110, 0.11), rgba(244, 239, 230, 0.025));
}

.bezel-core {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-core-top) 0%, var(--surface-core) 100%);
  border: 1px solid rgba(244, 239, 230, 0.065);
  box-shadow: inset 0 1px 0 rgba(244, 239, 230, 0.11);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.hero-grid > *, .pipeline-rail > *, .apps-asym > *, .apps-side > *,
.srv-asym > *, .srv-side > *, .hub-asym > *, .grid-2 > *,
.social-matrix > *, .proof-asym > *, .faq-asym > *, .mock-scores > *, .diag-tabs > * {
  min-width: 0;
  max-width: 100%;
}

/* ==========================================================================
   Button-in-Button 物理动效按钮体系
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 18px;
  min-height: 44px;
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.22s var(--ease-out),
    background-color 0.18s var(--ease-ui),
    border-color 0.18s var(--ease-ui),
    color 0.18s var(--ease-ui);
}

.btn:active { transform: scale(0.985) translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #110D0B;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary.btn-island {
  padding: 6px 7px 6px 20px;
  min-height: 46px;
}

.btn-icon-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(17, 13, 11, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.24s var(--ease-out), background-color 0.2s var(--ease-ui);
}

.btn-primary:hover .btn-icon-circle {
  transform: translate(2px, -1px) scale(1.06);
  background: rgba(17, 13, 11, 0.24);
}

.btn-gold {
  background: rgba(216, 178, 110, 0.12);
  color: var(--gold);
  border-color: rgba(216, 178, 110, 0.36);
}

.btn-gold:hover {
  background: rgba(216, 178, 110, 0.22);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(244, 239, 230, 0.04);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(244, 239, 230, 0.09);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-primary.btn-sm.btn-island {
  min-height: 36px;
  padding: 4px 5px 4px 14px;
  gap: 8px;
}

.btn-sm .btn-icon-circle {
  width: 24px;
  height: 24px;
}

.btn-block { width: 100%; justify-content: space-between; }
.btn-block-center { width: 100%; justify-content: center; }

/* 焦点可见圈 */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ==========================================================================
   Chapter 1 · Hero 首屏（一次性入场，无 JS 或减弱动效时默认全显）
   ========================================================================== */
.hero {
  position: relative;
  padding: 40px 0 72px;
  border-bottom: 1px solid var(--border-hair);
}

@media (min-width: 960px) {
  .hero { padding: 56px 0 88px; }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.hero-grid > * { min-width: 0; }

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 48px;
    align-items: center;
  }
}

/* 首屏入场微动效（仅在 html.m-enter 期间短暂激活，700ms 兜底防隐藏） */
html.m-enter:not(.m-enter-done) [data-enter-item] {
  opacity: 0;
  transform: translateY(14px);
}
[data-enter-item] {
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
[data-enter-item="2"] { transition-delay: 0.06s; }
[data-enter-item="3"] { transition-delay: 0.12s; }
[data-enter-item="4"] { transition-delay: 0.18s; }

.identity-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(216, 178, 110, 0.11) 0%, rgba(244, 239, 230, 0.045) 100%);
  border: 1px solid rgba(216, 178, 110, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(244, 239, 230, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.28);
  margin-bottom: 26px;
  max-width: 100%;
}

html[lang="en"] .identity-pill {
  border-radius: 20px;
}

@media (max-width: 639px) {
  .identity-pill {
    border-radius: 18px;
    padding: 8px 14px 8px 8px;
    gap: 10px;
  }
}

.identity-pill img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(216, 178, 110, 0.65);
  box-shadow: 0 0 0 3px rgba(216, 178, 110, 0.12);
}

@media (max-width: 639px) {
  .identity-pill img {
    width: 36px;
    height: 36px;
  }
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}

.identity-pill span.id-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: #E5C282;
  letter-spacing: 0.01em;
  line-height: 1.42;
}

@media (max-width: 639px) {
  .identity-pill span.id-text {
    font-size: 0.85rem;
    line-height: 1.42;
  }
}

.hero-h1 {
  font-size: clamp(2.05rem, 4.4vw, 3.38rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.13;
  color: var(--ink);
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-sub {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 54ch;
  margin-bottom: 28px;
}

.hero-cta-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

/* 无框极简战绩分割条 */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border-hair);
}

@media (min-width: 640px) {
  .hero-metrics {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .hero-metric + .hero-metric {
    border-left: 1px solid var(--border-hair);
    padding-left: 18px;
  }
  .hero-metric:first-child { padding-right: 12px; }
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.metric-lbl {
  font-size: 0.76rem;
  color: var(--ink-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* 右侧 30 秒交互诊断仪 */
.diag-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-hair);
}

.diag-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.diag-title { font-size: 1.12rem; font-weight: 700; line-height: 1.35; }
.diag-desc { font-size: 0.83rem; color: var(--ink-muted); line-height: 1.55; }

.diag-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.diag-tab {
  background: rgba(244, 239, 230, 0.035);
  border: 1px solid var(--border-hair);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s var(--ease-ui);
}

.diag-tab:hover { border-color: var(--gold); color: var(--ink); }
.diag-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #110D0B;
  font-weight: 700;
}

.diag-steps { display: flex; flex-direction: column; gap: 10px; }

.diag-step {
  background: rgba(244, 239, 230, 0.025);
  border: 1px solid var(--border-hair);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s var(--ease-ui);
}

.diag-step:hover { border-color: rgba(216, 178, 110, 0.35); }
.diag-step-lbl { font-family: var(--font-mono); font-size: 0.7rem; color: var(--gold); margin-bottom: 4px; }
.diag-step h3 { font-size: 0.94rem; font-weight: 700; margin-bottom: 4px; }
.diag-step p { font-size: 0.82rem; color: var(--ink-2); line-height: 1.5; margin-bottom: 8px; }
.diag-step a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.diag-step a:hover { text-decoration: underline; }

/* ==========================================================================
   通用章节排布（充足呼吸留白）
   ========================================================================== */
.chapter {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-hair);
}

@media (min-width: 960px) {
  .chapter { padding: 96px 0; }
}

.chapter-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 720px;
  margin-bottom: 34px;
}

.chapter-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chapter-title {
  font-size: clamp(1.58rem, 3vw, 2.28rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.2;
}

.chapter-desc {
  font-size: 0.96rem;
  color: var(--ink-2);
  max-width: 62ch;
}

/* ==========================================================================
   Chapter 2 · 视觉瞬间（Dealt Moment）：脉冲架构图 + 7:5 Web Apps 实景展廊
   ========================================================================== */
.pipeline-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.pipeline-rail {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

@media (min-width: 820px) {
  .pipeline-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

.pipeline-line-svg {
  display: none;
}

@media (min-width: 820px) {
  .pipeline-line-svg {
    display: block;
    position: absolute;
    left: 10%;
    right: 10%;
    top: 28px;
    width: 80%;
    height: 12px;
    pointer-events: none;
    z-index: 0;
  }
}

.pipe-pulse {
  stroke-dasharray: 48 220;
  animation: pulseTravel 3.2s linear infinite;
}

@keyframes pulseTravel {
  from { stroke-dashoffset: 268; }
  to { stroke-dashoffset: 0; }
}

.pipe-node {
  position: relative;
  z-index: 1;
  background: var(--surface-core);
  border: 1px solid var(--border-hair);
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s var(--ease-ui), transform 0.2s var(--ease-out), background-color 0.2s;
}

.pipe-node:hover {
  border-color: rgba(216, 178, 110, 0.45);
  transform: translateY(-2px);
}

.pipe-node.is-active {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(216, 178, 110, 0.12) 0%, var(--surface-core) 100%);
}

.pipe-step-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 700;
}

.pipe-node h3 { font-size: 0.96rem; font-weight: 700; }
.pipe-node p { font-size: 0.81rem; color: var(--ink-2); line-height: 1.5; }

.pipe-detail-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 860px) {
  .pipe-detail-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.pipe-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pipe-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(244, 239, 230, 0.05);
  border: 1px solid var(--border-hair);
  color: var(--ink-2);
}

/* 7:5 非对称 Web Apps 实景展廊 */
.apps-asym {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 38px;
}

@media (min-width: 900px) {
  .apps-asym {
    grid-template-columns: 1.32fr 0.68fr;
  }
}

.apps-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 真实产品 UI 片段预览窗 */
.app-ui-mock {
  background: #0F0E0D;
  border: 1px solid rgba(244, 239, 230, 0.11);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border-hair);
  padding-bottom: 10px;
}

.mock-bubble {
  background: rgba(244, 239, 230, 0.045);
  border-left: 2px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.mock-scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mock-score-item {
  background: rgba(244, 239, 230, 0.03);
  border: 1px solid var(--border-hair);
  border-radius: 8px;
  padding: 8px 10px;
}

.mock-score-item span { display: block; font-size: 0.69rem; color: var(--ink-muted); }
.mock-score-item strong { font-family: var(--font-mono); font-size: 0.92rem; color: var(--gold); }

/* ==========================================================================
   Chapter 3 · 服务体系（7:5 非对称主从布局）
   ========================================================================== */
.srv-asym {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 880px) {
  .srv-asym { grid-template-columns: 1.18fr 0.82fr; }
}

.srv-side { display: flex; flex-direction: column; gap: 20px; }

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(226, 109, 71, 0.14);
  color: var(--accent);
}

.tag-badge.is-gold {
  background: rgba(216, 178, 110, 0.16);
  color: var(--gold);
}

.srv-price {
  font-family: var(--font-mono);
  font-size: 2.05rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.srv-price small {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.srv-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.srv-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.srv-bound {
  font-size: 0.8rem;
  color: var(--ink-muted);
  background: rgba(244, 239, 230, 0.03);
  border: 1px solid var(--border-hair);
  padding: 10px 13px;
  border-radius: 10px;
  line-height: 1.5;
}

/* ==========================================================================
   Chapter 4 · 免费自测工具 & 实战百科（5:7 杂志目录双栏）
   ========================================================================== */
.hub-asym {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

@media (min-width: 900px) {
  .hub-asym { grid-template-columns: 0.92fr 1.08fr; gap: 32px; }
}

.tool-stack { display: flex; flex-direction: column; gap: 14px; }

.tool-feature-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--surface-core);
  border: 1px solid var(--border-hair);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease-ui), transform 0.2s var(--ease-out);
}

.tool-feature-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s var(--ease-ui);
}

.tool-feature-row:hover {
  border-color: rgba(216, 178, 110, 0.4);
  transform: translateY(-2px);
}
.tool-feature-row:hover::before { opacity: 1; }

.tool-row-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tool-row-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--gold);
}

.guide-index-list { list-style: none; display: flex; flex-direction: column; }
.guide-index-list li { border-top: 1px solid var(--border-hair); }
.guide-index-list li:last-child { border-bottom: 1px solid var(--border-hair); }

.guide-index-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 6px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.16s var(--ease-ui), padding-left 0.2s var(--ease-out);
}

.guide-index-list a:hover {
  color: var(--gold);
  padding-left: 12px;
}

/* ==========================================================================
   Chapter 5 · 双福利、全平台 8 渠道矩阵 & 真实口碑主理人
   ========================================================================== */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cli-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #0A0908;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink);
  min-width: 0;
  max-width: 100%;
}
.cli-bar code { overflow-x: auto; white-space: nowrap; min-width: 0; max-width: 100%; flex: 1; }
.cli-bar button { white-space: nowrap; flex-shrink: 0; }

.social-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 359px) {
  .social-matrix { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 768px) {
  .social-matrix { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.social-btn {
  background: var(--surface-core);
  border: 1px solid var(--border-hair);
  border-radius: 12px;
  padding: 13px 14px;
  text-decoration: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  transition: border-color 0.18s var(--ease-ui), transform 0.18s var(--ease-out), background-color 0.18s;
}

.social-btn:hover {
  border-color: var(--gold);
  background: var(--surface-core-top);
  transform: translateY(-2px);
}

.social-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(244, 239, 230, 0.045);
  border: 1px solid var(--border-hair);
  display: grid;
  place-items: center;
  color: var(--gold);
  flex-shrink: 0;
}

.social-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.social-meta small { font-size: 0.71rem; color: var(--ink-muted); }
.social-meta span { font-size: 0.83rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.proof-asym {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 28px;
}

@media (min-width: 880px) {
  .proof-asym { grid-template-columns: 1.05fr 0.95fr; }
}

.about-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.about-tags li {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(244, 239, 230, 0.045);
  border: 1px solid var(--border-hair);
  color: var(--ink-2);
}

/* ==========================================================================
   Chapter 6 · FAQ 与使用前了解（保留 GEO 原文） + 页脚
   ========================================================================== */
.faq-asym {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

@media (min-width: 880px) {
  .faq-asym { grid-template-columns: 1.18fr 0.82fr; }
}

.public-faq {
  border-top: 1px solid var(--border-hair);
  padding: 16px 4px;
}
.public-faq:last-of-type { border-bottom: 1px solid var(--border-hair); }
.public-faq summary { font-weight: 700; font-size: 0.96rem; cursor: pointer; list-style-position: inside; }
.public-faq p { font-size: 0.88rem; color: var(--ink-2); margin-top: 10px; line-height: 1.68; }

@media (max-width: 639px) {
  .bezel-core { padding: 18px; }
  .cli-bar { flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .cli-bar code { flex: 1 1 100%; font-size: 0.75rem; }
  .social-btn { padding: 11px 10px; gap: 8px; }
  .social-ico { width: 30px; height: 30px; }
  .social-meta span { font-size: 0.78rem; }
}

.intent-card {
  background: var(--surface-core);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 24px;
  align-self: start;
}

.intent-card h2 { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.intent-card p { font-size: 0.88rem; color: var(--ink-2); line-height: 1.68; margin-bottom: 10px; }

.site-footer {
  padding: 36px 0 48px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}

.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

/* 移动端底部 3 键快捷栏 */
.mobile-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 48;
  background: rgba(18, 16, 14, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-strong);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 8px;
}

@media (min-width: 768px) {
  .mobile-dock { display: none; }
}

/* ==========================================================================
   弹窗模态框体系
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay[hidden] { display: none !important; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  max-height: 90vh;
  overflow-y: auto;
  background: #191614;
  color: var(--ink);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(244, 239, 230, 0.12), 0 28px 64px rgba(0, 0, 0, 0.6);
}

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-title { font-size: 1.12rem; font-weight: 700; }

.modal-close-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  background: rgba(244, 239, 230, 0.05);
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.wechat-box {
  background: #100E0D;
  border: 1px solid var(--border-hair);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  margin-bottom: 14px;
}

.wechat-label { font-size: 0.76rem; color: var(--ink-muted); margin-bottom: 4px; }
.wechat-code { font-family: var(--font-mono); font-size: 1.52rem; font-weight: 700; color: var(--gold); letter-spacing: 0.06em; user-select: all; }
.copy-feedback { min-height: 22px; margin: 8px 0; font-size: 0.84rem; font-weight: 600; color: var(--emerald); text-align: center; }
.copy-feedback.copy-error { color: #F87171; }
.planet-qr-wrap { text-align: center; margin: 14px 0; }
.planet-qr-wrap img { width: 184px; height: auto; border-radius: 12px; padding: 6px; background: #fff; }
.qr-hint { font-size: 0.78rem; color: var(--ink-muted); margin-top: 8px; }
.planet-price-badge { display: flex; justify-content: center; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.planet-price-badge .price { font-family: var(--font-mono); font-size: 1.65rem; font-weight: 700; color: var(--gold); }
.planet-price-badge .status { font-size: 0.76rem; background: rgba(216, 178, 110, 0.16); color: var(--gold); padding: 2px 8px; border-radius: 6px; }
.planet-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.modal-tips { font-size: 0.79rem; color: var(--ink-muted); background: #100E0D; padding: 10px 12px; border-radius: 10px; line-height: 1.55; }
.gzh-benefit { font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; line-height: 1.55; }

/* 尊重系统减弱动效设置 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pipe-pulse { animation: none !important; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
