:root {
  --bg: #f6f4f1;
  --ink: #1f1d1b;
  --ink-soft: #5c5852;
  --line: #d9d4cd;
  --accent: #8a4b2a;
  --accent-soft: #f0e4dc;
  --state: #2f6b4f;
  --surface: #fffdfb;
  --container: 1120px;
  --gap: 28px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
}

/* ===== base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt {
  margin: 0;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== layout ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  font-size: 20px;
  font-weight: 700;
}

.brand-slogan {
  color: var(--ink-soft);
  font-size: 13px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-list a {
  display: inline-block;
  padding: 8px 14px;
  min-height: 44px;
  line-height: 28px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 15px;
}

.nav-list a:hover,
.nav-list a:focus {
  background: var(--accent-soft);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-soft);
}

.site-main {
  display: block;
}

.home-main {
  padding-bottom: 24px;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 24px 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.page-description {
  max-width: 780px;
  color: var(--ink-soft);
  margin: 0;
}

.section-title {
  font-size: 22px;
  margin-bottom: 10px;
}

.section-lead,
.section-intro,
.section-desc {
  max-width: 780px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.section-note {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f1eee9;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  gap: var(--gap);
}

.footer-title {
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-nav-list li {
  margin-bottom: 6px;
}

.footer-nav-list a {
  display: inline-block;
  min-height: 32px;
  line-height: 32px;
  color: var(--ink);
  font-size: 14px;
}

.footer-text {
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-back {
  margin-top: 10px;
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-copy {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  color: var(--ink-soft);
  font-size: 13px;
}

/* ===== components ===== */
.btn {
  display: inline-block;
  padding: 11px 20px;
  min-height: 44px;
  line-height: 22px;
  border-radius: 6px;
  font-size: 15px;
  border: 1px solid transparent;
}

.btn:hover,
.btn:focus {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #743f22;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: var(--accent-soft);
}

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid var(--line);
}

.section-head,
.section-header {
  margin-bottom: 20px;
}

.section-kicker {
  font-size: 13px;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.section-more {
  margin-top: 18px;
  font-size: 15px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.delivery-table,
.data-table {
  min-width: 560px;
  font-size: 15px;
}

.delivery-table caption,
.table-caption {
  padding: 12px 16px;
  text-align: left;
  color: var(--ink-soft);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.delivery-table th,
.delivery-table td,
.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.delivery-table thead th,
.data-table thead th {
  background: #efeae3;
  font-size: 14px;
  color: var(--ink);
}

.delivery-table tbody th,
.data-table tbody th {
  font-weight: 700;
  white-space: nowrap;
}

.delivery-table tbody tr:last-child th,
.delivery-table tbody tr:last-child td,
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 24px;
}

.check-item {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-size: 15px;
}

.check-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--state);
  border-radius: 2px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.related-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--surface);
}

.related-item a {
  display: inline-block;
  min-height: 30px;
  line-height: 30px;
  font-weight: 700;
}

.related-note {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
}

.media-figure,
.workflow-figure,
.page-figure,
.entry-figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.media-figure img,
.workflow-figure img,
.page-figure img,
.entry-figure img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.media-figure-wide img {
  height: 300px;
}

.media-caption,
.figure-caption {
  padding: 0 16px 14px;
  margin-top: 10px;
}

/* ===== pages ===== */

/* 首页 */
.hero {
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px 24px 40px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: start;
}

