:root {
  --bg: #faf6ee;
  --card: #f1e8da;
  --ink: #3c352c;
  --muted: #7a6f60;
  --accent: #b06a4a;
  --line: #e3d7c3;
  --paper: #fdfaf4;
  --shell-w: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.75;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.shell {
  width: 100%;
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 24px;
}

section[id] {
  scroll-margin-top: 18px;
}

/* 页头 */
.site-head {
  padding: 18px 0 10px;
  border-bottom: 1px solid var(--line);
}

.head-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  display: block;
  max-height: 34px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.brand-slogan {
  font-size: 12px;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.head-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-pill {
  padding: 5px 14px;
  font-size: 14px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-pill:hover {
  color: var(--accent);
  border-color: var(--line);
}

.nav-pill.is-current {
  color: var(--accent);
  border-color: var(--line);
  background: var(--card);
}

/* 首屏步骤色带 */
.hero {
  padding: 34px 0 10px;
}

.hero-labels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-bottom: 14px;
}

.label-line {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  padding-left: 9px;
  border-left: 2px solid var(--accent);
  line-height: 1.4;
}

.label-line.is-alt {
  color: var(--muted);
  border-left-color: var(--line);
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.6vw, 38px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 26px;
  max-width: 660px;
  font-size: 16px;
  color: var(--muted);
}

.step-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px 16px;
  border-left: 1px solid var(--line);
  min-width: 0;
  transition: background 0.2s ease;
}

.step-link:first-child {
  border-left: 0;
}

.step-link:hover {
  background: rgba(176, 106, 74, 0.07);
}

.step-num {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.step-name {
  font-size: 16px;
  color: var(--ink);
}

.step-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* 区块与标题 */
.section {
  padding: 48px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 18px;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-tag {
  position: sticky;
  top: 16px;
  align-self: flex-start;
  padding: 3px 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.section-title {
  margin: 0;
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 600;
  color: var(--ink);
}

.section-note {
  flex: 1 1 260px;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* 折叠问答 */
.faq-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  max-width: 860px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
}

.faq-q {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: "＋";
  font-size: 13px;
  color: var(--accent);
}

.faq-item[open] .faq-q::after {
  content: "－";
}

.faq-a {
  padding: 0 18px 15px;
  font-size: 15px;
  color: var(--muted);
}

.faq-a p {
  margin: 0 0 8px;
}

/* 等大图集 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-cell {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--card);
  outline: 1px solid var(--line);
  outline-offset: -1px;
}

.gallery-cell::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 13px;
  height: 13px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  pointer-events: none;
}

.gallery-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 内容卡片 */
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 22px;
  background: var(--card);
  border-top: 2px solid var(--accent);
  min-width: 0;
}

.content-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.content-sub {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.content-body {
  font-size: 15px;
  color: var(--muted);
}

.content-body p {
  margin: 0 0 10px;
}

.content-body p:last-child {
  margin-bottom: 0;
}

/* 索引式动态列表 */
.news-list {
  counter-reset: entry;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.news-item {
  counter-increment: entry;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.news-num {
  flex: 0 0 auto;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.news-num::before {
  content: counter(entry, decimal-leading-zero);
}

.news-link {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.news-date {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--muted);
}

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hot-tag {
  padding: 4px 12px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hot-tag:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* 横排特点 */
.feature-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.feature-tag {
  flex: 0 0 auto;
  margin: 0;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.feature-text {
  flex: 1 1 260px;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* 结尾行动条 */
.cta-band {
  margin-top: 40px;
  padding: 30px 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.cta-title {
  flex: 1 1 320px;
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 500;
  color: var(--ink);
}

.cta-link {
  padding: 9px 22px;
  font-size: 14px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.cta-link:hover {
  background: var(--accent);
  color: var(--paper);
}

/* 页脚 */
.site-foot {
  padding: 30px 0 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 32px;
}

.foot-brand {
  flex: 1 1 220px;
  min-width: 0;
}

.foot-name {
  margin: 0 0 3px;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.foot-slogan {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  flex: 1 1 240px;
}

.foot-link {
  font-size: 14px;
  color: var(--muted);
}

.foot-link:hover {
  color: var(--accent);
}

.foot-copy {
  flex: 1 1 100%;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* 正文表格 */
.content-body table,
.faq-a table,
.rich-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}

.content-body th,
.content-body td,
.faq-a th,
.faq-a td,
.rich-text th,
.rich-text td {
  padding: 8px 10px;
  text-align: left;
  border: 1px solid var(--line);
}

.content-body th,
.faq-a th,
.rich-text th {
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
}

/* 表单基础样式 */
.cms-form {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin: 8px 0;
}

.cms-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--ink);
}

.cms-form input,
.cms-form textarea,
.cms-form select {
  width: 100%;
  padding: 9px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.cms-form input:focus,
.cms-form textarea:focus,
.cms-form select:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.cms-form textarea {
  min-height: 120px;
  resize: vertical;
}

.cms-form button,
.cms-submit {
  justify-self: start;
  padding: 9px 24px;
  font: inherit;
  font-size: 15px;
  color: var(--paper);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
}

.cms-form button:hover,
.cms-submit:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.cms-error {
  margin: 0;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--accent);
  background: var(--card);
  border-left: 2px solid var(--accent);
}

.cms-success {
  margin: 0;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink);
  background: var(--card);
  border-left: 2px solid var(--ink);
}

/* 响应式 */
@media (max-width: 960px) {
  .section {
    padding: 38px 0;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 0 18px;
  }

  .head-bar {
    align-items: flex-start;
  }

  .brand-slogan {
    display: none;
  }

  .step-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-link {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 12px 14px 13px;
  }

  .step-link:first-child {
    border-top: 0;
  }

  .news-item {
    flex-wrap: wrap;
    gap: 4px 10px;
  }

  .news-link {
    white-space: normal;
  }

  .news-date {
    margin-left: auto;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

:root{--intro-bg:#faf6ee;--intro-card:#f1e8da;--intro-ink:#3c352c;--intro-accent:#b06a4a;}
.intro-stage {
  background:
    radial-gradient(ellipse at 82% 16%, color-mix(in srgb, var(--intro-accent) 16%, transparent), transparent 54%),
    linear-gradient(160deg, var(--intro-card), var(--intro-bg));
  border-bottom: 1px solid color-mix(in srgb, var(--intro-ink) 12%, transparent);
}
.intro-wrap {
  display: grid;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 92px) clamp(20px, 4vw, 60px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
.intro-wrap:not(.intro-center):has(> .intro-visual), .intro-wrap:has(> .intro-index) {
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
}
.intro-copy { min-width: 0; max-width: 54rem; }
.intro-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.intro-copy p {
  max-width: 38em;
  margin: 1rem 0 0;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.75;
}
.intro-center { text-align: center; justify-items: center; }
.intro-center p { margin-inline: auto; }
.intro-center .intro-visual { width: min(100%, 680px); }
.intro-reverse > .intro-visual { order: -1; }
.intro-stage .intro-wrap.intro-banner { grid-template-columns: minmax(0, 1fr); }
.intro-banner .intro-visual img { aspect-ratio: 16 / 9; }
.intro-panel .intro-copy {
  padding: clamp(16px, 3vw, 36px);
  border-inline-start: 4px solid var(--intro-accent);
  background: var(--intro-bg);
}
@media (min-width: 761px) {
  .intro-wrap.intro-compact:has(> .intro-visual) {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, .75fr);
  }
  .intro-wrap.intro-panel:has(> .intro-visual) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  }
}
.intro-index {
  min-width: 0;
  padding: clamp(16px, 3vw, 32px);
  background: var(--intro-bg);
  border: 1px solid color-mix(in srgb, var(--intro-ink) 14%, transparent);
  border-radius: 1rem;
  overflow-wrap: anywhere;
}
.intro-visual {
  min-width: 0;
  margin: 0;
  padding: clamp(8px, 1.5vw, 16px);
  background: var(--intro-bg);
  border: 1px solid color-mix(in srgb, var(--intro-accent) 24%, transparent);
  border-radius: clamp(12px, 2vw, 24px);
  box-shadow: 0 18px 64px color-mix(in srgb, var(--intro-ink) 16%, transparent);
}
.intro-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}
.intro-visual figcaption { margin: .6rem .35rem 0; font-size: .875rem; }
.intro-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.intro-center .intro-actions { justify-content: center; }
.intro-link, .intro-actions .action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.25rem;
  border-radius: 2rem;
  border: 1px solid color-mix(in srgb, var(--intro-ink) 24%, transparent);
  color: var(--intro-ink);
  background: var(--intro-bg);
  text-decoration: none;
  font-weight: 650;
}
.intro-actions a.action-button { color: var(--intro-bg); background: var(--intro-ink); }
.intro-link:hover, .intro-link:focus-visible { border-color: var(--intro-accent); }
.intro-glass {
  background: color-mix(in srgb, var(--intro-bg) 88%, transparent);
  backdrop-filter: blur(14px);
}
.intro-reading {
  max-width: 840px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 60px);
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .intro-wrap:not(.intro-center):has(> .intro-visual), .intro-wrap:has(> .intro-index) {
    grid-template-columns: minmax(0, 1fr);
  }
  .intro-reverse > .intro-visual { order: 0; }
}

/* 页面补充样式（home） */
/* 首页：首屏步骤色带的字阶与间距微调 */
.intro-stage .intro-wrap {
  padding-bottom: clamp(18px, 2.8vw, 32px);
}

.intro-copy .hero-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.32;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--ink);
}

.intro-copy .hero-lead {
  margin: 0;
  max-width: 660px;
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  color: var(--muted);
}

.hero-steps {
  padding-bottom: clamp(18px, 3vw, 34px);
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
