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

:root {
  --ink: #172623;
  --ink-deep: #0d1715;
  --mint: #5cc6b0;
  --mint-dim: #3f9c8a;
  --sand: #d4c4a8;
  --sand-lite: #e9e0d0;
  --paper: #f2ece0;
  --line: rgba(23, 38, 35, 0.14);
  --stack: "Space Grotesk", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.78;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23g)' opacity='0.38'/></svg>");
}

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

a {
  color: var(--mint-dim);
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

/* 底部固定胶囊导航 */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(13, 23, 21, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(92, 198, 176, 0.3);
  transition: box-shadow 0.35s ease-out;
}

.bar.is-lift {
  box-shadow: 0 -16px 34px -20px rgba(13, 23, 21, 0.95);
}

.bar__brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 8px 8px 4px;
  font-family: var(--stack);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--mint);
  text-decoration: none;
}

.bar__pills {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 2px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bar__pills::-webkit-scrollbar {
  display: none;
}

.bar__pills a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  white-space: nowrap;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--sand);
  text-decoration: none;
  border-radius: 999px;
  background: rgba(212, 196, 168, 0.14);
  transition: background 0.25s ease-out, color 0.25s ease-out, transform 0.25s ease-out;
}

.bar__pills a:hover,
.bar__pills a:focus-visible {
  background: var(--mint);
  color: var(--ink-deep);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 96px 20px 150px;
  overflow: hidden;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 5vw));
}

.hero__media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.88) contrast(1.04);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 23, 21, 0.6),
    rgba(23, 38, 35, 0.3) 42%,
    rgba(13, 23, 21, 0.88)
  );
}

.hero__badge {
  position: absolute;
  left: 50%;
  bottom: calc(5vw + 22px);
  z-index: 2;
  transform: translateX(-50%);
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink-deep);
  font-size: 16px;
  letter-spacing: 0.16em;
  font-family: var(--stack);
}

.hero__copy {
  position: relative;
  z-index: 3;
  max-width: 860px;
  text-align: center;
  color: #f5f0e7;
}

.hero__h1 {
  margin: 0 0 20px;
  font-family: var(--stack);
  font-weight: 700;
  font-size: clamp(2.05rem, 7.2vw, 4.3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-wrap: balance;
}

.hero__desc {
  margin: 0 auto;
  max-width: 33em;
  font-size: clamp(1rem, 2.1vw, 1.14rem);
  line-height: 1.72;
  color: rgba(245, 240, 231, 0.86);
}

/* 正文 + 左栏 */
.reader {
  max-width: 1180px;
  margin: 0 auto;
  padding: 68px 20px 30px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

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

.rail small {
  display: block;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--mint-dim);
}

.rail h2 {
  margin: 6px 0 16px;
  font-family: var(--stack);
  font-size: 21px;
  letter-spacing: -0.01em;
}

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

.rail__list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease-out, padding-left 0.2s ease-out;
}

.rail__list a:hover {
  color: var(--mint-dim);
  padding-left: 8px;
}

.reader__body {
  min-width: 0;
}

.reader__body > article {
  padding-bottom: 38px;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
  scroll-margin-bottom: 128px;
}

.reader__body > article:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.reader__body small {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--mint-dim);
}

.reader__body h2 {
  margin: 0 0 18px;
  font-family: var(--stack);
  font-size: clamp(1.5rem, 3.6vw, 2.15rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.reader__body h3 {
  margin: 28px 0 12px;
  font-family: var(--stack);
  font-size: 1.24rem;
  line-height: 1.35;
}

.reader__body p {
  margin: 0 0 1.1em;
}

.reader__body ul,
.reader__body ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.reader__body li {
  margin-bottom: 0.5em;
}

.reader__body ul li::marker {
  color: var(--mint-dim);
}

.reader__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 1.2em;
}

.reader__body blockquote {
  margin: 0 0 1.3em;
  padding: 20px 22px;
  background: var(--sand-lite);
  border-radius: 0;
}

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

.reader__body hr {
  margin: 30px 0;
  border: 0;
  height: 1px;
  background: var(--line);
}

.reader__body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2em;
  font-size: 16px;
}

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

/* 页脚 */
.foot {
  background: var(--ink-deep);
  color: var(--sand);
  padding: 54px 20px calc(120px + env(safe-area-inset-bottom));
  overflow: hidden;
}

.foot__brand {
  margin: 0 0 22px;
  font-family: var(--stack);
  font-weight: 700;
  font-size: clamp(2.4rem, 12vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--sand);
}

.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 196, 168, 0.24);
}

.foot__addr {
  font-style: normal;
  font-size: 16px;
  color: rgba(212, 196, 168, 0.78);
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease-out;
}

.foot__links a:hover {
  border-color: var(--mint);
}

.foot__copy {
  margin: 0;
  font-size: 16px;
  color: rgba(212, 196, 168, 0.6);
}

/* 入场 */
.js .rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.js .rv.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .reader {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 46px;
  }

  .rail {
    position: static;
    padding-top: 0;
  }

  .rail__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
  }

  .rail__list a {
    min-height: 44px;
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 16px;
  }

  .rail__list a:hover {
    padding-left: 15px;
    background: var(--sand-lite);
  }

  .hero {
    padding: 84px 18px 132px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 12vw));
  }

  .hero__badge {
    bottom: calc(12vw + 18px);
  }

  .foot {
    padding-left: 16px;
    padding-right: 16px;
  }

  .foot__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 17px;
  }

  .bar {
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .bar__brand {
    font-size: 16px;
  }

  .bar__pills a {
    padding: 0 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bar__pills a,
  .rail__list a,
  .foot__links a {
    transition: none;
  }
}

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