/* 知源日报 SourceDaily — 落地页样式
 *
 * ## 扁平化（Flat）的具体约束
 *
 * 刻意**不使用**以下效果，这是扁平化与「现代玻璃拟态」的分界线：
 *   - 阴影（box-shadow）
 *   - 渐变（linear-gradient / radial-gradient）
 *   - 半透明模糊（backdrop-filter）
 *   - 大圆角（radius 上限 4px）
 *
 * 靠什么建立层次：纯色块对比、留白、字号与字重、以及一条 3px 的品牌色
 * 硬边线。这样在低端机、截图、打印、暗色环境里都不会失真。
 */

/* ---------- 基础 ---------- */
:root {
  --brand: #1A73E8;
  --brand-dark: #1557B0;
  --ink: #202124;
  --ink-2: #5F6368;
  --ink-3: #80868B;
  --line: #DADCE0;
  --bg: #FFFFFF;
  --bg-alt: #F1F3F5;
  --ok: #188038;
  --warn: #E37400;
  --danger: #D93025;
  --pending: #5F6368;
  /* 扁平化：滚动与过渡仍然保留少量，但只作用于颜色，不做位移/缩放 */
  --t: 120ms ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--brand-dark); }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  /* 扁平化：用一条硬边线分隔，而不是阴影 */
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.brand:hover { color: var(--ink); }

/* 纯 CSS 方块 logo：3 条横线，和 favicon 一致 */
.brand-mark {
  display: inline-block;
  width: 26px;
  height: 26px;
  background: var(--brand);
  position: relative;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  height: 3px;
  background: #fff;
}
.brand-mark::before { top: 7px; width: 16px; }
.brand-mark::after { top: 14px; width: 10px; }

.brand-name { font-size: 17px; letter-spacing: .02em; }
.brand-en {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  /* 扁平化：整块纯色背景，不用渐变 */
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -.01em;
}

/* 强调用「品牌色 + 下边硬线」，不用渐变文字 */
.hero h1 em {
  font-style: normal;
  color: var(--brand);
  box-shadow: inset 0 -10px 0 #DCE8FB;
}

.lead {
  margin: 0 0 28px;
  font-size: 16.5px;
  color: var(--ink-2);
  max-width: 34em;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: 3px;
  transition: background var(--t), color var(--t), border-color var(--t);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.hero-note {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- Hero 视觉：纯色块手机示意 ---------- */
.hero-visual { display: flex; justify-content: center; }

.phone {
  width: 260px;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 14px 12px 18px;
}

.phone-bar {
  height: 8px;
  width: 42px;
  background: var(--ink);
  margin: 0 auto 14px;
}

.phone-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  padding: 10px 10px 12px;
  margin-bottom: 8px;
}

.line {
  height: 8px;
  background: var(--line);
  margin-bottom: 7px;
}
.line.w100 { width: 100%; }
.line.w95 { width: 95%; }
.line.w90 { width: 90%; }
.line.w85 { width: 85%; }
.line.w75 { width: 75%; }
.line.w70 { width: 70%; }
.line.w60 { width: 60%; }
.line.w45 { width: 45%; }

.chips { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

.chip {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.6;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-2);
  white-space: nowrap;
}
.chip-ok { color: var(--ok); border-color: var(--ok); }
.chip-warn { color: var(--warn); border-color: var(--warn); }

/* ---------- 数字条 ---------- */
.stats { border-bottom: 1px solid var(--line); }

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 30px 20px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.stat:last-child { border-right: 0; }

.stat-num {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.2;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- 通用区块 ---------- */
.section { padding: 76px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -.01em;
}

.section-lead {
  margin: 0 0 40px;
  max-width: 46em;
  color: var(--ink-2);
  font-size: 16px;
}

/* ---------- 功能网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  /* 扁平化：用 1px 背景色缝隙画出网格，避免给每个卡片加阴影 */
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--bg);
  padding: 28px 24px 30px;
}

