/* ==========================================================================
   黑料社区 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */
:root {
  --ink-900: #0d1b2a;
  --ink-800: #10243a;
  --ink-700: #1b3350;
  --green: #12b28c;
  --green-dark: #0e8f71;
  --amber: #f2b23c;
  --orange: #e4572e;
  --bg: #f5f7fa;
  --white: #ffffff;
  --muted: #5b6b7c;
  --line: #d8dfe7;
  --line-dark: #21374f;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 2px 10px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 10px 30px rgba(13, 27, 42, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

.site-body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: #22303f;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-900);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--green-dark);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--green);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

strong {
  font-weight: 700;
  color: var(--ink-900);
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink-900);
  border-bottom: 1px solid var(--line-dark);
  color: #e7eef6;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.brand::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 2px;
  box-shadow: 0 0 0 3px rgba(18, 178, 140, 0.22);
}

.brand:hover {
  color: #ffffff;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  color: #b9c7d6;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.site-nav a.is-current {
  color: #ffffff;
  border-bottom-color: var(--green);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after,
.nav-toggle span {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #e7eef6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle::before {
  top: 15px;
}

.nav-toggle::after {
  top: 27px;
}

.nav-toggle span {
  top: 21px;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

/* 移动抽屉 */
.drawer {
  position: fixed;
  top: 64px;
  right: 0;
  width: min(320px, 86vw);
  height: calc(100vh - 64px);
  background: var(--ink-800);
  border-left: 1px solid var(--line-dark);
  box-shadow: var(--shadow-lg);
  transform: translateX(105%);
  transition: transform 0.26s ease;
  overflow-y: auto;
  z-index: 70;
  visibility: hidden;
}

.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-nav {
  padding: 16px;
}

.drawer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  font-size: 15px;
  color: #cdd9e5;
  border-radius: var(--radius);
  border-left: 3px solid transparent;
}

.drawer-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.drawer-nav a.is-current {
  color: #ffffff;
  background: rgba(18, 178, 140, 0.16);
  border-left-color: var(--green);
  font-weight: 600;
}

.drawer-note {
  margin-top: 16px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #8fa3b6;
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--amber);
  border-radius: var(--radius);
}

.site-main {
  display: block;
  width: 100%;
}

/* 内页主容器 */
.site-inner,
.inner-main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.inner-main {
  padding-top: 24px;
  padding-bottom: 56px;
}

/* 面包屑 */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--green-dark);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: #9aa9b8;
}

.breadcrumb-sep {
  color: #9aa9b8;
}

.breadcrumb-current {
  color: var(--ink-900);
  font-weight: 600;
}

/* 全站内页标题区 */
.page-header {
  background: var(--ink-900);
  color: #ffffff;
  padding: 32px 28px 28px;
  margin: 16px 0 0;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--green);
}

.page-title {
  font-size: 30px;
  line-height: 1.35;
  color: #ffffff;
  font-weight: 700;
}

.page-hero {
  background: var(--ink-800);
  color: #c9d7e4;
  margin: 0 0 28px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 22px 28px;
  border-top: 1px solid var(--line-dark);
}

.page-hero-inner {
  max-width: 780px;
}

.page-hero-lead {
  font-size: 15px;
  line-height: 1.8;
  color: #c9d7e4;
}

/* 页脚 */
.site-footer {
  background: var(--ink-900);
  color: #a9bacb;
  margin-top: 64px;
  padding: 48px 0 0;
  border-top: 3px solid var(--green);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.footer-col {
  min-width: 0;
}

.footer-brand-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-brand-name::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 2px;
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.8;
  color: #94a7ba;
  max-width: 260px;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-nav ul,
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  display: inline-block;
  font-size: 13.5px;
  color: #a9bacb;
  padding: 2px 0;
  min-height: 24px;
}

.footer-col ul a:hover {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 18px 24px;
}

.footer-bottom p {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 12.5px;
  color: #7d90a4;
}

