/* ==========================================================================
   天美麻花星空 · 站点样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --ink: #101613;
  --paper: #f3f0e8;
  --white: #ffffff;
  --line: #d8d2c4;
  --pine: #2f6b57;
  --brick: #b4552f;
  --brass: #c9a227;
  --ink-soft: #3c453f;
  --ink-mute: #5d665f;
  --radius: 6px;
  --shell: 1200px;
  --gap: 28px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 120ms ease, border-color 120ms ease,
    background-color 120ms ease;
}

a:hover {
  color: var(--pine);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--ink-mute);
  font-size: 12.5px;
  line-height: 1.6;
}

table {
  border-collapse: collapse;
  width: 100%;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* --------------------------------------------------------------------------
   layout · 外壳与栅格
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  border-bottom: 1px solid #1d2a24;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand-block {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: inline-block;
  color: #f6f3ea;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

a.brand-mark:hover {
  color: var(--brass);
}

.brand-slogan {
  margin: 0;
  color: #9aa79f;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.primary-nav.site-nav {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.nav-list > li > a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  border-radius: var(--radius);
  color: #dfe4de;
  font-size: 13.5px;
  white-space: nowrap;
}

.nav-list > li > a:hover {
  background: #1b2620;
  color: #fff;
}

.nav-list > li > a.is-current {
  color: #101613;
  background: var(--brass);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #2e3b34;
  border-radius: var(--radius);
  background: #17201b;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex: 0 0 auto;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #e6e9e3;
  transition: transform 120ms ease, opacity 120ms ease;
}

.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);
}

/* 主栅格：默认内容在前，侧栏在后；.sidebar-left 时侧栏在前 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: var(--gap);
  align-items: start;
  padding-top: 28px;
  padding-bottom: 56px;
}

.page-layout.sidebar-left,
.sidebar-left .page-layout {
  grid-template-columns: 232px minmax(0, 1fr);
}

.page-layout > aside {
  order: 2;
  min-width: 0;
}

.page-layout > main {
  order: 1;
  min-width: 0;
}

.page-layout.sidebar-left > aside,
.sidebar-left .page-layout > aside {
  order: 1;
}

.page-layout.sidebar-left > main,
.sidebar-left .page-layout > main {
  order: 2;
}

.site-main {
  min-width: 0;
}

.inner-main {
  max-width: 780px;
}

.site-footer {
  margin-top: 0;
  background: var(--ink);
  color: #b9c2bb;
  font-size: 13.5px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-top: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid #24312a;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  min-width: 0;
}

.footer-brand .brand-mark {
  color: #f6f3ea;
}

.footer-brand p {
  margin: 0;
  color: #9aa79f;
  font-size: 13px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.footer-col h3 {
  margin-bottom: 10px;
  color: #eef1ea;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-col li a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #b0bab2;
  font-size: 13px;
}

.footer-col li a:hover {
  color: var(--brass);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 26px;
  border-top: 1px solid #24312a;
  color: #8b968e;
  font-size: 12.5px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom .copyright {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #7b867e;
}

/* --------------------------------------------------------------------------
   components · 通用元素
   -------------------------------------------------------------------------- */

.text-link {
  color: var(--ink);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 1px;
  font-size: 13.5px;
}

.text-link:hover {
  color: var(--pine);
  border-bottom-color: var(--pine);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: #f6f3ea;
}

.btn-primary:hover {
  background: var(--pine);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--pine);
  color: var(--pine);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--ink-mute);
}

