/* ==========================================================================
   51吃瓜网今日吃瓜入口 · filecoinunion.com
   全站样式表 v1.0
   视觉方向：命令行工具风 · 等宽标题 + 无衬线正文 + 终端面板
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base · 基础变量、Reset、全局元素
   -------------------------------------------------------------------------- */
:root {
  --terminal-black: #1e1e1e;
  --neutral-bg: #f5f5f5;
  --success-green: #2e7d32;
  --muted-gray: #616161;
  --border-light: #e0e0e0;
  --text-main: #212121;
  --text-light: #757575;
  --white: #ffffff;
  --code-font: "Courier New", Consolas, "Liberation Mono", monospace;
  --body-font: Arial, Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif;
  --container-width: 1200px;
  --radius: 6px;
  --radius-sm: 4px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-main);
  background-color: var(--neutral-bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

a {
  color: var(--success-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1b5e20;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--code-font);
  font-weight: 700;
  line-height: 1.35;
  color: var(--terminal-black);
}

p {
  margin-bottom: 0.75rem;
}

ul, ol {
  list-style: none;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Layout · 全站骨架、容器、页头页脚、面包屑
   -------------------------------------------------------------------------- */

/* 站点根容器 */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-home .site-body,
.site-inner .site-body,
.site-error .site-body {
  min-height: 100vh;
}

/* 内容宽度容器 */
.header-inner,
.site-main,
.footer-content,
.footer-copyright {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* 页头 */
.site-header {
  background-color: var(--terminal-black);
  border-bottom: 3px solid var(--success-green);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--code-font);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-link:hover .brand-name {
  color: #81c784;
}

/* 主导航 */
.primary-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.92rem;
  color: #bdbdbd;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
  line-height: 1.4;
}

.nav-item:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-item.is-current {
  color: var(--white);
  background-color: rgba(46, 125, 50, 0.35);
  font-weight: 700;
}

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* 面包屑 */
.breadcrumb,
.breadcrumb-nav {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 14px 24px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumb a,
.breadcrumb-nav a {
  color: var(--text-light);
}

.breadcrumb a:hover,
.breadcrumb-nav a:hover {
  color: var(--success-green);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: #bdbdbd;
}

.breadcrumb-current {
  color: var(--terminal-black);
  font-weight: 700;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb-list li + li::before {
  content: "/";
  color: #bdbdbd;
  margin-right: 4px;
}

/* 主内容区 */
.site-main {
  flex: 1 0 auto;
  padding-top: 32px;
  padding-bottom: 56px;
}

/* 内页主容器 */
.inner-main {
  padding-top: 24px;
  padding-bottom: 56px;
}

/* 页脚 */
.site-footer {
  background-color: var(--white);
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 32px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-light);
  max-width: 420px;
  line-height: 1.7;
}

.footer-brand strong {
  display: block;
  font-family: var(--code-font);
  font-size: 1rem;
  color: var(--terminal-black);
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  max-width: 480px;
  justify-content: flex-end;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-light);
  padding: 4px 0;
}

.footer-links a:hover {
  color: var(--success-green);
}

.footer-copyright {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  padding-bottom: 16px;
}

.footer-copyright p {
  font-size: 0.82rem;
  color: #9e9e9e;
  text-align: center;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Components · 通用组件：页面标题、终端面板、卡片、FAQ、步骤等
   -------------------------------------------------------------------------- */

/* 页面标题区 */
.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--terminal-black);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--terminal-black);
  display: inline-block;
}

.page-heading {
  margin-bottom: 32px;
}

.page-heading p,
.page-intro,
.page-lead {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 780px;
  line-height: 1.8;
}

/* 区块标题 */
.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--terminal-black);
  margin-bottom: 16px;
  position: relative;
  padding-left: 16px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: var(--success-green);
  border-radius: 2px;
}

.section-intro {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 24px;
  max-width: 760px;
}

