/* 青果官网样式（apps/site/assets/site.css）
 *
 * 口径与工作台一致：**暗色、紧凑、克制** —— 不做玻璃拟态、不用大留白 + 强渐变铺底那一套。
 * 品牌色取自定稿 Logo（docs\logo-concepts\final\qingguo-icon-v6r.svg）：
 *   紫 #8b5cf6 → #6d28d9（主体）· 青玉 #10b981（辉光点缀）。改配色要连 Logo 一起改。
 *
 * 不使用任何外部字体 / CDN：境内访问稳定，且页面零外部依赖。
 */

:root {
  --bg: #0b0b10;
  --bg-soft: #101017;
  --panel: #14141d;
  --panel-2: #181823;
  --line: #242433;
  --fg: #eceef4;
  --fg-2: #c2c6d4;
  --muted: #8b8fa3;
  --brand: #8b5cf6;
  --brand-deep: #6d28d9;
  --jade: #10b981;
  --radius: 14px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC",
    "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 650; line-height: 1.35; letter-spacing: 0.2px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
code { font-family: Consolas, "Cascadia Mono", Menlo, monospace; font-size: 0.92em; color: var(--fg-2); }
::selection { background: rgba(139, 92, 246, 0.35); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-soft { background: var(--bg-soft); }
.sec-head { margin-bottom: 32px; max-width: 760px; }
.sec-head h2 { font-size: 26px; }
.sec-head p { margin-top: 10px; color: var(--muted); }
.eyebrow {
  display: inline-block; margin-bottom: 10px; font-size: 12px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--jade);
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 16, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand svg { width: 30px; height: 30px; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 15px; font-weight: 650; letter-spacing: 2px; }
.brand-text i { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: 0.6px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--fg-2); }
.nav-links a:hover { color: var(--fg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600; border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn-primary { background: linear-gradient(180deg, #8b5cf6, #6d28d9); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--fg-2); background: var(--panel); }
.btn-ghost:hover { border-color: #35354a; color: var(--fg); }

/* ---------- 首屏 ---------- */
.hero { position: relative; overflow: hidden; padding: 68px 0 60px; }
.hero::before {
  content: ""; position: absolute; inset: -30% 40% 30% -10%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.20), transparent 72%);
}
.hero::after {
  content: ""; position: absolute; inset: 20% -15% -40% 55%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(16, 185, 129, 0.13), transparent 72%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 48px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--fg-2); font-size: 12.5px;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--jade); }
.hero h1 { margin: 18px 0 0; font-size: 40px; letter-spacing: 0.4px; }
.hero .lead { margin-top: 16px; max-width: 720px; color: var(--fg-2); font-size: 16px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; list-style: none; color: var(--muted); font-size: 13px; }
.chips li { display: flex; align-items: center; gap: 7px; }
.chips li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

/* 首屏右侧的流程概览：不是界面截图，别做成假 UI —— 只把九步摊开，让人一眼看见「从头到尾」 */
.hero-panel {
  padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
}
.hp-head {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 12px; letter-spacing: 1.6px; color: var(--muted); text-transform: uppercase;
}
.hp-head em { font-style: normal; letter-spacing: 0; color: var(--jade); }
.hp-list { list-style: none; counter-reset: hp; margin-top: 12px; }
.hp-list li {
  counter-increment: hp; position: relative; padding: 7px 0 7px 30px;
  font-size: 13.5px; color: var(--fg-2); border-top: 1px solid #1c1c27;
}
.hp-list li:first-child { border-top: none; }
.hp-list li::before {
  content: counter(hp, decimal-leading-zero);
  position: absolute; left: 0; top: 8px; width: 21px; height: 21px; border-radius: 6px;
  background: rgba(139, 92, 246, 0.14); color: #c4b5fd;
  font-size: 10.5px; line-height: 21px; text-align: center;
}
.hp-list li:last-child { color: var(--fg); font-weight: 600; }
.hp-list li:last-child::before { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; }
.hp-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
}
.card h3 { font-size: 15.5px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.card .tag { display: inline-block; margin-bottom: 10px; font-size: 11px; letter-spacing: 1.2px; color: var(--brand); text-transform: uppercase; }

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; counter-reset: step; }
.steps li {
  position: relative; padding: 18px 18px 18px 52px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 16px; top: 18px;
  width: 24px; height: 24px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(139, 92, 246, 0.16); color: #c4b5fd; font-size: 12px; font-weight: 700;
}
.steps b { display: block; font-size: 14.5px; }
.steps span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 600; font-size: 12.5px; letter-spacing: 0.6px; }
.table td:last-child, .table th:last-child { text-align: right; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: none; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.note { margin-top: 14px; color: var(--muted); font-size: 13px; }

/* ---------- 要点列表 ---------- */
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 24px; color: var(--fg-2); font-size: 14px; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 4px;
  border-left: 1.6px solid var(--jade); border-bottom: 1.6px solid var(--jade);
  transform: rotate(-45deg);
}

/* ---------- 下载 ---------- */
.download-card {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #171724, #121219);
}
.download-card h3 { font-size: 20px; }
.download-card p { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.spec-list { list-style: none; display: grid; gap: 8px; font-size: 13.5px; color: var(--fg-2); }
.spec-list li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.spec-list li:last-child { border-bottom: none; padding-bottom: 0; }
.spec-list span { color: var(--muted); }
.file-meta { margin-top: 14px; color: var(--muted); font-size: 12.5px; }

/* ---------- FAQ ---------- */
details.faq {
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  padding: 0 18px; margin-bottom: 10px;
}
details.faq summary {
  cursor: pointer; list-style: none; padding: 15px 0; font-size: 14.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--muted); font-size: 18px; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq .answer { padding: 0 0 16px; color: var(--muted); font-size: 13.8px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 44px 0 30px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 32px; }
.footer h4 { margin: 0 0 12px; font-size: 13px; color: var(--fg); font-weight: 650; }
.footer p, .footer li, .footer a { color: var(--muted); }
.footer a:hover { color: var(--fg); }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer .brand { margin-bottom: 12px; }
.footer-bottom {
  margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 12.5px;
}

/* ---------- 法务页 ---------- */
.doc { padding: 52px 0 72px; max-width: 820px; }
.doc h1 { font-size: 28px; }
.doc .updated { margin-top: 10px; color: var(--muted); font-size: 13px; }
.doc h2 { margin: 34px 0 10px; font-size: 17px; }
.doc p, .doc li { color: var(--fg-2); font-size: 14px; }
.doc ol, .doc ul { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.doc .back { display: inline-block; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.doc .back:hover { color: var(--fg); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .download-card, .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 52px 0; }
}
