/* ==========================================================================
   base
   ========================================================================== */

:root {
  --bg-page: #FBF7F1;
  --bg-surface: #FFFFFF;
  --text-main: #1F1D1A;
  --text-sub: #6B655C;
  --line: #E6DED2;
  --line-strong: #D3C7B4;
  --accent: #2F6B4F;
  --accent-soft: #E8F0EA;
  --c-clay: #C2703F;
  --c-blue: #4A7A96;
  --c-yellow: #C9A227;
  --c-olive: #7B8F5A;
  --c-purple: #8A6FA0;
  --c-brick: #A05252;
  --radius: 6px;
  --radius-sm: 4px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-mono: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
  --header-h: 64px;
  --w-wide: 1200px;
  --w-read: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-main);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: #1E4A35;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

dt, dd {
  margin: 0;
}

figure {
  margin: 0;
}

figcaption {
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.6;
}

strong {
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   layout — locked shell
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  flex-shrink: 0;
  color: var(--text-main);
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

.brand:hover {
  color: var(--text-main);
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand-slogan {
  font-size: 11px;
  line-height: 1.3;
  color: var(--text-sub);
  letter-spacing: 0;
}

.primary-nav.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.site-nav li {
  flex-shrink: 0;
}

.site-nav a {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-main);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--accent);
  background-color: #F4EEE4;
}

.site-nav a.is-current {
  color: var(--accent);
  background-color: var(--accent-soft);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 1px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-toggle-bar {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  left: 0;
  transform: none;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.site-main {
  display: block;
  width: 100%;
}

.home-main {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.inner-main {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.site-footer {
  background-color: #F3EDE3;
  border-top: 1px solid var(--line);
  color: var(--text-main);
}

.footer-inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col {
  min-width: 0;
}

.footer-brand-name {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.footer-slogan {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
  margin: 0 0 10px;
}

.footer-note {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.7;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line-strong);
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 12px;
  line-height: 1.4;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col li a {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}

.footer-col li a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid var(--line-strong);
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ==========================================================================
   layout — inner page skeleton
   ========================================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 20px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sub);
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text-main);
}

.page-header {
  padding: 14px 0 0;
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-main);
  letter-spacing: 0;
}

.page-head,
.page-title-wrap,
.page-title-area,
.page-title-block {
  padding: 12px 0 0;
  max-width: 820px;
}

.page-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-sub);
  margin: 0;
}

.page-lead a {
  color: var(--accent);
  border-bottom: 1px solid rgba(47, 107, 79, 0.35);
}

.section {
  padding: 44px 0 0;
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  margin-top: 36px;
}

.section-head {
  margin-bottom: 20px;
}

.section-title,
.section-head h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  margin: 0 0 8px;
}

.section-desc,
.section-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
  margin: 0;
  max-width: 820px;
}

.section-intro {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
  margin: 0 0 16px;
  max-width: 820px;
}

/* ==========================================================================
   components — buttons, links, lists, tables
   ========================================================================== */

.btn {
  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;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: #245640;
  border-color: #245640;
  color: #FFFFFF;
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.text-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(47, 107, 79, 0.4);
  line-height: 1.5;
}

.text-link:hover {
  border-bottom-color: var(--accent);
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.link-list li a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(47, 107, 79, 0.4);
  line-height: 1.6;
}

.link-list li a:hover {
  border-bottom-color: var(--accent);
}

.plain-list,
.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
}

.plain-list li,
.check-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-main);
}

.plain-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 2px;
}

.plain-list li strong,
.check-list li strong {
  display: inline;
  margin-right: 4px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-surface);
}

.compare-table {
  min-width: 780px;
  font-size: 14px;
  line-height: 1.6;
}

.compare-table thead th {
  background-color: #F4EEE4;
  color: var(--text-main);
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.compare-table tbody th {
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  padding: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  white-space: nowrap;
  background-color: #FCFAF6;
}

.compare-table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-sub);
  vertical-align: top;
  min-width: 120px;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table tbody tr {
  transition: background-color 0.18s ease;
}

