/* ============================================================
   Jackie · 个人网站
   视觉语言：深色账本 / 老式金融终端
   ============================================================ */

:root {
  --bg: #0c0c0c;
  --bg-2: #111111;
  --surface: #151515;
  --line: #262626;
  --line-soft: #1c1c1c;

  --ink: #e9e4da;          /* 主文字：暖白 */
  --ink-2: #b5ad9f;        /* 次文字 */
  --ink-3: #7a7368;        /* 弱文字 */

  --accent: #d9a441;       /* 琥珀色：账本/计算器 */
  --accent-2: #b8872f;
  --accent-soft: rgba(217, 164, 65, 0.12);

  --danger: #c25450;       /* 标红：账上的坑 */

  --maxw: 760px;
  --pad: clamp(20px, 5vw, 48px);

  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  /* 极淡的网格底纹，像账本纸 */
  background-image:
    linear-gradient(rgba(217,164,65,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217,164,65,0.018) 1px, transparent 1px);
  background-size: 48px 48px;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }

/* ---------- 容器 ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12,12,12,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.brand .dot {
  width: 7px; height: 7px;
  background: var(--accent);
  display: inline-block;
  animation: blink 1.6s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.brand .sub {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.5vw, 28px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
}
.nav-links a {
  color: var(--ink-2);
  padding: 4px 0;
  position: relative;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent); }

/* ---------- 通用排版 ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
  flex: 0 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(22px, 3.2vw, 30px); }
h3 { font-size: 17px; }

p { color: var(--ink-2); margin: 0 0 1.1em; }

.mono { font-family: var(--font-mono); }

.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink);
  line-height: 1.7;
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(56px, 10vh, 110px) 0 clamp(40px, 7vh, 72px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero .meta span::before { content: "// "; color: var(--accent); }

.hero h1 {
  margin-bottom: 24px;
}
.hero .sub {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--accent);
  margin-bottom: 28px;
  line-height: 1.6;
}
.hero p.lead { max-width: 56ch; }

/* 光标 */
.cursor::after {
  content: "_";
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
  margin-left: 2px;
}

/* ---------- CTA 按钮 ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 13px 22px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
}
.btn:hover {
  background: var(--accent);
  color: var(--bg);
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink-2);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

/* ---------- 区块 ---------- */
section.block {
  padding: clamp(48px, 8vh, 88px) 0;
  border-bottom: 1px solid var(--line);
}
section.block:last-child { border-bottom: 0; }

.block h2 { margin-bottom: 28px; }
.block .intro { color: var(--ink); margin-bottom: 24px; }

/* ---------- 列表 / 编号清单 ---------- */
.num-list { list-style: none; counter-reset: item; }
.num-list > li {
  counter-increment: item;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
}
.num-list > li:last-child { border-bottom: 0; }
.num-list .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  padding-top: 3px;
}
.num-list .num::after { content: "."; }
.num-list h3 { margin-bottom: 6px; }
.num-list p { margin: 0; color: var(--ink-2); }

/* 普通列表 */
.plain-list { list-style: none; }
.plain-list li {
  padding: 14px 0 14px 26px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
}
.plain-list li:last-child { border-bottom: 0; }
.plain-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* ---------- 表格（账本样式） ---------- */
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 8px 0 4px;
}
.ledger th, .ledger td {
  text-align: left;
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.ledger th {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
}
.ledger td.price { color: var(--accent); font-weight: 600; white-space: nowrap; }
.ledger td.desc { font-family: var(--font-sans); color: var(--ink-2); line-height: 1.6; }

/* ---------- 引用块 ---------- */
.pullquote {
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 22px;
  margin: 28px 0;
  color: var(--ink);
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.55;
  font-weight: 500;
}
.pullquote .src {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ---------- 双入口卡片（首页）---------- */
.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.entry {
  background: var(--bg);
  padding: clamp(28px, 5vw, 44px);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: background .25s ease;
  position: relative;
}
.entry:hover { background: var(--surface); }
.entry .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.entry h3 {
  font-size: clamp(20px, 2.6vw, 26px);
  margin-bottom: 14px;
  line-height: 1.35;
}
.entry p { color: var(--ink-2); margin-bottom: auto; font-size: 15px; }
.entry .go {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .2s ease;
}
.entry:hover .go { gap: 14px; }

@media (max-width: 640px) {
  .entry-grid { grid-template-columns: 1fr; }
}

/* ---------- 产品清单（首页强化版）---------- */
.product {
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 44px);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: border-color .25s ease;
}
.product:hover { border-color: var(--accent); }
.product .p-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.product h3 {
  font-size: clamp(20px, 2.6vw, 26px);
  margin-bottom: 12px;
  line-height: 1.35;
}
.product .p-desc { color: var(--ink-2); margin-bottom: 22px; font-size: 15px; }
.product .price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 22px;
}
.product .price-row .amt {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.product .price-row .unit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.product .p-points {
  list-style: none;
  margin: 0 0 26px;
}
.product .p-points li {
  padding: 8px 0 8px 22px;
  position: relative;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}
.product .p-points li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}
.product .p-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  transition: gap .2s ease;
}
.product:hover .p-cta { gap: 14px; }

