@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Crimson+Pro:wght@400;500;600;700&display=swap');

:root {
  --ink: #12202B;
  --ink-2: #1A2E3C;
  --ink-3: #0C1620;
  --sand: #E8DCC8;
  --sand-2: #F4EEE2;
  --hot: #E0663A;
  --hot-d: #B44B24;
  --line: rgba(232, 220, 200, 0.22);
  --line-d: rgba(18, 32, 43, 0.18);
  --serif: "Crimson Pro", Georgia, "Songti SC", "Noto Serif SC", serif;
  --sans: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --r: 4px;
  --mast: 7.75rem;
}

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

body {
  margin: 0;
  background: var(--ink-3);
  color: var(--sand);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58rem 38rem at 84% -12%, rgba(224, 102, 58, 0.20), transparent 68%),
    radial-gradient(46rem 34rem at -12% 34%, rgba(232, 220, 200, 0.08), transparent 70%),
    linear-gradient(180deg, #0B141C 0%, #12202B 46%, #0B141C 100%);
}

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

a {
  color: var(--hot);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

/* ---------- 顶部两行：品牌行 + 菜单行 ---------- */
.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.35rem 0.9rem 0.2rem;
  background: rgba(12, 22, 32, 0.94);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.28s ease, background 0.28s ease;
}

.mast.dense {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  background: rgba(12, 22, 32, 0.99);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  min-height: 44px;
  padding: 0.15rem 0.35rem 0.15rem 0;
  color: var(--sand);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.22rem;
  letter-spacing: 0.02em;
}

.mark {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 0.2rem;
  border-radius: var(--r);
  background: var(--hot);
  color: #14100D;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.mark-dot::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #14100D;
}

.brand-name {
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.brand:hover .brand-name {
  border-color: var(--hot);
}

.tabs p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin: 0;
  padding-bottom: 0.15rem;
}

.tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.4rem 0.62rem;
  border-radius: var(--r);
  color: rgba(232, 220, 200, 0.86);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.3;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tabs a:hover {
  background: var(--sand);
  color: var(--ink);
  transform: translateY(-1px);
}

/* ---------- 主体骨架 ---------- */
.reel {
  display: block;
}

.wrap {
  max-width: 1104px;
  margin: 0 auto;
  padding: 0 1rem 3.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15.5rem;
  gap: 1.7rem;
  align-items: start;
  perspective: 1px;
}

.stage {
  min-width: 0;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.6rem 1rem 3.6rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% -1rem auto;
  height: 62%;
  background:
    repeating-linear-gradient(90deg, rgba(232, 220, 200, 0.07) 0 1px, transparent 1px 62px);
  transform: translateZ(-0.4px) scale(1.14);
  transform-origin: top center;
  pointer-events: none;
}

.kicker {
  position: relative;
  margin: 0 0 0.55rem;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: rgba(232, 220, 200, 0.62);
}

.hero h1 {
  position: relative;
  margin: 0;
  max-width: 22ch;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 6.4vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: 0.005em;
  color: var(--sand-2);
}

.lede {
  position: relative;
  margin: 1rem auto 0;
  max-width: 40ch;
  color: rgba(232, 220, 200, 0.8);
  font-size: 17px;
}

.band {
  position: absolute;
  left: -1rem;
  right: -1rem;
  bottom: 0;
  height: 76px;
  background: linear-gradient(100deg, var(--hot) 0 62%, var(--hot-d) 62% 100%);
  clip-path: polygon(0 58%, 100% 0, 100% 100%, 0 100%);
}

.hero-media {
  position: relative;
  width: 100%;
  margin-top: 1.9rem;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
}

.hero-media img {
  width: 100%;
  transform: translate3d(0, 0, 0) scale(1.04);
  will-change: transform;
}

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

.prose > article {
  position: relative;
  margin: 1.15rem 0;
  padding: 1.55rem 1.15rem 1.5rem;
  border-radius: var(--r);
  background: var(--sand);
  color: #16202A;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.prose > article:nth-of-type(even) {
  background: var(--ink-2);
  color: var(--sand);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.prose > article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.15rem;
  width: 46px;
  height: 3px;
  background: var(--hot);
}

.prose > article > h2:first-child,
.prose > article > h2:first-of-type {
  margin-top: 0.7rem;
}

.prose > article:first-of-type {
  margin-top: 1.6rem;
}

.prose h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.8vw, 1.95rem);
  line-height: 1.24;
  letter-spacing: 0.01em;
  margin: 0.8rem 0 0.5rem;
}

.prose h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  line-height: 1.35;
  margin: 1.4rem 0 0.4rem;
}

.prose p {
  margin: 0.7rem 0;
}

.prose .subtitle,
.prose .subhead,
.prose .lead,
.prose .desc,
.prose > article > h2 + p {
  margin: -0.15rem 0 0.9rem;
  color: rgba(18, 32, 43, 0.72);
  font-size: 16px;
  line-height: 1.65;
}