.compare-table tbody tr:hover {
  background-color: #FBF7F1;
}

.compare-table tbody td a {
  font-weight: 600;
  color: var(--accent);
}

.table-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.6;
}

.spec-table {
  min-width: 640px;
  font-size: 14px;
  line-height: 1.6;
}

.spec-table thead th {
  background-color: #F4EEE4;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.spec-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--text-main);
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background-color: #FCFAF6;
  vertical-align: top;
  white-space: nowrap;
}

.spec-table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-sub);
  vertical-align: top;
  min-width: 160px;
}

.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--text-sub);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-surface);
}

/* figure / media */

.media-figure,
.media-block,
.topic-figure,
.hero-figure,
.about-media {
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.media-figure img,
.media-block img,
.topic-figure img,
.hero-figure img,
.about-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background-color: #F4EEE4;
}

.media-figure figcaption,
.media-block figcaption,
.topic-figure figcaption,
.hero-figure figcaption,
.about-media figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background-color: #FCFAF6;
}

.media-caption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background-color: #FCFAF6;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* field rows — scoped by parent */

.field-list,
.field-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.field-list .field-row,
.field-rows .field-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.field-list .field-row:last-child,
.field-rows .field-row:last-child {
  border-bottom: 0;
}

.field-list .field-row dt,
.field-rows .field-row dt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  padding-top: 1px;
}

.field-list .field-row dd,
.field-rows .field-row dd {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-main);
  min-width: 0;
}

.field-list .field-row dd ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.field-list .field-row dd li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.7;
}

.field-list .field-row dd li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background-color: var(--line-strong);
  border-radius: 50%;
}

/* FAQ native details */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  background-color: transparent;
}

.faq-item summary,
.faq-question {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 16px 40px 16px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-main);
  transition: color 0.18s ease;
}

.faq-item summary::-webkit-details-marker,
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-item summary::after,
.faq-question::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background-color: var(--bg-surface);
}

.faq-item[open] summary::after,
.faq-item[open] .faq-question::after {
  content: "\2212";
}

.faq-item summary:hover,
.faq-question:hover {
  color: var(--accent);
}

.faq-item > p {
  padding: 0 40px 18px 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-sub);
}

.faq-answer {
  padding: 0 40px 18px 0;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-sub);
  margin: 0 0 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* swatches */

.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: 2px;
}

.swatch-clay { background-color: var(--c-clay); }
.swatch-blue { background-color: var(--c-blue); }
.swatch-gold { background-color: var(--c-yellow); }
.swatch-olive { background-color: var(--c-olive); }

/* related links strip */

.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
}

.related-links-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(47, 107, 79, 0.4);
  line-height: 1.6;
}

/* ==========================================================================
   pages — index
   ========================================================================== */

.hero-section {
  padding: 24px 0 0;
}

.hero-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 28px;
}

.font-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.font-control-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
  margin-right: 4px;
}

.font-btn {
  min-width: 44px;
  min-height: 32px;
  padding: 0 8px;
  background-color: var(--bg-page);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  color: var(--text-main);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.font-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.font-btn[aria-pressed="true"] {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.anchor-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.anchor-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-sub);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--bg-page);
  line-height: 1;
}

.anchor-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: start;
}

.hero-text {
  min-width: 0;
  padding-top: 4px;
}

.hero-text h1 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--text-main);
  letter-spacing: 0;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-sub);
  margin: 0 0 24px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-figure {
  min-width: 0;
}

.hero-figure img {
  aspect-ratio: 4 / 3;
}

.field-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 32px 0 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-cell {
  padding: 16px 20px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.field-cell:last-child {
  border-right: 0;
}

.field-cell dt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 4px;
}

.field-cell dd {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.6;
}

/* service table section */

.service-table-section .section-head {
  margin-bottom: 18px;
}

