:root {
  --bg: #f1f6f7;
  --card: #deeaec;
  --ink: #22343a;
  --muted: #587078;
  --accent: #2f6f7a;
  --line: #c6d8db;
  --paper: #ffffff;
  --radius: 18px;
  --serif: Georgia, "Songti SC", "Noto Serif SC", "Times New Roman", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}

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

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

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.28;
}

p {
  margin: 0;
}

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

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

.site-main {
  counter-reset: chapter;
  padding-bottom: 34px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(241, 246, 247, 0.95);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

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

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

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

.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
  font-size: 15px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.is-current::after {
  transform: scaleX(1);
}

.drawer {
  display: none;
  position: relative;
}

.drawer-toggle {
  list-style: none;
  cursor: pointer;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--accent);
  background: var(--paper);
}

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

.drawer-body {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(34, 52, 58, 0.14);
}

.drawer-link {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 15px;
}

.drawer-link:hover {
  background: var(--card);
  text-decoration: none;
}

.side-index {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 30;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.side-index-title {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: side;
}

.side-item {
  counter-increment: side;
}

.side-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}

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

.side-num {
  font-family: var(--serif);
  font-size: 11px;
  color: var(--muted);
}

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

.hero {
  padding: 36px 0 10px;
}

.hero-labels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.label-pill {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--card);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.label-pill + .label-pill {
  margin-left: 22px;
  background: var(--paper);
}

.hero-title {
  margin-top: 14px;
  font-size: clamp(30px, 4.6vw, 44px);
  letter-spacing: 0.01em;
}

.hero-lead {
  max-width: 640px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
}

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

.step {
  counter-increment: step;
  display: block;
  padding: 16px 18px;
  background: var(--card);
  border-left: 3px solid var(--accent);
  border-radius: 16px;
  color: var(--ink);
  transition: transform 0.18s ease, background 0.18s ease;
}

.step:hover {
  background: var(--paper);
  transform: translateY(-2px);
  text-decoration: none;
}

.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

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

.step-label {
  display: block;
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 17px;
}

.section {
  counter-increment: chapter;
  padding: 46px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
}

.section-headmain {
  min-width: 0;
}

.section-tag {
  position: sticky;
  top: 84px;
  display: inline-block;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--card);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.section-title {
  margin-top: 10px;
  font-size: 27px;
}

.section-sub {
  max-width: 640px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.section-num {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.22;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 22px 18px;
  background: var(--paper);
  border-radius: var(--radius);
}

.feature-bar {
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 12px;
  border-radius: 2px;
  background: var(--accent);
}

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

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

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

.gallery-cell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: var(--card);
}

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

.story-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: story;
}

.story-item {
  counter-increment: story;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 24px 26px;
  background: var(--paper);
  border-radius: var(--radius);
}

.story-item:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) 120px;
}

.story-item:nth-child(even) .story-num {
  order: 2;
  text-align: right;
}

.story-num {
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.25;
}

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

.story-body {
  min-width: 0;
}

.story-title {
  font-size: 21px;
}

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

.story-text p {
  margin: 0 0 10px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}

.faq-item {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  font-family: var(--serif);
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}

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

.faq-q::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

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

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

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

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.news-date {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.news-title {
  font-size: 16px;
  color: var(--ink);
}

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

.cta-band {
  padding: 6px 0 10px;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  background: var(--accent);
  border-radius: 20px;
}

.cta-text {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--bg);
}

.cta-link {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--accent);
  font-size: 14px;
  white-space: nowrap;
}

.cta-link:hover {
  text-decoration: none;
  background: var(--paper);
}

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

.prose p {
  margin: 0 0 14px;
}

.prose h2,
.prose h3 {
  margin: 22px 0 10px;
}

.prose ul,
.prose ol {
  margin: 0 0 14px;
  padding-left: 22px;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose img {
  border-radius: 12px;
}

.prose table {
  width: 100%;
  max-width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 15px;
}

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

.prose table th {
  background: var(--card);
}

.cms-form {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

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

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

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

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

.cms-form button,
.cms-form .btn {
  display: inline-block;
  padding: 11px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 15px;
  cursor: pointer;
}

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

.cms-form .form-error {
  color: #a4442f;
  font-size: 13px;
}

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

.footer {
  margin-top: 20px;
  padding: 36px 0 22px;
  background: var(--card);
  border-top: 1px solid var(--line);
}

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

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

.footer-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.footer-slogan {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.footer-index {
  flex: 1 1 200px;
  min-width: 0;
}

.footer-index-title {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: foot;
}

.footer-item {
  counter-increment: foot;
}

.footer-link {
  font-size: 14px;
  color: var(--ink);
}

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

.footer-num {
  margin-right: 8px;
  font-family: var(--serif);
  font-size: 12px;
  color: var(--muted);
}

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

.footer-nav {
  flex: 1 1 200px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-width: 0;
}

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

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

.footer-bottom {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .side-index {
    display: none;
  }
}

@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-main {
    display: none;
  }
  .drawer {
    display: block;
  }
}

@media (max-width: 760px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .section-num {
    font-size: 38px;
  }
  .story-item,
  .story-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }
  .story-item:nth-child(even) .story-num {
    order: 0;
    text-align: left;
  }
  .story-num {
    font-size: 40px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 26px 0 6px;
  }
  .section {
    padding: 34px 0;
  }
  .feature-grid,
  .steps,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .news-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .cta-inner {
    padding: 20px;
  }
  .cta-text {
    font-size: 18px;
  }
}

:root{--intro-bg:#f1f6f7;--intro-card:#deeaec;--intro-ink:#22343a;--intro-accent:#2f6f7a;}
.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; }
}
