:root {
  --paper: #fffdf8;
  --paper-soft: #fff6ea;
  --sky: #dff5ff;
  --sky-deep: #9adcf2;
  --mint: #d9f4df;
  --clover: #3f9a68;
  --clover-deep: #236747;
  --orange: #f7b879;
  --peach: #ff8eaa;
  --rose: #ffd7df;
  --ink: #243a34;
  --muted: #687b75;
  --line: rgba(35, 103, 71, 0.18);
  --glass: rgba(255, 255, 255, 0.74);
  --shadow: 0 18px 52px rgba(69, 113, 89, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(63, 154, 104, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(63, 154, 104, 0.04) 1px, transparent 1px),
    radial-gradient(ellipse at 18% 8%, rgba(154, 220, 242, 0.36), transparent 38%),
    linear-gradient(180deg, #f5fcff 0%, #fffdf8 28%, #f8fff4 68%, #fff8ef 100%);
  background-size: 34px 34px, 34px 34px, auto, auto;
  letter-spacing: 0;
}

body.theme-evening {
  --paper: #fff8f2;
  --paper-soft: #fff1e0;
  --sky: #ffe6c7;
  --sky-deep: #f4a86d;
  --mint: #e7f1dc;
  --clover: #4b8e61;
  --clover-deep: #224739;
  --orange: #f29a62;
  --peach: #ff9ab1;
  background:
    radial-gradient(circle at 10% 4%, rgba(255, 215, 160, 0.42), transparent 34%),
    linear-gradient(180deg, #fff2df 0%, #fffaf3 42%, #f6fff0 100%);
}

a {
  color: inherit;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.78);
  border-bottom: 1px solid rgba(63, 154, 104, 0.16);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  color: var(--clover-deep);
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 38px;
  object-fit: contain;
  border-radius: 50%;
  background: #f7fff8;
  box-shadow: 0 8px 22px rgba(63, 154, 104, 0.25);
  border: 1px solid rgba(63, 154, 104, 0.22);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a {
  text-decoration: none;
  color: #36534b;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 12px 10px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--clover-deep);
  background: rgba(217, 244, 223, 0.88);
  outline: none;
}

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

.icon-button,
.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(63, 154, 104, 0.22);
  background: rgba(255, 255, 255, 0.74);
  color: var(--clover-deep);
  border-radius: 50%;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.icon-button:hover,
.menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(63, 154, 104, 0.18);
}

.theme-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd36d 0 55%, #7cbbe8 56%);
  border: 2px solid currentColor;
}

.menu-toggle {
  display: none;
  position: relative;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  content: "";
  position: absolute;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span {
  top: 20px;
}

.menu-toggle::before {
  top: 14px;
}

.menu-toggle::after {
  top: 26px;
}

.menu-toggle.is-open span {
  opacity: 0;
}

.menu-toggle.is-open::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open::after {
  transform: translateY(-6px) rotate(-45deg);
}

.download-link {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: #203f34;
  background: linear-gradient(135deg, #fff1b9 0%, #ffd88d 32%, var(--orange) 62%, var(--peach) 100%);
  box-shadow: 0 14px 32px rgba(247, 184, 121, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.64);
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.download-link:hover {
  transform: translateY(-1px);
}

.hero {
  min-height: 88vh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 118px 0 80px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 68, 54, 0.8) 0%, rgba(36, 92, 75, 0.54) 36%, rgba(255, 246, 234, 0.18) 72%),
    linear-gradient(180deg, rgba(223, 245, 255, 0.2) 0%, rgba(255, 253, 248, 0.12) 68%, var(--paper) 100%);
  z-index: -1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-media img {
  object-fit: contain;
  object-position: center center;
  transform: none;
  animation: none;
}

.summer-symbols {
  position: absolute;
  inset: 82px 0 0;
  pointer-events: none;
  z-index: -1;
}

.motif {
  position: absolute;
  opacity: 0.78;
  filter: drop-shadow(0 10px 24px rgba(35, 103, 71, 0.18));
}

.motif-clover {
  width: 84px;
  height: 84px;
  left: 7%;
  top: 12%;
  background:
    radial-gradient(circle at 35% 34%, rgba(217, 244, 223, 0.8) 0 20%, transparent 21%),
    radial-gradient(circle at 65% 34%, rgba(217, 244, 223, 0.8) 0 20%, transparent 21%),
    radial-gradient(circle at 35% 64%, rgba(217, 244, 223, 0.8) 0 20%, transparent 21%),
    radial-gradient(circle at 65% 64%, rgba(217, 244, 223, 0.8) 0 20%, transparent 21%);
  animation: floatMotif 7s ease-in-out infinite;
}

.motif-sunflower {
  width: 76px;
  height: 76px;
  right: 12%;
  bottom: 19%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 8deg, #ffd56d 0 12deg, #f7b879 12deg 24deg),
    radial-gradient(circle, #7a5520 0 20%, transparent 22%);
  -webkit-mask: radial-gradient(circle, transparent 0 16%, #000 17% 100%);
  mask: radial-gradient(circle, transparent 0 16%, #000 17% 100%);
  animation: slowSpin 32s linear infinite;
}

.motif-cloud {
  width: 170px;
  height: 70px;
  right: 24%;
  top: 8%;
  background:
    radial-gradient(ellipse at 24% 58%, rgba(255, 255, 255, 0.6) 0 28%, transparent 30%),
    radial-gradient(ellipse at 48% 42%, rgba(255, 255, 255, 0.66) 0 35%, transparent 37%),
    radial-gradient(ellipse at 74% 58%, rgba(255, 255, 255, 0.58) 0 28%, transparent 30%);
  animation: cloudSlide 18s ease-in-out infinite alternate;
}

.motif-watermelon {
  width: 76px;
  height: 38px;
  left: 46%;
  bottom: 9%;
  border-radius: 0 0 76px 76px;
  background:
    radial-gradient(circle at 28% 35%, #243a34 0 3px, transparent 4px),
    radial-gradient(circle at 52% 48%, #243a34 0 3px, transparent 4px),
    radial-gradient(circle at 72% 32%, #243a34 0 3px, transparent 4px),
    linear-gradient(#ff8eaa 0 70%, #fff7d6 71% 80%, #3f9a68 81%);
}

.motif-chime {
  width: 28px;
  height: 92px;
  right: 7%;
  top: 19%;
  border-top: 2px solid rgba(255, 255, 255, 0.78);
  border-left: 2px solid rgba(255, 255, 255, 0.5);
  transform-origin: top center;
  animation: chimeSwing 5.5s ease-in-out infinite;
}

.motif-chime::before,
.motif-chime::after {
  content: "";
  position: absolute;
  left: 8px;
}

.motif-chime::before {
  top: 18px;
  width: 22px;
  height: 24px;
  border-radius: 7px 7px 12px 12px;
  background: rgba(223, 245, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.motif-chime::after {
  top: 45px;
  width: 10px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff6ea, #ff8eaa);
}

.motif-path {
  width: 240px;
  height: 58px;
  left: 12%;
  bottom: 2%;
  opacity: 0.34;
  background:
    radial-gradient(ellipse at 12% 70%, rgba(255, 246, 234, 0.8) 0 10px, transparent 11px),
    radial-gradient(ellipse at 30% 54%, rgba(255, 246, 234, 0.72) 0 8px, transparent 9px),
    radial-gradient(ellipse at 48% 68%, rgba(255, 246, 234, 0.8) 0 11px, transparent 12px),
    radial-gradient(ellipse at 67% 50%, rgba(255, 246, 234, 0.68) 0 8px, transparent 9px),
    radial-gradient(ellipse at 86% 66%, rgba(255, 246, 234, 0.74) 0 10px, transparent 11px);
}

.hero-inner,
.section-inner,
.footer-inner,
.page-hero-inner,
.content-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 700px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(14, 52, 41, 0.35);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  color: inherit;
  font-weight: 800;
  font-size: 13px;
}

.hero h1,
.page-hero h1 {
  margin: 20px 0 12px;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero .subtitle {
  margin: 0 0 18px;
  font-size: clamp(19px, 2.5vw, 29px);
  font-weight: 800;
}

.hero .intro {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.94);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-badges span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.ghost-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.section {
  padding: 76px 0;
}

.section.is-soft {
  background: linear-gradient(180deg, rgba(223, 245, 255, 0.48), rgba(255, 253, 248, 0.74));
}

.section.is-mint {
  background: linear-gradient(180deg, rgba(217, 244, 223, 0.5), rgba(255, 246, 234, 0.56));
}

.section-head {
  max-width: 780px;
  margin-bottom: 32px;
}

.section-head h2,
.content-page h2 {
  margin: 0 0 12px;
  color: var(--clover-deep);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
}

.section-head p,
.content-page p,
.content-page li {
  color: #4d625b;
  line-height: 1.9;
  font-size: 16px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 34px;
  align-items: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(217, 244, 223, 0.92), rgba(255, 215, 223, 0.62));
  border: 1px solid rgba(63, 154, 104, 0.2);
  color: var(--clover-deep);
  font-size: 13px;
  font-weight: 900;
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 36px;
  align-items: start;
}

.overview-copy,
.summary-copy {
  display: grid;
  gap: 22px;
}

.overview-copy .section-head,
.summary-copy .section-head {
  max-width: none;
  margin-bottom: 0;
}

.overview-text {
  display: grid;
  gap: 16px;
}

.overview-text p {
  margin: 0;
  color: #405850;
  line-height: 1.95;
}

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

.overview-highlights article,
.summary-points article {
  min-height: 100%;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(63, 154, 104, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 246, 234, 0.68));
  box-shadow: 0 12px 28px rgba(69, 113, 89, 0.1);
}

.overview-highlights span,
.summary-points span {
  display: block;
  margin-bottom: 8px;
  color: #8a5a19;
  font-size: 13px;
  font-weight: 900;
}

.overview-highlights strong {
  display: block;
  color: #35584d;
  font-size: 15px;
  line-height: 1.75;
}

.summary-points p {
  margin: 0;
  color: #455e56;
  font-size: 15px;
  line-height: 1.8;
}

.overview-side {
  display: grid;
  gap: 16px;
}

.overview-image,
.summary-image {
  padding: 10px;
}

.overview-image img,
.summary-image img {
  border-radius: calc(var(--radius) - 2px);
}

.overview-facts .fact {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(223, 245, 255, 0.42));
}

.summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 36px;
  align-items: center;
}

.prose-block {
  display: grid;
  gap: 18px;
}

.about-aside {
  display: grid;
  gap: 16px;
}

.prose-block p {
  margin: 0;
  color: #405850;
  line-height: 1.95;
}

.glass-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(223, 245, 255, 0.5), rgba(217, 244, 223, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
}

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

.fact {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.fact strong {
  color: var(--clover-deep);
}

.image-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 244, 0.9));
}

.image-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.content-grid,
.feature-grid,
.resource-grid,
.faq-grid,
.route-grid,
.maintenance-grid,
.link-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.info-card,
.feature-card,
.resource-card,
.faq-card,
.route-card,
.maintenance-card,
.link-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 253, 248, 0.66));
  box-shadow: 0 12px 34px rgba(69, 113, 89, 0.12);
  padding: 22px;
  backdrop-filter: blur(14px);
}

.info-card h3,
.feature-card h3,
.resource-card h3,
.faq-card h3,
.route-card h3,
.maintenance-card h3 {
  margin: 0 0 10px;
  color: var(--clover-deep);
  font-size: 20px;
  line-height: 1.35;
}

.info-card p,
.feature-card p,
.resource-card p,
.faq-card p,
.route-card p,
.maintenance-card p {
  margin: 0;
  color: #51655f;
  line-height: 1.82;
}

.info-card .tag,
.feature-card .tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff4d8;
  color: #845a1f;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.character-layout {
  display: grid;
  gap: 20px;
  align-items: start;
}

.character-tabs-shell {
  padding: 18px;
  border: 1px solid rgba(63, 154, 104, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(223, 245, 255, 0.48), rgba(217, 244, 223, 0.52));
  box-shadow: 0 14px 34px rgba(69, 113, 89, 0.12);
}

.character-tabs-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px;
}

.character-tabs-heading span {
  color: var(--clover-deep);
  font-size: 17px;
  font-weight: 900;
}

.character-tabs-heading small {
  color: var(--muted);
  font-size: 13px;
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.tab-button {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "number name"
    "number detail";
  align-items: center;
  column-gap: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: #36534b;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  padding: 12px 14px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.tab-button:hover {
  transform: translateY(-2px);
  border-color: rgba(63, 154, 104, 0.35);
  box-shadow: 0 10px 22px rgba(69, 113, 89, 0.1);
}

.tab-number {
  grid-area: number;
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 32px;
  border-right: 1px solid rgba(63, 154, 104, 0.16);
  color: #9b6c2a;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.tab-name {
  grid-area: name;
  color: var(--clover-deep);
  font-size: 17px;
}

.tab-button small {
  grid-area: detail;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tab-button[aria-selected="true"] {
  color: var(--clover-deep);
  background: linear-gradient(135deg, rgba(217, 244, 223, 0.96), rgba(255, 215, 223, 0.72));
  border-color: rgba(63, 154, 104, 0.4);
  box-shadow: 0 12px 24px rgba(63, 154, 104, 0.13);
}

.character-stage {
  min-width: 0;
}

.character-panel {
  display: none;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 30px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(63, 154, 104, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 246, 234, 0.62));
  box-shadow: var(--shadow);
}

.character-panel.is-active {
  display: grid;
}

.character-panel .image-frame {
  padding: 10px;
}

.character-panel .image-frame img {
  object-position: center;
  border-radius: calc(var(--radius) - 2px);
}

.character-copy {
  padding: 6px 4px;
}

.character-copy h3 {
  color: var(--clover-deep);
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
}

.character-copy p {
  color: #4b635b;
  line-height: 1.9;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(217, 244, 223, 0.76);
  color: var(--clover-deep);
  border: 1px solid rgba(63, 154, 104, 0.18);
  font-size: 13px;
  font-weight: 800;
}

.gallery-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.gallery-item {
  display: block;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 249, 240, 0.82));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(69, 113, 89, 0.13);
  width: 100%;
  margin: 0;
  text-align: left;
  display: grid;
  grid-template-rows: auto minmax(76px, auto);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.62);
}