/* category index */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.category-tag {
  display: grid;
  grid-template-columns: 14px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: start;
  padding: 14px 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-main);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.category-tag:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(31, 29, 26, 0.06);
  color: var(--text-main);
}

.tag-swatch {
  grid-row: 1 / span 2;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-top: 4px;
}

.tag-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-main);
}

.tag-scope {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sub);
}

.tag-clay .tag-swatch { background-color: var(--c-clay); }
.tag-blue .tag-swatch { background-color: var(--c-blue); }
.tag-yellow .tag-swatch { background-color: var(--c-yellow); }
.tag-olive .tag-swatch { background-color: var(--c-olive); }
.tag-purple .tag-swatch { background-color: var(--c-purple); }
.tag-brick .tag-swatch { background-color: var(--c-brick); }

/* scene preview */

.scene-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.scene-col {
  padding: 20px 24px 20px 0;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.scene-col:last-child {
  border-right: 0;
  padding-right: 0;
}

.scene-col h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 8px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

.scene-col p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
  margin: 0 0 10px;
}

.scene-link {
  margin: 0;
}

.scene-link a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(47, 107, 79, 0.4);
  line-height: 1.6;
}

/* flow preview stage bar */

.stage-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stage-bar .stage-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 4px;
  padding: 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.stage-bar .stage-index {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--accent);
}

.stage-bar .stage-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-main);
}

.stage-bar .stage-output {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-sub);
}

.flow-more {
  margin: 16px 0 0;
}

.flow-more a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(47, 107, 79, 0.4);
  line-height: 1.6;
}

/* topic preview */

.topic-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
}

.topic-preview-layout .topic-figure {
  min-width: 0;
}

.topic-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.topic-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.topic-item h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 6px;
}

.topic-item h3 a {
  color: var(--text-main);
}

.topic-item h3 a:hover {
  color: var(--accent);
}

.topic-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
  margin: 0;
}

/* boundary */

.boundary-body {
  max-width: 900px;
}

.boundary-body > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-sub);
  margin: 0 0 14px;
}

.boundary-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
}

.boundary-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-main);
}

.boundary-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  background-color: var(--c-brick);
  border-radius: 2px;
}

.boundary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
}

.boundary-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(47, 107, 79, 0.4);
  line-height: 1.6;
}

/* ==========================================================================
   pages — services
   ========================================================================== */

.section-figure .media-figure {
  max-width: 880px;
}

.service-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.service-item:first-of-type {
  padding-top: 0;
}

.service-item:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.service-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 12px;
  color: var(--text-main);
}

.section-unsuitable .plain-list {
  max-width: 900px;
}

.related-section .related-links {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ==========================================================================
   pages — scenes
   ========================================================================== */

.scene-list .scene-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.scene-list .scene-item:first-of-type {
  padding-top: 0;
}

.scene-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 12px;
  color: var(--text-main);
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

.scene-list .scene-link {
  margin: 12px 0 0;
}

.scene-list .scene-link a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(47, 107, 79, 0.4);
  line-height: 1.6;
}

.inline-note {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.inline-note a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid rgba(47, 107, 79, 0.4);
}

.prep-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 24px;
}

.prep-col {
  min-width: 0;
}

.prep-col-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text-main);
}

.prep-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prep-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.prep-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--line-strong);
}

.prep .media-block {
  max-width: 880px;
}

.further .link-list {
  max-width: 900px;
}

/* ==========================================================================
   pages — process
   ========================================================================== */

.stage-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.stage-list .stage-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.stage-list .stage-index {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--accent);
  padding-top: 1px;
}

.stage-body {
  min-width: 0;
}

.stage-body .stage-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 10px;
  color: var(--text-main);
}

.stage-figure-section .media-figure {
  max-width: 880px;
}

.blocker-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  max-width: 900px;
}

.blocker-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.blocker-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 6px;
  color: var(--text-main);
}

.blocker-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
  margin: 0;
}

.related-section .related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.related-section .related-links li a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(47, 107, 79, 0.4);
  line-height: 1.6;
}