/* ---------- 价格内联标签 ---------- */
.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
}
.price-tag .amt { font-size: clamp(15px, 2vw, 18px); font-weight: 600; color: var(--accent); }
.price-tag .unit { font-size: 11px; color: var(--ink-3); }

/* ---------- 最终 CTA 区 ---------- */
.final-cta {
  text-align: left;
  padding: clamp(48px, 8vh, 80px) 0;
}
.final-cta h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 18px;
  line-height: 1.3;
}
.final-cta .fc-sub {
  color: var(--ink-2);
  margin-bottom: 32px;
  max-width: 50ch;
}
.final-cta .fc-box {
  border: 1px solid var(--accent);
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.final-cta .fc-box .fc-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.final-cta .fc-box .fc-handle {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.6vw, 24px);
  color: var(--accent);
  font-weight: 600;
}
.final-cta .fc-box .btn { flex: 0 0 auto; }

/* ---------- "三个不" 警示区 ---------- */
.warn {
  border: 1px solid var(--danger);
  padding: clamp(22px, 4vw, 32px);
  background: rgba(194,84,80,0.04);
}
.warn .warn-head {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--danger);
  margin-bottom: 18px;
}
.warn ul { list-style: none; }
.warn li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(194,84,80,0.18);
  color: var(--ink);
}
.warn li:last-child { border-bottom: 0; }
.warn li strong { color: var(--danger); font-family: var(--font-mono); font-size: 13px; margin-right: 10px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 22px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans);
}
.faq-q .ico {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 18px;
  flex: 0 0 auto;
  transition: transform .25s ease;
}
.faq-item.open .faq-q .ico { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  color: var(--ink-2);
}
.faq-a-inner { padding: 0 0 24px; }
.faq-item.open .faq-a { max-height: 600px; }

/* ---------- 统计数字 ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 8px 0;
}
.stat {
  background: var(--bg);
  padding: 26px 20px;
}
.stat .num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--accent);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat .label {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
@media (max-width: 560px) {
  .stat-row { grid-template-columns: 1fr; }
}

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  margin-top: 40px;
}
footer .foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
footer .sig {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.7;
}
footer .sig b { color: var(--ink); font-weight: 500; }
footer .tg {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
}
footer .tg:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 滚动揭示 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 红标（账上的坑）---------- */
.mark-red { color: var(--danger); font-weight: 600; }

/* ---------- 小屏调整 ---------- */
@media (max-width: 560px) {
  .nav-inner { height: 50px; }
  .brand .sub { display: none; }
  .nav-links { font-size: 11px; gap: 14px; }
  .hero { padding-top: 44px; }
  .num-list > li { grid-template-columns: 32px 1fr; gap: 14px; }

  /* 账本表格：窄屏转为纵向堆叠 */
  .ledger, .ledger thead, .ledger tbody, .ledger th, .ledger td, .ledger tr {
    display: block;
    border: 0;
  }
  .ledger thead { display: none; }
  .ledger tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .ledger tr:last-child { border-bottom: 0; }
  .ledger td {
    padding: 3px 0;
    font-size: 13px;
  }
  .ledger td.price { display: block; margin: 4px 0; font-size: 16px; }
  .ledger td.desc { color: var(--ink-2); }
}
