/* ==========================================================================
   吃瓜爆料 · bjcarman.com 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base — 变量、重置、排版、通用元素
   ========================================================================== */

:root {
  --ink: #101C2E;
  --ink-soft: #35455C;
  --brand: #1D5B8F;
  --brand-dark: #164A75;
  --brand-tint: #E8F0F7;
  --signal: #D97706;
  --signal-tint: #FDF3E4;
  --ok: #167A5B;
  --ok-tint: #E6F3EE;
  --line: #D8DFE8;
  --line-strong: #C2CCD9;
  --surface: #F4F7FA;
  --paper: #FFFFFF;
  --muted: #667688;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(16, 28, 46, 0.05);
  --shell: 1200px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--surface);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol,
dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 160ms ease;
}

a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 8px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* 字段名 / 编号 / 时间：等宽小字 */
.field-name,
.term-name,
.node-no,
.chain-index,
.position-term,
.section-index,
.status-time,
.node-time,
.chain-time {
  font-family: var(--font-mono);
  letter-spacing: 0.4px;
}

/* ==========================================================================
   layout — 全站骨架：页头、导航、主容器、面包屑、页标题区、页脚
   ========================================================================== */

.site-body {
  background: var(--surface);
  color: var(--ink-soft);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- 页头 --- */
.site-header {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  z-index: 40;
}

.header-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-logo {
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.brand-logo:hover {
  color: var(--paper);
  text-decoration: none;
}

.brand-logo::after {
  content: "舆情服务";
  display: inline-block;
  margin-left: 10px;
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #A8C4DE;
  border: 1px solid #2C4661;
  border-radius: var(--radius-sm);
  vertical-align: 2px;
}

/* --- 主导航 --- */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: block;
  padding: 0 14px;
  height: 68px;
  line-height: 68px;
  font-size: 15px;
  color: #C7D6E4;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover {
  color: var(--paper);
  text-decoration: none;
  border-bottom-color: #3E5C7C;
}

.nav-list a.is-current {
  color: var(--paper);
  border-bottom-color: var(--signal);
}

/* --- 汉堡按钮 --- */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: #C7D6E4;
  border-radius: 1px;
}

/* --- 移动端导航 --- */
.mobile-nav {
  display: none;
  background: var(--ink);
  border-top: 1px solid #24374C;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-list {
  padding: 6px 16px 14px;
}

.mobile-nav-list li {
  border-bottom: 1px solid #1E2F44;
}

.mobile-nav-list li:last-child {
  border-bottom: 0;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  font-size: 15px;
  color: #C7D6E4;
}

.mobile-nav-list a:hover,
.mobile-nav-list a.is-current {
  color: var(--paper);
  text-decoration: none;
}

/* --- 主内容 --- */
.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.home-main {
  display: block;
}

.inner-main {
  min-width: 0;
}

/* --- 面包屑 --- */
.breadcrumb {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-list li + li::before {
  content: "/";
  color: var(--line-strong);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb-sep {
  color: var(--line-strong);
  padding: 0 2px;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* --- 内页主容器（主内容 760 + 侧栏 300 + 40 间距） --- */
.page-layout {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 40px;
}

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
}

/* --- 页标题区 --- */
.page-header {
  padding: 20px 0 0;
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.page-head,
.page-title-block,
.page-hero {
  margin-top: 16px;
}

.page-head-inner,
.page-title-inner,
.page-hero-inner {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 18px 22px;
  max-width: 760px;
}

.page-lead,
.page-summary {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

/* --- 页脚 --- */
.site-footer {
  background: var(--ink);
  color: #A9BACB;
  margin-top: auto;
}

.footer-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 32px 48px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--paper);
  margin: 0 0 8px;
}

.footer-slogan {
  font-size: 14px;
  line-height: 1.7;
  color: #93A7BB;
  margin: 0;
  max-width: 320px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: 0.6px;
  margin: 0 0 12px;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 14px;
  color: #A9BACB;
}

.footer-col a:hover {
  color: var(--paper);
}

.footer-note {
  grid-column: 1 / -1;
  border-top: 1px solid #24374C;
  padding-top: 20px;
}

.footer-note p {
  font-size: 13px;
  line-height: 1.8;
  color: #7E93A8;
  margin: 0 0 8px;
  max-width: 900px;
}

.footer-meta {
  margin: 0;
  font-size: 12px;
  color: #63788D;
}

/* ==========================================================================
   components — 通用组件：按钮、小节标题、字段表、状态点、折叠问答、侧栏
   ========================================================================== */

/* --- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: #3E5C7C;
}

.btn-ghost:hover {
  border-color: #6E8CA9;
  color: var(--paper);
}

/* --- 小节标题（内页 H2 与首页 H2 通用） --- */
.section-title,
.section-head .section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.section-index {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 400;
  color: var(--brand);
  padding-top: 2px;
}

.section-index::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin-top: 4px;
  background: var(--signal);
  border-radius: 1px;
}

.section-intro,
.section-lead,
.section-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 760px;
}

