/* =========================================================
   岐黄云览 · 中医药文化数字孪生运营系统
   设计系统 / Design System
   ========================================================= */

:root {
  /* 墨绿主色系 —— 沉香、青黛 */
  --jade-900: #0b1f19;
  --jade-800: #0e2a21;
  --jade-700: #164637;
  --jade-600: #1d5c48;
  --jade-500: #2a7a5f;
  --jade-300: #7cb8a1;
  --jade-100: #dcece5;

  /* 宣纸米白 */
  --paper: #f7f4ec;
  --paper-2: #efe9dc;
  --paper-3: #e4dbc8;

  /* 朱砂 · 赭金 */
  --cinnabar: #b23a2f;
  --cinnabar-2: #d4564a;
  --gold: #b9932f;
  --gold-2: #d8b25c;

  --text: #23241f;
  --text-2: #5d5e55;
  --text-3: #8b8c81;
  --line: rgba(22, 70, 55, 0.14);
  --line-strong: rgba(22, 70, 55, 0.26);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(11, 31, 25, 0.05), 0 4px 14px rgba(11, 31, 25, 0.05);
  --shadow: 0 12px 34px rgba(11, 31, 25, 0.1);
  --shadow-lg: 0 28px 70px rgba(11, 31, 25, 0.2);

  --max: 1200px;
  --header-h: 72px;

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.02em;
}

p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

address {
  font-style: normal;
}

::selection {
  background: var(--jade-600);
  color: #fff;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  position: relative;
  padding: 104px 0;
}

.section--tight {
  padding: 76px 0;
}

.section--paper {
  background: var(--paper-2);
}

.section--ink {
  background: linear-gradient(165deg, var(--jade-900), var(--jade-700) 60%, var(--jade-600));
  color: #eef3ef;
}

/* ---------- 装饰纹样 ---------- */
.pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(circle at 1px 1px, rgba(22, 70, 55, 0.13) 1px, transparent 0);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 72%);
}

.pattern--light {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.16) 1px, transparent 0);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 5%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 5%, transparent 80%);
}

/* ---------- 标题组 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.eyebrow--light {
  color: var(--gold-2);
}

.section__head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__head--center .eyebrow::before {
  display: none;
}

.section__title {
  margin-top: 18px;
  font-size: clamp(28px, 3.6vw, 42px);
  color: var(--jade-800);
}

.section--ink .section__title {
  color: #f4f7f4;
}

.section__lead {
  margin-top: 18px;
  font-size: 16.5px;
  color: var(--text-2);
}

.section--ink .section__lead {
  color: rgba(238, 243, 239, 0.76);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--cinnabar);
  color: #fff;
  box-shadow: 0 12px 28px rgba(178, 58, 47, 0.32);
}

.btn--primary:hover {
  background: var(--cinnabar-2);
  box-shadow: 0 18px 36px rgba(178, 58, 47, 0.4);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--line {
  border: 1px solid var(--line-strong);
  color: var(--jade-700);
}

.btn--line:hover {
  background: var(--jade-700);
  border-color: var(--jade-700);
  color: #fff;
}

.btn__arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* =========================================================
   顶部导航
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 244, 236, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(247, 244, 236, 0.95);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(11, 31, 25, 0.07);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__seal {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--cinnabar), #8f2b22);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 6px 16px rgba(178, 58, 47, 0.3);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--jade-800);
}

.brand__latin {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--text-3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  position: relative;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-2);
  transition: color 0.28s var(--ease), background-color 0.28s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--cinnabar);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.32s var(--ease);
}

.nav__link:hover {
  color: var(--jade-700);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 20px;
}

.nav__link.is-active {
  color: var(--jade-800);
  font-weight: 500;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--jade-700);
  transition: background-color 0.28s var(--ease), color 0.28s var(--ease);
}

.icon-btn:hover {
  background: rgba(22, 70, 55, 0.09);
}

.nav-toggle {
  display: none;
}

.nav-toggle__bars {
  position: relative;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background-color 0.25s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle.is-open .nav-toggle__bars {
  background: transparent;
}

.nav-toggle.is-open .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* =========================================================
   首页 Hero
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 72px) 0 96px;
  overflow: hidden;
  background: linear-gradient(155deg, var(--jade-900) 0%, var(--jade-700) 52%, #23654f 100%);
  color: #f2f5f2;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(11, 31, 25, 0.9) 0%, rgba(11, 31, 25, 0.62) 48%, rgba(11, 31, 25, 0.8) 100%),
    url("../img/hero.png");
  background-size: cover;
  background-position: center;
  opacity: 0.92;
  transform: scale(1.04);
  animation: heroZoom 22s var(--ease) forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero__glow {
  position: absolute;
  width: 620px;
  height: 620px;
  right: -160px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 180, 92, 0.28), transparent 66%);
  filter: blur(10px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 56px;
}

.hero__copy {
  max-width: 660px;
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 6px 34px rgba(0, 0, 0, 0.34);
}

.hero__title span {
  display: block;
}

.hero__title em {
  font-style: normal;
  color: var(--gold-2);
}

.hero__desc {
  margin-top: 24px;
  max-width: 560px;
  font-size: 17px;
  color: rgba(238, 243, 239, 0.82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__vertical {
  display: flex;
  align-items: center;
  gap: 22px;
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.42em;
  color: rgba(238, 243, 239, 0.66);
}

.hero__vertical::before,
.hero__vertical::after {
  content: "";
  width: 1px;
  height: 72px;
  background: linear-gradient(to bottom, transparent, rgba(217, 180, 92, 0.7), transparent);
}

/* Hero 底部数据条 */
.hero__stats {
  position: relative;
  z-index: 2;
  margin-top: 76px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.stat__value {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--gold-2);
  letter-spacing: 0.02em;
}

