:root {
  --bg: #f3f8fc;
  --card: #e2eff8;
  --ink: #223440;
  --muted: #587280;
  --accent: #3f8fbf;
  --line: #d5e5f1;
  --shell: 1120px;
  --radius: 10px;
  --shadow: 0 6px 18px rgba(34, 52, 64, 0.06);
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

/* 极简文字导航 */
.site-header {
  padding: 22px 0 8px;
  background: transparent;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

.brand-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: 14px;
}

.nav-link {
  padding: 4px 0;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

/* 首屏：标题导语 + 四步色带 */
.hero {
  padding: 28px 0 24px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(63, 143, 191, 0.08) 0,
    rgba(63, 143, 191, 0.08) 1px,
    transparent 1px,
    transparent 88px
  );
}

.hero-title {
  font-size: clamp(28px, 3.6vw, 40px);
}

.hero-title::before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: var(--accent);
}

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

.step-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
  counter-reset: step;
}

.step-item {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 16px;
  color: var(--ink);
  transition: color 0.2s ease;
}

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

.step-num::before {
  content: counter(step, decimal-leading-zero);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.step-text {
  font-size: 15px;
}

/* 区块通用 */
.section {
  padding: 54px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-label {
  position: sticky;
  top: 12px;
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--accent);
}

.section-title {
  font-size: clamp(21px, 2.4vw, 27px);
}

.section-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

/* 话题索引 */
.topic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.topic-card {
  flex: 1 1 240px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.topic-title {
  font-size: 17px;
}

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

.topic-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.topic-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.topic-item-link {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  color: var(--muted);
}

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

/* 热门讨论索引 */
.hot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  counter-reset: hot;
}

.hot-item {
  counter-increment: hot;
  flex: 1 1 300px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.hot-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--ink);
}

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

.hot-num::before {
  content: counter(hot, decimal-leading-zero);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.hot-title {
  font-size: 15px;
  transition: color 0.2s ease;
}

.hot-summary {
  margin-top: 6px;
  padding-left: 30px;
  font-size: 14px;
  color: var(--muted);
}

/* 内容时间线 */
.timeline {
  display: block;
}

.timeline-item {
  display: flex;
  gap: 18px;
  padding-bottom: 26px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: relative;
  flex: 0 0 14px;
  display: flex;
  justify-content: center;
}

.timeline-marker::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: -26px;
  width: 1px;
  background: var(--line);
}

.timeline-item:last-child .timeline-marker::before {
  display: none;
}

.timeline-dot {
  width: 11px;
  height: 11px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline-body {
  flex: 1 1 auto;
  min-width: 0;
}

.timeline-title {
  font-size: 18px;
}

.timeline-text {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

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

.gallery-cell {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

/* 步骤特点 */
.feature-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: feature;
}

.feature-step {
  counter-increment: feature;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-num {
  flex: 0 0 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
}

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

.feature-body {
  flex: 1 1 auto;
  min-width: 0;
}

.feature-title {
  font-size: 17px;
}

.feature-text {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}

/* 紧凑问答行 */
.faq-list {
  display: flex;
  flex-direction: column;
  max-width: 820px;
}

.faq-row {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.faq-row:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  font-size: 16px;
  color: var(--ink);
}

.faq-q::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 2px;
  background: var(--accent);
}

.faq-a {
  margin-top: 8px;
  padding-left: 18px;
  font-size: 15px;
  color: var(--muted);
}

/* 结尾行动条 */
.cta-band {
  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;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 26px 24px;
}

.cta-text {
  font-size: 16px;
  color: var(--ink);
}

.cta-link {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

/* 页脚索引式收尾 */
.site-footer {
  padding: 32px 0 26px;
  border-top: 1px solid var(--line);
}

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

.footer-brand {
  flex: 1 1 240px;
}

.footer-slogan {
  max-width: 320px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.footer-nav {
  flex: 1 1 300px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
  counter-reset: fnav;
}

.footer-link {
  counter-increment: fnav;
  color: var(--muted);
}

.footer-link::before {
  content: counter(fnav, decimal-leading-zero);
  margin-right: 8px;
  font-size: 12px;
  color: var(--accent);
}

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

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

/* 正文富文本 */
.rich-text p {
  margin: 0 0 12px;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.rich-text h2,
.rich-text h3 {
  margin: 18px 0 10px;
  font-size: 17px;
  color: var(--ink);
}

.rich-text ul,
.rich-text ol {
  margin: 0 0 12px;
  padding-left: 20px;
  list-style: disc;
}

.rich-text ol {
  list-style: decimal;
}

.rich-text li {
  margin-bottom: 6px;
}

.rich-text table {
  width: 100%;
  max-width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 15px;
}

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

.rich-text th {
  background: var(--card);
  font-weight: 600;
}

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

/* 表单 */
.cms-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 520px;
}

.cms-form label {
  font-size: 14px;
  color: var(--muted);
}

.cms-form input[type="text"],
.cms-form input[type="email"],
.cms-form input[type="tel"],
.cms-form input[type="search"],
.cms-form textarea,
.cms-form select {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

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

.cms-form button,
.cms-form .btn {
  align-self: flex-start;
  padding: 10px 22px;
  font: inherit;
  font-size: 15px;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
}

.cms-form button:hover,
.cms-form .btn:hover {
  opacity: 0.9;
}

.cms-form .error,
.cms-form .form-error {
  font-size: 14px;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 10px;
}

.cms-form .success,
.cms-form .form-success {
  font-size: 14px;
  color: var(--accent);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

@media (max-width: 900px) {
  .section {
    padding: 42px 0;
  }

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

@media (max-width: 760px) {
  .header-inner {
    align-items: flex-start;
  }

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

  .hero {
    padding: 20px 0 16px;
  }
}

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

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .step-band {
    gap: 10px;
  }

  .step-link {
    padding: 11px 13px;
  }

  .hot-summary {
    padding-left: 0;
  }
}

:root{--intro-bg:#f3f8fc;--intro-card:#e2eff8;--intro-ink:#223440;--intro-accent:#3f8fbf;}
.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; }
}