.section-more {
  margin: 20px 0 0;
  font-size: 15px;
}

.section-more a {
  font-weight: 500;
}

/* --- 字段表 --- */
.table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.field-table {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 20px;
  font-size: 15px;
  overflow: hidden;
}

.table-wrap .field-table {
  margin-top: 0;
  border: 0;
  border-radius: 0;
}

.field-table-caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.field-table thead th {
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.field-table tbody th {
  width: 168px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--brand);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.field-table tbody td {
  padding: 14px 18px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  line-height: 1.75;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

/* --- 状态点 --- */
.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: 0 0 auto;
}

.status-signal {
  background: var(--signal);
}

/* --- 折叠问答 --- */
.faq-list {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  transition: border-color 160ms ease, background 160ms ease;
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item[open] {
  border-left-color: var(--signal);
  background: #FCFDFE;
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "+";
  flex: 0 0 auto;
  width: 20px;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--brand);
}

.faq-item[open] .faq-question::before {
  content: "−";
  color: var(--signal);
}

.faq-answer {
  padding: 0 20px 18px 50px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.faq-answer p {
  margin: 0 0 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* --- 侧栏通用 --- */
.page-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 24px;
}

.sidebar-block,
.aside-block,
.side-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.sidebar-title,
.aside-title,
.side-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.4px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.toc-list li,
.sidebar-link-list li,
.aside-list li,
.related-list li,
.side-list li {
  margin-bottom: 8px;
}

.toc-list li:last-child,
.sidebar-link-list li:last-child,
.aside-list li:last-child,
.related-list li:last-child,
.side-list li:last-child {
  margin-bottom: 0;
}

.toc-list a,
.sidebar-link-list a,
.aside-list a,
.related-list a,
.side-list a {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  padding: 5px 0 5px 10px;
  color: var(--ink-soft);
  border-left: 2px solid transparent;
}

.toc-list a:hover,
.sidebar-link-list a:hover,
.aside-list a:hover,
.related-list a:hover,
.side-list a:hover {
  color: var(--brand);
  border-left-color: var(--brand);
  text-decoration: none;
}

.side-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 10px;
}

.side-link,
.sidebar-entry-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
}

/* --- 相关内容链接条 --- */
.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-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-right: 4px;
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--brand);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 160ms ease, transform 160ms ease;
}

.related-links-item:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  text-decoration: none;
}

/* --- 内容配图 --- */
.content-figure {
  margin-top: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.content-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface);
}

.content-figure figcaption {
  padding: 10px 16px 12px;
  margin: 0;
}

/* ==========================================================================
   pages — 首页
   ========================================================================== */

/* --- 首屏 --- */
.hero-section {
  background: var(--ink);
  color: #C7D6E4;
  border-bottom: 3px solid var(--brand);
}

.hero-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 52px 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.6px;
  color: #7FA6C7;
  margin: 0 0 14px;
}

.hero-title {
  font-size: 36px;
  line-height: 1.28;
  font-weight: 600;
  color: var(--paper);
  margin: 0 0 18px;
  max-width: 560px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.85;
  color: #B4C6D6;
  margin: 0 0 26px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-points {
  display: grid;
  gap: 10px;
  border-top: 1px solid #24374C;
  padding-top: 20px;
}

.hero-point {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #A9BACB;
}

.hero-point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

.hero-visual {
  min-width: 0;
}

.hero-figure {
  background: #16263C;
  border: 1px solid #2C4661;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #1B2E45;
}

.hero-figure figcaption {
  padding: 10px 16px 12px;
  margin: 0;
  color: #7FA6C7;
}

.link-status {
  margin-top: 18px;
  border: 1px solid #2C4661;
  border-radius: var(--radius);
  overflow: hidden;
}

.status-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid #24374C;
  background: #16263C;
}

.status-node:last-child {
  border-bottom: 0;
}

