/* ============================================================
   大郭出海记 · main.css
   设计语言移植自 Hugoplate（zeon-studio，黑白灰极简体系）：
   - 令牌：:root 浅色 / .dark 深色 双套 CSS 变量
   - 表格：圆角细外框(::before) + 浅灰表头带 + 松弛行距，无斑马纹
   - 框架：1320px 外框、sticky 不透明页头、浅灰页脚
   - 中文字体：系统黑体族（不加载远程 Google Fonts）
   类名与 JS 钩子（#filter-chips / #card-grid / .faq / #site-search）保持不变
   ============================================================ */

:root {
  /* Hugoplate 浅色令牌 */
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --ink: #121212;        /* primary：按钮、强调、active */
  --text: #040404;       /* 标题 / strong */
  --text-2: #444444;     /* 正文 */
  --text-3: #717171;     /* 弱化说明 */
  --border: #eaeaea;
  --border-strong: #cbcbcb;
  /* 品牌三色：墨(骨架) + 海蓝(主色) + 落日橙(强调，取自 banner「赚刀乐」)；
     分类收敛四族：蓝=钱的基建 / 青=AI / 橙=增长 / 金=成果 */
  --sea: #1e4e8c;
  --cyan: #0e7490;
  --sun: #d96f32;
  --gold: #b8860b;
  --paper: #f7f1e4;
  --accent: var(--sea);
  --positive: #16a34a;
  --warning: var(--sun);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --r-s: 4px;
  --r-m: 8px;
  --r-l: 16px;
  color-scheme: light;
}

.dark {
  /* Hugoplate 深色令牌 */
  --bg: #1c1c1c;
  --bg-soft: #222222;
  --ink: #ffffff;
  --text: #ffffff;
  --text-2: #b4afb6;
  --text-3: #8f8a93;
  --border: #3e3e3e;
  --border-strong: #575757;
  --sea: #8ab0dd;
  --cyan: #5fc0d8;
  --sun: #e08a5a;
  --gold: #d9b44a;
  color-scheme: dark;
}

/* ---------- 基础 ---------- */

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
  background: var(--bg);
  transition: background-color .2s ease, color .2s ease;
  overflow-x: clip; /* hero 通栏负 margin 防横向滚动 */
}

a { color: inherit; text-decoration: none; }
::selection { background: rgba(30, 78, 140, .16); }

img { max-width: 100%; height: auto; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ---------- 页头 / 导航（Hugoplate：sticky 不透明、无阴影） ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  flex-wrap: wrap;
}

