/* diy-jarvis.com —— dark-geek 橙主题（黑底 + #FF7A00，仿 FDE4.ai 风格语言），零外链 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg-0: #0A0A0A; --bg-1: #0F0F0F; --bg-2: #131313;
  --ink: #E6E6E6; --ink-2: #9CA3AF; --ink-3: #5F6368;
  --orange: #FF7A00; --orange-hi: #FF9526;
  --orange-dim: rgba(255,122,0,.14);
  --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.14);
  --font-mono: "Menlo", "JetBrains Mono", "SF Mono", monospace;
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink); background: var(--bg-0); line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--orange); color: #140B00; }

/* 噪点纹理（inline SVG feTurbulence，FDE 同款 geek 质感） */
body::after {
  content: ""; position: fixed; inset: 0;
  pointer-events: none; z-index: 999; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section[id] { scroll-margin-top: 84px; }

/* 导航 */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,.82); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo {
  font-family: var(--font-mono); font-weight: 700; font-size: 17px;
  color: var(--ink); text-decoration: none; letter-spacing: .04em;
}
.logo::before { content: "$ "; color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--orange); }

/* 按钮 */
.btn {
  display: inline-block; border-radius: 12px; font-weight: 600;
  padding: 14px 28px; font-size: 15px; text-decoration: none;
  letter-spacing: .02em;
  transition: transform .18s, box-shadow .25s, background .2s, border-color .2s, color .2s;
}
.btn-sm { padding: 8px 18px; font-size: 13px; }
/* a.btn-primary 双类选择器：压过 .nav-links a（类+元素特异性更高）的灰字，橙底白字加粗 */
.btn-primary, a.btn-primary { background: var(--orange); color: #fff; font-weight: 700; }
.btn-primary:hover, a.btn-primary:hover {
  background: var(--orange-hi); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,122,0,.35);
}

/* Hero */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -22%; left: 50%;
  transform: translateX(-50%);
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(255,122,0,.13) 0%, rgba(255,122,0,.045) 42%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 28%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 28%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  color: var(--orange); font-weight: 600; font-size: 12px;
  letter-spacing: .28em; text-transform: uppercase;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--orange); flex: none; }
h1 { font-size: 44px; font-weight: 800; line-height: 1.15; letter-spacing: -.025em; margin-bottom: 20px; }
.lead { font-size: 17px; color: var(--ink-2); line-height: 1.8; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; }
.hero-meta {
  margin-top: 18px; font-size: 12.5px; color: var(--ink-3);
  font-family: var(--font-mono); letter-spacing: .06em;
}
.hero-side { text-align: center; }
.hero-side img {
  max-width: 100%; height: auto;
  filter: drop-shadow(0 18px 40px rgba(255, 122, 0, .22));
}

/* 数据带 */
.databand { background: var(--bg-1); border-block: 1px solid var(--line); padding: 34px 0; }
.data-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.data-item strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--orange); }
.data-item span {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3);
  display: block; margin-top: 6px;
}

/* 通用板块 */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-1); }
h2 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 12px; }
.section-lead { color: var(--ink-2); font-size: 16.5px; line-height: 1.9; margin-bottom: 36px; }

/* Before/After 与 适合谁 对照 */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
#audience .compare { grid-template-columns: 1fr 1fr; }
.compare-col {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 28px;
  transition: border-color .25s, box-shadow .25s;
}
.compare-col:hover { border-color: var(--line-strong); }
.compare-col.after {
  border-color: rgba(255,122,0,.4);
  background: linear-gradient(180deg, rgba(255,122,0,.05), var(--bg-2) 60%);
}
.compare-col.after:hover { border-color: rgba(255,122,0,.6); box-shadow: 0 0 28px rgba(255,122,0,.10); }
.compare-col h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.compare-col.before h3 { color: var(--ink-2); }
.compare-col.after h3 { color: var(--orange); }
.compare-col ul { padding-left: 20px; color: var(--ink-2); font-size: 14px; }
.compare-col li { margin-bottom: 6px; line-height: 1.75; }
.compare-arrow { align-self: center; font-size: 28px; color: var(--orange); font-weight: 700; font-family: var(--font-mono); }
.evidence {
  margin-top: 24px; font-size: 14px; color: var(--ink-2);
  border-left: 3px solid var(--orange); padding-left: 14px;
}

