/* ==========================================================================
   吃瓜网线路一 · 整站样式表
   学术期刊风：衬线正文、摘要区、脚注编号、克制图表色
   结构：base → layout → components → pages → responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 基础变量、重置、全局字体与色彩
   -------------------------------------------------------------------------- */

:root {
  --paper: #faf9f6;
  --surface: #ffffff;
  --ink: #1f2d3d;
  --muted: #5a6b7a;
  --line: #d9d2c8;
  --accent: #1e5a7a;
  --secondary: #b4793a;
  --chart-blue: #4a7a8c;
  --chart-ochre: #c08a4e;
  --font-serif: "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --container: 1120px;
  --content-col: 760px;
  --aside-col: 320px;
  --gap: 40px;
  --radius: 6px;
  --header-h: 72px;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition);
}

a:hover {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  line-height: 1.3;
  font-weight: 600;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 23px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 1em;
}

sup.footnote-ref {
  color: var(--secondary);
  font-size: 0.75em;
  margin-left: 2px;
  font-family: var(--font-sans);
}

/* --------------------------------------------------------------------------
   layout · 全站统一骨架：页头、面包屑、主容器、页脚
   -------------------------------------------------------------------------- */

/* 页头 */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.brand-slogan {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-sans);
  margin-top: 2px;
}

/* 主导航 */
.main-nav {
  font-family: var(--font-sans);
}

.nav-list {
  display: flex;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius);
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--accent);
  text-decoration: none;
  background: rgba(30, 90, 122, 0.06);
}

.nav-link.is-current {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* 面包屑 */
.breadcrumb,
.breadcrumb-nav {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
  background: transparent;
}

.breadcrumb-inner,
.breadcrumb-wrap,
.breadcrumb-container,
.breadcrumb-area {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb-item a,
.breadcrumb-link {
  color: var(--muted);
}

.breadcrumb-item a:hover,
.breadcrumb-link:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  margin: 0 4px;
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* 主容器与内页骨架 */
.site-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.page-layout,
.layout-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

/* 右侧栏布局：主内容在前，aside 在后 */
.page-layout.layout-with-aside,
.page-layout:has(.page-aside),
.page-layout:has(.sidebar),
.layout-shell:has(.sidebar),
.layout-shell:has(.sidebar-area) {
  grid-template-columns: minmax(0, var(--content-col)) minmax(0, var(--aside-col));
}

.inner-main {
  min-width: 0;
}

/* 侧栏 */
.page-aside,
.sidebar,
.sidebar-area {
  min-width: 0;
}

/* 页脚 */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: 64px;
  font-family: var(--font-sans);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer-col-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  font-family: var(--font-sans);
}

.footer-nav-list li {
  margin-bottom: 8px;
}

.footer-link {
  font-size: 14px;
  color: var(--muted);
}

.footer-link:hover {
  color: var(--accent);
}

.footer-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-entry-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
}

.footer-copyright {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* --------------------------------------------------------------------------
   components · 通用组件：标题、摘要、脚注、卡片、表格、链接、侧栏
   -------------------------------------------------------------------------- */

/* 区块标题 */
.section-title {
  font-size: 23px;
  color: var(--ink);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--secondary);
}