/* 终端面板 */
.terminal-panel {
  background-color: var(--terminal-black);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.terminal-top-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: #2a2a2a;
  border-bottom: 1px solid #3a3a3a;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dot.red { background-color: #e57373; }
.terminal-dot.yellow { background-color: #ffb74d; }
.terminal-dot.green { background-color: #81c784; }

.terminal-title {
  margin-left: 8px;
  font-family: var(--code-font);
  font-size: 0.85rem;
  color: #9e9e9e;
}

.terminal-body {
  padding: 24px;
}

/* 终端操作片段（工具页） */
.terminal-block {
  background-color: var(--terminal-black);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
  font-family: var(--code-font);
  font-size: 0.88rem;
  line-height: 1.7;
}

.terminal-line {
  margin-bottom: 4px;
  color: #e0e0e0;
  word-break: break-all;
}

.terminal-line:last-child {
  margin-bottom: 0;
}

.terminal-prompt {
  color: var(--success-green);
  font-weight: 700;
  margin-right: 8px;
}

.terminal-output {
  color: #81c784;
}

/* 步骤条（首页合作流程 + 风险页识别步骤） */
.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.step-item {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.step-item:hover {
  border-color: var(--success-green);
  box-shadow: 0 2px 12px rgba(46, 125, 50, 0.08);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--terminal-black);
  color: var(--white);
  font-family: var(--code-font);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.step-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 0;
}

/* FAQ 手风琴 */
.faq-item {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-family: var(--code-font);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--terminal-black);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--success-green);
  font-weight: 400;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background-color: #fafafa;
}

.faq-item p {
  padding: 0 20px 18px;
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.75;
  margin: 0;
}

/* 卡片网格（首页栏目入口） */
.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px 18px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.entry-card:hover {
  border-color: var(--success-green);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.entry-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  line-height: 1;
}

.entry-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--terminal-black);
}

.entry-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
  flex: 1;
}

/* 图片容器 */
.hero-figure,
.process-figure,
.concept-figure,
.risk-figure,
.glossary-figure,
.case-figure,
.content-image {
  margin: 24px 0;
}

.hero-figure img,
.process-figure img,
.concept-figure img,
.risk-figure img,
.glossary-figure img,
.case-figure img,
.content-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

/* 相关链接区块 */
.related-link-block,
.related-links,
.tools-note {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}

.related-link-block h2,
.related-links h2,
.tools-note h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.related-link-block p,
.related-links p,
.tools-note p {
  font-size: 0.92rem;
  color: var(--text-light);
}

.related-link-block a,
.related-links a,
.tools-note a {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Pages · 首页各模块
   -------------------------------------------------------------------------- */

/* 终端首屏 */
.terminal-hero {
  margin-bottom: 48px;
}

.terminal-task {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: rgba(46, 125, 50, 0.15);
  border-left: 3px solid var(--success-green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.prompt-sign {
  font-family: var(--code-font);
  color: var(--success-green);
  font-weight: 700;
  font-size: 1rem;
}

.task-label {
  font-family: var(--code-font);
  color: #81c784;
  font-size: 0.88rem;
}

.task-value {
  font-family: var(--code-font);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
}

.terminal-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.terminal-col {
  background-color: #2a2a2a;
  border-radius: var(--radius);
  padding: 20px;
}

.terminal-heading {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #3a3a3a;
  font-family: var(--code-font);
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.benefit-list li {
  font-size: 0.88rem;
  color: #bdbdbd;
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.benefit-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-family: var(--code-font);
}

/* 定位说明 */
.positioning-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}

.positioning-text h1 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.positioning-text p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
}

.hero-figure {
  margin: 0;
}

/* 栏目入口区 */
.section-divider {
  margin-bottom: 56px;
}

.section-divider .section-title {
  margin-bottom: 24px;
}

/* 合作流程 */
.cooperation-section {
  margin-bottom: 56px;
}

.cooperation-section .section-title {
  margin-bottom: 24px;
}

.process-figure {
  margin-top: 8px;
}

/* FAQ 区 */
.faq-section {
  margin-bottom: 56px;
}

.faq-section .section-title {
  margin-bottom: 20px;
}

/* 底部合作引导 */
.cooperation-guide {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.cooperation-guide p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.cooperation-guide a {
  font-weight: 700;
  margin: 0 8px;
}

/* --------------------------------------------------------------------------
   Pages · 内页布局系统（左侧目录 + 右侧正文）
   -------------------------------------------------------------------------- */

/* 侧栏 + 正文双栏布局 */
.page-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.sidebar-left .page-layout {
  grid-template-columns: 240px 1fr;
}

/* 侧栏通用 */
.sidebar-inner {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.sidebar-title,
.aside-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--terminal-black);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--terminal-black);
  margin-bottom: 16px;
  font-family: var(--code-font);
}

.sidebar-note,
.aside-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}

