@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Righteous&display=swap');

:root {
  --mint: #b4fde1;
  --sky: #add8e6;
  --ink: #172620;
  --paper: #f3fffa;
  --line: rgba(23, 38, 32, 0.14);
  --r-lg: 22px;
  --r-md: 10px;
  --sh-o: 4px 4px 10px rgba(23, 38, 32, 0.16);
  --sh-i: inset -2px -2px 8px rgba(23, 38, 32, 0.10), inset 2px 2px 6px rgba(255, 255, 255, 0.7);
  --ease: cubic-bezier(0.34, 1.56, 0.64, 1);
  --head-h: 84px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Poppins', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 10% -10%, #dbfff1 0%, rgba(219, 255, 241, 0) 62%),
    radial-gradient(880px 480px at 94% 2%, #d6eef6 0%, rgba(214, 238, 246, 0) 58%),
    linear-gradient(180deg, #f1fffa 0%, #eaf7fd 55%, #f1fffa 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-t, .num, .f-logo {
  font-family: 'Righteous', 'Poppins', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

a { color: inherit; }

/* 顶栏 */
.mast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px clamp(12px, 4vw, 34px);
  border-bottom: 4px solid rgba(23, 38, 32, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 20px 8px 14px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--mint);
  text-decoration: none;
  box-shadow: var(--sh-o), inset -2px -2px 8px rgba(0, 0, 0, 0.35), inset 2px 2px 6px rgba(180, 253, 225, 0.28);
  transition: transform 0.2s var(--ease);
}

.brand:active { transform: translateY(2px) scale(0.99); }

.mark { font-size: 20px; line-height: 1; }

.brand-t { font-size: 20px; letter-spacing: 0.04em; }

.mast-nav { flex: 1 1 100%; min-width: 0; }

.mast-nav p {
  display: flex;
  gap: 8px;
  margin: 0;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mast-nav p::-webkit-scrollbar { display: none; }

.mast-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 15px;
  white-space: nowrap;
  border-radius: 999px;
  border: 3px solid var(--line);
  background: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  box-shadow: var(--sh-i), 3px 3px 8px rgba(23, 38, 32, 0.12);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease-out, border-color 0.2s;
}

.mast-nav a:hover { border-color: #7fe3c0; transform: translateY(-2px); }
.mast-nav a:active { transform: translateY(2px); box-shadow: var(--sh-i), 1px 1px 4px rgba(23, 38, 32, 0.14); }

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: inset -1px -1px 3px rgba(23, 38, 32, 0.2);
  flex: none;
}

.mast-nav a:nth-child(2n) .dot { background: var(--sky); }
.mast-nav a:nth-child(3n) .dot { background: #9ef0d2; }

/* 锚点条 */
.rail {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(180, 253, 225, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid rgba(23, 38, 32, 0.12);
}

.rail-nav p {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 9px clamp(12px, 4vw, 34px);
  overflow-x: auto;
  scrollbar-width: none;
}

.rail-nav p::-webkit-scrollbar { display: none; }

.rail-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 13px;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 16px;
  box-shadow: inset -1px -1px 4px rgba(23, 38, 32, 0.09);
  transition: background 0.2s ease-out, transform 0.2s var(--ease);
}

.rail-nav a.active { background: var(--ink); color: var(--mint); }
.rail-nav a:active { transform: scale(0.97); }

.num { font-size: 15px; opacity: 0.6; letter-spacing: 0.06em; }

/* 头图 */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 45vh;
  display: flex;
  align-items: center;
  padding: 40px clamp(16px, 5vw, 58px) 46px;
  border-radius: 0 0 34px 34px;
  background: linear-gradient(125deg, #b4fde1 0%, #a8ecdf 42%, #add8e6 100%);
  box-shadow: 0 10px 0 rgba(23, 38, 32, 0.06);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(96deg, rgba(23, 38, 32, 0.5) 0%, rgba(23, 38, 32, 0.16) 58%, rgba(23, 38, 32, 0.02) 100%);
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  will-change: transform;
}

.hero-ghost {
  position: absolute;
  right: -1vw;
  bottom: -0.08em;
  z-index: 1;
  font-family: 'Righteous', 'PingFang SC', sans-serif;
  font-size: clamp(64px, 17vw, 190px);
  line-height: 0.82;
  color: rgba(255, 255, 255, 0.34);
  white-space: nowrap;
  pointer-events: none;
  will-change: transform;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 660px;
  color: #ffffff;
}

.kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(23, 38, 32, 0.42);
  border: 3px solid rgba(255, 255, 255, 0.28);
  font-size: 16px;
  letter-spacing: 0.05em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6.2vw, 3.5rem);
  line-height: 1.14;
  text-shadow: 0 3px 0 rgba(23, 38, 32, 0.24);
}

.sub {
  margin: 14px 0 0;
  max-width: 40ch;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.94);
}