/* 五层金字塔（完整版）：橙色阶，顶层最深橙 → 底层浅橙，全层白字（同 AA 色阶） */
.pyramid-full { display: flex; flex-direction: column; gap: 8px; max-width: 860px; margin: 0 auto; }
.pf-layer {
  display: flex; align-items: baseline; gap: 16px;
  border-radius: 10px; padding: 16px 22px; color: #fff;
}
.pf-layer b { flex: none; font-size: 15px; }
.pf-layer span { font-size: 14px; opacity: .95; }
.pf5 { background: #8F4300; margin: 0 30%; }
.pf4 { background: #994E00; margin: 0 22%; }
.pf3 { background: #A85300; margin: 0 14%; }
.pf2 { background: #B15700; margin: 0 7%; }
.pf1 { background: #B85A00; }
.pf1 span { opacity: .9; }

/* 大纲卡片 */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 28px; background: var(--bg-1);
  transition: border-color .25s, box-shadow .25s, transform .2s;
}
.card:hover {
  border-color: rgba(255,122,0,.5);
  box-shadow: 0 0 28px rgba(255,122,0,.10), inset 0 0 0 1px rgba(255,122,0,.12);
  transform: translateY(-3px);
}
.card-num {
  font-family: var(--font-mono);
  color: var(--orange); font-weight: 600; font-size: 12px;
  letter-spacing: .24em; margin-bottom: 10px;
}
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.card ul { padding-left: 20px; color: var(--ink-2); font-size: 14px; }
.card li { margin-bottom: 5px; line-height: 1.75; }

/* 讲师 */
.instructor-inner { max-width: 760px; }
.instructor-inner p { color: var(--ink-2); margin-bottom: 12px; font-size: 14px; line-height: 1.9; }

/* FAQ */
#faq details {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 22px; margin-bottom: 12px;
  transition: border-color .2s;
}
#faq details:hover, #faq details[open] { border-color: var(--line-strong); }
#faq summary { font-weight: 700; cursor: pointer; font-size: 15px; }
#faq summary::marker { color: var(--orange); }
#faq details p { margin-top: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.85; }

/* 最终 CTA / 页脚 */
.cta-final { text-align: center; }
.cta-final .hero-cta { justify-content: center; margin-top: 28px; }
.footer {
  border-top: 1px solid var(--line); padding: 26px 0;
  color: var(--ink-3); font-size: 12.5px; text-align: center;
  font-family: var(--font-mono); letter-spacing: .04em;
}
.friend-links { margin-top: 8px; }
.friend-links a { color: var(--ink-3); text-decoration: none; }
.friend-links a:hover { color: var(--orange); }

/* 固底 dock（默认隐藏，JS 加 .visible） */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; justify-content: center; align-items: center; gap: 18px;
  background: rgba(10,10,10,.92); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .25s ease;
}
.dock.visible { transform: translateY(0); }
.dock-top { color: var(--ink-2); text-decoration: none; font-size: 14px; transition: color .2s; }
.dock-top:hover { color: var(--orange); }

/* 移动端 */
@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .data-grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .compare { grid-template-columns: 1fr; }
  #audience .compare { grid-template-columns: 1fr; }
  .compare-arrow { display: none; }
  .cards { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .pf5, .pf4, .pf3, .pf2, .pf1 { margin: 0; }
  .pf-layer { flex-direction: column; gap: 4px; }
  .section { padding: 56px 0; }
}