.section-desc,
.section-lead,
.section-intro {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* 摘要区 */
.abstract-section {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.abstract-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px;
}

.abstract-text {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 8px;
}

.abstract-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* 脚注区 */
.footnote-section {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.footnote-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.footnote-list {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.footnote-list li {
  margin-bottom: 6px;
  padding-left: 4px;
}

.footnote-text {
  font-size: 13px;
  color: var(--muted);
}

/* 相关链接导航 */
.related-links {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.related-links-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-right: 4px;
}

.related-links-item {
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 6px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
}

.related-links-item:hover {
  background: var(--accent);
  color: var(--surface);
  text-decoration: none;
  border-color: var(--accent);
}

/* 侧栏卡片 */
.aside-card,
.sidebar-card,
.sidebar-block,
.aside-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.aside-title,
.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
}

.aside-link-list li,
.aside-links li,
.aside-list li,
.sidebar-links li,
.sidebar-list li,
.sidebar-term-list li {
  margin-bottom: 10px;
}

.aside-link,
.aside-link-item,
.sidebar-item a {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  display: inline-block;
  padding-left: 12px;
  position: relative;
}

.aside-link::before,
.aside-link-item::before,
.sidebar-item a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

.aside-link:hover,
.aside-link-item:hover,
.sidebar-item a:hover {
  color: var(--accent);
  text-decoration: none;
}

.aside-text,
.sidebar-note,
.sidebar-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* 插图 */
.page-illustration,
.page-figure,
.content-illustration,
.term-illustration {
  margin: 24px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.illustration-img,
.page-figure-img,
.content-illustration img,
.term-illustration img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.illustration-caption,
.figcaption,
.figure-caption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-sans);
}

/* 表格通用 */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.service-table,
.service-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-family: var(--font-sans);
}

.service-table th,
.service-table td,
.service-matrix-table th,
.service-matrix-table td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.service-table thead th,
.service-matrix-table thead th {
  background: var(--accent);
  color: var(--surface);
  font-weight: 600;
  white-space: nowrap;
}

.service-table tbody tr:nth-child(even),
.service-matrix-table tbody tr:nth-child(even) {
  background: rgba(217, 210, 200, 0.15);
}

.service-table tbody tr:hover,
.service-matrix-table tbody tr:hover {
  background: rgba(30, 90, 122, 0.06);
}

/* 折叠 FAQ */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--surface);
  overflow: hidden;
}

.faq-question {
  cursor: pointer;
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--secondary);
  font-weight: 400;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line);
}

.faq-answer {
  padding: 14px 18px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-answer p {
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   pages · 首页专属模块
   -------------------------------------------------------------------------- */

/* 首屏 hero */
.hero-section {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: 30px;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero-title em {
  font-style: normal;
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}

.hero-lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.hero-cta {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--surface);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.hero-cta:hover {
  background: var(--secondary);
  color: var(--surface);
  text-decoration: none;
}

.hero-figure {
  margin: 0;
}

.hero-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* 三入口 */
.entry-path-section {
  background: var(--paper);
}

.entry-path-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.entry-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.entry-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(31, 45, 61, 0.08);
  text-decoration: none;
}

.entry-card-title {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 8px;
  font-family: var(--font-sans);
}

.entry-card-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* 服务预览 */
.service-preview-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-preview-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px;
}

.service-table-wrap {
  overflow-x: auto;
}

.section-more-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.section-more-link:hover {
  color: var(--secondary);
  border-color: var(--secondary);
  text-decoration: none;
}

/* 近期更新 */
.recent-updates-section {
  background: var(--paper);
}

.recent-updates-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px;
}

.update-list {
  border-left: 2px solid var(--line);
  padding-left: 20px;
}

.update-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.update-item:last-child {
  border-bottom: none;
}

.update-date {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
  min-width: 88px;
}

.update-link {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}

.update-link:hover {
  color: var(--accent);
}

/* 案例引导 */
.case-guide-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-guide-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.case-guide-figure {
  margin: 0;
}

.case-guide-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.case-guide-content {
  min-width: 0;
}

.case-guide-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.case-guide-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.guide-link {
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 8px 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-weight: 500;
}

.guide-link:hover {
  background: var(--accent);
  color: var(--surface);
  text-decoration: none;
}

/* 流程预览（首页） */
.process-preview-section {
  background: var(--paper);
}

.process-preview-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px;
}

.process-preview-inner .process-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.process-preview-inner .process-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.process-preview-inner .process-step::before {
  content: attr(data-step);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--secondary);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.process-preview-inner .process-step-title {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
  font-family: var(--font-sans);
}

.process-preview-inner .process-step-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* FAQ 预览 */
.faq-preview-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.faq-preview-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px;
}

.faq-preview-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
}