/* --------------------------------------------------------------------------
   components · 通用组件
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: #06231c;
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: #ffffff;
  border-color: var(--green-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #dbe6f0;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: #ffffff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
}

.text-link::after {
  content: "→";
  transition: transform 0.18s ease;
}

.text-link:hover {
  color: var(--ink-900);
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* 状态胶囊 */
.status-pill,
.status-tag,
.phase-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}

.status-pill::before,
.status-tag::before,
.phase-state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-done,
.state-done {
  color: var(--green-dark);
  background: rgba(18, 178, 140, 0.1);
  border-color: rgba(18, 178, 140, 0.35);
}

.status-doing,
.state-doing {
  color: #a06f0a;
  background: rgba(242, 178, 60, 0.16);
  border-color: rgba(242, 178, 60, 0.5);
}

.status-todo,
.state-todo,
.status-pending {
  color: #a8341a;
  background: rgba(228, 87, 46, 0.12);
  border-color: rgba(228, 87, 46, 0.4);
}

/* 区块标题 */
.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.section-desc,
.section-intro,
.section-lead {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 760px;
}

.section-more {
  margin-top: 20px;
}

/* 锚点条 */
.anchor-bar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 24px;
  padding: 0 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.anchor-bar ul {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: max-content;
}

.anchor-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 13.5px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.anchor-bar a:hover {
  color: var(--ink-900);
  background: var(--bg);
}

.anchor-bar a.is-current {
  color: var(--ink-900);
  font-weight: 600;
  border-bottom-color: var(--green);
}

/* 两栏内页布局 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.page-layout > .content-col,
.page-layout > .inner-main {
  min-width: 0;
}

.side-column,
.side-col,
.content-aside {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 32px;
  position: sticky;
  top: 88px;
}

.side-card,
.aside-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.side-title,
.aside-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}

.side-title::before,
.aside-title::before {
  content: "";
  width: 4px;
  height: 14px;
  background: var(--green);
  border-radius: 2px;
}

.side-index,
.side-list,
.aside-link-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-index a,
.side-list a,
.aside-link-list a {
  display: block;
  padding: 8px 10px;
  font-size: 13.5px;
  color: #3d4f60;
  border-radius: var(--radius);
  border-left: 2px solid transparent;
  line-height: 1.5;
}

.side-index a:hover,
.side-list a:hover,
.aside-link-list a:hover {
  background: var(--bg);
  color: var(--ink-900);
}

.side-index a.is-current {
  background: rgba(18, 178, 140, 0.09);
  border-left-color: var(--green);
  color: var(--ink-900);
  font-weight: 600;
}

.side-link,
.aside-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green-dark);
}

.side-link::after,
.aside-link::after {
  content: "→";
}

.side-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-points li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #3d4f60;
}

.side-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
}

/* 相关内容 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: 13.5px;
  color: var(--ink-900);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.related-links-item:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

/* 通用图片与图注 */
.cap-figure,
.article-media,
.content-figure,
.about-media,
.kb-figure {
  margin: 0 0 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cap-figure img,
.article-media img,
.content-figure img,
.about-media img,
.kb-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ink-800);
}

.cap-figure figcaption,
.article-media figcaption,
.content-figure figcaption,
.about-media figcaption,
.kb-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* 通用表格 */
.role-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.role-table caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 8px;
}

.role-table th,
.role-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.7;
}

.role-table th {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  background: #eef2f6;
  white-space: nowrap;
}

.role-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.role-table tbody tr:hover {
  background: #eef7f4;
}

.role-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 通用步骤列表 */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: step;
}

.step-list > li {
  position: relative;
  padding: 14px 16px 14px 52px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.75;
  counter-increment: step;
}

.step-list > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 14px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.home-main {
  display: block;
}

/* 首屏 */
.hero {
  background: var(--ink-900);
  color: #e7eef6;
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line-dark);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--green);
  background: rgba(18, 178, 140, 0.12);
  border: 1px solid rgba(18, 178, 140, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.28;
  color: #ffffff;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.85;
  color: #b7c6d5;
  max-width: 520px;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-lg);
  background: var(--ink-800);
}