.card-mark {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 2px 8px;
  margin-bottom: 14px;
  color: #fff;
  border-radius: 2px;
}
.mark-blue { background: var(--brand); }
.mark-green { background: var(--ok); }
.mark-orange { background: var(--warn); }
.mark-purple { background: #7B1FA2; }
.mark-cyan { background: #00838F; }
.mark-red { background: var(--danger); }

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.75;
}

/* ---------- 核实 ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.trust-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  padding: 20px 22px;
}

.badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  padding: 2px 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
  margin-bottom: 10px;
}
.badge-ok { color: var(--ok); }
.badge-warn { color: var(--warn); }
.badge-danger { color: var(--danger); }
.badge-pending { color: var(--pending); }

.trust-item p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.flat-note {
  border-left: 3px solid var(--brand);
  background: var(--bg);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--ink-2);
}
.flat-note strong { color: var(--ink); }

/* ---------- 下载 ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 3px;
  color: var(--ink);
  transition: background var(--t), border-color var(--t);
}

.download-card:hover {
  background: var(--bg-alt);
  border-color: var(--brand);
  color: var(--ink);
}

.os-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  background: var(--ink);
  position: relative;
}
/* 扁平几何图形区分平台：安卓用三角，鸿蒙用方块叠层 */
.os-android { background: var(--ok); }
.os-android::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 14px;
  width: 0;
  height: 0;
  border-left: 10px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.os-harmony { background: var(--brand); }
.os-harmony::before,
.os-harmony::after {
  content: "";
  position: absolute;
  background: #fff;
}
.os-harmony::before { left: 11px; top: 12px; width: 22px; height: 8px; }
.os-harmony::after { left: 11px; top: 24px; width: 22px; height: 8px; }

.download-body { display: flex; flex-direction: column; }
.download-title { font-size: 18px; font-weight: 800; }
.download-meta { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.download-hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.download-arrow {
  margin-left: auto;
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
}

.install-help {
  border: 1px solid var(--line);
  padding: 26px 28px;
}

.install-help h3 {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 700;
}

.help-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.install-help h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}

.install-help ol {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink-2);
}
.install-help li { margin-bottom: 4px; }

.fine-print {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- 关于 ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}

.about-list { margin: 0; }
.about-list > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.about-list > div:last-child { border-bottom: 0; }
.about-list dt { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.about-list dd { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--ink);
  color: #BDC1C6;
  padding: 44px 0 40px;
  border-top: 4px solid var(--brand);
}

.footer-inner { display: flex; flex-direction: column; gap: 14px; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.footer-disclaimer {
  margin: 0;
  max-width: 62em;
  font-size: 12.5px;
  line-height: 1.8;
  color: #9AA0A6;
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  color: #7B8085;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 620px) {
  .nav-links { display: none; }
  .hero { padding: 48px 0 56px; }
  .section { padding: 52px 0; }
  .grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .help-cols { grid-template-columns: 1fr; gap: 20px; }
  .install-help { padding: 20px; }
  .about-list > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------------------------------------------------------------
   知识谱系示意
   扁平约束不变：纯色块 + 1px 硬线条，圆角 0，无阴影/渐变。
   结构是「根 + 多行（父节点 + 该父的叶子组）」：
   每条竖线只属于一个父节点，因此叶子归属一眼能看出来。
   --------------------------------------------------------------- */
.map-demo {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 4px 0 8px;
  margin: 10px 0 30px;
}
.map-root-col {
  flex: 0 0 auto;
  position: relative;
  padding-right: 34px;
}
/* 根 → 各行竖线的横向引线 */
.map-root-col::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 26px;
  height: 1px;
  background: var(--line);
}
.map-rows {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  padding-left: 26px;
}
/* 所有行业共享的竖线（根的下级） */
.map-rows::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--line);
}
.map-row {
  display: flex;
  align-items: center;
  position: relative;
}
/* 行业节点 → 竖线的横向引线 */
.map-row > .map-node::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 50%;
  width: 26px;
  height: 1px;
  background: var(--line);
}
.map-node {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
}
.map-node b {
  font-weight: 600;
  font-size: 11px;
  color: var(--ink-3);
}
.map-root {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}
.map-lvl1,
.map-leaf { border-left-width: 3px; }
.map-leaf { color: var(--ink-2); }
.c-blue { border-left-color: #4285F4; }
.c-green { border-left-color: #0F9D58; }
.c-orange { border-left-color: #C77700; }
.c-red { border-left-color: #D93025; }

/* 叶子组：每个父节点一组，各自一条竖线 */
.map-leaves {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  margin-left: 34px;
  padding-left: 26px;
}
.map-leaves::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.map-leaves .map-node::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 50%;
  width: 26px;
  height: 1px;
  background: var(--line);
}

.map-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
  margin-top: 4px;
}
.map-point h3 {
  font-size: 15px;
  margin: 0 0 6px;
  font-weight: 600;
}
.map-point p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.68;
  margin: 0;
}

@media (max-width: 620px) {
  .map-points { grid-template-columns: 1fr; gap: 18px; }
  .map-demo { margin-bottom: 22px; }
}

/* ---------------------------------------------------------------
   功能网格的「补位」
   10 张卡片在 3 列布局里会剩 1 张孤零零收尾，右侧露出大片底色。
   让最后一张占满整行，看起来是刻意的收尾而不是排坏了。
   --------------------------------------------------------------- */
.grid > .card:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
}