.faq-preview-item {
  border-bottom: 1px dashed var(--line);
  padding: 8px 0;
}

.faq-preview-link {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
  display: block;
  padding-left: 16px;
  position: relative;
}

.faq-preview-link::before {
  content: "Q";
  position: absolute;
  left: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
}

.faq-preview-link:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 内页共用标题区与摘要
   -------------------------------------------------------------------------- */

.page-header {
  margin: 24px 0 8px;
}

.page-title {
  font-size: 30px;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0;
}

.page-title-block {
  margin-bottom: 24px;
}

.page-abstract {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-description {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   pages · 服务体系页
   -------------------------------------------------------------------------- */

.service-matrix-section {
  margin-bottom: 40px;
}

.scenario-list {
  display: grid;
  gap: 16px;
}

.scenario-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.scenario-name {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
  font-family: var(--font-sans);
}

.scenario-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.boundary-section {
  margin-bottom: 40px;
}

.boundary-list {
  display: grid;
  gap: 12px;
}

.boundary-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--secondary);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 合作流程页
   -------------------------------------------------------------------------- */

/* 合作流程页的垂直步骤 */
section.process-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

section.process-steps .process-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.process-step .step-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.process-step .step-number {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--surface);
  background: var(--accent);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process-step .step-name {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.process-step .step-body {
  min-width: 0;
}

.process-step .step-body h3 {
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 6px;
}

.process-step .step-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* 准备清单 */
.preparation-checklist {
  margin-bottom: 40px;
}

.checklist-list {
  display: grid;
  gap: 10px;
}

.checklist-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  position: relative;
  padding-left: 40px;
}

.checklist-list li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-sans);
}

/* 下一步入口 */
.next-entry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 32px;
}

.next-entry-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.next-entry-text {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.next-links,
.next-entry-list {
  display: grid;
  gap: 10px;
}

.next-links li a,
.next-entry-list li a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 15px;
  color: var(--accent);
  transition: border-color var(--transition), background var(--transition);
}

.next-links li a:hover,
.next-entry-list li a:hover {
  border-color: var(--accent);
  background: rgba(30, 90, 122, 0.04);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages · 案例解读页
   -------------------------------------------------------------------------- */

.method-explanation {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}

.method-explanation h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.method-explanation p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}

.scenario-block {
  margin-bottom: 40px;
}

.scenario-block h2 {
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}

.scenario-block .scenario-item {
  margin-bottom: 16px;
}

.scenario-block .scenario-item h3 {
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 6px;
}

.scenario-block .scenario-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.limitations-block {
  margin-bottom: 40px;
}

.limitations-list {
  display: grid;
  gap: 12px;
}

.limitations-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--chart-ochre);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 术语索引页
   -------------------------------------------------------------------------- */

.term-index-article {
  margin-top: 24px;
}

.glossary-section {
  margin-bottom: 40px;
}

.glossary-list {
  display: grid;
  gap: 12px;
}

.glossary-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 8px 20px;
  align-items: start;
}

.glossary-term {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.glossary-term::before {
  content: attr(data-pinyin);
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}

.glossary-def {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  grid-column: 2;
  min-width: 0;
}

.glossary-rel {
  font-size: 13px;
  color: var(--secondary);
  grid-column: 2;
  min-width: 0;
}

.glossary-rel a {
  color: var(--accent);
  margin-right: 4px;
}

.cross-reference-section {
  margin-bottom: 40px;
}

.cross-ref-list {
  display: grid;
  gap: 10px;
}

.cross-ref-item a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 15px;
  color: var(--accent);
}

.cross-ref-item a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages · 常见问题页
   -------------------------------------------------------------------------- */

.faq-section {
  margin-bottom: 40px;
}

.faq-section h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.faq-section-boundary {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   pages · 站点说明页
   -------------------------------------------------------------------------- */

.work-principles {
  margin-bottom: 40px;
}

.principles-list {
  display: grid;
  gap: 16px;
  counter-reset: principle;
}

.principle-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  padding-left: 60px;
  counter-increment: principle;
}

