@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

:root {
  --ink: #172623;
  --ink-soft: #3f544d;
  --teal: #5cc6b0;
  --teal-deep: #2a6f5f;
  --sand: #d4c4a8;
  --clay: #c67b5c;
  --olive: #6b7b3c;
  --paper: #f7f0e5;
  --paper-2: #efe5d5;
  --card: #fffaf1;
  --line: rgba(23, 38, 35, .14);
  --shadow: 0 22px 44px -28px rgba(23, 38, 35, .55);
  --r: 28px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-bottom: 128px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 104px;
  font-family: 'Plus Jakarta Sans', "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(110% 70% at 100% 0%, #f3e8d7 0%, rgba(243, 232, 215, 0) 58%),
    radial-gradient(90% 60% at 0% 100%, #e9efe4 0%, rgba(233, 239, 228, 0) 55%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

::selection { background: var(--teal); color: #0d2a25; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.24; letter-spacing: -.012em; font-weight: 800; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }

hr {
  border: 0;
  width: 46px;
  height: 3px;
  margin: 12px 0 22px;
  border-radius: 3px;
  background: var(--clay);
}

a { color: var(--teal-deep); text-underline-offset: 3px; }

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(12px, 4vw, 34px);
  background: rgba(247, 240, 229, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  border-radius: var(--r) var(--r) 0 0;
  box-shadow: 0 -20px 44px -34px rgba(23, 38, 35, .8);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 12px 6px 6px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: .01em;
}

.brand-mark {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  color: #0d2a25;
  background: var(--teal);
  border-radius: 12px 18px 12px 18px;
  object-fit: cover;
  transition: transform .35s cubic-bezier(.2, .8, .3, 1);
}

.brand:hover .brand-mark { transform: rotate(-7deg) scale(1.07); }
.brand-name { font-size: 16px; }

.dock-menu { position: relative; }

.dock-menu > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: background .25s ease-out, transform .25s ease-out;
}

.dock-menu > summary::-webkit-details-marker { display: none; }
.dock-menu > summary:hover { background: #fff; transform: translateY(-2px); }

.bars {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink);
}

.dock-menu menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  margin: 0;
  padding: 10px;
  list-style: none;
  width: min(320px, calc(100vw - 28px));
  max-height: 60vh;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.dock-menu menu li { margin: 0 0 4px; }
.dock-menu menu li:last-child { margin-bottom: 0; }

.dock-menu menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: 18px;
  border-bottom: 2px solid transparent;
  transition: background .25s ease-out, transform .25s ease-out, border-color .25s ease-out;
}

.dock-menu menu a:hover { background: var(--paper-2); transform: translateX(4px); border-bottom-color: var(--teal); }

.ico {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--sand);
  transform: rotate(45deg);
  transition: background .25s ease-out;
}

.dock-menu menu li:nth-child(3n + 1) .ico { background: var(--teal); }
.dock-menu menu li:nth-child(3n + 2) .ico { background: var(--clay); }
.dock-menu menu li:nth-child(3n) .ico { background: var(--olive); }

/* ---------- 主区骨架 ---------- */
.layout {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 36px) 64px;
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: start;
}

.rail { position: sticky; top: 26px; padding-top: 30px; }

.rail-title {
  font-size: 16px;
  letter-spacing: .22em;
  text-transform: none;
  margin: 0;
  color: var(--ink-soft);
}

.rail-list { margin: 0; padding: 0; list-style: none; }

.rail-list li { margin: 0 0 9px; animation: rise .5s cubic-bezier(.2, .8, .3, 1) backwards; animation-delay: calc(var(--i, 0) * 55ms); }
.rail-list li:last-child { margin-bottom: 0; }

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
  border-bottom: 3px solid var(--sand);
  border-radius: var(--r);
  box-shadow: 0 12px 24px -22px rgba(23, 38, 35, .7);
  transition: transform .28s ease-out, border-color .28s ease-out, background .28s ease-out;
}