.cta { margin: 20px 0 0; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 10px 26px;
  border-radius: 999px;
  border: 4px solid #172620;
  background: #172620;
  color: var(--mint);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--sh-o), inset -2px -2px 8px rgba(0, 0, 0, 0.4), inset 2px 2px 6px rgba(180, 253, 225, 0.3);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease-out;
  animation: soft-bounce 3.4s var(--ease) 0.6s 2;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 1px 1px 4px rgba(23, 38, 32, 0.3), inset -2px -2px 8px rgba(0, 0, 0, 0.4); }

@keyframes soft-bounce {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-6px); }
  70% { transform: translateY(1px); }
}

/* 主体布局 */
.wrap {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 26px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 30px clamp(14px, 4vw, 34px) 60px;
}

.side {
  align-self: start;
  position: sticky;
  top: calc(var(--head-h) + 10px);
  padding: 16px 14px;
  border-radius: var(--r-lg);
  border: 3px solid var(--line);
  background: #ffffff;
  box-shadow: var(--sh-i), var(--sh-o);
}

.side h2 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  letter-spacing: 0.08em;
}

.side hr {
  width: 58px;
  height: 4px;
  margin: 0 0 12px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #172620, #b4fde1);
}

.side-list {
  list-style: none;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.side-list a {
  display: block;
  min-height: 40px;
  padding: 8px 11px;
  border-radius: var(--r-md);
  background: #e9fff6;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.5;
  transition: background 0.2s ease-out, transform 0.2s var(--ease);
}

.side-list a:hover { background: var(--mint); transform: translateX(3px); }

.side-top { margin: 12px 0 0; }

.side-top a {
  display: block;
  min-height: 40px;
  padding: 9px 11px;
  border-radius: var(--r-md);
  background: var(--sky);
  text-decoration: none;
  font-size: 16px;
  text-align: center;
  transition: filter 0.2s;
}

.side-top a:hover { filter: brightness(1.05); }

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

/* 正文 */
.prose > div {
  margin: 0 0 26px;
  padding: clamp(18px, 3vw, 32px);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.8);
  scroll-margin-top: calc(var(--head-h) + 16px);
  box-shadow: 0 1px 0 rgba(23, 38, 32, 0.04);
}

.prose > div:nth-child(2n) { background: rgba(255, 255, 255, 0.92); }

.prose h2 {
  margin: 0 0 10px;
  font-size: clamp(1.32rem, 3.2vw, 1.72rem);
  line-height: 1.3;
  scroll-margin-top: calc(var(--head-h) + 16px);
}

.prose h3 {
  margin: 1.5em 0 8px;
  font-size: clamp(1.1rem, 2.4vw, 1.28rem);
  line-height: 1.4;
}

.prose hr {
  width: 74px;
  height: 4px;
  margin: 0 0 16px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #172620 0%, #b4fde1 100%);
}

.prose p { margin: 0.85em 0; }

.prose ul, .prose ol { margin: 0.9em 0; padding-left: 1.35em; }
.prose li { margin: 0.4em 0; }

.prose a {
  color: #0c6b51;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.prose strong { color: #0b3b2c; }

.prose blockquote {
  margin: 1.1em 0;
  padding: 12px 18px;
  border-left: 6px solid var(--mint);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: #eefff8;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 4px solid #ffffff;
  box-shadow: var(--sh-o);
}

.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 9px 11px; border-bottom: 2px solid rgba(23, 38, 32, 0.1); text-align: left; }

/* 页脚 */
.foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 34px clamp(16px, 5vw, 56px) 22px;
  border-radius: 32px 32px 0 0;
  background: var(--ink);
  color: #d9fff0;
}

.f-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  line-height: 1.2;
  color: var(--mint);
}

.f-logo .mark { font-size: 26px; }

.f-nav nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.f-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid rgba(180, 253, 225, 0.3);
  background: rgba(180, 253, 225, 0.13);
  color: #d9fff0;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s ease-out;
}

.f-nav a:hover { background: rgba(180, 253, 225, 0.26); }

.f-bottom {
  grid-column: 1 / -1;
  padding-top: 15px;
  border-top: 2px solid rgba(180, 253, 225, 0.18);
  text-align: center;
}

.f-bottom p { margin: 0; font-size: 16px; color: rgba(217, 255, 240, 0.7); }

/* 入场动效 */
.prose > div,
.side li,
.hero-inner > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease-out, transform 0.55s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}

.prose > div.in,
.side li.in,
.hero-inner > *.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  :root { --head-h: 76px; }
  .wrap { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 22px; }
  .side { position: static; order: 2; }
  .body-sec { order: 1; }
  .side-list { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .hero { min-height: 46vh; padding-top: 32px; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .f-bottom { text-align: center; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { border-radius: 0 0 26px 26px; }
  .sub { font-size: 16px; }
  .mast { padding-top: 10px; padding-bottom: 10px; }
  .brand { padding-right: 15px; }
  .brand-t { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .prose > div, .side li, .hero-inner > * { opacity: 1; transform: none; }
  .hero-img { transform: none; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