.gallery-caption {
  display: grid;
  gap: 4px;
  padding: 12px 14px 14px;
}

.gallery-caption strong {
  color: var(--clover-deep);
  font-size: 15px;
  line-height: 1.35;
}

.gallery-caption small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(69, 113, 89, 0.16);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.timeline-date {
  color: #8a5a19;
  font-weight: 900;
}

.timeline-item h3 {
  margin: 0 0 6px;
  color: var(--clover-deep);
}

.timeline-item p {
  margin: 0;
  color: #526660;
  line-height: 1.8;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: transparent;
  color: var(--clover-deep);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.faq-question::after {
  content: "+";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--mint);
  color: var(--clover-deep);
}

.faq-item.is-open .faq-question::after {
  content: "-";
}

.faq-answer {
  display: none;
  padding: 0 18px 18px;
  color: #51655f;
  line-height: 1.85;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.resource-card {
  text-decoration: none;
  min-height: 172px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.resource-card span {
  color: #8a5a19;
  font-size: 13px;
  font-weight: 900;
}

.resource-card:hover {
  transform: translateY(-2px);
  border-color: rgba(63, 154, 104, 0.42);
}

.friend-links {
  margin-top: 28px;
}

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

.link-card {
  padding: 14px 12px;
  min-height: 48px;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  color: var(--clover-deep);
}

.page-hero {
  padding: 132px 0 58px;
  background:
    linear-gradient(135deg, rgba(217, 244, 223, 0.88), rgba(223, 245, 255, 0.8) 54%, rgba(255, 215, 223, 0.74)),
    url("../img/scene-street.webp") center / cover;
  position: relative;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 253, 248, 0.76);
  z-index: -1;
}

.page-hero h1 {
  color: var(--clover-deep);
  text-shadow: none;
  max-width: 850px;
}

.page-hero p {
  max-width: 760px;
  color: #405850;
  line-height: 1.9;
  font-size: 17px;
}

.content-page {
  padding: 56px 0 76px;
}

.content-page section {
  padding: 32px 0;
  border-bottom: 1px solid rgba(63, 154, 104, 0.12);
}

.content-page section:last-child {
  border-bottom: 0;
}

.content-page h2 {
  font-size: clamp(25px, 3.2vw, 38px);
}

.content-page h3 {
  color: var(--clover-deep);
  margin: 0 0 8px;
  font-size: 21px;
}

.content-page ul,
.content-page ol {
  padding-left: 20px;
}

.content-page li + li {
  margin-top: 8px;
}

.quick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.quick-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(63, 154, 104, 0.18);
  color: #3d5a52;
  font-weight: 800;
  font-size: 13px;
}

