@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --teal: #5cc6b0;
  --sand: #d4c4a8;
  --ink: #172623;
  --clay: #c67b5c;
  --olive: #6b7b3c;
  --paper: #f3ede2;
  --paper2: #e8dfcd;
  --glass: rgba(255, 255, 255, .52);
  --line: rgba(23, 38, 35, .16);
  --r: 4px;
  --dock: 70px;
  --shadow: 0 18px 44px -26px rgba(23, 38, 35, .8);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: calc(var(--dock) + 18px);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background:
    radial-gradient(120% 70% at 8% 0%, rgba(212, 196, 168, .55), transparent 62%),
    radial-gradient(90% 60% at 100% 32%, rgba(92, 198, 176, .22), transparent 60%),
    var(--paper);
}

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

h1, h2, h3, .dock-brand, .foot-cta-brand, .eyebrow {
  font-family: "Space Grotesk", "DM Sans", system-ui, sans-serif;
}

a { color: inherit; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

[id] { scroll-margin-top: 20px; scroll-margin-bottom: calc(var(--dock) + 16px); }

/* ---------- 底部固定条 ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(243, 237, 226, .82), rgba(232, 223, 205, .97));
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 -10px 30px -22px rgba(23, 38, 35, .95);
}

.dock-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 13px;
  border-radius: var(--r);
  background: rgba(92, 198, 176, .26);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
}

.dock-logo { display: block; border-radius: 3px; }

.dock-menu { position: relative; flex: 0 0 auto; }

.dock-menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  font-size: .93rem;
  user-select: none;
}

.dock-menu > summary::-webkit-details-marker { display: none; }
.dock-menu > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1.6px solid var(--ink);
  border-bottom: 1.6px solid var(--ink);
  transform: translateY(-2px) rotate(45deg);
}
.dock-menu[open] > summary::after { transform: translateY(1px) rotate(-135deg); }

.dock-menu menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dock-menu[open] menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(64vw, 250px);
  max-height: 58vh;
  overflow-y: auto;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246, 241, 232, .98);
  box-shadow: var(--shadow);
}

.dock-menu menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .93rem;
  text-decoration: none;
  white-space: nowrap;
}

.dock-menu menu a:hover,
.dock-menu menu a:focus-visible {
  background: rgba(92, 198, 176, .28);
  border-color: rgba(92, 198, 176, .55);
}

.dock-search {
  display: flex;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
}

.dock-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  font: inherit;
  font-size: .93rem;
  color: var(--ink);
}

.dock-search input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.dock-search button {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #f1ebdf;
  font: inherit;
  font-size: .93rem;
  cursor: pointer;
}

.dock-search button:hover { background: #24403a; }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 30px 20px calc(var(--dock) + 56px);
  overflow: hidden;
  text-align: center;
  color: #f4efe3;
  background: linear-gradient(158deg, #243a33 0%, #172623 58%, #2c4038 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 52px), 0 100%);
}

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
  filter: saturate(.85) contrast(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 38, 35, .35), rgba(23, 38, 35, .82));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34ch;
  animation: rise .9s cubic-bezier(.2, .7, .25, 1) both;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.05rem, 8.5vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -.02em;
  text-shadow: 0 14px 40px rgba(0, 0, 0, .35);
}

.hero-sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(232, 226, 212, .88);
}

.hero-cut {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  z-index: 2;
  background: linear-gradient(90deg, var(--teal), var(--sand) 48%, var(--clay));
}

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

/* ---------- 主体骨架 ---------- */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 20px 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

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

.prose { min-width: 0; }

.prose > section + section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.prose > section:first-child > *:first-child { margin-top: 0; }

.prose small {
  display: block;
  margin-bottom: 6px;
  font-size: .78rem;
  letter-spacing: .24em;
  color: var(--clay);
}

.prose h2 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 4.4vw, 2.05rem);
  line-height: 1.24;
  letter-spacing: -.015em;
}

.prose h3 {
  margin: 26px 0 10px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.prose p { margin: 0 0 1.05em; }

.prose ul, .prose ol { margin: 0 0 1.05em; padding-left: 1.25em; }
.prose li { margin: .35em 0; }

.prose a {
  color: #1f5f52;
  text-decoration: underline;
  text-decoration-color: rgba(92, 198, 176, .8);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--ink); background: rgba(92, 198, 176, .22); }

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.prose blockquote {
  margin: 20px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--teal);
  background: rgba(212, 196, 168, .32);
  border-radius: 0 var(--r) var(--r) 0;
  color: #22403a;
}

.prose blockquote p:last-child { margin-bottom: 0; }

.prose code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: .92em;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(23, 38, 35, .08);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: .95rem;
}

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

.prose th { background: rgba(212, 196, 168, .38); }

/* ---------- 侧栏 ---------- */

.rail {
  padding: 17px 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(9px);
  box-shadow: var(--shadow);
}

.rail .eyebrow {
  display: block;
  margin-bottom: 5px;
  font-size: .75rem;
  letter-spacing: .24em;
  color: var(--clay);
}

.rail-h {
  margin: 0 0 12px;
  font-size: 1.12rem;
  letter-spacing: -.01em;
}

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

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 2px 8px;
  border-bottom: 1px solid rgba(23, 38, 35, .1);
  font-size: .96rem;
  text-decoration: none;
}

.rail-list li:last-child a { border-bottom: 0; }

.rail-list a:hover { background: rgba(92, 198, 176, .24); border-radius: 3px; }

/* ---------- 页脚 ---------- */

.foot {
  margin-top: 46px;
  padding: 0 20px 30px;
  background: var(--ink);
  color: #e6dfd0;
}

.foot-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 0 30px;
  border-bottom: 1px solid rgba(230, 223, 208, .18);
}

.foot-cta-brand {
  margin: 0;
  font-size: clamp(1.55rem, 6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--sand);
}

.foot-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--teal);
  color: #10201c;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
}

.foot-btn:hover { background: #7ad8c4; }

.foot-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 26px 0 20px;
}

.fcol { margin: 0; }

.fcol dt {
  font-family: "Space Grotesk", sans-serif;
  font-size: .76rem;
  letter-spacing: .24em;
  color: var(--teal);
  margin-bottom: 6px;
}

.fcol dd { margin: 0; }

.fcol dd a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: .95rem;
  text-decoration: none;
  color: #cdc6b6;
}

.fcol dd a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.foot-copy {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(230, 223, 208, .18);
  font-size: .84rem;
  color: rgba(230, 223, 208, .66);
}

/* ---------- 动效 ---------- */

.js .reveal { opacity: 0; transform: translateY(16px); }

.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .62s ease-out, transform .62s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 断点 ---------- */

@media (min-width: 560px) {
  .foot-cols { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (min-width: 860px) {
  :root { --dock: 76px; }

  .dock { padding: 11px 24px calc(11px + env(safe-area-inset-bottom)); gap: 12px; }

  .dock-menu[open] menu {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .dock-menu menu { flex-direction: row; gap: 6px; }

  .dock-menu menu a {
    padding: 4px 15px;
    border-color: var(--line);
    background: var(--glass);
    font-size: .9rem;
  }

  .dock-search { flex: 0 1 260px; margin-left: auto; }

  .wrap {
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 44px;
    padding: 52px 24px 12px;
  }

  .rail { position: sticky; top: 26px; align-self: start; }

  .foot { padding: 0 24px 34px; }

  .foot-cta { padding: 48px 0 38px; }

  .dock-brand, .dock-search input, .dock-search button { height: 46px; }
}

@media (min-width: 1100px) {
  body { font-size: 18px; }
  .hero-copy { max-width: 40ch; }
}

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