.logo { display: flex; flex-direction: column; line-height: 1.35; font-size: 21px; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.logo .domain { font-size: 14px; font-weight: 400; color: var(--text-3); margin-left: 8px; }
.logo .logo-line2 { font-size: 13.5px; font-weight: 400; color: var(--text-2); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }

.nav-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: var(--r-s);
  cursor: pointer;
}
.nav-link:hover { color: var(--ink); background: var(--bg-soft); }
.nav-link.active { color: var(--text); }
.nav a.nav-cta { border: 1px solid #1e4e8c; background: #1e4e8c; color: #ffffff; font-weight: 600; }
.nav a.nav-cta:hover { background: #d96f32; border-color: #d96f32; color: #ffffff; }

/* 二级下拉：主项是链接（点击跳列表页），▾ 按钮切换；桌面 hover/focus 也展开（top:100% 无缝隙） */
.nav-has-children { position: relative; display: flex; align-items: center; }
.nav-caret {
  border: 0;
  background: none;
  padding: 8px 2px 8px 4px;
  color: var(--text-3);
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease;
}
.nav-caret:hover { color: var(--text); }
.nav-caret[aria-expanded="true"] { transform: rotate(180deg); }

.nav-dropdown {
  display: none;
  list-style: none;
  margin: 0;
  padding: 10px;
  min-width: 180px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .07);
}
.dark .nav-dropdown { box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.nav-dropdown a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: var(--r-s);
}
.nav-dropdown a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-dropdown a.active { color: var(--text); font-weight: 600; }

.nav-has-children.open .nav-dropdown { display: block; }

@media (min-width: 900px) {
  .nav-dropdown { position: absolute; top: 100%; left: 0; }
  .nav-has-children:hover .nav-dropdown,
  .nav-has-children:focus-within .nav-dropdown { display: block; }
}

/* 深浅切换按钮 */
.theme-toggle {
  flex: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s ease, color .15s ease;
}
.theme-toggle:hover { border-color: var(--border-strong); color: var(--text); }
.theme-toggle::before { content: "☾"; }
.dark .theme-toggle::before { content: "☀"; }

/* ---------- 首页 hero：通栏 banner 图（static/banner.png，2.67:1）——文案做在图里，页面只铺图 ---------- */

.hero-scene-wrap {
  margin-inline: calc(50% - 50vw); /* 通栏突破 container */
  background-size: cover;
  background-position: center;
  background-color: #92a4a0; /* 图未加载前的兜底底色（浅色 banner 近似色）；banner 图随深浅主题由 head.html 内联注入 */
  min-height: clamp(380px, 42vw, 580px);
  display: flex;
  flex-direction: column; /* 波浪沉底 */
  padding-top: 48px;
}
html.dark .hero-scene-wrap { background-color: #38393d; }
.hero-wave { line-height: 0; margin-top: auto; }
.hero-wave svg { width: 100%; height: 48px; display: block; }
.hero-wave path { fill: var(--bg); }

/* 搜索框（筛选行内，普通底色，深浅自适应） */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-m);
  color: var(--text-3);
  font-size: 14px;
  background: var(--bg-soft);
  transition: border-color .15s ease;
}
.search-box:focus-within { border-color: var(--sea); }
.search-box input { flex: 1; border: 0; outline: 0; background: none; font: inherit; color: var(--text); min-width: 0; }
.search-box input::placeholder { color: var(--text-3); }

/* 筛选行：搜索框 + 方向 chips 同一行 */
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-bar .search-wrap { margin: 0; max-width: none; flex: 1 1 260px; min-width: 220px; }

/* ---------- 区块标题 / 筛选 chips ---------- */

.section-label { font-size: 14px; font-weight: 600; color: var(--text-2); margin: 32px 0 14px; }

.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.fchip {
  border: 1px solid var(--border-strong);
  background: none;
  color: var(--text-2);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.fchip:hover { color: var(--text); }
.fchip.on { border-color: var(--sea); color: var(--sea); background: rgba(30, 78, 140, .07); }
.dark .fchip.on { border-color: var(--sea); color: var(--sea); background: rgba(138, 176, 221, .1); }

/* ---------- 卡片（扁平、细边框、hover 主色条） ---------- */

.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
@media (max-width: 720px) { .card-grid { grid-template-columns: 1fr; } .card-thumb { flex-basis: 118px; } }

.card { position: relative; border: 1px solid var(--border); border-radius: var(--r-m); transition: border-color .15s ease; }
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: var(--sea);
  transform: scaleY(0);
  transition: transform .18s ease-out;
}
.card[data-cat="corp"]::before { background: var(--sea); }
.card[data-cat="fx"]::before { background: var(--sea); }
.card[data-cat="growth"]::before { background: var(--sun); }
.card[data-cat="aidev"]::before { background: var(--cyan); }
.card[data-cat="aitool"]::before { background: var(--cyan); }
.card[data-cat="story"]::before { background: var(--gold); }
.card[data-cat="low"]::before { background: var(--ink); }
.card:hover { border-color: var(--border-strong); }
.card:hover::before { transform: scaleY(1); }

.card-link { display: flex; align-items: center; gap: 16px; padding: 16px 18px 16px 20px; }
.card-thumb { flex: 0 0 168px; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--r-m); border: 1px solid var(--border); background: var(--bg-soft); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { flex: 1; min-width: 0; }