.stat__label {
  margin-top: 6px;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  color: rgba(238, 243, 239, 0.66);
}

/* ---------- 滚动提示 ---------- */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: rgba(238, 243, 239, 0.5);
}

.scroll-hint__line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(217, 180, 92, 0.9), transparent);
  animation: hintDrop 2.2s var(--ease) infinite;
}

@keyframes hintDrop {
  0% {
    transform: scaleY(0.2);
    opacity: 0;
    transform-origin: top;
  }
  45% {
    transform: scaleY(1);
    opacity: 1;
    transform-origin: top;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
    transform-origin: bottom;
  }
}

/* =========================================================
   四大板块入口
   ========================================================= */
.entries {
  position: relative;
  z-index: 3;
  margin-top: -70px;
  padding-bottom: 20px;
}

.entries__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.entry {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 268px;
  padding: 26px 24px 24px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.42s var(--ease), box-shadow 0.42s var(--ease),
    border-color 0.42s var(--ease);
}

.entry__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}

.entry__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(178deg, rgba(11, 31, 25, 0.94) 8%, rgba(11, 31, 25, 0.72) 58%, rgba(11, 31, 25, 0.86) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.entry:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.entry:hover .entry__media,
.entry:hover .entry__veil {
  opacity: 1;
}

.entry:hover .entry__media {
  transform: scale(1);
}

.entry__no {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
  transition: color 0.4s var(--ease);
}

.entry__title {
  margin-top: 44px;
  font-size: 26px;
  color: var(--jade-800);
  transition: color 0.4s var(--ease);
}

.entry__sub {
  margin-top: 8px;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: var(--cinnabar);
  transition: color 0.4s var(--ease);
}

.entry__desc {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-2);
  transition: color 0.4s var(--ease);
}

.entry__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  color: var(--jade-600);
  transition: color 0.4s var(--ease), gap 0.35s var(--ease);
}

.entry:hover .entry__title,
.entry:hover .entry__desc,
.entry:hover .entry__go {
  color: #fff;
}

.entry:hover .entry__sub {
  color: var(--gold-2);
}

.entry:hover .entry__no {
  color: var(--gold-2);
}

.entry:hover .entry__go {
  gap: 14px;
}

/* =========================================================
   关于我们
   ========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 68px;
  align-items: center;
}

.about__body p {
  margin-top: 22px;
  font-size: 16.5px;
  color: var(--text-2);
}

.about__quote {
  margin-top: 32px;
  padding: 22px 26px;
  border-left: 3px solid var(--cinnabar);
  background: rgba(178, 58, 47, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--jade-800);
}

.about__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--jade-700), var(--jade-500));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.about__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.2) 1px, transparent 0);
  background-size: 22px 22px;
}

.about__visual-img {
  position: absolute;
  inset: 0;
  background: url("../img/about.png") center / cover no-repeat;
  opacity: 0.5;
  mix-blend-mode: luminosity;
}

.about__badge {
  position: absolute;
  left: 26px;
  bottom: 26px;
  z-index: 2;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(247, 244, 236, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.about__badge strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--jade-800);
}

.about__badge span {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--text-3);
}

.about__seal {
  position: absolute;
  right: 26px;
  top: 26px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.04em;
  writing-mode: vertical-rl;
  background: rgba(178, 58, 47, 0.82);
}

/* =========================================================
   系统总览
   ========================================================= */