.hero-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  padding: 8px 12px;
  background: #ffffff;
  color: var(--ink-900);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--green);
}

.hero-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.hero-tag-a {
  top: 18px;
  left: -16px;
}

.hero-tag-b {
  bottom: 22px;
  right: -14px;
  border-left-color: var(--amber);
}

.hero-tag-b::before {
  background: var(--amber);
}

/* 状态条 */
.status-bar {
  background: var(--ink-800);
  border-bottom: 1px solid var(--line-dark);
  padding: 14px 0;
}

.status-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.status-bar .status-pill {
  background: rgba(255, 255, 255, 0.9);
}

.status-note {
  font-size: 13.5px;
  color: #a9bacb;
  margin-left: auto;
}

/* 通用区块容器 */
.section-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.capabilities,
.scene,
.knowledge-entry,
.phases,
.coop,
.closing-scene {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.capabilities {
  background: var(--white);
}

/* 能力对照表 */
.cap-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.cap-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  transition: background 0.16s ease;
}

.cap-row:last-child {
  border-bottom: 0;
}

a.cap-row:hover,
a.cap-row:focus-visible {
  background: #eef7f4;
  color: inherit;
}

.cap-head {
  background: #eef2f6;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
}

.cap-cell {
  display: block;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.7;
  min-width: 0;
  border-right: 1px solid var(--line);
}

.cap-cell:last-child {
  border-right: 0;
}

.cap-head .cap-cell {
  font-size: 13px;
  white-space: nowrap;
}

.cap-name {
  font-weight: 700;
  color: var(--ink-900);
}

a.cap-row .cap-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

a.cap-row .cap-name::after {
  content: "查看能力说明 →";
  font-size: 12px;
  font-weight: 500;
  color: var(--green-dark);
}

/* 场景区 */
.scene-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.scene-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--white);
}

.scene-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.scene-media figcaption {
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.scene-copy h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

.scene-copy > p {
  font-size: 14.5px;
  line-height: 1.85;
  color: #3d4f60;
  margin-bottom: 18px;
}

.scene-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.scene-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.75;
  color: #3d4f60;
}

.scene-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 2px;
  background: var(--green);
}

/* 知识库入口 */
.knowledge-entry {
  background: var(--white);
}

.kb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kb-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.kb-cell:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: inherit;
}

.kb-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
}

.kb-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.kb-answers {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.kb-answers li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.7;
}

.kb-answers li:last-child {
  border-bottom: 0;
}

.kb-q {
  font-weight: 700;
  color: var(--ink-900);
}

.kb-a {
  color: var(--muted);
}

/* 实施路径 */
.phases {
  background: var(--ink-900);
  color: #dbe6f0;
  border-bottom: 0;
}

.phases .section-head h2 {
  color: #ffffff;
}

.phases .section-desc {
  color: #a9bacb;
}

.phase-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: none;
}

.phase-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 16px 18px;
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  border-top: 3px solid var(--green);
}

.phase-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

.phase-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.phase-out {
  font-size: 13px;
  line-height: 1.7;
  color: #a9bacb;
}

.phases .section-more .text-link {
  color: var(--green);
}

.phases .section-more .text-link:hover {
  color: #ffffff;
}

/* 合作路径 */
.coop {
  background: var(--white);
}

.coop-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto;
  gap: 32px;
  align-items: center;
}

.coop-copy h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.coop-copy p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.coop-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: coop;
}

.coop-step {
  counter-increment: coop;
  padding: 14px 14px 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--amber);
}

.coop-step-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 4px;
}

.coop-step-name::before {
  content: counter(coop, decimal-leading-zero) " · ";
  font-family: var(--mono);
  color: var(--amber);
  font-size: 12px;
}