.chip { display: inline-block; padding: 2px 9px; border-radius: var(--r-s); font-size: 12px; font-weight: 600; }
.k-stack, .k-corp, .k-fx { background: rgba(30, 78, 140, .10); color: var(--sea); }
.k-growth, .k-high { background: rgba(217, 111, 50, .12); color: var(--sun); }
.k-aidev, .k-aitool { background: rgba(14, 116, 144, .10); color: var(--cyan); }
.k-story { background: rgba(184, 134, 11, .13); color: var(--gold); }
.k-mid { background: rgba(30, 78, 140, .10); color: var(--sea); }
.k-low { background: rgba(127, 127, 127, .14); color: var(--text-2); }
.dark .k-stack, .dark .k-corp, .dark .k-fx, .dark .k-mid { background: rgba(138, 176, 221, .16); color: #9dbbe4; }
.dark .k-growth, .dark .k-high { background: rgba(224, 138, 90, .15); color: #e8a074; }
.dark .k-aidev, .dark .k-aitool { background: rgba(95, 192, 216, .14); color: #7cc9dc; }
.dark .k-story { background: rgba(217, 180, 74, .15); color: #d9b44a; }
.dark .k-low { background: rgba(127, 127, 127, .2); color: #b4afb6; }

.card-title { font-size: 17px; font-weight: 700; line-height: 1.5; margin: 10px 0 6px; color: var(--text); }
.card-excerpt {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta { display: flex; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); flex-wrap: wrap; }

.verify { border-bottom: 1px dotted var(--text-3); }

.no-result { color: var(--text-3); font-size: 14px; }

/* ---------- 按钮（Hugoplate btn 模式） ---------- */

.btn {
  display: inline-block;
  padding: 9px 22px;
  border-radius: var(--r-m);
  border: 1px solid var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.5;
  transition: opacity .15s ease, background-color .15s ease, color .15s ease;
}
.btn-solid { background: #1e4e8c; border-color: #1e4e8c; color: #ffffff; }
.btn-solid:hover { background: #d96f32; border-color: #d96f32; opacity: 1; }
.btn-ghost { background: none; color: var(--text); margin-left: 8px; }
.btn-ghost:hover { background: var(--text); color: var(--bg); }

/* ---------- 横幅位 ---------- */

.ad-slot {
  margin: 48px 0 0;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--ink);
  border-radius: 0 var(--r-m) var(--r-m) 0;
  background: var(--bg-soft);
}
.ad-slot .ad-tag { font-size: 12px; font-weight: 600; color: var(--text-3); letter-spacing: .08em; margin-bottom: 8px; }
.ad-slot .ad-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.ad-slot .ad-desc { font-size: 14px; color: var(--text-2); margin-bottom: 18px; }

/* ---------- 列表 / 栏目页头（Hugoplate page-header 渐变盒） ---------- */

.breadcrumb { font-size: 13px; color: var(--text-3); margin: 0 0 10px; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { margin: 0 8px; }
.breadcrumb .current { color: var(--text-2); }

.page-header {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-radius: var(--r-l);
  padding: 36px 32px;
  margin: 28px 0;
}
.list-title { font-size: 28px; font-weight: 700; color: var(--text); margin: 0 0 8px; letter-spacing: -.01em; }
.list-desc { font-size: 15px; color: var(--text-2); margin: 0 0 4px; max-width: 640px; }
.list-stack { display: flex; flex-direction: column; gap: 10px; }

/* ---------- 文章页 ---------- */

.post { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.post-title { font-size: clamp(26px, 4vw, 34px); font-weight: 700; line-height: 1.4; letter-spacing: -.01em; color: var(--text); margin: 28px 0 12px; }
.post-meta { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); margin-bottom: 32px; }

.post-content { font-size: 16px; line-height: 1.85; }
.post-content h2 { font-size: 23px; font-weight: 700; color: var(--text); margin: 44px 0 14px; letter-spacing: -.01em; }
.post-content h3 { font-size: 18px; font-weight: 700; color: var(--text); margin: 30px 0 10px; }
.post-content h4 { font-size: 16px; font-weight: 700; color: var(--text); margin: 26px 0 8px; }
.post-content p { margin: 0 0 18px; }

.post-content a {
  color: var(--sea);
  background-image: linear-gradient(var(--sea), var(--sea));
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .18s ease-out;
}
.post-content a:hover { background-size: 100% 1.5px; }

.post-content strong { color: var(--text); font-weight: 600; }

.post-content code { font-family: var(--font-mono); font-size: .875em; background: var(--bg-soft); border: 1px solid var(--border); padding: 2px 6px; border-radius: 4px; }
.post-content pre {
  background: #161618;
  color: #f8f8f2;
  border-radius: var(--r-m);
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 20px;
}
.post-content pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }

/* 引用块：Hugoplate 粗左边 + 浅底 + 圆角；这里放照抄模板，用等宽字体 */
.post-content blockquote {
  margin: 24px 0;
  padding: 20px 26px;
  border-left: 10px solid var(--sea);
  border-radius: var(--r-m);
  background: var(--bg-soft);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.9;
  white-space: pre-line;
}
.post-content blockquote p { margin-bottom: 8px; }

/* ---------- 表格（Hugoplate 配方：圆角细框 + 灰表头 + 松弛行距） ---------- */

.table-wrap { overflow-x: auto; margin: 0 0 22px; }

.post-content table,
table.deliver-table {
  position: relative;
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  overflow: hidden;
  border-radius: var(--r-m);
}
.post-content table::before,
table.deliver-table::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  border: 1px solid var(--border);
  border-radius: inherit;
  pointer-events: none;
}
.post-content th,
.post-content td,
table.deliver-table th,
table.deliver-table td {
  position: relative;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
.post-content th,
table.deliver-table th {
  background: var(--bg-soft);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-2);
  padding: 16px 14px;
}
.post-content td,
table.deliver-table td { padding: 18px 14px; border-bottom: 1px solid var(--border); }
.post-content tr:last-child td,
table.deliver-table tr:last-child td { border-bottom: 0; }

/* ---------- 步骤 / 周列表 ---------- */

.steps { counter-reset: s; list-style: none; margin: 0 0 26px; padding: 0; }
.steps li { position: relative; padding: 0 0 20px 44px; font-size: 15px; line-height: 1.7; color: var(--text-2); }
.steps li b { color: var(--text); font-weight: 600; }
.steps li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 0; top: 2px;
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.week-list { list-style: none; counter-reset: w; margin: 0 0 16px; padding: 0; }
.week-list li { position: relative; padding: 0 0 18px 52px; font-size: 15px; color: var(--text-2); line-height: 1.7; }
.week-list li b { color: var(--text); font-weight: 600; }
.week-list li::before {
  counter-increment: w;
  content: "W" counter(w);
  position: absolute;
  left: 0; top: 2px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-s);
  padding: 2px 6px;
  color: var(--text);
}

/* ---------- 先说结论 ---------- */

.tldr {
  border-left: 4px solid var(--sun);
  background: var(--bg-soft);
  border-radius: 0 var(--r-m) var(--r-m) 0;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 30px;
  color: var(--text-2);
}
.tldr b { color: var(--text); font-weight: 600; }

/* ---------- FAQ 手风琴 ---------- */

.faq-group { margin-bottom: 8px; }
.faq { border: 1px solid var(--border); border-radius: var(--r-m); margin-bottom: 8px; overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 14px 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.faq-q:hover { background: var(--bg-soft); }
.faq .pm { flex: none; color: var(--text-3); font-weight: 400; transition: transform .18s ease-out; }
.faq.open .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease-out; }
.faq-a > div { padding: 4px 18px 16px; font-size: 14.5px; line-height: 1.8; color: var(--text-2); }

/* ---------- CTA / 标签 / 相关 / 上下篇 ---------- */

.cta-lead {
  margin: 40px 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  background: var(--bg-soft);
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.cta-lead .cta-icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: var(--r-m);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.cta-lead .cta-body { flex: 1; min-width: 200px; }
.cta-lead .cta-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.cta-lead .cta-desc { font-size: 13px; color: var(--text-2); }
.cta-lead .cta-btn { flex: none; }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 36px; }
.tag { font-size: 13px; padding: 4px 13px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
.tag:hover { border-color: var(--ink); background: var(--bg-soft); color: var(--text); }

.rel-list { display: flex; flex-direction: column; gap: 8px; }
.rel-list a { font-size: 15px; padding: 13px 18px; border: 1px solid var(--border); border-radius: var(--r-m); color: var(--text-2); transition: border-color .15s ease, background-color .15s ease; }
.rel-list a:hover { background: var(--bg-soft); border-color: var(--border-strong); color: var(--text); }

/* 课程大框架页：学习路径（阶段卡 → 箭头 → 阶段卡，窄屏自动竖排箭头朝下）。
   每个课程的大框架页都用这套：.lp-flow（外框）> .learn-path > (.lp-stage + .lp-arrow)*N */
.lp-flow { position: relative; border: 1px solid var(--border); border-radius: var(--r-l); padding: 24px 18px 18px; }
/* 正文栏只有 800px，四张卡摆不下——宽屏时让面板破栏放宽，卡才有地方写字 */
@media (min-width: 1020px) {
  .lp-flow { width: min(1040px, calc(100vw - 48px)); max-width: none;
    margin-left: calc(50% - min(1040px, calc(100vw - 48px)) / 2);
    margin-right: calc(50% - min(1040px, calc(100vw - 48px)) / 2); }
}
.lp-flow-tag { position: absolute; top: -10px; left: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 99px; padding: 1px 10px; font-size: 11.5px; color: var(--text-3); line-height: 1.6; }
.lp-fig { margin: 16px 0; }
.lp-fig img { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: var(--r-m); }
.lp-fig figcaption { font-size: 13px; color: var(--text-3); text-align: center; margin-top: 8px; }
/* 图下操作框：大图讲画面，框里放对应的课链，颜色跟图呼应（默认藏蓝＝插图主墨色，warm 变暖橙） */
.lp-box { --b: #1e4e8c; border: 1.5px solid color-mix(in srgb, var(--b) 50%, transparent); background: color-mix(in srgb, var(--b) 6%, transparent); border-radius: var(--r-m); padding: 12px 14px 14px; margin: -6px 0 24px; }
.lp-box.warm { --b: #d96f32; }
.lp-box .t { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: color-mix(in srgb, var(--b) 85%, var(--text)); margin: 0 0 4px; }
.lp-box a { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--b) 45%, transparent); border-left: 4px solid var(--b); border-radius: var(--r-s); padding: 9px 12px; margin-top: 7px; font-size: 13.5px; font-weight: 600; color: var(--text); text-decoration: none; line-height: 1.45; }
.lp-box a::after { content: "→"; margin-left: auto; color: var(--b); font-weight: 700; flex-shrink: 0; }
.lp-box a:hover { background: color-mix(in srgb, var(--b) 12%, var(--bg)); border-color: var(--b); }
/* 一站式安装包：跟着做区末尾的"怕麻烦出口"，重边框压轴 */
.lp-allin { border: 1.5px solid var(--text); background: var(--bg-soft); border-radius: var(--r-m); padding: 20px 22px; margin: 26px 0 18px; }
.lp-allin .hd { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.lp-allin p { font-size: 14px; color: var(--text-2); line-height: 1.7; margin: 0 0 10px; }
.lp-allin p.sub { font-size: 13px; color: var(--text-3); }
.lp-allin .btn { margin-top: 4px; }
.lp-allin-dl { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- /download/ 下载页 ---------- */
.dl-panel .btn { font-size: 16px; padding: 13px 28px; }
.dl-panel .lp-allin-dl { margin-top: 10px; }
.dl-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 0 0 8px; }
.dl-shot { margin: 0; border: 1px solid var(--border); border-radius: var(--r-m); overflow: hidden; background: var(--bg-soft); }
.dl-shot img { display: block; width: 100%; height: auto; }
.dl-shot figcaption { font-size: 12.5px; color: var(--text-3); padding: 8px 12px; border-top: 1px solid var(--border); }
.dl-shot.ph { border: 1.5px dashed var(--border-strong); background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 170px; font-size: 13px; color: var(--text-3); }
.dl-shot.ph b { font-size: 14px; color: var(--text-2); }
.dl-steps { list-style: none; margin: 0 0 10px; padding: 0; counter-reset: dlstep; }
.dl-steps li { counter-increment: dlstep; position: relative; padding: 12px 0 12px 46px; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--text-2); line-height: 1.65; }
.dl-steps li:last-child { border-bottom: none; }
.dl-steps li::before { content: counter(dlstep); position: absolute; left: 0; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--text); color: var(--bg); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.dl-steps a { color: var(--text); font-weight: 600; }
.dl-check { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.dl-check li { border: 1px solid var(--border); border-radius: var(--r-m); background: var(--bg-soft); padding: 12px 14px; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.dl-check li::before { content: "✅ "; }
.dl-manual { font-size: 14px; color: var(--text-2); border-top: 1px solid var(--border); margin-top: 26px; padding-top: 16px; }
.dl-manual a { color: var(--text); font-weight: 600; }

/* ---------- 首页 AI 工具轮播 ---------- */
.cr-wrap { margin: 4px 0 6px; }
.cr-stage { position: relative; }
.cr-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cr-track::-webkit-scrollbar { display: none; }
.cr-slide { flex: 0 0 100%; scroll-snap-align: start; }
.cr-pitch { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; min-height: 300px; padding: 34px 22px; border: 1.5px solid var(--sea); border-radius: var(--r-m); background: var(--paper); }
.dark .cr-pitch { background: var(--bg-soft); }
.cr-pitch .cr-t { font-size: 22px; font-weight: 700; color: var(--sea); }
.cr-pitch p { max-width: 560px; margin: 0; font-size: 15px; color: var(--text-2); line-height: 1.7; }
.cr-pitch .lp-allin-dl { justify-content: center; margin: 6px 0 0; }
.cr-more { font-size: 13px; color: var(--text-3); }
.cr-more:hover { color: var(--text); }
.cr-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 300px; border: 1.5px dashed var(--border-strong); border-radius: var(--r-m); color: var(--text-3); font-size: 13px; }
.cr-ph b { font-size: 14px; color: var(--text-2); }
.cr-shot { margin: 0; border: 1px solid var(--border); border-radius: var(--r-m); overflow: hidden; background: var(--bg-soft); }
.cr-shot img { display: block; width: 100%; height: auto; }
.cr-shot figcaption { font-size: 12.5px; color: var(--text-3); padding: 8px 12px; border-top: 1px solid var(--border); }
.cr-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cr-btn:hover { background: var(--text); color: var(--bg); }
.cr-prev { left: 8px; }
.cr-next { right: 8px; }
.cr-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.cr-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--border-strong); cursor: pointer; }
.cr-dots button.on { background: var(--sea); }
@media (max-width: 640px) {
  .cr-pitch { min-height: 260px; padding: 24px 16px; }
  .cr-pitch .cr-t { font-size: 19px; }
  .cr-ph { min-height: 260px; }
}
.learn-path { display: flex; align-items: stretch; gap: 10px; }
.lp-stage { flex: 1 1 0; min-width: 0; border: 1px solid var(--border); border-radius: var(--r-m); padding: 15px 14px; }
.lp-head { display: flex; align-items: center; gap: 9px; }
.lp-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 99px; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 700; flex-shrink: 0; }
.lp-head b { font-size: 14.5px; color: var(--text); }
.lp-ico { margin-left: auto; font-size: 20px; line-height: 1; }
.lp-what { font-size: 12px; color: var(--text-3); margin: 6px 0 2px; }
.lp-lessons a { display: block; font-size: 13px; color: var(--text-2); text-decoration: none; padding: 7px 10px; border: 1px dashed var(--border); border-radius: var(--r-s); margin-top: 7px; line-height: 1.45; }
.lp-lessons a:hover { color: var(--text); border-color: var(--border-strong); border-style: solid; }
.lp-arrow { display: flex; align-items: center; flex: 0 0 40px; min-width: 0; gap: 3px; color: var(--text-3); }
.lp-arrow::before { content: ""; order: 2; width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 10px solid currentColor; }
.lp-arrow::after { content: ""; order: 1; flex: 1; height: 2px; border-radius: 2px; opacity: .5;
  background-image: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 10px);
  background-size: 10px 2px; background-repeat: repeat-x; }

/* 大框架页：开篇"看懂关系"组合图（工具 + 一张卡 = 能干活，各多选一） */
.lp-explain { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; margin: 2px 0 18px; }
.lp-ex { flex: 1 1 200px; border: 1px solid var(--border); border-radius: var(--r-m); padding: 12px 14px; }
.lp-ex .t { font-size: 13.5px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 7px; }
.lp-ex .d { font-size: 12.5px; color: var(--text-3); margin-top: 4px; line-height: 1.6; }
.lp-ex .d b { color: var(--text-2); }
.lp-pick { display: inline-block; font-size: 11px; font-weight: 600; color: var(--text-2); border: 1px solid var(--border-strong); border-radius: 99px; padding: 0 8px; margin-left: 2px; white-space: nowrap; }
.lp-op { display: flex; align-items: center; font-size: 22px; font-weight: 700; color: var(--text-3); flex: 0 0 auto; }
@media (max-width: 640px) { .lp-op { display: none; } }
@media (max-width: 1020px) {
  .learn-path { flex-direction: column; }
  .lp-arrow { justify-content: center; align-self: center; width: 44px; transform: rotate(90deg); }
}

/* 流程动画：虚线轨道一直向前爬，箭头呼吸，阶段序号按 1→2→3→4 顺序逐个亮。
   加第五个阶段时，给 .lp-stage:nth-of-type(9) 补一条 delay */
@keyframes lp-track { to { background-position-x: 10px; } }
@keyframes lp-head { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes lp-num { 0% { transform: scale(1); } 4% { transform: scale(1.22); } 11% { transform: scale(1); } 100% { transform: scale(1); } }
@keyframes lp-glow { 0% { border-color: var(--text-2); } 12%, 100% { border-color: var(--border); } }
@media (prefers-reduced-motion: no-preference) {
  .lp-arrow::after { animation: lp-track 0.9s linear infinite; }
  .lp-arrow::before { animation: lp-head 1.8s ease-in-out infinite; }
  .lp-num { animation: lp-num 4.8s ease-in-out infinite; }
  .lp-stage { animation: lp-glow 4.8s infinite; }
  .lp-stage:nth-of-type(1) { animation-delay: 0s; }
  .lp-stage:nth-of-type(3) { animation-delay: 1.2s; }
  .lp-stage:nth-of-type(5) { animation-delay: 2.4s; }
  .lp-stage:nth-of-type(7) { animation-delay: 3.6s; }
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.post-nav a { color: var(--text-2); max-width: 48%; }
.post-nav a:hover { color: var(--text); }
.post-nav .next { text-align: right; margin-left: auto; }

/* ---------- 分页 ---------- */

.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.pager a { padding: 6px 16px; border: 1px solid var(--border); border-radius: var(--r-s); font-size: 14px; color: var(--text-2); transition: border-color .15s ease, color .15s ease; }
.pager a:hover { border-color: var(--ink); color: var(--text); }
.pager .pager-info { font-size: 13px; color: var(--text-3); font-family: var(--font-mono); }

/* ---------- 关于页 ---------- */

.about-hero { padding: 56px 0 32px; }
.about-hero h1 { font-size: 34px; font-weight: 700; color: var(--text); margin: 0 0 16px; letter-spacing: -.01em; }
.about-hero p { color: var(--text-2); max-width: 640px; margin: 0 0 10px; font-size: 16px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0; }
@media (max-width: 720px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-box { border: 1px solid var(--border); border-radius: var(--r-m); padding: 22px; text-align: center; background: var(--bg-soft); }
.stat-box .num { font-size: 24px; font-weight: 700; color: var(--text); }
.stat-box .lab { font-size: 13px; color: var(--text-3); margin-top: 4px; }

.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
@media (max-width: 720px) { .entry-grid { grid-template-columns: 1fr; } }
.entry-card { border: 1px solid var(--border); border-radius: var(--r-m); padding: 20px; display: block; background: var(--bg); transition: border-color .15s ease; }
.entry-card:hover { border-color: var(--border-strong); }
.entry-card .e-tag { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.entry-card .e-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.entry-card .e-desc { font-size: 13px; color: var(--text-2); line-height: 1.65; }

/* ---------- 公众号二维码卡片 ---------- */

.wechat-card {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 26px 28px;
  margin: 36px 0;
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  background: var(--bg-soft);
  flex-wrap: wrap;
}
.qr-box {
  flex: none;
  width: 180px;
  height: 180px;
  border-radius: var(--r-m);
  background: #ffffff;
  padding: 10px;
  border: 1px solid var(--border);
  font: inherit;
  cursor: zoom-in;
  transition: border-color .15s ease;
}
.qr-box:hover { border-color: var(--border-strong); }
.qr-box img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* 二维码放大弹层 */
.qr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.qr-lightbox[hidden] { display: none; }
.qr-lightbox-card {
  background: #ffffff;
  border-radius: var(--r-l);
  padding: 20px 20px 16px;
  max-width: min(420px, 86vw);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
}
.qr-lightbox-card img { width: 100%; height: auto; display: block; border-radius: var(--r-s); }
.qr-lightbox-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #17171a;
}
.qr-lightbox-sub { margin-top: 2px; font-size: 12.5px; font-weight: 400; color: #717171; }

/* ---------- 站内搜索结果下拉 ---------- */

.search-wrap { position: relative; max-width: 440px; margin: 0 auto; }

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .16);
  overflow-y: auto;
  max-height: min(60vh, 480px);
  text-align: left;
  z-index: 30;
}
.search-results[hidden] { display: none; }
.sr-item {
  display: block;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  transition: background-color .12s ease;
}
.sr-item:last-child { border-bottom: 0; }
.sr-item:hover { background: var(--bg-soft); }
.sr-title { display: block; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.5; }
.sr-desc { display: block; font-size: 12.5px; color: var(--text-3); line-height: 1.55; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sr-empty { padding: 14px 16px; font-size: 13.5px; color: var(--text-3); }

/* ---------- 留言表单（关于页） ---------- */

.msg-form {
  margin: 36px 0 0;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  background: var(--bg-soft);
}
.msg-form .form-title { font-size: 17px; font-weight: 700; color: var(--text); margin: 0 0 4px; }
.msg-form .form-sub { font-size: 13px; color: var(--text-3); margin: 0 0 18px; }
.msg-row { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.msg-field { flex: 1; min-width: 180px; }
.msg-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.msg-field input, .msg-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-m);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: 0;
  transition: border-color .15s ease;
}
.msg-field input:focus, .msg-field textarea:focus { border-color: var(--ink); }
.msg-field textarea { min-height: 96px; resize: vertical; }
.msg-field.hp { position: absolute; left: -9999px; top: -9999px; } /* honeypot：人看不见，机器人会填 */
.msg-form .msg-ok, .msg-form .msg-fail { font-size: 13.5px; margin: 12px 0 0; }
.msg-form .msg-ok { color: var(--positive); }
.msg-form .msg-fail { color: var(--warning); }
.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100% - 20px);
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.7;
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-s);
}
.qr-placeholder span { font-size: 11px; font-family: var(--font-mono); word-break: break-all; padding: 0 6px; }
.wechat-info { flex: 1; min-width: 240px; }
.wechat-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.wechat-desc { font-size: 14px; color: var(--text-2); line-height: 1.75; margin: 0 0 8px; }
.wechat-desc b { color: var(--text); font-weight: 600; }
.wechat-note { font-size: 12.5px; color: var(--text-3); margin: 10px 0 0; }

@media (max-width: 640px) {
  .wechat-card { justify-content: center; text-align: center; }
  .wechat-desc, .wechat-note { text-align: center; }
}

/* ---------- 课程 / 生意系统页首屏 ---------- */

.course-hero { padding: 56px 0 36px; text-align: center; }
.course-hero .c-tag { font-size: 13px; color: var(--warning); font-weight: 600; margin-bottom: 12px; }
.course-hero h1 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 700; line-height: 1.35; color: var(--text); margin: 0 0 16px; letter-spacing: -.01em; }
.course-hero .c-sub { font-size: 16px; color: var(--text-2); max-width: 580px; margin: 0 auto 26px; }

.price-box { display: inline-block; border: 1px solid var(--border-strong); border-radius: var(--r-m); padding: 16px 28px; margin-bottom: 20px; }
.price-box .p-now { font-size: 30px; font-weight: 700; color: var(--text); }
.price-box .p-note { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* ---------- 页脚（Hugoplate：浅灰底 + 顶部细线） ---------- */

.site-footer { margin-top: 72px; background: var(--bg-soft); border-top: 1px solid var(--border); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 22px 24px;
  font-size: 12.5px;
  color: var(--text-3);
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 14px 16px; }
  .hero-scene-wrap { min-height: 460px; background-position: 25% center; } /* 文案在图左侧，窄屏裁切保住标题 */
  .page-header { padding: 26px 20px; margin: 20px 0; }
}