.system__lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: 60px;
  align-items: start;
}

.system__text p {
  margin-top: 20px;
  font-size: 16.5px;
  color: rgba(238, 243, 239, 0.78);
}

.system__text .section__title {
  margin-top: 18px;
}

.system__meter {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.meter__row + .meter__row {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meter__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.meter__name {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(238, 243, 239, 0.72);
}

.meter__num {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--gold-2);
}

.meter__track {
  position: relative;
  height: 5px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  overflow: hidden;
}

.meter__fill {
  position: absolute;
  inset: 0 100% 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-2), var(--cinnabar-2));
  transition: right 1.4s var(--ease);
}

.is-visible .meter__fill {
  right: var(--fill, 0%);
}

.system__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.sys-card {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.sys-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(217, 180, 92, 0.45);
}

.sys-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(217, 180, 92, 0.16);
  color: var(--gold-2);
}

.sys-card__title {
  margin-top: 20px;
  font-size: 19px;
  color: #fff;
}

.sys-card__text {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(238, 243, 239, 0.7);
}

/* =========================================================
   子页 Hero
   ========================================================= */
.subhero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 480px;
  padding: calc(var(--header-h) + 96px) 0 64px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--jade-900), var(--jade-700));
  color: #fff;
}

.subhero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.34;
  transform: scale(1.03);
}

.subhero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 31, 25, 0.72) 0%, rgba(11, 31, 25, 0.55) 45%, rgba(11, 31, 25, 0.92) 100%);
}

.subhero__inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.subhero__title {
  margin-top: 18px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: 0.08em;
  color: #fff;
}

.subhero__sub {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.22em;
  color: var(--gold-2);
}

.subhero__desc {
  margin-top: 26px;
  font-size: 17px;
  color: rgba(238, 243, 239, 0.8);
}

/* 面包屑 */
.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(238, 243, 239, 0.6);
}

.crumbs a:hover {
  color: var(--gold-2);
}

.crumbs__sep {
  opacity: 0.5;
}

/* =========================================================
   正文内容
   ========================================================= */
.prose {
  max-width: 820px;
}

.prose p + p {
  margin-top: 22px;
}

.prose p {
  font-size: 16.5px;
  color: var(--text-2);
}

.prose__drop::first-letter {
  float: left;
  margin: 6px 12px 0 0;
  font-family: var(--font-serif);
  font-size: 60px;
  line-height: 0.82;
  color: var(--cinnabar);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.feature {
  padding: 24px 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.feature__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--jade-800);
}

.feature__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cinnabar);
}

.feature__text {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-2);
}

/* 返回首页 */
.back-home {
  display: flex;
  justify-content: center;
  padding: 64px 0 88px;
}

/* =========================================================
   问道寻踪 · 路线
   ========================================================= */
.route-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 56px;
  align-items: center;
}

.route-intro__kicker {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.24em;
  color: var(--cinnabar);
}

.route-intro__title {
  margin-top: 20px;
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--jade-800);
}

.route-intro__text p {
  margin-top: 20px;
  font-size: 16.5px;
  color: var(--text-2);
}

.route-map {
  position: relative;
  padding: 32px 30px;
  border-radius: var(--radius-lg);
  background: var(--jade-800);
  color: #eef3ef;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.route-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.14) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.7;
}

.route-map__head {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--gold-2);
}

.route-map__list {
  position: relative;
  z-index: 2;
  margin-top: 22px;
}

.route-map__item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
}

.route-map__item + .route-map__item {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.route-map__no {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(217, 180, 92, 0.6);
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--gold-2);
}

.route-map__name {
  font-family: var(--font-serif);
  font-size: 16px;
  color: #fff;
}

.route-map__addr {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(238, 243, 239, 0.6);
}

/* 站点 */
.station {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 54px;
  align-items: center;
  padding: 72px 0;
}

.station + .station {
  border-top: 1px solid var(--line);
}

.station:nth-child(even) .station__media {
  order: 2;
}

.station__media {
  position: relative;
  aspect-ratio: 4 / 3.1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, var(--jade-700), var(--jade-500));
  box-shadow: var(--shadow);
}

.station__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease);
}

.station__media:hover .station__img {
  transform: scale(1.05);
}

.station__tag {
  position: absolute;
  left: 0;
  top: 26px;
  z-index: 2;
  padding: 9px 18px 9px 22px;
  border-radius: 0 999px 999px 0;
  background: rgba(178, 58, 47, 0.94);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.14em;
  backdrop-filter: blur(6px);
}