/* ---------------------------------------------------------------
   页脚法务信息：版权 + ICP 备案号
   与整体扁平约束一致：不用阴影/渐变，仅靠字色与下划线表达层级。
   --------------------------------------------------------------- */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  font-size: 12px;
  color: #9AA0A6;
}
.footer-legal .footer-copy {
  margin: 0;
}
.footer-beian,
.footer-about,
.footer-faq {
  color: #9AA0A6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t), border-color var(--t);
}
.footer-beian:hover,
.footer-about:hover,
.footer-faq:hover {
  color: #FFFFFF;
  border-bottom-color: #FFFFFF;
}

/* ===================================================================
   交互与动效（v9）
   -------------------------------------------------------------------
   约束不变：不用 box-shadow、不用渐变、不用毛玻璃，圆角 ≤ 4px。
   动效只用 transform / opacity，避免触发布局重排。
   全部在 prefers-reduced-motion 下退化为「不动」。
   =================================================================== */

html {
  scroll-behavior: smooth;
  /* 锚点跳转时给吸顶导航留出空间，否则标题会被盖住 */
  scroll-padding-top: 76px;
}

/* ---------- 阅读进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 30;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- 导航状态 ---------- */
.nav {
  transition: border-color var(--t), background var(--t);
}
.nav.is-scrolled {
  border-bottom-color: var(--ink);
}
.nav-links a {
  position: relative;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color var(--t), border-color var(--t);
}
.nav-links a.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* ---------- 进入视口淡入 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 480ms ease var(--reveal-delay, 0ms),
              transform 480ms cubic-bezier(.2, .7, .3, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 功能卡：悬停抬升 + 点击展开 ---------- */
.card[role="button"] {
  cursor: pointer;
  position: relative;
  transition: transform 180ms ease, background var(--t);
  outline: none;
}
.card[role="button"]:hover {
  transform: translateY(-2px);
  background: var(--bg-alt);
}
.card[role="button"]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}
.card[role="button"]:active {
  transform: translateY(0);
}
.card-toggle {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .02em;
}
.card-toggle::after {
  content: " +";
}
.card.is-open .card-toggle::after {
  content: " −";
}
.card-more {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  animation: cardMore 220ms ease;
}
.card-more p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.72;
}
@keyframes cardMore {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 首屏手机示意：页签 ---------- */
.phone-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
  border: 1px solid var(--line);
}
.phone-tab {
  flex: 1;
  padding: 6px 0;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--bg);
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.phone-tab:last-child { border-right: 0; }
.phone-tab:hover { color: var(--ink); }
.phone-tab.is-active {
  background: var(--brand);
  color: #FFFFFF;
}

