:root {
  --bg: #fdf5f2;
  --card: #f8e4de;
  --ink: #3b2d2a;
  --muted: #7c645d;
  --accent: #bf6656;
  --line: rgba(59, 45, 42, 0.16);
  --line-soft: rgba(59, 45, 42, 0.08);
  --radius: 10px;
  --shadow: 0 6px 18px rgba(59, 45, 42, 0.06);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

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

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

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.28;
}

p {
  margin: 0;
}

table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}

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

.shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

.header-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

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

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

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 14px;
  color: var(--muted);
}

.nav-link {
  padding: 2px 0;
  border-bottom: 1px solid transparent;
}

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

.anchor-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.anchor-link {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

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

.main-wrap {
  padding-bottom: 6px;
}

.hero {
  padding-top: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 32px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

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

.hero-label {
  position: relative;
  padding-left: 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.hero-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background: var(--accent);
  border-radius: 1px;
}

.hero-title {
  font-size: 31px;
  line-height: 1.26;
}

.hero-text {
  margin-top: 14px;
  max-width: 30em;
  font-size: 15px;
  color: var(--muted);
}

.hero-note {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.panel-block + .panel-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.panel-title {
  margin-bottom: 6px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.index-list {
  counter-reset: idx;
}

.index-item {
  counter-increment: idx;
  border-top: 1px solid var(--line-soft);
}

.index-item:first-child {
  border-top: 0;
}

.index-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
}

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

.index-num {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

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

.latest-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.latest-item {
  padding: 3px 0;
}

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

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

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 18px;
  margin-bottom: 16px;
}

.section-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.section-body {
  flex: 1 1 260px;
  min-width: 0;
}

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

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

.section-tag {
  flex: 0 0 auto;
  position: sticky;
  top: 12px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 26px;
}

.faq-item {
  flex: 1 1 420px;
  min-width: 0;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.faq-q {
  font-size: 15px;
  font-weight: 600;
}

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

.stories {
  counter-reset: story;
}

.story {
  counter-increment: story;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

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

.story-num {
  grid-column: 1;
  grid-row: 1;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--accent);
}

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

.story-body {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

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

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

.story-html p {
  margin: 6px 0;
}

.story-html h2,
.story-html h3 {
  margin: 10px 0 4px;
  font-size: 15px;
  color: var(--ink);
}

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

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

.story:nth-child(even) .story-body {
  grid-column: 1;
}

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

.gallery-cell {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--card);
}

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

.features-rows {
  display: flex;
  flex-wrap: wrap;
}

.feature-row {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

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

.feature-label {
  flex: 0 0 128px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

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

.feature-title {
  font-size: 15.5px;
  font-weight: 600;
}

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

.cta-band {
  padding-top: 28px;
  padding-bottom: 34px;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 22px 24px;
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.cta-text {
  font-size: 16px;
  font-weight: 600;
  max-width: 32em;
}

.cta-link {
  padding: 7px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--accent);
  white-space: nowrap;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  padding-bottom: 28px;
}

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

.footer-brand {
  max-width: 340px;
}

.footer-name {
  font-size: 16px;
  font-weight: 700;
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13.5px;
}

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

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

.footer-copy {
  width: 100%;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--muted);
}

.cms-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.cms-form input,
.cms-form textarea,
.cms-form select {
  max-width: 100%;
  padding: 8px 10px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.cms-form button {
  padding: 8px 18px;
  font: inherit;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
}

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

.cms-form .success {
  font-size: 13px;
  color: #5f7a52;
}

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

  .hero-title {
    font-size: 26px;
  }

  .anchor-nav {
    margin-left: 0;
  }

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

@media (max-width: 560px) {
  .hero-title {
    font-size: 23px;
  }

  .section-title {
    font-size: 19px;
  }

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

  .faq-item {
    flex: 1 1 100%;
  }

  .feature-label {
    flex: 1 1 100%;
  }

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

  .story-num,
  .story:nth-child(even) .story-num {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }

  .story-body,
  .story:nth-child(even) .story-body {
    grid-column: 1;
    grid-row: auto;
  }
}

:root{--intro-bg:#fdf5f2;--intro-card:#f8e4de;--intro-ink:#3b2d2a;--intro-accent:#bf6656;}
.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） */
.faq-a p {
  margin: 6px 0 0;
}

.faq-a p:first-child {
  margin-top: 0;
}

.features-rows {
  counter-reset: feat;
}

.feature-row {
  counter-increment: feat;
}

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

.feature-text p {
  margin: 0;
}

.story-html ul,
.story-html ol {
  margin: 6px 0;
  padding-left: 18px;
}

.story-html ul {
  list-style: disc;
}

.story-html ol {
  list-style: decimal;
}

.story-html a {
  color: var(--accent);
  border-bottom: 1px solid var(--line);
}

.story-html table {
  font-size: 13.5px;
}