.prose > article:nth-of-type(even) .subtitle,
.prose > article:nth-of-type(even) .subhead,
.prose > article:nth-of-type(even) .lead,
.prose > article:nth-of-type(even) .desc,
.prose > article:nth-of-type(even) > h2 + p {
  color: rgba(232, 220, 200, 0.74);
}

.prose a {
  color: var(--hot-d);
}

.prose > article:nth-of-type(even) a {
  color: var(--hot);
}

.prose ul,
.prose ol {
  margin: 0.8rem 0;
  padding-left: 1.25rem;
}

.prose li {
  margin: 0.35rem 0;
}

.prose li::marker {
  color: var(--hot);
  font-weight: 700;
}

.prose blockquote {
  margin: 1rem 0;
  padding: 0.35rem 0 0.35rem 1rem;
  border-left: 3px solid var(--hot);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.6;
}

.prose figure {
  margin: 1rem 0;
}

.prose figcaption {
  font-size: 16px;
  color: rgba(18, 32, 43, 0.62);
  margin-top: 0.35rem;
}

.prose > article:nth-of-type(even) figcaption {
  color: rgba(232, 220, 200, 0.62);
}

.prose img {
  border-radius: var(--r);
}

.prose hr {
  border: 0;
  height: 1px;
  background: var(--line-d);
  margin: 1.4rem 0;
}

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

.prose th,
.prose td {
  border-bottom: 1px solid var(--line-d);
  padding: 0.5rem 0.4rem;
  text-align: left;
}

[data-nosnippet] {
  display: none;
}

/* ---------- 右侧栏 ---------- */
.rail {
  position: sticky;
  top: calc(var(--mast) + 0.6rem);
  padding: 0.6rem 0 0.8rem 1rem;
  border-left: 1px solid var(--line);
  font-size: 16px;
}

.rail-t {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  color: var(--hot);
}

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

.rail-list li {
  counter-increment: rail;
}

.rail-list a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.3rem 0 0.3rem 1.9rem;
  color: rgba(232, 220, 200, 0.84);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 220, 200, 0.12);
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(224, 102, 58, 0.85);
}

.rail-list a:hover {
  color: var(--hot);
  padding-left: 2.15rem;
}

.rail-back {
  margin: 0.9rem 0 0;
}

.rail-back a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.85rem;
  border-radius: var(--r);
  background: rgba(224, 102, 58, 0.16);
  color: var(--sand);
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s ease, color 0.2s ease;
}

.rail-back a:hover {
  background: var(--hot);
  color: #14100D;
}

/* ---------- 页脚：三栏 + 版权 ---------- */
.foot {
  border-top: 1px solid var(--line);
  background: #0A1218;
  padding: 1.9rem 1.1rem 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem 1.4rem;
  align-items: start;
}

.foot p {
  margin: 0;
  font-size: 16px;
}

.foot-brand {
  font-family: var(--serif);
  font-size: 1.24rem;
  line-height: 1.35;
  color: var(--sand);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.1rem;
}

.foot-links a,
.foot-top a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.55rem;
  border-radius: var(--r);
  color: rgba(232, 220, 200, 0.8);
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s ease, color 0.2s ease;
}

.foot-links a:hover,
.foot-top a:hover {
  background: rgba(224, 102, 58, 0.2);
  color: var(--sand);
}

.foot-top {
  justify-self: end;
}

.foot small {
  grid-column: 1 / -1;
  margin-top: 0.6rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(232, 220, 200, 0.12);
  font-size: 16px;
  color: rgba(232, 220, 200, 0.55);
}

/* ---------- 滚动进入 ---------- */
.js .prose > article {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.62s ease, transform 0.62s cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: opacity, transform;
}

.js .prose > article.in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .rail {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1rem 0 0;
    margin-top: 1rem;
  }

  .rail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 0.8rem;
  }

  .rail-list a {
    border-bottom: 1px solid rgba(232, 220, 200, 0.1);
  }

  .foot {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot-top {
    justify-self: start;
  }
}

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

  .mast {
    padding: 0.3rem 0.7rem 0.15rem;
  }

  .tabs a {
    padding: 0.35rem 0.5rem;
  }

  .wrap {
    padding: 0 0.7rem 2.4rem;
  }

  .hero {
    min-height: 66vh;
    padding: 1.8rem 0.4rem 3.2rem;
  }

  .band {
    left: -0.7rem;
    right: -0.7rem;
    height: 58px;
  }

  .prose > article {
    padding: 1.3rem 0.95rem;
  }

  .prose > article::before {
    left: 0.95rem;
  }

  .rail-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .js .prose > article {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-media img,
  .tabs a,
  .rail-list a {
    transition: none;
  }
}

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