/* ==========================================================================
   pages — topics (two column, aside first)
   ========================================================================== */

.page-layout.sidebar-left {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 36px;
}

.topic-tree {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  min-width: 0;
}

.aside-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-sub);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
}

.tree-group {
  margin-bottom: 14px;
}

.tree-group:last-child {
  margin-bottom: 0;
}

.tree-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-main);
  margin: 0 0 6px;
}

.tree-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}

.dot-one { background-color: var(--c-clay); }
.dot-two { background-color: var(--c-blue); }
.dot-three { background-color: var(--c-yellow); }

.tree-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tree-list li a {
  display: block;
  padding: 6px 8px 6px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sub);
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.tree-list li a:hover {
  color: var(--accent);
  background-color: #F4EEE4;
  border-left-color: var(--accent);
}

.layout-main {
  min-width: 0;
}

.layout-main .section {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.layout-main .topic-figure {
  margin: 32px 0 0;
}

.learning-path .section-title,
.featured-topics .section-title,
.topic-next .section-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px;
  color: var(--text-main);
}

.path-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

.path-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.path-step .step-index {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--accent);
}

.step-body {
  min-width: 0;
}

.step-body .step-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 4px;
  color: var(--text-main);
}

.step-body p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
  margin: 0 0 6px;
}

.step-body p:last-child {
  margin-bottom: 0;
}

.step-body a {
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(47, 107, 79, 0.4);
}

.featured-topics {
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.topic-card {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.topic-card:first-of-type {
  padding-top: 4px;
}

.topic-card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 6px;
  color: var(--text-main);
}

.topic-card-summary {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
  margin: 0 0 10px;
}

.topic-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
}

.tag-one {
  background-color: #F4E4D8;
  color: #8B4A22;
}

.tag-two {
  background-color: #DFEAF0;
  color: #2F5A72;
}

.tag-three {
  background-color: #F6EFD3;
  color: #7C6312;
}

.topic-len {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
}

.topic-next {
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 12px;
}

.next-links li a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(47, 107, 79, 0.4);
  line-height: 1.6;
}

/* ==========================================================================
   pages — faq
   ========================================================================== */

.faq-group {
  padding: 40px 0 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.faq-group:first-of-type {
  margin-top: 32px;
}

.faq-refuse .refuse-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.refuse-item {
  padding: 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--c-brick);
  border-radius: var(--radius);
  min-width: 0;
}

.refuse-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 6px;
  color: var(--text-main);
}

.refuse-reason {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
  margin: 0;
}

.faq-refuse .media-figure {
  max-width: 880px;
}

.faq-followup {
  padding: 40px 0 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.faq-followup > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-sub);
  max-width: 820px;
  margin: 0 0 14px;
}

.followup-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
}

.followup-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(47, 107, 79, 0.4);
  line-height: 1.6;
}

/* ==========================================================================
   pages — about
   ========================================================================== */

.about-position {
  padding: 40px 0 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.about-position h2,
.about-principles h2,
.about-boundaries h2,
.about-workstyle h2,
.about-readmore h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 14px;
  color: var(--text-main);
}

.position-body {
  max-width: 900px;
}

.position-body p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sub);
  margin: 0 0 14px;
}

.position-body p:last-child {
  margin-bottom: 0;
}

.about-media {
  margin-top: 28px;
  max-width: 880px;
}

.about-principles,
.about-boundaries,
.about-workstyle,
.about-readmore {
  padding: 40px 0 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.principle-list,
.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
}

.principle-item,
.boundary-item {
  min-width: 0;
  padding-left: 14px;
  border-left: 2px solid var(--line-strong);
}

.principle-item h3,
.boundary-item h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 6px;
  color: var(--text-main);
}

.principle-item p,
.boundary-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
  margin: 0;
}

.about-boundaries .boundary-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-boundaries .boundary-item {
  border-left-color: var(--c-brick);
}

.workstyle-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  max-width: 900px;
}