.principle-item::before {
  content: counter(principle, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--surface);
  background: var(--accent);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.principle-item h3 {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 6px;
  font-family: var(--font-sans);
}

.principle-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.source-handling {
  margin-bottom: 40px;
}

.source-rules-list {
  display: grid;
  gap: 12px;
}

.source-rule-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.source-rule-item h3 {
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 6px;
  font-family: var(--font-sans);
}

.source-rule-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* 合作与反馈入口 */
.cooperation-feedback {
  margin-bottom: 40px;
}

.entry-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.entry-link-item {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--surface);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.entry-link-item:hover {
  background: var(--secondary);
  color: var(--surface);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages · 404 页
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.error-section {
  max-width: 520px;
  margin: 0 auto;
}

.error-code {
  font-family: var(--font-sans);
  font-size: 64px;
  font-weight: 700;
  color: var(--line);
  line-height: 1;
  margin-bottom: 16px;
}

.error-section h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 24px;
}

.error-home-link {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: var(--surface);
  font-family: var(--font-sans);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
}

.error-home-link:hover {
  background: var(--secondary);
  color: var(--surface);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive · 响应式断点
   -------------------------------------------------------------------------- */

/* 平板：1024px */
@media (max-width: 1024px) {
  .page-layout.layout-with-aside,
  .page-layout:has(.page-aside),
  .page-layout:has(.sidebar),
  .layout-shell:has(.sidebar),
  .layout-shell:has(.sidebar-area) {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-image {
    height: 260px;
  }

  .case-guide-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-legal-col {
    grid-column: 1 / -1;
  }
}

/* 手机：768px */
@media (max-width: 768px) {
  .header-inner {
    height: auto;
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .nav-list {
    display: flex;
    gap: 2px;
    min-width: max-content;
    padding-bottom: 2px;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  .breadcrumb-inner,
  .breadcrumb-wrap,
  .breadcrumb-container,
  .breadcrumb-area {
    padding: 12px 16px 0;
  }

  .site-main,
  .page-layout,
  .layout-shell {
    padding: 0 16px;
  }

  .hero-inner {
    padding: 32px 16px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-image {
    height: 200px;
  }

  .abstract-inner,
  .entry-path-inner,
  .service-preview-inner,
  .recent-updates-inner,
  .case-guide-inner,
  .process-preview-inner,
  .faq-preview-inner {
    padding: 32px 16px;
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .process-preview-inner .process-steps {
    grid-template-columns: 1fr;
  }

  .faq-preview-list {
    grid-template-columns: 1fr;
  }

  .case-guide-image {
    height: 200px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 32px 16px 24px;
    gap: 24px;
  }

  .footer-legal-col {
    grid-column: auto;
  }

  .page-title {
    font-size: 26px;
  }

  .glossary-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .glossary-def,
  .glossary-rel {
    grid-column: 1;
  }

  .illustration-img,
  .page-figure-img,
  .content-illustration img,
  .term-illustration img {
    height: 200px;
  }

  .related-links {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .update-item {
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
  }

  .update-date {
    min-width: auto;
  }

  section.process-steps .process-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .error-main {
    padding: 48px 16px;
  }

  .error-code {
    font-size: 48px;
  }
}

/* 小屏手机：390px */
@media (max-width: 390px) {
  .hero-inner {
    padding: 24px 12px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-cta {
    display: block;
    text-align: center;
  }

  .entry-card {
    padding: 18px;
  }

  .process-preview-inner .process-step {
    padding: 16px;
  }

  .footer-inner {
    padding: 24px 16px 20px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-abstract {
    padding: 14px 16px;
    font-size: 14px;
  }

  .entry-link-item {
    display: block;
    width: 100%;
    text-align: center;
  }

  .principle-item {
    padding-left: 16px;
    padding-top: 56px;
  }

  .principle-item::before {
    top: 16px;
    left: 16px;
  }
}