.status-node .status-name {
  color: #B4C6D6;
  flex: 1 1 auto;
  min-width: 0;
}

.status-node .status-time {
  color: #6E8CA9;
  font-size: 12px;
  white-space: nowrap;
}

.status-node.is-done .status-dot {
  background: var(--ok);
}

.status-node.is-active {
  background: #1B2E45;
}

.status-node.is-active .status-dot {
  background: var(--signal);
}

.status-node.is-active .status-name {
  color: var(--paper);
}

/* --- 首屏快速入口 --- */
.quick-entry {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px 24px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.entry-cell {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.entry-cell:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  text-decoration: none;
}

.entry-icon {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.6px;
  color: var(--brand);
  margin-bottom: 8px;
}

.entry-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.entry-desc {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* --- 首页通用小节 --- */
.section {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 0;
}

.section-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

/* --- 链路节点区 --- */
.chain-timeline {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.chain-node {
  padding: 18px 16px 20px;
  border-right: 1px solid var(--line);
  border-top: 3px solid var(--line-strong);
  min-width: 0;
}

.chain-node:last-child {
  border-right: 0;
}

.chain-index {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.chain-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}

.chain-time {
  font-size: 12px;
  color: var(--brand);
  margin: 0 0 8px;
}

.chain-output {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.chain-node.is-active {
  border-top-color: var(--signal);
  background: var(--signal-tint);
}

.chain-node.is-active .chain-index {
  color: var(--signal);
}

/* --- 服务矩阵 --- */
.services-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  min-width: 0;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.service-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.service-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.service-fields {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 8px 12px;
  font-size: 14px;
}

.service-fields dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--brand);
  padding-top: 3px;
}

.service-fields dd {
  color: var(--ink-soft);
  line-height: 1.7;
  min-width: 0;
}

.services-figure {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 24px;
}

.services-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--surface);
}

.services-figure figcaption {
  padding: 10px 16px 12px;
  margin: 0;
}

/* --- 适用场景索引 --- */
.scenario-list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.scenario-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
  transition: border-color 160ms ease, transform 160ms ease;
}

.scenario-item:hover {
  border-color: var(--line-strong);
  border-left-color: var(--signal);
  transform: translateY(-2px);
}

.scenario-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}

.scenario-signal,
.scenario-action {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 8px;
  color: var(--ink-soft);
}

.scenario-action {
  margin-bottom: 0;
  color: var(--muted);
}

.scenario-signal::before,
.scenario-action::before {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand);
  margin-right: 6px;
}

.scenario-signal::before {
  content: "信号";
}

.scenario-action::before {
  content: "动作";
  color: var(--signal);
}

/* --- 交付标准摘要 --- */
.standards-section .field-table {
  margin-top: 24px;
}

/* --- 合作开启说明区 --- */
.start-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.start-materials {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  min-width: 0;
}

.start-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
}

.material-list {
  display: grid;
  gap: 12px;
}

.material-item {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.material-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface);
}

.start-links {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  min-width: 0;
}

.start-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 16px;
}

.start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.start-actions .btn-primary {
  background: var(--brand);
  color: var(--paper);
}

.start-actions .btn-ghost {
  color: var(--brand);
  border-color: var(--line-strong);
}

.start-actions .btn-ghost:hover {
  color: var(--brand-dark);
  border-color: var(--brand);
}

/* ==========================================================================
   pages — 内页业务模块
   ========================================================================== */

/* --- 服务矩阵页 --- */
.page-services .section {
  padding: 0;
  margin-top: 36px;
  max-width: none;
}