.workstyle-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.workstyle-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--text-main);
  padding-top: 1px;
}

.workstyle-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
  margin: 0;
}

.readmore-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.readmore-links li a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(47, 107, 79, 0.4);
  line-height: 1.6;
}

/* ==========================================================================
   pages — 404
   ========================================================================== */

.error-main {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.error-inner {
  max-width: 640px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--c-clay);
  margin: 0 0 10px;
}

.error-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--text-main);
}

.error-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-sub);
  margin: 0 0 24px;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  background-color: var(--accent);
  color: #FFFFFF;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 36px;
}

.error-home-link:hover {
  background-color: #245640;
  color: #FFFFFF;
}

.error-subtitle {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 12px;
  color: var(--text-main);
}

.error-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.error-links li a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(47, 107, 79, 0.4);
  line-height: 1.6;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .header-inner {
    gap: 16px;
  }

  .site-nav a {
    padding: 0 10px;
    font-size: 13px;
  }

  .hero-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .hero-lead {
    max-width: none;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-preview-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .topic-tree {
    position: static;
  }

  .principle-list,
  .boundary-list,
  .about-boundaries .boundary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav.site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 16px rgba(31, 29, 26, 0.08);
    padding: 8px 16px 16px;
    margin-left: 0;
  }

  .primary-nav.site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav a {
    height: 44px;
    padding: 0 12px;
    font-size: 15px;
    border-bottom: 0;
    border-left: 2px solid transparent;
    border-radius: var(--radius-sm);
  }

  .site-nav a.is-current {
    border-left-color: var(--accent);
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-slogan {
    font-size: 10px;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-main,
  .inner-main {
    padding: 0 16px 56px;
  }

  .hero-section {
    padding-top: 16px;
  }

  .hero-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 22px;
  }

  .font-control {
    justify-content: flex-start;
  }

  .anchor-nav {
    gap: 6px;
  }

  .anchor-nav a {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 36px;
    font-size: 12px;
    padding: 0 8px;
  }

  .hero-text h1 {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .hero-lead {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 20px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 132px;
  }

  .hero-figure img {
    aspect-ratio: 16 / 10;
  }

  .field-strip {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 24px;
  }

  .field-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
  }

  .field-cell:last-child {
    border-bottom: 0;
  }

  .section {
    padding-top: 32px;
    margin-top: 32px;
  }

  .section:first-of-type {
    margin-top: 26px;
  }

  .section-title,
  .section-head h2 {
    font-size: 19px;
  }

  .category-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .scene-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .scene-col {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .scene-col:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .stage-bar {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .topic-preview-layout {
    gap: 20px;
  }

  .prep-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .stage-list .stage-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
  }

  .stage-list .stage-index {
    font-size: 18px;
  }

  .stage-body .stage-name {
    font-size: 16px;
  }

  .field-list .field-row,
  .field-rows .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 10px 0;
  }

  .field-list .field-row dt,
  .field-rows .field-row dt {
    font-size: 12px;
  }

  .faq-item summary,
  .faq-question {
    font-size: 15px;
    padding-right: 36px;
  }

  .faq-item > p,
  .faq-answer {
    padding-right: 0;
  }

  .faq-refuse .refuse-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .principle-list,
  .boundary-list,
  .about-boundaries .boundary-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .workstyle-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .page-title {
    font-size: 24px;
  }

  .breadcrumb {
    padding-top: 16px;
    font-size: 12px;
  }

  .page-layout.sidebar-left {
    margin-top: 26px;
    gap: 24px;
  }

  .topic-tree {
    padding: 14px 12px;
  }

  .path-step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
  }

  .learning-path .section-title,
  .featured-topics .section-title,
  .topic-next .section-title {
    font-size: 18px;
  }

  .error-main {
    padding: 44px 16px 64px;
  }

  .error-title {
    font-size: 26px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 16px 24px;
    gap: 24px;
  }

  .footer-bottom {
    padding: 14px 16px 24px;
  }

  .table-hint {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