.phone-screen { display: none; }
.phone-screen.is-active {
  display: block;
  animation: screenIn 200ms ease;
}
@keyframes screenIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 谱系页签里的迷你树 */
.mini-map {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 10px;
  align-items: center;
  justify-content: start;
  padding: 6px 2px 2px;
}
.mini-node {
  font-size: 10.5px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  background: var(--bg);
  white-space: nowrap;
}
.mini-root {
  grid-row: span 3;
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
  font-weight: 700;
}
.mini-l1 { font-weight: 700; }
.mini-l2 { color: var(--ink-2); }
.mini-hint {
  margin: 10px 0 2px;
  font-size: 11px;
  color: var(--ink-3);
}

/* ---------- 知识谱系：SVG 连线 ---------- */
.map-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
}
.map-demo {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 100%;
  padding: 6px 4px 10px;
}
.map-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.map-link {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  transition: opacity var(--t), stroke-width var(--t);
}
.map-link[data-branch="ai"] { stroke: #4285F4; }
.map-link[data-branch="semi"] { stroke: #0F9D58; }
.map-link[data-branch="cons"] { stroke: #C77700; }
.map-link[data-branch="auto"] { stroke: #D93025; }
.map-link.is-dim { opacity: .18; }

/* 旧版用伪元素画的连线，现在由 SVG 负责，避免重复 */
.map-rows::before,
.map-row > .map-node::before,
.map-leaves::before,
.map-leaves .map-node::before,
.map-root-col::after { display: none; }

.map-node {
  position: relative;
  z-index: 1;
  font: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: opacity var(--t), transform 160ms ease, background var(--t);
}
.map-node:hover { transform: translateX(2px); }
.map-node:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.map-node.is-dim { opacity: .28; }
.map-node.is-selected {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.map-detail {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
}
.map-detail h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
}
.map-detail p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.72;
}

/* ---------- 下载区：复制、推荐 ---------- */
.download-card {
  display: block;
  padding: 0;
  transition: border-color var(--t), transform 180ms ease;
}
.download-card:hover { transform: translateY(-2px); }
.download-card.is-recommended { border-color: var(--brand); }

.download-main {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px 16px;
  color: var(--ink);
}
.download-arrow {
  transition: transform 180ms ease;
}
.download-card:hover .download-arrow {
  transform: translateY(3px);
}

/* hidden 属性自带 display:none，但会被下面的 display:inline-block 覆盖，
   所以必须显式再声明一次 —— 否则标签在对不上的平台上也显示。 */
.download-badge[hidden] {
  display: none;
}
.download-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 2px;
  vertical-align: middle;
}

.download-tools {
  display: flex;
  gap: 8px;
  padding: 0 24px 18px;
}
.copy-btn {
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  color: var(--ink-2);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.copy-btn:hover {
  color: var(--ink);
  border-color: var(--ink-3);
}
.copy-btn.is-done {
  color: var(--ok);
  border-color: var(--ok);
  background: #EEF7F0;
}

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  width: 42px;
  height: 42px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--brand);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover { background: var(--brand-dark); }

/* ---------- 响应式补充 ---------- */
@media (max-width: 900px) {
  .nav-links { gap: 18px; }
  .download-tools { flex-wrap: wrap; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 96px; }
  .nav-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  /* 旧样式在这里把导航整条隐藏了（display:none）。
     移动端把链接放到第二行反而更好用 —— 不做汉堡菜单，少一层交互。 */
  .nav-links {
    display: flex;
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .nav-links a { white-space: nowrap; }
  .card[role="button"]:hover { transform: none; }
  .to-top { right: 14px; bottom: 14px; }
  .download-main { padding: 18px 16px 12px; gap: 14px; }
  .download-tools { padding: 0 16px 14px; }
}

/* ---------- 系统要求减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card[role="button"],
  .download-card,
  .download-arrow,
  .map-node,
  .to-top,
  .phone-screen.is-active,
  .card-more { transition: none !important; animation: none !important; }
  .scroll-progress span { transition: none; }
}

/* ===================================================================
   工作室页（关于我们）v12
   -------------------------------------------------------------------
   与主站同一套色板与字号阶梯，额外加两处「科技感」：
   1) 首屏底部的细网格（2% 对比度，只在 hero 出现）
   2) 等宽字标签（STUDIO / PROCESS / FOCUS）
   仍然不用阴影、不用渐变填充、圆角 ≤ 4px。
   =================================================================== */

:root {
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- 首屏 ---------- */
.studio-hero {
  position: relative;
  padding: 84px 0 72px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* 细网格：科技感的来源，但对比度压到几乎看不见，不抢正文 */
.studio-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(32, 33, 36, .055) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(32, 33, 36, .055) 39px 40px);
}
.studio-hero-inner { position: relative; }

.studio-kicker {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--ink-3);
}
.studio-hero h1 {
  margin: 0 0 18px;
  font-size: 46px;
  line-height: 1.14;
  letter-spacing: -.01em;
}
.studio-hero h1 em {
  font-style: normal;
  color: var(--brand);
}
.studio-lead {
  max-width: 44em;
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-2);
}

.studio-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
}
.studio-meta > div {
  padding: 14px 16px 14px 0;
  border-right: 1px solid var(--line);
}
.studio-meta > div:last-child { border-right: 0; }
.studio-meta dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--ink-3);
}
.studio-meta dd {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--ink);
}