.breadcrumb a {
  color: var(--ink-mute);
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover {
  color: var(--pine);
  border-bottom-color: var(--pine);
}

.breadcrumb-sep {
  color: #b6b0a2;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* 页面标题区（全站统一） */
.page-header {
  margin-bottom: 18px;
}

.page-title {
  font-size: clamp(1.65rem, 3vw, 2.05rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.page-title-block,
.page-head,
.page-title {
  min-width: 0;
}

.page-title-block,
.page-head {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-lead,
.lead {
  max-width: 42em;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.8;
}

.title-links,
.page-head-links,
.page-header-links,
.head-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 12px;
}

.title-links > a,
.page-head-links > a,
.page-header-links > a,
.head-links > a {
  font-size: 13.5px;
}

.page-description {
  margin: 0 0 8px;
  color: var(--ink-mute);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

/* 侧栏通用 */
.tree-sidebar,
.side-nav,
.sidebar {
  min-width: 0;
  background: var(--ink);
  border-radius: var(--radius);
  padding: 16px 14px;
  color: #c3ccc4;
}

.tree-nav + .tree-nav {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #24312a;
}

.tree-title,
.side-nav-title,
.sidebar-title {
  margin: 0 0 10px;
  color: #eef1ea;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.tree-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tree-list > li > a,
.tree-list > .tree-group > .tree-parent {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 8px 4px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #c3ccc4;
  font-size: 13px;
  line-height: 1.5;
}

.tree-list > li > a:hover,
.tree-list > .tree-group > .tree-parent:hover {
  background: #1b2620;
  color: #fff;
}

.tree-list > li > a.is-current,
.tree-list > li > a[aria-current="page"],
.tree-list > .tree-group > .tree-parent.is-current {
  border-left-color: var(--brass);
  background: #1b2620;
  color: #fff;
  font-weight: 600;
}

.tree-sub {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 2px 0 6px 10px;
  padding-left: 8px;
  border-left: 1px solid #2b3831;
}

.tree-sub li a {
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 2px 6px;
  color: #9faaa2;
  font-size: 12.5px;
  line-height: 1.5;
}

.tree-sub li a:hover {
  color: #fff;
}

.tree-group {
  margin-bottom: 4px;
}

.tree-group .tree-parent {
  font-weight: 600;
}

/* 侧栏内嵌标题块 */
.side-nav-head,
.side-nav-cross,
.sidebar-panel {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #24312a;
}

.side-nav-cross:last-child,
.sidebar-panel:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.side-nav-kicker {
  margin: 0 0 4px;
  color: var(--brass);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.side-nav-note {
  margin: 0;
  color: #9aa79f;
  font-size: 12.5px;
  line-height: 1.6;
}

.side-nav-tree {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-nav-group > .side-nav-parent {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 8px 4px 10px;
  border-left: 2px solid transparent;
  color: #d5dcd5;
  font-size: 13px;
  font-weight: 600;
}

.side-nav-group > .side-nav-parent:hover {
  background: #1b2620;
  color: #fff;
}

.side-nav-group > .side-nav-parent.is-current {
  border-left-color: var(--brass);
  background: #1b2620;
  color: #fff;
}

.side-nav-children {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 2px 0 4px 10px;
  padding-left: 8px;
  border-left: 1px solid #2b3831;
}

.side-nav-children li a {
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 2px 6px;
  color: #9faaa2;
  font-size: 12.5px;
}

.side-nav-children li a:hover {
  color: #fff;
}

/* 侧栏折叠按钮（内页） */
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.sidebar-head .sidebar-title {
  margin: 0;
}

.sidebar-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #2e3b34;
  border-radius: var(--radius);
  background: #17201b;
  color: #e6e9e3;
  font-size: 12px;
  cursor: pointer;
}

/* 表格 */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.table-scroll:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

.data-table {
  min-width: 560px;
  font-size: 14px;
  line-height: 1.55;
}

.data-table caption {
  padding: 10px 12px;
  color: var(--ink-mute);
  font-size: 12.5px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  background: var(--ink);
  color: #f2f4ee;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: left;
  padding: 10px 12px;
  white-space: nowrap;
}

.data-table tbody td {
  padding: 11px 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}

.data-table tbody tr:first-child td {
  border-top: 0;
}

.data-table tbody tr:hover td {
  background: #f7f5ee;
}

.data-table tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--brass);
}

.data-table tbody td:first-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.data-table tbody td:last-child a {
  color: var(--ink);
  border-bottom: 1px solid var(--brass);
  white-space: nowrap;
}

.data-table tbody td:last-child a:hover {
  color: var(--pine);
  border-bottom-color: var(--pine);
}

/* 状态标签 */
.status-tag,
.state-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  white-space: nowrap;
}

.status-ok,
.state-green {
  background: #e4efe9;
  color: #235743;
  border: 1px solid #bcd7c9;
}

.status-pending,
.status-warn,
.state-red {
  background: #f6e8e1;
  color: #8c3f21;
  border: 1px solid #e2c3b4;
}

/* 相关阅读带 */
.related-band,
.related-reading {
  margin-top: 30px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #faf8f2;
}

.related-band h2,
.related-reading h2 {
  margin-bottom: 10px;
  font-size: 15px;
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.related-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  min-width: 0;
}

.related-list li a {
  color: var(--ink);
  border-bottom: 1px solid var(--brass);
  font-size: 13.5px;
}

.related-list li a:hover {
  color: var(--pine);
  border-bottom-color: var(--pine);
}

.related-note {
  color: var(--ink-mute);
  font-size: 12.5px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 12px;
}

.module-foot {
  margin-top: 12px;
  color: var(--ink-mute);
  font-size: 13px;
}

/* 步骤列表 */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: step;
}

.step-list > li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-no {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
}

.step-body {
  min-width: 0;
}

.step-body h3 {
  margin-bottom: 3px;
  font-size: 14.5px;
}

.step-body p {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

/* 图片容器 */
.media-figure,
.media-block,
.module-figure,
.content-figure,
.check-figure,
.prep-figure,
.hero-figure,
.content-media {
  margin: 0;
  min-width: 0;
}

.media-figure img,
.media-block img,
.module-figure img,
.content-figure img,
.check-figure img,
.prep-figure img,
.hero-figure img,
.content-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #e7e2d5;
  object-fit: cover;
}

/* 折叠问答 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--pine);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
}

.faq-item[open] > summary {
  background: #f7f5ee;
  border-bottom: 1px solid var(--line);
}

.faq-item[open] > summary::after {
  content: "\2013";
}

.faq-answer {
  padding: 12px 14px 14px;
}

.faq-item > p {
  padding: 12px 14px 14px;
  color: var(--ink-soft);
  font-size: 14px;
}

/* 列表说明 */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.check-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--pine);
}

.point-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.point-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pine);
  border-radius: var(--radius);
}