.coop-step-desc {
  display: block;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* 结尾场景 */
.closing-scene {
  background: var(--bg);
  border-bottom: 0;
}

.closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.closing-copy h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.closing-copy p {
  font-size: 14.5px;
  line-height: 1.85;
  color: #3d4f60;
  margin-bottom: 18px;
}

.closing-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--white);
}

.closing-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.closing-media figcaption {
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   pages · 产品能力
   -------------------------------------------------------------------------- */
.cap-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  margin-bottom: 24px;
  scroll-margin-top: 88px;
}

.cap-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.cap-num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
  background: rgba(18, 178, 140, 0.1);
  border: 1px solid rgba(18, 178, 140, 0.35);
  border-radius: var(--radius);
  padding: 1px 8px;
  flex-shrink: 0;
}

.cap-intro {
  font-size: 14.5px;
  line-height: 1.8;
  color: #3d4f60;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}

.cap-block {
  margin-bottom: 16px;
}

.cap-block:last-child {
  margin-bottom: 0;
}

.cap-block h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cap-block h3::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

.cap-block ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cap-block li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: #3d4f60;
}

.cap-block li::before {
  content: "·";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--green-dark);
  font-weight: 700;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #3d4f60;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-dark);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   pages · 运营方法
   -------------------------------------------------------------------------- */
.content-col {
  min-width: 0;
}

.content-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  scroll-margin-top: 88px;
}

.content-section h2 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.content-section > p {
  font-size: 14.5px;
  line-height: 1.85;
  color: #3d4f60;
  margin-bottom: 18px;
}

.content-section h3 {
  font-size: 16px;
  margin: 22px 0 12px;
}

/* 运营节奏时间线 */
.rhythm-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 24px;
}

.rhythm-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.rhythm-node {
  position: relative;
  padding: 0 0 22px 8px;
}

.rhythm-node:last-child {
  padding-bottom: 0;
}

.rhythm-node::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--green);
  box-sizing: content-box;
  margin-left: -1px;
}

.rhythm-period {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--green-dark);
  background: rgba(18, 178, 140, 0.1);
  border-radius: var(--radius);
  padding: 1px 8px;
  margin-bottom: 6px;
}

.rhythm-node h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.rhythm-node ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.rhythm-node ul li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: #3d4f60;
}

.rhythm-node ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 2px;
  background: var(--muted);
}

/* 两列对照 */
.compare-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.compare-col {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--green);
}

.compare-col h3 {
  font-size: 15px;
  margin: 0 0 10px;
}

.compare-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compare-col li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #3d4f60;
}

.compare-col li::before {
  content: "·";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--green-dark);
  font-weight: 700;
}

/* 复盘三列 */
.review-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-col {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--amber);
}

.review-col h3 {
  font-size: 15px;
  margin: 0 0 10px;
}

.review-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-col li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #3d4f60;
}

.review-col li::before {
  content: "·";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--amber);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   pages · 实施流程
   -------------------------------------------------------------------------- */
.layout-shell {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.phase-progress {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.phase-progress h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.phase-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  position: relative;
}

.phase-node {
  min-width: 0;
}

.phase-node-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-height: 92px;
  padding: 14px;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--green);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.phase-node-btn:hover {
  background: #eef7f4;
  border-color: var(--green);
}

.phase-index {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
}

.phase-node .phase-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
}

.phase-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  scroll-margin-top: 88px;
}

.phase-block h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.phase-block > p {
  font-size: 14.5px;
  line-height: 1.85;
  color: #3d4f60;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}

.phase-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.phase-col {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.phase-col h3 {
  font-size: 14.5px;
  margin: 0 0 10px;
  color: var(--ink-900);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.phase-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phase-col li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #3d4f60;
}

.phase-col li::before {
  content: "·";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--green-dark);
  font-weight: 700;
}

.role-section,
.pilot-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  scroll-margin-top: 88px;
}

.role-section h2,
.pilot-section h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.role-section .section-lead,
.pilot-section .section-lead {
  margin-bottom: 18px;
}

.pilot-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pilot-list li {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--amber);
  min-width: 0;
}