/* ---------- 设计理念：编号网格 ---------- */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.principle {
  padding: 26px 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background var(--t);
}
.principle:hover { background: var(--bg-alt); }
.principle-no {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--brand);
}
.principle h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.principle p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--ink-2);
}

/* ---------- 工作方法：时间线的扁平版 ---------- */
.method-steps {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.method-step {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.method-step:last-child { border-bottom: 1px solid var(--line); }
.method-no {
  flex: 0 0 auto;
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brand);
}
.method-step h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.method-step p {
  margin: 0;
  max-width: 62em;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--ink-2);
}

/* ---------- 关注领域 ---------- */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.focus-item {
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
}
.focus-item h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
}
.focus-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.72;
  color: var(--ink-2);
}

.studio-note {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
}
.studio-note p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
}
.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ---------- 工作室页响应式 ---------- */
@media (max-width: 900px) {
  .principle-grid { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
  .studio-meta { grid-template-columns: 1fr; }
  .studio-meta > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .studio-meta > div:last-child { border-bottom: 0; }
  .studio-hero h1 { font-size: 36px; }
}

@media (max-width: 620px) {
  .studio-hero { padding: 56px 0 48px; }
  .studio-hero h1 { font-size: 30px; }
  .studio-lead { font-size: 14.5px; }
  .principle { padding: 20px 16px 22px; }
}

/* ===================================================================
   收费与广告（v14）
   -------------------------------------------------------------------
   三栏并排：永远免费 / 将来可能收费 / 坚决不做。
   仍是扁平约束：无阴影、无渐变、圆角 ≤ 4px，只用色条与字重区分。
   =================================================================== */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.plan {
  padding: 22px 22px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
}

.plan-free { border-top-color: var(--ok); }
.plan-paid { border-top-color: var(--brand); }
.plan-never { border-top-color: var(--danger); }

.plan-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.plan-free .plan-tag { color: var(--ok); }
.plan-paid .plan-tag { color: var(--brand); }
.plan-never .plan-tag { color: var(--danger); }

.plan h3 {
  margin: 0 0 12px;
  font-size: 16.5px;
}

.plan-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-list li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.72;
  color: var(--ink-2);
}

/* 扁平项目符号：一根短横线，不用圆点 */
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 1px;
  background: var(--ink-3);
}

.plan-list li:last-child { margin-bottom: 0; }
.plan-list strong { color: var(--ink); font-weight: 700; }

@media (max-width: 900px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plan { padding: 18px 16px 18px; }
}