.point-list li strong {
  font-size: 14px;
}

.point-list li span {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.note-line {
  margin-top: 12px;
  padding: 10px 14px;
  background: #f6efe9;
  border-left: 3px solid var(--brick);
  border-radius: var(--radius);
  color: #7b4227;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.home-main {
  min-width: 0;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-lead {
  min-width: 0;
}

.hero-lead h1 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.05rem);
  font-weight: 700;
  line-height: 1.25;
}

.hero-text {
  max-width: 40em;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
}

.hero-figure {
  margin-top: 4px;
}

.hero-figure img {
  aspect-ratio: 16 / 10;
}

.task-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  background: #faf8f2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.task-panel-title {
  margin: 0 0 2px;
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name arrow"
    "desc arrow";
  gap: 2px 12px;
  align-items: center;
  min-height: 56px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  color: var(--ink);
}

.task-row:hover {
  background: #f2f6f2;
  border-left-color: var(--pine);
  color: var(--ink);
}

.task-row-name {
  grid-area: name;
  font-size: 14px;
  font-weight: 600;
}

.task-row-desc {
  grid-area: desc;
  color: var(--ink-mute);
  font-size: 12.5px;
  line-height: 1.55;
}

.task-row-arrow {
  grid-area: arrow;
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 15px;
}

.content-media-primary {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.content-media-primary img {
  aspect-ratio: 21 / 9;
}

.status-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.status-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: var(--white);
  min-width: 0;
}

.status-label {
  color: var(--ink-mute);
  font-size: 12px;
}