.pilot-list h3 {
  font-size: 14.5px;
  margin-bottom: 6px;
}

.pilot-list p {
  font-size: 13.5px;
  line-height: 1.7;
  color: #3d4f60;
}

/* --------------------------------------------------------------------------
   pages · 问答知识库
   -------------------------------------------------------------------------- */
.kb-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.kb-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  scroll-margin-top: 88px;
}

.kb-section .section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-num {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
  background: rgba(18, 178, 140, 0.1);
  border: 1px solid rgba(18, 178, 140, 0.35);
  border-radius: var(--radius);
  padding: 2px 8px;
  line-height: 1.5;
  margin-top: 4px;
}

.section-head-text {
  min-width: 0;
}

.section-head-text h2 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.section-head-text p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.kb-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.kb-category-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--green);
  min-width: 0;
}

.kb-category-card h3 {
  font-size: 15px;
}

.kb-category-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  flex: 1;
}

.kb-category-card a {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  align-self: flex-start;
}

.kb-category-card a::after {
  content: " →";
}

/* FAQ 折叠 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  background: #fafbfc;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  flex-shrink: 0;
  width: 18px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.5;
}

.faq-item[open] summary {
  background: #eef7f4;
  border-bottom: 1px solid var(--line);
}

.faq-item[open] summary::before {
  content: "−";
}

.faq-item summary:hover {
  background: #eef7f4;
}

.faq-answer {
  padding: 14px 16px 16px 44px;
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.85;
  color: #3d4f60;
}

.faq-answer p + p {
  margin-top: 10px;
}

/* 待解决议题 */
.pending-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pending-item {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--orange);
}

.pending-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pending-head h3 {
  font-size: 15px;
}

.pending-progress {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 6px;
}

.pending-progress::before {
  content: "进展 · ";
  font-weight: 700;
  color: var(--ink-900);
}

.pending-answer {
  font-size: 13.5px;
  line-height: 1.75;
  color: #3d4f60;
}

.pending-answer::before {
  content: "方向 · ";
  font-weight: 700;
  color: var(--ink-900);
}

/* 提问指南 */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: guide;
}

.guide-list li {
  position: relative;
  counter-increment: guide;
  padding: 14px 16px 14px 52px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-list li::before {
  content: counter(guide, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 14px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
}

.guide-list h3 {
  font-size: 14.5px;
  margin-bottom: 4px;
}

.guide-list p {
  font-size: 13.5px;
  line-height: 1.75;
  color: #3d4f60;
}

/* 社区规范折叠 */
.rules-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rules-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.rules-group summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  background: #fafbfc;
}

.rules-group summary::-webkit-details-marker {
  display: none;
}

.rules-group summary::before {
  content: "▸";
  flex-shrink: 0;
  color: var(--green-dark);
  font-size: 12px;
  transition: transform 0.16s ease;
}

.rules-group[open] summary {
  background: #eef7f4;
  border-bottom: 1px solid var(--line);
}

.rules-group[open] summary::before {
  transform: rotate(90deg);
}

.rules-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 16px 42px;
}

.rules-group li {
  position: relative;
  font-size: 13.5px;
  line-height: 1.75;
  color: #3d4f60;
}

.rules-group li::before {
  content: "·";
  position: absolute;
  left: -14px;
  top: 0;
  color: var(--green-dark);
  font-weight: 700;
}