.page-services .section-title {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.service-detail {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 18px;
}

.service-detail-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.service-field {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.service-field:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.service-field .field-name {
  font-size: 12px;
  color: var(--brand);
  padding-top: 4px;
}

.service-field p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  min-width: 0;
}

.boundary-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.boundary-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.boundary-item .status-dot {
  margin-top: 9px;
}

.combination-list {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.combination-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.combination-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}

.combination-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* --- 合作流程页 --- */
.page-process .section-timeline,
.page-process .section-matrix,
.page-process .section-checklist {
  margin-top: 36px;
}

.page-process h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.timeline-list {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.timeline-node {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.timeline-node.is-done {
  border-top-color: var(--ok);
}

.timeline-node.is-active {
  border-top-color: var(--signal);
  background: var(--signal-tint);
}

.node-no {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.timeline-node.is-done .node-no {
  color: var(--ok);
}

.timeline-node.is-active .node-no {
  color: var(--signal);
}

.node-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}

.node-time {
  font-size: 12px;
  color: var(--brand);
  margin: 0 0 8px;
}

.node-output {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.section-figure {
  margin-top: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.section-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface);
}

.section-figure figcaption {
  padding: 10px 16px 12px;
  margin: 0;
}

.section-matrix .field-table {
  margin-top: 22px;
}

.checklist {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  min-width: 0;
}

.check-mark {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border: 1px solid var(--brand);
  border-radius: 3px;
  background: var(--brand-tint);
}

.check-body {
  min-width: 0;
}

.check-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}

.check-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* 侧栏节点状态 */
.node-status .status-list {
  display: grid;
  gap: 10px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.status-item.status-done .status-dot {
  background: var(--ok);
}

.status-item.status-active .status-dot {
  background: var(--signal);
}

.status-item.status-pending .status-dot {
  background: var(--line-strong);
}

/* --- 适用场景页 --- */
.page-scenarios .scenario-overview,
.page-scenarios .scenario-actions,
.page-scenarios .scenario-exclude,
.page-scenarios .scenario-next {
  margin-top: 36px;
}

.page-scenarios h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.page-scenarios .scenario-item {
  margin-top: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.page-scenarios .scenario-item h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}

.scenario-fields {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 14px;
  font-size: 15px;
}

.scenario-fields dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--brand);
  padding-top: 4px;
}

.scenario-fields dd {
  color: var(--ink-soft);
  line-height: 1.75;
  min-width: 0;
}

.misjudge-list {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.misjudge-item {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.misjudge-wrong,
.misjudge-right {
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
  min-width: 0;
}

.misjudge-wrong {
  border-right: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.misjudge-right {
  color: var(--ink-soft);
}

.misjudge-wrong .field-name {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.misjudge-right .field-name {
  display: block;
  font-size: 12px;
  color: var(--brand);
  margin-bottom: 6px;
}

.exclude-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.exclude-item {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px 14px 34px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.exclude-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
}

.exclude-item p {
  margin: 0;
}

.next-links {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.next-link {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.next-link:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  text-decoration: none;
}

.next-link-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.next-link-desc {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.sidebar-entry p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 12px;
}

/* --- 交付标准页 --- */
.page-standards .content-section {
  margin-top: 36px;
}

.page-standards .content-section h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.page-standards .content-figure {
  margin-top: 28px;
}

.redline-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.redline-item {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px 14px 34px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.redline-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
}

.plain-list {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.plain-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 2px;
  background: var(--brand);
}

.split-columns {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.split-col {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.split-col h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}

.split-col p,
.split-col li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.split-col ul {
  display: grid;
  gap: 8px;
}

/* --- 术语说明页 --- */
.page-glossary .glossary-section {
  margin-top: 36px;
}

.page-glossary .glossary-section h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.summary-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 18px 22px;
  max-width: 760px;
}

.summary-define {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  margin: 0 0 8px;
  font-weight: 500;
}

.summary-scope {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

.term-entry {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 18px;
}

.term-entry .term-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.term-define {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  margin: 0 0 10px;
  padding-left: 12px;
  border-left: 2px solid var(--brand);
}

.term-explain {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.term-figure {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.term-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface);
}

.term-figure figcaption {
  padding: 10px 16px 12px;
  margin: 0;
}

.term-example {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 0 0 12px;
}

.term-example::before {
  content: "示例";
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand);
  margin-right: 8px;
}

.term-related {
  font-size: 14px;
  margin: 0;
}

.term-related::before {
  content: "关联";
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-right: 8px;
}

.term-related a {
  margin-right: 12px;
}

.cross-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cross-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.cross-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}

.cross-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

.position-table {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.position-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.position-row:last-child {
  border-bottom: 0;
}

.position-term {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--brand);
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.position-where {
  padding: 12px 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  min-width: 0;
}

.content-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 24px;
}

/* --- 常见问题页 --- */
.page-faq .faq-group {
  margin-top: 36px;
}

.page-faq .faq-group h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.page-faq .faq-list,
.page-faq .faq-item {
  margin-top: 0;
}

.page-faq .faq-item {
  margin-top: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
}

.page-faq .faq-item[open] {
  border-left-color: var(--signal);
}

.page-media {
  margin-top: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  background: var(--surface);
}

.page-media figcaption {
  padding: 10px 16px 12px;
  margin: 0;
}

.term-list {
  display: grid;
  gap: 10px;
}

.term-list .term-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 2px;
  padding: 0;
  border: 0;
}

.term-list .term-desc {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* --- 404 页 --- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 72px;
}

.error-inner {
  width: 100%;
  max-width: 640px;
  text-align: left;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--signal);
  margin: 0 0 12px;
}

.error-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
}

.error-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 560px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.error-links a {
  display: block;
  min-height: 44px;
  padding: 12px 16px;
  font-size: 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  transition: border-color 160ms ease, transform 160ms ease;
}

.error-links a:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
  text-decoration: none;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 500;
  background: var(--brand);
  color: var(--paper);
  border-radius: var(--radius);
}

.error-home-link:hover {
  background: var(--brand-dark);
  color: var(--paper);
  text-decoration: none;
}

/* ==========================================================================
   responsive — 断点 1100px / 700px
   ========================================================================== */

@media (max-width: 1100px) {
  .page-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .page-sidebar,
  .content-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 44px 24px 40px;
  }

  .hero-title {
    font-size: 30px;
  }

  .quick-entry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chain-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chain-node {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .chain-node:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .chain-node:last-child {
    border-bottom: 0;
  }

  .services-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-figure {
    position: static;
    max-width: 560px;
  }

  .services-figure img {
    aspect-ratio: 16 / 9;
  }

  .scenario-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .start-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cross-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    height: 60px;
    padding: 0 16px;
    gap: 12px;
  }

  .brand-logo {
    font-size: 17px;
  }

  .brand-logo::after {
    display: none;
  }

  .site-nav {
    display: flex;
    margin-left: auto;
  }

  .nav-list {
    display: none;
  }

  .nav-list.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .breadcrumb {
    padding: 12px 16px 0;
    font-size: 12px;
  }

  .page-layout,
  .layout-shell {
    padding: 0 16px 40px;
    gap: 28px;
  }

  .page-header {
    padding-top: 16px;
  }

  .page-title,
  .error-title {
    font-size: 24px;
  }

  .page-head-inner,
  .page-title-inner,
  .page-hero-inner,
  .summary-box {
    padding: 16px 18px;
  }

  .page-lead,
  .page-summary,
  .summary-define {
    font-size: 15px;
  }

  .page-sidebar,
  .content-aside {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .section {
    padding: 36px 16px 0;
  }

  .section-title,
  .page-process h2,
  .page-scenarios h2,
  .page-standards .content-section h2,
  .page-glossary .glossary-section h2,
  .page-faq .faq-group h2 {
    font-size: 19px;
  }

  .hero-inner {
    padding: 34px 16px 32px;
    gap: 26px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px;
    margin-bottom: 22px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .quick-entry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 20px 16px 0;
  }

  .entry-cell {
    padding: 14px 14px 16px;
  }

  .chain-timeline,
  .timeline-list,
  .scenario-list,
  .cross-list,
  .next-links,
  .misjudge-item,
  .split-columns,
  .checklist,
  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .chain-node:nth-child(odd) {
    border-right: 0;
  }

  .service-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-fields,
  .service-field,
  .scenario-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .service-fields dt,
  .service-field .field-name,
  .scenario-fields dt {
    padding-top: 0;
  }

  .service-fields dd,
  .scenario-fields dd {
    margin-bottom: 8px;
  }

  .misjudge-wrong {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 16px 16px 42px;
    font-size: 14px;
  }

  .field-table {
    font-size: 14px;
  }

  .field-table thead th {
    padding: 10px 12px;
  }

  .field-table tbody th {
    width: auto;
    padding: 10px 12px;
    border-right: 0;
  }

  .field-table tbody td {
    padding: 10px 12px;
  }

  .table-wrap {
    border: 0;
    background: transparent;
  }

  .table-wrap .field-table {
    border: 1px solid var(--line);
  }

  .position-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .position-term {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-detail,
  .term-entry,
  .combination-item,
  .page-scenarios .scenario-item,
  .boundary-item,
  .exclude-item,
  .redline-item {
    padding: 16px 16px;
  }

  .exclude-item,
  .redline-item {
    padding-left: 32px;
  }

  .related-links {
    gap: 8px;
  }

  .related-links-item {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  .footer-inner {
    padding: 32px 16px 24px;
    gap: 26px;
  }

  .footer-links {
    gap: 20px;
  }

  .error-main {
    padding: 44px 16px 56px;
  }

  .error-inner {
    max-width: none;
  }
}
