:root {
  --bg: #f2f6f5;
  --card: #e0eae7;
  --title: #263330;
  --muted: #5c6f6a;
  --accent: #4f8b7d;
  --line: #c9d8d3;
  --line-strong: #a9c0ba;
  --space: 2.6rem;
  --radius: 0;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  color: var(--title);
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.6rem;
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.3rem;
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 0.9rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- 页眉与抽屉导航 ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line-strong);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--title);
}

.brand:hover {
  text-decoration: none;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--title);
}

.brand-slogan {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.drawer-nav {
  min-width: 0;
}

.drawer {
  border: 1px solid var(--line-strong);
  background: var(--card);
  min-width: 220px;
}

.drawer-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.drawer-summary::-webkit-details-marker {
  display: none;
}

.drawer-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--title);
  letter-spacing: 0.14em;
}

.drawer-hint {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.drawer-list {
  padding: 0.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.drawer-item {
  min-width: 0;
}

.drawer-link {
  display: block;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--title);
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.drawer-sub {
  padding: 0.3rem 0 0 0.5rem;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.25rem;
}

.drawer-sub-item {
  min-width: 0;
}

.drawer-sub-link {
  display: block;
  padding: 0.2rem 0.4rem;
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-sub-link:hover {
  border-left-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ---------- 主内容外壳 ---------- */

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem var(--space);
}

main {
  display: block;
}

.section {
  margin-top: var(--space);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.2rem;
  border-top: 1px solid var(--line-strong);
  padding-top: 0.9rem;
  margin-bottom: 1.2rem;
}

.section-title {
  margin: 0;
  position: relative;
  padding-left: 0.9rem;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 3px;
  background: var(--accent);
}

.section-note {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin: 0;
}

/* ---------- 首屏：步骤色带 ---------- */

.hero {
  padding-top: 1.6rem;
}

.hero-labels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: 0.8rem;
}

.hero-label {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.hero-label-alt {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.hero-title {
  margin: 0 0 0.7rem;
  max-width: 34em;
}

.hero-lead {
  margin: 0 0 1.2rem;
  max-width: 46em;
  color: var(--muted);
}

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

.step-item {
  padding: 0.7rem 0.8rem;
  border-right: 1px solid var(--line-strong);
  min-width: 0;
}

.step-item:last-child {
  border-right: 0;
}

.step-num {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.step-text {
  display: block;
  font-size: 0.88rem;
  color: var(--title);
  line-height: 1.5;
}

/* ---------- 内容卡片 ---------- */

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.content-card {
  background: var(--card);
  border: 1px solid var(--line-strong);
  padding: 1.1rem 1.2rem 1.2rem;
  position: relative;
  min-width: 0;
}

.content-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
}

.content-card-title {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
}

.content-card-sub {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.content-card-body {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--muted);
}

.content-card-body p {
  margin: 0 0 0.7rem;
}

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

.content-card-body ul,
.content-card-body ol {
  margin: 0 0 0.7rem;
  padding-left: 1.2rem;
  list-style: disc;
}

.content-card-body h3 {
  font-size: 0.95rem;
  margin: 0.7rem 0 0.4rem;
}

/* ---------- 图集：等大网格 ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.gallery-cell {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--card);
  min-width: 0;
}

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

/* ---------- 表格式特点 ---------- */

.features-table {
  border: 1px solid var(--line-strong);
  background: var(--card);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-strong);
}

.feature-row:last-child {
  border-bottom: 0;
}

.feature-term {
  padding: 0.9rem 1.1rem;
  border-right: 1px solid var(--line-strong);
  color: var(--title);
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 0;
}

.feature-desc {
  padding: 0.9rem 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  min-width: 0;
}

.feature-desc p {
  margin: 0;
}

.feature-note {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-top: 0.2rem;
}

/* ---------- 折叠问答 ---------- */

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

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

.faq-item:last-child {
  border-bottom: 0;
}

.faq-q {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  list-style: none;
  color: var(--title);
  font-weight: 600;
  font-size: 0.95rem;
}

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

.faq-mark {
  flex: none;
  display: inline-block;
  width: 1.5rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  padding: 0.05rem 0;
}

.faq-text {
  min-width: 0;
}

.faq-a {
  padding: 0 1.1rem 1rem 3.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

.faq-a p {
  margin: 0 0 0.6rem;
}

.faq-a p:last-child {
  margin-bottom: 0;
}

/* ---------- 页边批注 / 停留标签 ---------- */

.side-note {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-left: 2px solid var(--line-strong);
  padding-left: 0.7rem;
  margin: 0 0 1rem;
}

.sticky-label {
  position: sticky;
  top: 0.8rem;
  z-index: 2;
  display: inline-block;
  padding: 0.15rem 0.55rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

/* ---------- 收尾行动条 ---------- */

.cta-band {
  margin-top: var(--space);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--card);
}

.cta-band-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 1rem;
}

.cta-band-text {
  margin: 0;
  color: var(--title);
  font-size: 0.98rem;
  border-right: 1px solid var(--line-strong);
  padding-right: 1rem;
}

.cta-band-link {
  justify-self: start;
  display: inline-block;
  padding: 0.45rem 1rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.cta-band-link:hover {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line-strong);
  background: var(--bg);
  margin-top: var(--space);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.6rem 1.25rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.footer-brand-name {
  color: var(--title);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-brand-slogan {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.footer-nav {
  min-width: 0;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.footer-nav-item {
  min-width: 0;
}

.footer-nav-link {
  color: var(--muted);
  font-size: 0.85rem;
}

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

.footer-copy {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  flex-basis: 100%;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

/* ---------- 表单样式（骨架预留） ---------- */

.cms-form {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.8rem;
}

.cms-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--title);
  margin-bottom: 0.25rem;
}

.cms-form input,
.cms-form textarea,
.cms-form select {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--title);
  font: inherit;
  font-size: 0.92rem;
  border-radius: var(--radius);
}

.cms-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.cms-form button {
  justify-self: start;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: var(--radius);
}

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

.cms-form .form-error {
  color: #a4543f;
  font-size: 0.82rem;
}

.cms-form .form-success {
  color: var(--accent);
  font-size: 0.88rem;
}

/* ---------- 正文表格 ---------- */

.content-card-body table,
.faq-a table,
.article-body table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
}

.content-card-body th,
.content-card-body td,
.faq-a th,
.faq-a td,
.article-body th,
.article-body td {
  border: 1px solid var(--line-strong);
  padding: 0.45rem 0.6rem;
  text-align: left;
}

.content-card-body th,
.faq-a th,
.article-body th {
  background: var(--bg);
  color: var(--title);
}

/* ---------- 响应式 ---------- */

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

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

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

  .step-item {
    border-bottom: 1px solid var(--line-strong);
  }

  .step-item:nth-child(2n) {
    border-right: 0;
  }

  .step-item:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --space: 2rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .drawer {
    min-width: 0;
    width: 100%;
  }

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

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

  .feature-term {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.4rem;
  }

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

  .cta-band-text {
    border-right: 0;
    padding-right: 0;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 1.45rem;
  }

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

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

  .step-item {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .step-item:last-child {
    border-bottom: 0;
  }

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

  .faq-a {
    padding-left: 1.1rem;
  }
}