.kb-rules-note {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.kb-rules-note a {
  font-weight: 600;
  color: var(--green-dark);
}

.kb-shell > .related-links {
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   pages · 关于与合作
   -------------------------------------------------------------------------- */
.page-title-bar {
  background: var(--ink-800);
  color: #c9d7e4;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 22px 28px;
  margin-bottom: 28px;
}

.page-lead {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.8;
}

.section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  scroll-margin-top: 88px;
}

.section-title {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.section-intro {
  margin-bottom: 18px;
}

.about-position > p {
  font-size: 14.5px;
  line-height: 1.85;
  color: #3d4f60;
  margin-bottom: 14px;
}

.about-declare {
  padding: 14px 16px;
  background: #fdf6e6;
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.8;
  color: #6b4f13;
}

.about-principles {
  counter-reset: principle;
}

.principle-item {
  counter-increment: principle;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}

.principle-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.principle-item h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
  margin-bottom: 6px;
}

.principle-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
  background: rgba(18, 178, 140, 0.1);
  border: 1px solid rgba(18, 178, 140, 0.35);
  border-radius: var(--radius);
  padding: 0 8px;
  flex-shrink: 0;
}

.principle-num::before {
  content: counter(principle, decimal-leading-zero);
}

.principle-item p {
  font-size: 14px;
  line-height: 1.85;
  color: #3d4f60;
}