/* ===================================================================
   移动端细节优化（v15）
   -------------------------------------------------------------------
   实测（CDP 设备模拟 390×844）之后补的几处：
   1. 导航链接高 30px，低于 44px 的触摸目标下限；
   2. 正文左右留白 24px，在 390 宽下可用宽度只剩 342px；
   3. 首屏大标题在手机上占掉近两屏；
   4. 思维导图演示区可横向滑动，但没有任何提示。
   =================================================================== */

@media (max-width: 620px) {
  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  /* 触摸目标：纵向内边距补到 ≥44px 的可点区域 */
  .nav-links a {
    padding: 10px 2px;
  }

  /* 标题与正文：手机上单行字数控制在 18~22 字 */
  .hero h1,
  .studio-hero h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  .section-title {
    font-size: 23px;
  }

  .lead,
  .section-lead,
  .studio-lead {
    font-size: 14.5px;
    line-height: 1.8;
  }

  .stat-num {
    font-size: 26px;
  }

  /* 下载卡的复制按钮太小，点不中 */
  .copy-btn {
    min-height: 40px;
    padding: 8px 12px;
  }

  /* 导图演示区提示可以横向滑动（不然用户不知道右边还有内容） */
  .map-scroll {
    position: relative;
  }

  .map-scroll::after {
    content: "← 左右滑动查看完整分支 →";
    display: block;
    padding: 8px 2px 2px;
    font-size: 11.5px;
    color: var(--ink-3);
    text-align: center;
  }
}

/* ===================================================================
   常见问题 + 本次更新（v16）
   =================================================================== */

.faq {
  margin-top: 6px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--brand);
}

.faq details[open] summary::after { content: "−"; }

.faq details p {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--ink-2);
  max-width: 52em;
}

.faq details p a { color: var(--brand); }

.changelog {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
}

.changelog h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.changelog-ver {
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 2px;
  vertical-align: middle;
}

.changelog ul {
  margin: 0;
  padding-left: 18px;
}

.changelog li {
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}

.changelog-date {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink-3);
}

@media (max-width: 620px) {
  .changelog { padding: 14px 14px; }
  .faq summary { font-size: 14px; }
}


/* ===================================================================
   历史版本下拉（v17）
   =================================================================== */

.changelog-history {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.changelog-history > summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}

.changelog-history > summary::-webkit-details-marker { display: none; }

.changelog-history > summary::before {
  content: "+";
  display: inline-block;
  width: 14px;
  color: var(--brand);
  font-weight: 800;
}

.changelog-history[open] > summary::before { content: "−"; }

.cl-count {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1px 6px;
}

.cl-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.cl-list > li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cl-list > li:last-child { border-bottom: 0; padding-bottom: 0; }

.cl-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.cl-ver {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
}

.cl-date {
  font-size: 11.5px;
  color: var(--ink-3);
}

.cl-list ul {
  margin: 0;
  padding-left: 18px;
}

.cl-list ul li {
  margin-bottom: 4px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

@media (max-width: 620px) {
  .changelog-history > summary { font-size: 12.5px; }
  .cl-list ul li { font-size: 12px; }
}


/* ===================================================================
   合规页（隐私政策 / 用户协议）v18
   =================================================================== */

.nav-simple .nav-inner {
  justify-content: space-between;
}

.nav-back {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.nav-back:hover { text-decoration: underline; }

.legal {
  padding: 36px 0 56px;
}

.legal .wrap {
  max-width: 780px;
}

.legal h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  color: var(--ink);
}

.legal-meta {
  margin: 0 0 26px;
  font-size: 12px;
  color: var(--ink-3);
}

.legal h2 {
  margin: 26px 0 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

.legal p,
.legal li {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.legal ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.legal li { margin-bottom: 5px; }

.legal a { color: var(--brand); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 4px;
  font-size: 12.5px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.7;
  color: var(--ink-2);
}

.legal-table th {
  font-weight: 700;
  color: var(--ink);
  background: var(--bg);
}

.footer-legal-link {
  font-size: 12.5px;
  color: var(--ink-3);
  text-decoration: none;
}

.footer-legal-link:hover { color: var(--brand); }