.status-value {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.section-block {
  margin-top: 32px;
  min-width: 0;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h2 {
  margin-bottom: 4px;
  font-size: 19px;
}

.section-intro {
  max-width: 46em;
  color: var(--ink-mute);
  font-size: 13.5px;
  line-height: 1.75;
}

.section-foot {
  margin-top: 10px;
  font-size: 13px;
}

/* 材料摘要 */
.material-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.material-lead {
  min-width: 0;
}

.material-lead h2 {
  margin-bottom: 8px;
  font-size: 19px;
}

.material-lead p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.material-lead .text-link {
  display: inline-block;
  margin-top: 10px;
}

.material-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.material-item {
  padding: 10px 14px;
  background: #faf8f2;
  border: 1px solid var(--line);
  border-left: 3px solid var(--pine);
  border-radius: var(--radius);
}

.material-name {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.material-tip {
  margin: 2px 0 0;
  color: var(--ink-mute);
  font-size: 12.5px;
  line-height: 1.65;
}

/* 品质摘要 */
.quality-list {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.quality-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.quality-row:first-child {
  border-top: 0;
}

.quality-group {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.quality-action {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

/* 合作三栏 */
.coop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.coop-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  min-width: 0;
}

.coop-card h3 {
  font-size: 15.5px;
  margin-bottom: 2px;
}

.coop-card p {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.coop-card .coop-sub {
  margin: 8px 0 2px;
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.coop-card .text-link {
  margin-top: auto;
  padding-top: 12px;
  align-self: flex-start;
}

/* --------------------------------------------------------------------------
   pages · 内页通用模块
   -------------------------------------------------------------------------- */

.module,
.section,
.content-section,
.faq-group {
  margin-top: 28px;
  min-width: 0;
}

.module > h2,
.section > h2,
.content-section > h2,
.faq-group > h2 {
  margin-bottom: 6px;
  font-size: 19px;
}

.module-intro,
.group-intro,
.section > p {
  max-width: 46em;
  color: var(--ink-mute);
  font-size: 13.5px;
  line-height: 1.75;
}

.module-intro {
  margin-bottom: 14px;
}

.group-intro {
  margin-bottom: 12px;
}

.module-figure,
.media-figure,
.content-figure {
  margin: 14px 0 16px;
}

.module-figure img,
.media-figure img,
.content-figure img {
  aspect-ratio: 16 / 9;
}

/* 服务目录：筛选标签 */
.scene-filter {
  margin-bottom: 22px;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13.5px;
}

.filter-chip:hover {
  border-color: var(--pine);
  color: var(--pine);
}

/* 服务目录：分组条目 */
.scene-group {
  margin-top: 18px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scene-group h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.group-note {
  margin-bottom: 10px;
  color: var(--ink-mute);
  font-size: 12.5px;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entry-list li {
  padding: 9px 12px;
  background: #faf8f2;
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.entry-list li strong {
  display: inline-block;
  margin-right: 6px;
  color: var(--ink);
}

/* 服务目录：交付形态 */
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.form-col {
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.form-col h3 {
  margin-bottom: 4px;
  font-size: 14.5px;
}

.form-col p {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

/* 门店与展厅：适用范围 */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 14px;
}

.two-col .col {
  min-width: 0;
}

.two-col .col h3 {
  margin-bottom: 8px;
  font-size: 14.5px;
}

/* 材料与来源：核对方式 */
.check-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 22px;
  align-items: start;
  margin-top: 14px;
}

.check-steps {
  min-width: 0;
}

.check-figure {
  min-width: 0;
}

.check-figure img {
  aspect-ratio: 4 / 3;
}

/* 材料与来源：理解偏差 */
.misreading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.misreading-item {
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brick);
  border-radius: var(--radius);
  min-width: 0;
}

.misreading-item h3 {
  margin-bottom: 4px;
  font-size: 14px;
}

.misreading-item p {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

/* 相关阅读（材料页模块） */
.module-related .related-list {
  gap: 8px 22px;
}

/* 制作与交付：阶段表 */
.stage-table tbody td:first-child {
  font-family: var(--font-mono);
  white-space: nowrap;
}

.stage-table .stage-no {
  color: var(--brass);
  margin-right: 6px;
}

/* 制作与交付：客户配合 */
.support-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.support-col {
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.support-col h3 {
  margin-bottom: 4px;
  font-size: 14.5px;
}

.support-col p {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.support-time {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: var(--ink-mute);
  font-size: 12.5px;
}

/* 制作与交付：确认节点 */
.node-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.node-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.node-no {
  flex: 0 0 auto;
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.node-body {
  min-width: 0;
}

.node-body h3 {
  margin-bottom: 3px;
  font-size: 14.5px;
}

.node-body p {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

/* 品质标准：检验分组 */
.inspection-group {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.inspection-group h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.inspection-items {
  display: flex;
  flex-direction: column;
}

.inspection-items li {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.inspection-items li:first-child {
  border-top: 0;
  padding-top: 0;
}

.item-name {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.item-action {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

/* 品质标准：验收步骤 */
#acceptance-steps .step-list {
  margin-top: 14px;
}

/* 品质标准：问题记录 */
.record-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 14px;
}

.record-fields,
.record-notes {
  min-width: 0;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.record-fields h3,
.record-notes h3 {
  margin-bottom: 8px;
  font-size: 14.5px;
}

.field-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 6px 0;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
}

.field-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.field-name {
  color: var(--ink);
  font-weight: 600;
}

.field-note {
  color: var(--ink-mute);
  font-size: 12.5px;
}

.status-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.record-tip {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: var(--ink-mute);
  font-size: 12.5px;
}

/* 合作方式：三类对照 */
.type-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.type-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--pine);
  border-radius: var(--radius);
  min-width: 0;
}

.type-card h3 {
  font-size: 15.5px;
}

.type-fit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.type-detail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  margin: 6px 0 0;
  font-size: 13px;
}

.type-detail dt {
  color: var(--ink-mute);
  font-size: 12.5px;
  white-space: nowrap;
}

.type-detail dd {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.type-link {
  margin-top: auto;
  padding-top: 10px;
}

/* 合作方式：准备清单 */
.prep-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px;
  align-items: start;
  margin-top: 14px;
}

.prep-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.prep-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
}

.prep-name {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.prep-use {
  color: var(--ink-mute);
  font-size: 12.5px;
  line-height: 1.65;
}

.prep-figure {
  min-width: 0;
}

.prep-figure img {
  aspect-ratio: 4 / 3;
}

/* 合作方式：后续步骤 */
#next-steps .step-list {
  margin-top: 14px;
}

/* FAQ 分组 */
.faq-group .faq-item {
  margin-top: 8px;
}

.faq-group .content-figure {
  margin: 12px 0 14px;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  padding-top: 48px;
  padding-bottom: 64px;
}

.error-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 26px;
  align-items: start;
}

.error-panel {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brick);
  border-radius: var(--radius);
  min-width: 0;
}

.error-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.05rem);
  font-weight: 700;
  line-height: 1.25;
}

.error-lead {
  max-width: 40em;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.error-routes {
  padding: 20px;
  background: #faf8f2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.error-routes h2 {
  margin-bottom: 10px;
  font-size: 16px;
}

.error-route-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.error-route-list li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 13.5px;
}

.error-route-list li a:hover {
  border-left-color: var(--pine);
  color: var(--pine);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .nav-list > li > a {
    padding: 0 8px;
    font-size: 13px;
  }

  .brand-slogan {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav.site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 8px 16px 16px;
    background: var(--ink);
    border-bottom: 1px solid #24312a;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list > li > a {
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }

  .header-inner {
    position: relative;
  }

  .page-layout,
  .page-layout.sidebar-left,
  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 44px;
  }

  .page-layout > aside,
  .page-layout.sidebar-left > aside,
  .sidebar-left .page-layout > aside {
    order: 2;
  }

  .page-layout > main,
  .page-layout.sidebar-left > main,
  .sidebar-left .page-layout > main {
    order: 1;
  }

  .tree-sidebar,
  .side-nav,
  .sidebar {
    padding: 14px;
  }

  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
  }

  .content-media-primary {
    grid-column: auto;
  }

  .status-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .material-brief {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .coop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coop-grid > .coop-card:last-child {
    grid-column: 1 / -1;
  }

  .form-grid,
  .misreading-grid,
  .support-columns,
  .type-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid > *:last-child,
  .misreading-grid > *:last-child,
  .support-columns > *:last-child,
  .type-columns > *:last-child {
    grid-column: 1 / -1;
  }

  .check-layout,
  .prep-layout,
  .record-columns,
  .error-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 0 16px;
  }

  .header-inner {
    min-height: 60px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .brand-mark {
    font-size: 16.5px;
  }

  .hero-panel {
    padding: 16px;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    flex: 1 1 140px;
  }

  .status-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .quality-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "group status"
      "action action";
    gap: 4px 10px;
  }

  .quality-row .quality-group {
    grid-area: group;
  }

  .quality-row .quality-action {
    grid-area: action;
  }

  .quality-row .status-tag {
    grid-area: status;
    justify-self: end;
  }

  .coop-grid,
  .form-grid,
  .misreading-grid,
  .support-columns,
  .type-columns,
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .coop-grid > .coop-card:last-child,
  .form-grid > *:last-child,
  .misreading-grid > *:last-child,
  .support-columns > *:last-child,
  .type-columns > *:last-child {
    grid-column: auto;
  }

  .inspection-items li {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name status"
      "action action";
    gap: 4px 10px;
  }

  .inspection-items .item-name {
    grid-area: name;
  }

  .inspection-items .item-action {
    grid-area: action;
  }

  .inspection-items .status-tag {
    grid-area: status;
    justify-self: end;
  }

  .data-table {
    min-width: 520px;
  }

  .section-block,
  .module,
  .section,
  .content-section,
  .faq-group {
    margin-top: 24px;
  }

  .related-band,
  .related-reading {
    padding: 14px;
  }

  .related-list {
    flex-direction: column;
    gap: 8px;
  }

  .footer-top {
    flex-direction: column;
    gap: 10px;
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .footer-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-bottom: 22px;
  }

  .error-main {
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .error-panel,
  .error-routes {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