.hero-lead {
  grid-column: 1;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero-title {
  font-size: 32px;
  margin-bottom: 14px;
}

.hero-text {
  max-width: 560px;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 0;
}

.hero-visual {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.hero-figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 0 16px 14px;
}

.hero-shortcuts {
  grid-column: 1;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.shortcut-title {
  font-size: 17px;
  margin-bottom: 10px;
}

.shortcut-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 20px;
}

.shortcut-list a {
  display: block;
  padding: 8px 12px;
  min-height: 44px;
  line-height: 28px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 6px 6px 0;
  color: var(--ink);
  font-size: 15px;
}

.shortcut-list a:hover,
.shortcut-list a:focus {
  background: var(--accent-soft);
  text-decoration: none;
}

.direction-rows {
  border-top: 1px solid var(--line);
}

.direction-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.direction-row .direction-index {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  padding-top: 2px;
}

.direction-name {
  font-size: 17px;
  margin-bottom: 6px;
}

.direction-audience {
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 4px;
}

.direction-scene {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

.workflow-steps .step-list {
  border-top: 1px solid var(--line);
}

.workflow-steps .step-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.workflow-steps .step-number {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--state);
  padding-top: 2px;
}

.workflow-steps .step-name {
  font-size: 17px;
  margin-bottom: 6px;
}

.workflow-steps .step-owner {
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 4px;
}

.workflow-steps .step-output {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

.faq-brief-list {
  border-top: 1px solid var(--line);
}

.faq-brief {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.faq-brief-q {
  font-size: 17px;
  margin-bottom: 6px;
}

.faq-brief-a {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

.entry-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.entry-col {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--surface);
}

.entry-col-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.entry-col-text {
  color: var(--ink-soft);
  font-size: 15px;
}

.entry-col-link {
  margin: 0;
  font-size: 15px;
}

/* 服务方向页 */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: start;
}

.page-layout.sidebar-left {
  grid-template-columns: 260px 1fr;
}

.page-layout.sidebar-left .page-sidebar {
  order: -1;
}

.page-content {
  min-width: 0;
}

.page-sidebar {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  position: sticky;
  top: 84px;
}

.sidebar-title {
  font-size: 15px;
  margin-bottom: 12px;
}

.sidebar-item {
  margin-bottom: 4px;
}

.sidebar-item a {
  display: block;
  padding: 8px 10px;
  min-height: 44px;
  line-height: 28px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 15px;
}

.sidebar-item a:hover,
.sidebar-item a:focus {
  background: var(--accent-soft);
  text-decoration: none;
}

.sidebar-note {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.directions-section {
  margin-bottom: 40px;
}

.direction-item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.direction-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.direction-item .direction-index {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
}

.direction-figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 16px;
}

.direction-figure img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.direction-figure figcaption {
  padding: 0 16px 14px;
}

.direction-facts {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 16px;
}

.fact-label {
  color: var(--ink-soft);
  font-size: 14px;
}

.fact-value {
  color: var(--ink);
  font-size: 15px;
}

.selection-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.selection-steps {
  counter-reset: selection;
  margin-top: 16px;
}

.selection-step {
  position: relative;
  padding-left: 44px;
  margin-bottom: 16px;
  counter-increment: selection;
}

.selection-step::before {
  content: counter(selection, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
}

.selection-step .step-name {
  font-size: 17px;
  margin-bottom: 6px;
}

.selection-step .step-text {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

.selection-note {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 14px;
}

/* 合作流程页 */
.workflow-timeline-section,
.workflow-detail-section,
.prep-section,
.related-section {
  margin-bottom: 44px;
}

.workflow-figure {
  margin-bottom: 22px;
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.timeline-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
}

.timeline-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 6px;
}

.timeline-name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-note {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
}

.stage-block {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: 28px;
}

.stage-title {
  font-size: 20px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.stage-index {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
}

.stage-summary {
  color: var(--ink-soft);
}

.node-list {
  border-top: 1px solid var(--line);
  margin-top: 14px;
}

.node-name {
  font-weight: 700;
  font-size: 15px;
  padding-top: 14px;
}

.node-detail {
  padding: 6px 0 14px;
  border-bottom: 1px solid var(--line);
}

.node-owner {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 6px;
}

.node-text {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

.stage-output {
  margin-top: 14px;
  padding: 12px 16px;
  border-left: 3px solid var(--state);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
}

.prep-group {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: 24px;
}

.prep-title {
  font-size: 17px;
  margin-bottom: 12px;
}

.prep-group .check-list + .check-list {
  margin-top: 10px;
}

/* 交付标准页 */
.section-delivery-table,
.section-check-list,
.section-followup,
.section-related {
  margin-bottom: 44px;
}

.section-followup .step-list-numbered {
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
}

.section-followup .step-item {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.section-followup .step-title {
  font-size: 17px;
  margin-bottom: 6px;
}

.section-followup .step-text {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

/* 常见问题页 */
.page-figure {
  margin-bottom: 32px;
}

.page-figure img {
  height: 300px;
}

.faq-section {
  margin-bottom: 40px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  position: relative;
  padding: 16px 44px 16px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "▾";
  position: absolute;
  right: 8px;
  top: 16px;
  color: var(--accent);
  font-size: 14px;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 0 16px;
  color: var(--ink-soft);
}

.faq-answer p {
  margin: 0;
}

.feedback-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feedback-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  background: var(--surface);
}

.feedback-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.feedback-text {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

/* 404 */
.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.error-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  background: var(--surface);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 8px;
}

.error-main h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.error-text {
  color: var(--ink-soft);
  max-width: 640px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.error-links a {
  display: block;
  padding: 10px 14px;
  min-height: 44px;
  line-height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 15px;
}

.error-links a:hover,
.error-links a:focus {
  background: var(--accent-soft);
  text-decoration: none;
}

.error-note {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0;
}

/* ===== responsive ===== */
@media (max-width: 900px) {
  .header-inner {
    padding: 12px 18px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 44px;
    padding: 8px 12px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 32px 18px 30px;
    gap: 24px;
  }

  .hero-lead,
  .hero-visual,
  .hero-shortcuts {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-figure img {
    height: 260px;
  }

  .section,
  .inner-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-layout.sidebar-left .page-sidebar {
    order: 0;
  }

  .page-sidebar {
    position: static;
  }

  .timeline-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 18px 20px;
  }

  .footer-copy {
    padding: 14px 18px;
  }

  .error-main {
    padding: 40px 18px 60px;
  }
}

@media (max-width: 600px) {
  body.site-body {
    font-size: 15px;
  }

  .brand-slogan {
    display: none;
  }

  .hero-title,
  .page-title,
  .error-main h1 {
    font-size: 24px;
  }

  .section-title,
  .stage-title {
    font-size: 19px;
  }

  .direction-row,
  .workflow-steps .step-item {
    grid-template-columns: 40px 1fr;
    gap: 10px;
  }

  .direction-facts {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .fact-label {
    margin-top: 6px;
  }

  .delivery-table,
  .data-table {
    min-width: 480px;
    font-size: 14px;
  }

  .delivery-table th,
  .delivery-table td,
  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }

  .media-figure img,
  .workflow-figure img,
  .page-figure img,
  .entry-figure img,
  .direction-figure img {
    height: 200px;
  }

  .media-figure-wide img,
  .page-figure img {
    height: 210px;
  }

  .error-panel {
    padding: 22px 18px;
  }
}