.rail-list a:hover { transform: translateX(5px); border-bottom-color: var(--teal); background: #fff; }

.num {
  font-size: 13px;
  font-weight: 700;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
}

/* ---------- 正文 ---------- */
.prose { min-width: 0; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(26px, 6vw, 64px) 0 56px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(23, 38, 35, .3) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(120% 88% at 76% 38%, #000 12%, transparent 74%);
  mask-image: radial-gradient(120% 88% at 76% 38%, #000 12%, transparent 74%);
}

.hero-media {
  position: relative;
  margin: 0;
  height: 100%;
  min-height: 58vh;
  overflow: hidden;
  background: linear-gradient(155deg, var(--sand), var(--paper-2) 62%, #e5ddc9);
  border-radius: 96px 28px 96px 28px;
  box-shadow: var(--shadow);
}

.hero-img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }

.hero-copy { position: relative; z-index: 3; text-align: right; }

.hero-title {
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -.028em;
  margin: 0 0 18px;
  animation: rise .7s cubic-bezier(.2, .8, .3, 1) backwards;
}

.lead {
  margin: 0 0 26px auto;
  max-width: 32ch;
  color: var(--ink-soft);
  font-size: 17px;
  animation: rise .7s cubic-bezier(.2, .8, .3, 1) .1s backwards;
}

.cta {
  display: inline-block;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  color: #f7f0e5;
  text-decoration: none;
  background: var(--ink);
  border-bottom: 3px solid var(--teal);
  border-radius: var(--r);
  transition: transform .28s ease-out, background .28s ease-out;
  animation: rise .7s cubic-bezier(.2, .8, .3, 1) .18s backwards;
}

.cta:hover { transform: translateY(-3px); background: #21332f; }

.prose > article:not(.hero) {
  position: relative;
  padding: clamp(32px, 6vw, 58px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 26px;
  animation: rise .6s ease-out backwards;
}

.prose > article:nth-child(2) { animation-delay: .06s; }
.prose > article:nth-child(3) { animation-delay: .1s; }
.prose > article:nth-child(4) { animation-delay: .14s; }
.prose > article:nth-child(5) { animation-delay: .18s; }
.prose > article:nth-child(6) { animation-delay: .22s; }
.prose > article:nth-child(7) { animation-delay: .26s; }
.prose > article:nth-child(8) { animation-delay: .3s; }

.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); }
.prose h3 { font-size: clamp(1.18rem, 2vw, 1.4rem); }
.prose h2 + hr, .prose h3 + hr { margin-top: 6px; }

.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.25em; }
.prose li { margin-bottom: .45em; }

.prose blockquote {
  margin: 0 0 1em;
  padding: 8px 0 8px 18px;
  color: var(--ink-soft);
  border-left: 3px solid var(--clay);
}

.prose figure { margin: 0 0 1.2em; }
.prose figure img { border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0 0 1.2em; }
.prose th, .prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: var(--paper-2); font-weight: 700; }
.prose strong { font-weight: 800; }

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  padding: 0 clamp(14px, 4vw, 36px) 64px;
  background: linear-gradient(180deg, rgba(212, 196, 168, 0) 0%, rgba(212, 196, 168, .45) 100%);
}

.foot-cta {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 54px) clamp(22px, 4vw, 48px);
  text-align: center;
  color: #f2ead9;
  background: var(--ink);
  border-bottom: 6px solid var(--teal);
  border-radius: var(--r);
}

.foot-cta h2 { color: #f7f0e5; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 4px; }
.foot-cta hr { background: var(--teal); margin-left: auto; margin-right: auto; }
.cta-sand { background: var(--teal); color: #0d2a25; border-bottom-color: var(--clay); }
.cta-sand:hover { background: #6cd3bd; }

.foot-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 50px) 0 26px;
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: clamp(18px, 3vw, 34px);
}

.foot-name { margin: 0 0 8px; font-weight: 800; font-size: 18px; }
.foot-desc { margin: 0; max-width: 34ch; color: var(--ink-soft); font-size: 16px; }

.foot-col { margin: 0; }
.foot-col dt { font-size: 16px; font-weight: 700; color: var(--clay); letter-spacing: .1em; margin-bottom: 8px; }
.foot-col dd { margin: 0; }

.foot-col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .25s ease-out, transform .25s ease-out;
}

.foot-col a:hover { border-bottom-color: var(--clay); transform: translateX(3px); }

.foot-base {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 18px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 16px;
}

.foot-base p { margin: 0; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  body { padding-bottom: 96px; }

  .layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }

  .rail { position: static; order: 2; padding-top: 8px; }
  .rail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .rail-list li { margin: 0; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 22px;
    padding: 22px 0 76px;
  }

  .hero-copy { order: -1; }
  .hero-media { min-height: 32vh; border-radius: var(--r) 72px var(--r) 72px; }
  .prose > article:not(.hero) { scroll-margin-top: 14px; }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .foot-brand { grid-column: 1 / -1; }
  .dock-menu menu { max-height: 56vh; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 15px; }
  .dock-menu > summary { padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

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