.step-item {
  position: relative;
  padding: 14px 16px 14px 52px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-item h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.step-item p {
  font-size: 13.5px;
  line-height: 1.75;
  color: #3d4f60;
}

.step-output {
  margin-top: 6px;
  font-size: 13px;
  color: var(--green-dark);
  font-weight: 600;
}

.step-output::before {
  content: "产出 · ";
}

.about-cta-line {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

.about-cta-line a {
  font-weight: 600;
  color: var(--green-dark);
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-list li {
  position: relative;
  padding: 12px 16px 12px 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.75;
  color: #3d4f60;
}

.boundary-list li::before {
  content: "×";
  position: absolute;
  left: 16px;
  top: 12px;
  font-weight: 700;
  color: var(--orange);
}

.boundary-list strong {
  color: var(--ink-900);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  font-size: 13px;
  line-height: 1.5;
  padding: 4px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #3d4f60;
}

.aside-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.aside-links,
.aside-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-links a,
.aside-list a {
  display: block;
  padding: 8px 10px;
  font-size: 13.5px;
  color: #3d4f60;
  border-radius: var(--radius);
  border-left: 2px solid transparent;
  line-height: 1.5;
}

.aside-links a:hover,
.aside-list a:hover {
  background: var(--bg);
  color: var(--ink-900);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  display: block;
}

.error-hero {
  background: var(--ink-900);
  color: #dbe6f0;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line-dark);
}

.error-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.error-code {
  font-family: var(--mono);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--green);
  margin-bottom: 16px;
}

.error-hero h1 {
  font-size: 30px;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 14px;
}

.error-lead {
  font-size: 15px;
  line-height: 1.85;
  color: #b7c6d5;
  max-width: 560px;
  margin-bottom: 26px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-links {
  padding: 56px 0;
}

.error-links h2 {
  font-size: 20px;
  margin-bottom: 18px;
}

.error-links > h2,
.error-link-list {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.error-link-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.error-link-list a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-900);
}

.error-link-list a:hover {
  color: var(--green-dark);
}

.error-link-list span {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .header-inner {
    padding: 0 16px;
    min-height: 60px;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .drawer {
    top: 60px;
    height: calc(100vh - 60px);
  }

  .site-inner,
  .inner-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .side-column,
  .side-col,
  .content-aside {
    position: static;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }

  .hero {
    padding: 40px 0 48px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-tag-a {
    left: 10px;
  }

  .hero-tag-b {
    right: 10px;
  }

  .status-inner {
    padding: 0 16px;
  }

  .status-note {
    margin-left: 0;
    flex-basis: 100%;
  }

  .section-inner {
    padding: 0 16px;
  }

  .scene-inner,
  .closing-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .kb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phase-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coop-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .coop-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .coop-inner > .btn {
    justify-self: start;
  }

  .phase-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phase-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .review-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kb-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    padding: 0 16px 32px;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-bottom {
    padding: 16px;
  }

  .page-header {
    padding: 26px 20px 22px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-hero {
    padding: 18px 20px;
  }

  .page-title-bar {
    padding: 18px 20px;
  }

  .error-code {
    font-size: 52px;
  }
}

@media (max-width: 640px) {
  .site-body {
    font-size: 14.5px;
  }

  .brand {
    font-size: 17px;
  }

  .hero {
    padding: 28px 0 36px;
  }

  .hero-inner {
    gap: 24px;
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.32;
  }

  .hero-lead {
    font-size: 14.5px;
    margin-bottom: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-tag {
    font-size: 11.5px;
    padding: 6px 10px;
  }

  .status-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .status-inner::-webkit-scrollbar {
    display: none;
  }

  .status-bar .status-pill {
    flex-shrink: 0;
  }

  .status-note {
    flex-shrink: 0;
    flex-basis: auto;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .capabilities,
  .scene,
  .knowledge-entry,
  .phases,
  .coop,
  .closing-scene {
    padding: 36px 0;
  }

  .section-head h2,
  .scene-copy h2,
  .coop-copy h2,
  .closing-copy h2,
  .content-section h2,
  .cap-title,
  .phase-block h2,
  .role-section h2,
  .pilot-section h2,
  .section-title,
  .error-links h2 {
    font-size: 18px;
  }

  /* 能力表移动端改为堆叠行 */
  .cap-table {
    border: 0;
    background: transparent;
    border-radius: 0;
  }

  .cap-head {
    display: none;
  }

  a.cap-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
  }

  a.cap-row .cap-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
  }

  a.cap-row .cap-cell:last-child {
    border-bottom: 0;
  }

  a.cap-row .cap-cell:not(.cap-name)::before {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 2px;
  }

  a.cap-row .cap-cell:nth-child(2)::before {
    content: "适用场景";
  }

  a.cap-row .cap-cell:nth-child(3)::before {
    content: "输出物";
  }

  .kb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .kb-cell {
    padding: 14px 12px;
  }

  .kb-name {
    font-size: 14px;
  }

  .kb-desc {
    font-size: 12.5px;
  }

  .kb-answers li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 14px;
  }

  .phase-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .phase-item {
    padding: 16px 14px;
  }

  .coop-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-title {
    margin-bottom: 10px;
  }

  .page-header {
    padding: 22px 18px 20px;
    margin-top: 12px;
  }

  .page-title {
    font-size: 22px;
  }

  .page-hero {
    padding: 16px 18px;
    margin-bottom: 20px;
  }

  .page-hero-lead {
    font-size: 14px;
  }

  .page-title-bar {
    padding: 16px 18px;
    margin-bottom: 20px;
  }

  .inner-main {
    padding-top: 16px;
    padding-bottom: 40px;
  }

  .anchor-bar {
    margin-bottom: 18px;
  }

  .anchor-bar a {
    padding: 0 12px;
    font-size: 13px;
  }

  .content-section,
  .cap-section,
  .phase-block,
  .role-section,
  .pilot-section,
  .kb-section,
  .section,
  .phase-progress {
    padding: 18px 16px;
    margin-bottom: 16px;
  }

  .compare-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .review-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .phase-track {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .phase-node-btn {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
  }

  .pilot-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .kb-category-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .role-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .role-table th,
  .role-table td {
    white-space: normal;
    min-width: 120px;
  }

  .faq-answer {
    padding: 12px 14px 14px 40px;
  }

  .faq-item summary {
    padding: 12px 14px;
    font-size: 14px;
  }

  .rules-group ul {
    padding: 14px 14px 14px 36px;
  }

  .step-item,
  .step-list > li,
  .guide-list li {
    padding-left: 46px;
  }

  .about-cta-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .related-links {
    gap: 8px;
  }

  .related-links-item {
    padding: 0 12px;
    font-size: 13px;
  }

  .error-hero {
    padding: 44px 0 40px;
  }

  .error-code {
    font-size: 44px;
  }

  .error-hero h1 {
    font-size: 22px;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn {
    width: 100%;
  }

  .error-links {
    padding: 36px 0;
  }

  .error-link-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .kb-shell {
    padding: 0 16px 40px;
  }

  .kb-section .section-head {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