.sidebar-note p,
.aside-note p {
  margin-bottom: 0;
}

/* 概念页侧栏 */
.concept-index {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.concept-index li a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.concept-index li a:hover {
  background-color: rgba(46, 125, 50, 0.08);
  color: var(--success-green);
}

/* 概念正文区 */
.concept-content {
  min-width: 0;
}

.concept-content .lead {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.concept-block {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
}

.concept-block:last-of-type {
  border-bottom: none;
}

.concept-block h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--terminal-black);
}

.term-def {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 12px;
}

.concept-block p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.75;
}

.concept-block p strong {
  color: var(--terminal-black);
}

/* 工具页筛选侧栏 */
.filter-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-item {
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.filter-item:hover {
  background-color: rgba(46, 125, 50, 0.06);
  border-color: rgba(46, 125, 50, 0.3);
}

.filter-item.is-active {
  background-color: var(--terminal-black);
  color: var(--white);
  font-weight: 700;
}

/* 工具列表 */
.tools-list {
  margin-bottom: 40px;
}

.tools-list > h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--terminal-black);
  display: inline-block;
}

.tool-card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.tool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tool-card-header h3 {
  font-size: 1.05rem;
  color: var(--terminal-black);
}

.tool-tag {
  display: inline-block;
  background-color: rgba(46, 125, 50, 0.1);
  color: var(--success-green);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--code-font);
  white-space: nowrap;
}

.tool-card > p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.75;
}

.tool-note {
  font-size: 0.85rem;
  color: var(--muted-gray);
  background-color: #fafafa;
  border-left: 3px solid var(--success-green);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* 工具页注意事项 */
.note-list {
  list-style: none;
  padding: 0;
}

.note-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}

.note-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-family: var(--code-font);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Pages · 风险页
   -------------------------------------------------------------------------- */

.page-title-block {
  margin-bottom: 16px;
}

/* 风险卡片网格 */
.risk-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.risk-card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.risk-card:hover {
  border-color: var(--success-green);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.risk-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.risk-card-title {
  font-size: 1.05rem;
  color: var(--terminal-black);
}

.risk-level {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--code-font);
  white-space: nowrap;
}

.risk-level.level-high {
  background-color: #fdecea;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.risk-level.level-medium {
  background-color: #fff8e1;
  color: #f57f17;
  border: 1px solid #ffe082;
}

.risk-card-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.risk-scenario {
  background-color: #fafafa;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border-left: 3px solid var(--terminal-black);
}

.scenario-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--terminal-black);
  margin-bottom: 4px;
  font-family: var(--code-font);
}

.risk-scenario p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* 风险识别步骤 */
.section-heading-row {
  margin-bottom: 20px;
}

