/* =========================================================
   糖心小桃 · 内容导航站 整站样式表
   视觉方向：数字出版风 · 纸白底 / 深墨蓝 / 珊瑚红
   ========================================================= */

/* =========================================================
   01 · base — 基础变量、重置、全局字体与颜色
   ========================================================= */

:root {
  --ink: #1f2b38;
  --paper: #f5f1e8;
  --card: #fffdf7;
  --accent: #c94f2c;
  --line: #d8d0bf;
  --muted: #6b7280;
  --serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --sans: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --container: 1160px;
  --gutter: 16px;
  --radius: 6px;
  --radius-sm: 4px;
  --header-h: 72px;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 12px;
}

p:last-child {
  margin-bottom: 0;
}

/* 链接箭头 */
.link-arrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.link-arrow::after {
  content: ' →';
  transition: transform var(--transition);
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* =========================================================
   02 · layout — 全站统一骨架：页头 / 页脚 / 内容容器
   ========================================================= */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* 页头 */
.site-header {
  background-color: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.brand-tag {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* 主导航 */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background-color var(--transition);
}

.nav-list li a:hover {
  color: var(--accent);
  background-color: rgba(201, 79, 44, 0.06);
}

.nav-list li a.is-current {
  color: var(--accent);
  font-weight: 600;
  background-color: rgba(201, 79, 44, 0.08);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

/* 页脚 */
.site-footer {
  background-color: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--gutter) 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-col-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-boundary-text {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}

.footer-feedback-link a {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* 内页通用骨架 */
.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 8px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* 内页标题区 */
.page-header {
  padding: 12px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.page-description {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-title {
  font-size: 34px;
  margin-bottom: 10px;
}

.page-intro,
.page-lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 720px;
}

/* 通用区块标题 */
.section-title {
  font-size: 22px;
  margin-bottom: 16px;
}

/* 区块标记（栏目标记） */
.section-mark,
.block-marker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 26px;
}

/* =========================================================
   03 · components — 通用组件：按钮 / 卡片 / 折叠 / 时间线
   ========================================================= */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  min-height: 44px;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background-color: #b04324;
  color: #fff;
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 图片容器 */
figure {
  margin: 0;
}

figure img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* 时间线条目（首页 + 更新纪要共用基础） */
.timeline-list {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}

.timeline-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background-color: var(--line);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-content {
  flex: 1;
}

.timeline-content h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

/* FAQ 折叠（首页 + 内页共用） */
.faq-fold,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--card);
  margin-bottom: 12px;
}

.faq-fold summary,
.faq-item summary {
  padding: 16px 20px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-fold summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-fold summary::after,
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-fold[open] summary::after,
.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-fold-body,
.faq-answer {
  padding: 0 20px 20px;
  font-size: 15px;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.faq-fold-body p,
.faq-answer p {
  margin-bottom: 10px;
}

.faq-fold-body a,
.faq-answer a {
  color: var(--accent);
  font-weight: 600;
}

/* 相关链接条 */
.related-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 0 8px;
  font-size: 14px;
}

.related-links-label {
  color: var(--muted);
  margin-right: 4px;
}

.related-links-item {
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   04 · 首页 — index.html 专用样式
   ========================================================= */

/* 刊头条 */
.masthead {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 56px;
}

.masthead-text {
  max-width: 620px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.masthead h1 {
  font-size: 38px;
  line-height: 1.25;
  margin-bottom: 16px;
}

.masthead-lead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.masthead-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.quick-news {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-news li {
  font-size: 14px;
}

.quick-news li a {
  color: var(--muted);
}

.quick-news li a:hover {
  color: var(--accent);
}

.masthead-figure {
  position: relative;
}

.masthead-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(31, 43, 56, 0.12);
}

/* 本期策展 */
.curation-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.curation-body {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.curation-figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.curation-content > p {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 20px;
}

.reading-lines {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reading-line {
  padding: 16px 20px;
  background-color: var(--card);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.line-number {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.reading-line h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.reading-line p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.reading-line a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* 访问路径主推荐 */
.path-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.path-step {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow var(--transition);
}

.path-step:hover {
  box-shadow: 0 4px 16px rgba(31, 43, 56, 0.08);
}

.path-step .step-number {
  display: inline-block;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}

.path-step h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.path-step p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

.path-step a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* 分区速览 */
.sections-overview {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.section-intro {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 720px;
}

.section-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.section-item {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow var(--transition);
}

.section-item:hover {
  box-shadow: 0 4px 16px rgba(31, 43, 56, 0.08);
}

.item-index {
  display: inline-block;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.section-item p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-item a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* 专题手册预览 */
.themes-preview {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.theme-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.theme-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.theme-card:hover {
  box-shadow: 0 4px 16px rgba(31, 43, 56, 0.08);
}

.theme-card img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.theme-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.theme-card-body h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.theme-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.theme-tags span,
.theme-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background-color: rgba(201, 79, 44, 0.08);
  border-radius: 999px;
}

.theme-scene {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.theme-card-body a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* 最近更新 */
.updates-preview {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

/* 答疑摘要 */
.faq-preview {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.faq-more {
  margin-top: 8px;
  font-size: 15px;
}

.faq-more a {
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   05 · 内页 — sections.html 分区目录
   ========================================================= */

.page-layout.sidebar-left {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.section-index {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.aside-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.index-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.index-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink);
  transition: background-color var(--transition), color var(--transition);
}

.index-list li a:hover {
  background-color: rgba(201, 79, 44, 0.06);
  color: var(--accent);
}

.index-num {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.aside-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.section-detail {
  min-width: 0;
}

.section-figure {
  margin-bottom: 32px;
}

.section-figure img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.section-block {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.block-head {
  margin-bottom: 14px;
}

.block-head h2 {
  font-size: 22px;
}

.marker-num {
  font-weight: 700;
  color: var(--accent);
  margin-right: 4px;
}

.block-desc {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 18px;
}

.block-list {
  margin-bottom: 18px;
}

.list-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.block-list ul {
  list-style: disc;
  padding-left: 20px;
}

.block-list ul li {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.6;
}

.block-usage {
  background-color: rgba(216, 208, 191, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.block-usage p:not(.list-label) {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.block-link a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* 使用建议总述 */
.usage-summary {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 8px;
}

.usage-summary h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.usage-summary p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 680px;
}

.summary-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   06 · 内页 — themes.html 主题手册
   ========================================================= */

.themes-intro {
  padding: 8px 0 32px;
}

.themes-intro p {
  font-size: 15px;
  color: var(--muted);
  max-width: 720px;
}

.themes-gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 40px;
}

.theme-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.theme-card:hover {
  box-shadow: 0 4px 16px rgba(31, 43, 56, 0.08);
}

.theme-cover {
  min-height: 200px;
}

.theme-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.theme-name {
  font-size: 21px;
  margin-bottom: 10px;
}

.theme-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.theme-scene {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.theme-route {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 10px;
}

.theme-route a {
  color: var(--accent);
  font-weight: 600;
}

.theme-link a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* 路线建议 */
.route-suggestion {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 8px;
}

.route-suggestion p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 720px;
}

.route-suggestion a {
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   07 · 内页 — guide.html 访问指引
   ========================================================= */

.sub-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.sub-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.sub-tab:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.guide-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.guide-step .step-number {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  padding-top: 4px;
}

.step-content h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.step-content p {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 10px;
  max-width: 680px;
}

.step-content p:last-of-type {
  margin-bottom: 14px;
}

.step-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.guide-figure {
  margin: 0 0 40px;
}

.guide-figure img {
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

/* 核验清单 */
.checklist-section {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.checklist-intro {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.checklist li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  margin-top: 2px;
}

/* 边界提醒 */
.boundary-note {
  background-color: rgba(201, 79, 44, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin-bottom: 8px;
}

.boundary-note p {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.65;
}

/* =========================================================
   08 · 内页 — faq.html 浏览答疑
   ========================================================= */

.faq-intro {
  padding: 8px 0 28px;
}

.faq-intro p {
  font-size: 15px;
  color: var(--muted);
  max-width: 720px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 40px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--ink);
}

.faq-answer a {
  color: var(--accent);
  font-weight: 600;
}

/* 反馈说明块 */
.faq-feedback {
  padding-bottom: 8px;
}

.feedback-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.feedback-text h3 {
  font-size: 19px;
  margin-bottom: 12px;
}

.feedback-text p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.feedback-text a {
  color: var(--accent);
  font-weight: 600;
}

.faq-figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* =========================================================
   09 · 内页 — updates.html 更新纪要
   ========================================================= */

.timeline-section {
  padding-bottom: 40px;
}

.timeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.timeline-head h2 {
  font-size: 22px;
}

.section-note {
  font-size: 14px;
  color: var(--muted);
}

.timeline-entry {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: 28px;
}

.timeline-entry .timeline-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  position: relative;
  z-index: 1;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background-color: var(--line);
}

.timeline-entry:last-child::before {
  display: none;
}

.timeline-item {
  flex: 1;
  min-width: 0;
}

.revision-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background-color: rgba(201, 79, 44, 0.08);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.timeline-item h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.timeline-item > p:not(.revision-cat) {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 8px;
  max-width: 680px;
}

.entry-link a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* 维护说明 */
.maintenance-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 8px;
}

.maintenance-text h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.maintenance-text p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 10px;
}

.maintenance-figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* =========================================================
   10 · 内页 — boundary.html 内容边界
   ========================================================= */

.boundary-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
  align-items: start;
}

.boundary-duties,
.boundary-limits {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.boundary-duties h2,
.boundary-limits h2 {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.duty-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.duty-list li h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.duty-list li p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.boundary-figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.limit-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.limit-list li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 1.65;
  align-items: flex-start;
}

.limit-list li::before {
  content: '×';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  margin-top: 2px;
}

.limit-list li strong {
  display: block;
  font-weight: 700;
  font-size: 15px;
}

.boundary-limits .boundary-note {
  margin-top: 20px;
}

/* 对应关系表 */
.relation-table-section {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}

.relation-table-section h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.relation-intro {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.table-wrap {
  overflow-x: auto;
}

.relation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.relation-table th,
.relation-table td {
  padding: 14px 16px;
  text-align: left;
  border: 1px solid var(--line);
}

.relation-table th {
  background-color: rgba(216, 208, 191, 0.25);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
}

.relation-table td {
  background-color: var(--card);
  font-size: 14px;
  line-height: 1.6;
}

/* 使用前提 */
.premise-section {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 8px;
}

.premise-section h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.premise-section p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 720px;
}

.premise-section a {
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   11 · 404 页 — 404.html
   ========================================================= */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 16px;
}

.error-panel {
  max-width: 560px;
  text-align: center;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 40px;
}

.error-code {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 26px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.error-help {
  font-size: 14px;
  color: var(--muted);
}

.error-help a {
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   12 · responsive — 响应式断点
   ========================================================= */

/* 平板及以下 */
@media (max-width: 960px) {
  .header-inner {
    gap: 16px;
  }

  .masthead {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 40px;
  }

  .masthead-figure {
    order: 2;
  }

  .curation-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .path-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .section-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .theme-card {
    grid-template-columns: 240px 1fr;
  }

  .page-layout.sidebar-left {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .feedback-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .maintenance-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .boundary-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* 手机 */
@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 19px;
  }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px var(--gutter);
    gap: 10px;
  }

  .brand {
    margin-right: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 8px;
    font-size: 16px;
    border-radius: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* 首页 */
  .masthead {
    padding: 28px 0 36px;
    gap: 24px;
  }

  .masthead h1 {
    font-size: 28px;
  }

  .masthead-lead {
    font-size: 16px;
  }

  .masthead-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .masthead-actions .btn {
    width: 100%;
  }

  .curation-section,
  .path-section,
  .sections-overview,
  .themes-preview,
  .updates-preview,
  .faq-preview {
    padding: 36px 0;
  }

  .path-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .theme-card {
    grid-template-columns: 1fr;
  }

  .theme-card img {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .theme-card-body {
    padding: 20px;
  }

  /* 内页 */
  .inner-main {
    padding: 0 14px;
  }

  .breadcrumb {
    padding: 14px 0 6px;
    font-size: 13px;
  }

  .page-header {
    padding: 8px 0 20px;
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 26px;
  }

  /* 分区目录 */
  .page-layout.sidebar-left {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-index {
    position: static;
    order: 2;
  }

  .section-detail {
    order: 1;
  }

  .section-block {
    padding: 20px;
  }

  .section-figure img {
    aspect-ratio: 16 / 9;
  }

  .usage-summary {
    padding: 20px;
  }

  .summary-actions {
    flex-direction: column;
  }

  .summary-actions .btn {
    width: 100%;
  }

  .related-links {
    padding: 16px 0 4px;
  }

  /* 主题手册 */
  .themes-intro {
    padding-bottom: 24px;
  }

  .theme-card {
    grid-template-columns: 1fr;
  }

  .theme-cover img {
    aspect-ratio: 16 / 9;
  }

  .theme-info {
    padding: 20px;
  }

  .route-suggestion {
    padding: 20px;
  }

  /* 访问指引 */
  .sub-tabs {
    gap: 6px;
    padding-bottom: 12px;
    margin-bottom: 24px;
  }

  .sub-tab {
    padding: 8px 14px;
    font-size: 13px;
  }

  .guide-step {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 20px;
  }

  .guide-step .step-number {
    font-size: 28px;
  }

  .guide-figure img {
    aspect-ratio: 16 / 9;
  }

  .checklist-section {
    padding: 20px;
  }

  /* 浏览答疑 */
  .faq-list {
    gap: 10px;
  }

  .faq-fold summary,
  .faq-item summary {
    padding: 14px 16px;
    font-size: 16px;
  }

  .faq-fold-body,
  .faq-answer {
    padding: 12px 16px 16px;
  }

  .feedback-block {
    padding: 20px;
  }

  /* 更新纪要 */
  .timeline-head {
    flex-direction: column;
    gap: 4px;
  }

  .timeline-entry {
    gap: 14px;
  }

  .timeline-entry .timeline-dot {
    width: 10px;
    height: 10px;
  }

  .timeline-entry::before {
    left: 4px;
  }

  .maintenance-section {
    padding: 20px;
  }

  /* 内容边界 */
  .boundary-duties,
  .boundary-limits {
    padding: 20px;
  }

  .relation-table-section {
    padding: 20px;
  }

  .relation-table th,
  .relation-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .premise-section {
    padding: 20px;
  }

  /* 页脚 */
  .site-footer {
    margin-top: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .footer-bottom p {
    font-size: 12px;
    padding: 12px 16px;
  }

  /* 404 */
  .error-main {
    padding: 48px 14px;
  }

  .error-panel {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 48px;
  }
}