.note-box {
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 246, 234, 0.88), rgba(217, 244, 223, 0.72));
  border: 1px solid var(--line);
}

.site-footer {
  background: linear-gradient(135deg, #234a3c, #315f4c 52%, #234a3c);
  color: rgba(255, 255, 255, 0.86);
  padding: 44px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.footer-brand {
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.footer-inner p {
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(22, 40, 34, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.lightbox button {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 1020px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(63, 154, 104, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 253, 248, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    border-radius: var(--radius);
    background: rgba(217, 244, 223, 0.36);
    line-height: 1.35;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .two-column,
  .overview-layout,
  .summary-layout,
  .character-layout,
  .character-panel {
    grid-template-columns: 1fr;
  }

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

  .overview-side {
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
    align-items: start;
  }

  .summary-image {
    max-width: 640px;
    justify-self: center;
  }

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

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

@media (max-width: 680px) {
  .nav-shell,
  .hero-inner,
  .section-inner,
  .footer-inner,
  .page-hero-inner,
  .content-page {
    width: min(100% - 24px, 1180px);
  }

  .brand-text small {
    display: none;
  }

  .nav-actions .download-link {
    display: none;
  }

  .hero {
    min-height: 86svh;
    padding: 104px 0 56px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(22, 68, 54, 0.3) 0%, rgba(22, 68, 54, 0.82) 60%, rgba(255, 253, 248, 0.16) 100%);
  }

  .hero-media img {
    object-position: center center;
  }

  .summer-symbols {
    inset: 84px 0 0;
  }

  .motif-cloud,
  .motif-sunflower,
  .motif-path {
    display: none;
  }

  .motif-clover {
    left: 4%;
    top: 10%;
    transform: scale(0.72);
  }

  .motif-watermelon {
    left: 70%;
    bottom: 6%;
    transform: scale(0.76);
  }

  .motif-chime {
    right: 6%;
    top: 24%;
    transform: scale(0.86);
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(38px, 14vw, 58px);
  }

  .hero-actions,
  .page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .download-link,
  .ghost-link {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .content-grid,
  .feature-grid,
  .resource-grid,
  .route-grid,
  .maintenance-grid,
  .faq-grid,
  .overview-side,
  .overview-highlights,
  .summary-points,
  .tab-list,
  .fact-grid,
  .stat-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .character-tabs-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .character-panel {
    gap: 20px;
    padding: 16px;
  }

  .summary-image {
    width: 100%;
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 108px 0 42px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes floatMotif {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(8deg);
  }
}

@keyframes cloudSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(24px);
  }
}

@keyframes chimeSwing {
  0%, 100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