.identify-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.identify-step {
  display: flex;
  gap: 20px;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.identify-step .step-number {
  flex-shrink: 0;
  margin-bottom: 0;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-size: 1rem;
  color: var(--terminal-black);
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

/* 相关工具链接 */
.related-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.related-link-card {
  display: block;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.related-link-card:hover {
  border-color: var(--success-green);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.related-link-title {
  font-size: 1rem;
  color: var(--terminal-black);
  margin-bottom: 8px;
  font-family: var(--code-font);
}

.related-link-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Pages · 案例页
   -------------------------------------------------------------------------- */

.page-sidebar .sidebar-inner {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.scene-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scene-list li a {
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.scene-list li a:hover {
  background-color: rgba(46, 125, 50, 0.08);
  color: var(--success-green);
}

/* 案例区块 */
.scene-section {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-light);
}

.scene-section:last-of-type {
  border-bottom: none;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section-heading h2 {
  font-size: 1.25rem;
  color: var(--terminal-black);
}

.scene-tag {
  display: inline-block;
  background-color: rgba(46, 125, 50, 0.1);
  color: var(--success-green);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--code-font);
}

.case-block h3 {
  font-size: 1rem;
  color: var(--terminal-black);
  margin-bottom: 8px;
  margin-top: 20px;
}

.case-block h3:first-child {
  margin-top: 0;
}

.case-block p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.75;
}

.case-figure {
  margin: 20px 0;
}

/* 方法论总结 */
.method-summary {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid var(--terminal-black);
}

.method-summary > h2 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.summary-item {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
}

.summary-item h3 {
  font-size: 0.95rem;
  color: var(--terminal-black);
  margin-bottom: 8px;
  font-family: var(--code-font);
}

.summary-item p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* 相关卡片 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  display: block;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.related-card:hover {
  border-color: var(--success-green);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.related-card h3 {
  font-size: 0.95rem;
  color: var(--terminal-black);
  margin-bottom: 6px;
  font-family: var(--code-font);
}

.related-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Pages · 术语索引页
   -------------------------------------------------------------------------- */

.alphabet-index {
  margin-bottom: 32px;
}

.alphabet-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px;
}

.alphabet-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  font-family: var(--code-font);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.alphabet-bar a:hover {
  background-color: var(--terminal-black);
  color: var(--white);
}

/* 术语卡片网格 */
.glossary-list {
  margin-bottom: 40px;
}

.glossary-list .section-title {
  margin-bottom: 16px;
}

.term-card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  transition: border-color 0.25s ease;
}

.term-card:hover {
  border-color: var(--success-green);
}

.term-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.term-head h3 {
  font-size: 1rem;
  color: var(--terminal-black);
}

.term-letter {
  font-family: var(--code-font);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--success-green);
  background-color: rgba(46, 125, 50, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.term-def {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}

.term-link {
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.error-panel {
  text-align: center;
  max-width: 560px;
  padding: 40px 24px;
}

.error-code {
  font-family: var(--code-font);
  font-size: 4rem;
  font-weight: 700;
  color: var(--terminal-black);
  line-height: 1.1;
  margin-bottom: 8px;
}

.error-title {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.error-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-back,
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-back {
  background-color: var(--terminal-black);
  color: var(--white);
  border: 1px solid var(--terminal-black);
}

.btn-back:hover {
  background-color: #333;
  color: var(--white);
}

.btn-link {
  background-color: var(--white);
  color: var(--success-green);
  border: 1px solid var(--success-green);
}

.btn-link:hover {
  background-color: rgba(46, 125, 50, 0.08);
}

/* --------------------------------------------------------------------------
   Responsive · 响应式断点
   -------------------------------------------------------------------------- */

/* 平板（≤1024px） */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .risk-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-layout {
    grid-template-columns: 200px 1fr;
    gap: 24px;
  }

  .positioning-section {
    gap: 24px;
  }
}

/* 手机（≤768px） */
@media (max-width: 768px) {
  .header-inner,
  .site-main,
  .footer-content,
  .footer-copyright,
  .breadcrumb,
  .breadcrumb-nav {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    height: 56px;
    gap: 12px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: static;
  }

  .primary-nav .nav-list {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--terminal-black);
    border-bottom: 3px solid var(--success-green);
    padding: 8px 16px 16px;
    gap: 2px;
    z-index: 99;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }

  .primary-nav .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    display: block;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
  }

  .nav-item.is-current {
    background-color: rgba(46, 125, 50, 0.35);
  }

  .site-main {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .inner-main {
    padding-top: 16px;
    padding-bottom: 40px;
  }

  .breadcrumb,
  .breadcrumb-nav {
    padding-top: 10px;
    font-size: 0.8rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.15rem;
  }

  /* 首页 */
  .terminal-body {
    padding: 16px;
  }

  .terminal-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .terminal-task {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .positioning-section {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .positioning-text h1 {
    font-size: 1.35rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .entry-card {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
  }

  .entry-icon {
    margin-bottom: 0;
    font-size: 1.4rem;
    flex-shrink: 0;
  }

  .entry-card h3 {
    margin-bottom: 4px;
  }

  .entry-card p {
    flex: 1;
  }

  .steps-wrapper {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step-item {
    padding: 18px 20px;
  }

  .cooperation-guide {
    padding: 24px 16px;
  }

  /* 内页布局：移动端正文在前、侧栏在后 */
  .page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    display: grid;
  }

  .page-layout > .site-main,
  .page-layout > .concept-content,
  .page-layout > main {
    order: 1;
  }

  .page-layout > aside,
  .page-layout > .concept-aside,
  .page-layout > .sidebar {
    order: 2;
  }

  .sidebar-inner {
    position: static;
    padding: 16px;
  }

  .sidebar-title,
  .aside-title {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .filter-list,
  .concept-index,
  .scene-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .filter-item,
  .concept-index li a,
  .scene-list li a {
    padding: 8px 14px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-size: 0.85rem;
  }

  .filter-item.is-active {
    border-color: var(--terminal-black);
  }

  /* 工具卡片 */
  .tool-card {
    padding: 18px 16px;
  }

  .tool-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .terminal-block {
    padding: 14px 16px;
    font-size: 0.82rem;
    overflow-x: auto;
  }

  /* 风险页 */
  .risk-card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .risk-card {
    padding: 18px 16px;
  }

  .identify-step {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .identify-step .step-number {
    margin-bottom: 0;
  }

  .related-links-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 案例页 */
  .case-block h3 {
    margin-top: 16px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 术语页 */
  .alphabet-bar {
    padding: 12px;
    gap: 2px;
  }

  .alphabet-bar a {
    min-width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .term-card {
    padding: 16px;
  }

  /* 404 */
  .error-code {
    font-size: 3rem;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-back,
  .btn-link {
    width: 100%;
    max-width: 260px;
  }

  /* 页脚 */
  .footer-content {
    flex-direction: column;
    gap: 20px;
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 6px 16px;
  }
}

/* 小屏手机（≤400px） */
@media (max-width: 400px) {
  .brand-name {
    font-size: 0.9rem;
  }

  .terminal-title {
    font-size: 0.78rem;
  }

  .terminal-body {
    padding: 12px;
  }

  .terminal-col {
    padding: 14px;
  }

  .entry-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .entry-icon {
    margin-bottom: 0;
  }

  .step-item {
    padding: 14px 16px;
  }

  .faq-item summary {
    padding: 14px 16px;
    font-size: 0.88rem;
  }

  .faq-item p {
    padding: 0 16px 14px;
  }

  .page-title {
    font-size: 1.3rem;
  }

  .tool-card {
    padding: 14px 12px;
  }

  .terminal-block {
    padding: 12px;
    font-size: 0.78rem;
  }

  .risk-card,
  .term-card,
  .related-link-card,
  .summary-item,
  .related-card {
    padding: 14px 12px;
  }
}