.station__no {
  position: absolute;
  right: 22px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.34);
}

.station__title {
  margin-top: 16px;
  font-size: clamp(24px, 2.8vw, 32px);
  color: var(--jade-800);
}

.station__sub {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--cinnabar);
}

.station__text p {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-2);
}

.station__addr {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--jade-700);
}

/* 路线小结 */
.route-summary {
  position: relative;
  padding: 74px 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.route-summary__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 54px;
  align-items: center;
}

.route-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.route-chain__node {
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  color: var(--jade-800);
  box-shadow: var(--shadow-sm);
}

.route-chain__arrow {
  color: var(--cinnabar);
  font-size: 15px;
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  position: relative;
  padding: 78px 0 34px;
  background: var(--jade-900);
  color: rgba(238, 243, 239, 0.72);
  overflow: hidden;
}

.site-footer__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.72fr));
  gap: 46px;
}

.site-footer__brand .brand__name {
  color: #fff;
}

.site-footer__brand .brand__latin {
  color: rgba(238, 243, 239, 0.45);
}

.site-footer__desc {
  margin-top: 22px;
  max-width: 340px;
  font-size: 14px;
  line-height: 1.8;
}

.footer__col-title {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: #fff;
}

.footer__links {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__links a {
  font-size: 14px;
  transition: color 0.28s var(--ease), transform 0.28s var(--ease);
}

.footer__links a:hover {
  color: var(--gold-2);
}

.site-footer__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 58px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(238, 243, 239, 0.45);
}

.site-footer__bottom a:hover {
  color: var(--gold-2);
}

/* =========================================================
   搜索浮层
   ========================================================= */
.search {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: 14vh 24px 24px;
  background: rgba(11, 31, 25, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s var(--ease), visibility 0.32s var(--ease);
}

.search.is-open {
  opacity: 1;
  visibility: visible;
}

.search__panel {
  width: 100%;
  max-width: 640px;
  height: fit-content;
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(-16px) scale(0.985);
  transition: transform 0.36s var(--ease);
}

.search.is-open .search__panel {
  transform: none;
}

.search__field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--jade-700);
}

.search__input {
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  font-size: 17px;
  font-family: var(--font-sans);
  color: var(--text);
}

.search__input::placeholder {
  color: var(--text-3);
}

.search__hint {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.search__results {
  overflow-y: auto;
  padding: 12px;
}

.search__item {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius);
  transition: background-color 0.24s var(--ease);
}

.search__item:hover {
  background: rgba(22, 70, 55, 0.07);
}

.search__item-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--jade-800);
}

.search__item-desc {
  margin-top: 3px;
  font-size: 13px;
  color: var(--text-2);
}

.search__empty {
  padding: 34px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--jade-800);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.32s var(--ease), visibility 0.32s var(--ease),
    transform 0.32s var(--ease), background-color 0.28s var(--ease);
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--cinnabar);
}

/* =========================================================
   滚动揭示动画
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal][data-delay="1"] {
  transition-delay: 0.1s;
}

[data-reveal][data-delay="2"] {
  transition-delay: 0.2s;
}

[data-reveal][data-delay="3"] {
  transition-delay: 0.3s;
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1080px) {
  .entries__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system__lead,
  .route-intro__grid,
  .route-intro,
  .route-summary__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .about__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .about__visual {
    aspect-ratio: 16 / 10;
    max-width: 620px;
  }

  .system__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  .hero__vertical {
    display: none;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 22px;
    background: rgba(247, 244, 236, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
      visibility 0.3s var(--ease);
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__link {
    padding: 13px 14px;
    border-radius: var(--radius-sm);
    font-size: 16px;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link:hover,
  .nav__link.is-active {
    background: rgba(22, 70, 55, 0.08);
  }

  .site-header__tools .btn--hidden-sm {
    display: none;
  }

  .section {
    padding: 76px 0;
  }

  .station {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 56px 0;
  }

  .station:nth-child(even) .station__media {
    order: 0;
  }

  .hero__stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .scroll-hint {
    display: none;
  }

  .entries {
    margin-top: -46px;
  }
}

@media (max-width: 620px) {
  .container,
  .site-header__inner {
    padding: 0 20px;
  }

  .entries__grid,
  .system__cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry {
    min-height: 0;
  }

  .entries {
    margin-top: -36px;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 56px) 0 72px;
  }

  .subhero {
    min-height: 400px;
    padding-bottom: 48px;
  }

  .brand__latin {
    display: none;
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .station__no {
    font-size: 44px;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
