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

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

:root {
  color-scheme: dark;
  --peach: #ff9d86;
  --peach-soft: #ffc7b8;
  --text: #eae7e4;
  --dim: #9d9591;
  --line: rgba(255, 255, 255, 0.11);
  --glass: rgba(255, 255, 255, 0.05);
  --coal: #121212;
  --r: 18px;
  --maxw: 1160px;
}

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

body {
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: "DM Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.locked { overflow: hidden; }

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

a { color: var(--peach); text-decoration: none; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 99;
  padding: 0.8rem 1rem;
  background: #111;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; top: 0; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: 64px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  border: 1px solid rgba(255, 157, 134, 0.38);
  background: rgba(255, 157, 134, 0.14);
  color: var(--peach-soft);
  font-size: 1.15rem;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(255, 157, 134, 0.6);
}
.mark img { width: 100%; height: 100%; object-fit: cover; }

.burger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(18, 18, 18, 0.8);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s, color 0.2s;
}
.burger:hover { border-color: rgba(255, 157, 134, 0.55); color: var(--peach-soft); }
.burger i {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

/* ---------- 全屏遮罩菜单 ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5.5rem 1.4rem 3rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  background: radial-gradient(circle at 82% 8%, rgba(255, 157, 134, 0.16), transparent 56%), rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(16px);
  transition: opacity 0.32s ease, visibility 0.32s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.overlay ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 620px;
  display: grid;
  gap: 0.2rem;
}
.overlay a {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 54px;
  padding: 0.55rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.overlay a:hover,
.overlay a:focus-visible {
  background: var(--glass);
  border-color: rgba(255, 157, 134, 0.42);
  color: var(--peach-soft);
  transform: translateX(5px);
}
.overlay .n {
  min-width: 2.2ch;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--peach);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  min-height: 70svh;
  padding: 8rem 1.2rem 3.5rem;
  overflow: hidden;
}
.hero-fig { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hero-fig img { width: 100%; height: 100%; object-fit: cover; opacity: 0.62; }
.hero-fig--plain {
  background:
    radial-gradient(circle at 74% 26%, #40201a, #000 62%),
    linear-gradient(140deg, #150c0a, #000);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(0, 0, 0, 0.95) 6%, rgba(0, 0, 0, 0.52) 54%, rgba(0, 0, 0, 0.88));
}
.hero-body { width: 100%; max-width: var(--maxw); margin-inline: auto; }
.hero h1 {
  margin: 0 0 1rem;
  max-width: 20ch;
  font-size: clamp(1.85rem, 6.2vw, 3.9rem);
  line-height: 1.12;
  text-shadow: 0 0 28px rgba(255, 157, 134, 0.3);
}
.hero .subtitle {
  margin: 0;
  max-width: 46ch;
  color: #d8d1cd;
  font-size: clamp(0.98rem, 2.2vw, 1.12rem);
  line-height: 1.7;
}
.blade {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: 0;
  height: 98px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 157, 134, 0.55), rgba(255, 157, 134, 0) 74%);
  clip-path: polygon(0 100%, 100% 16%, 100% 100%);
}

/* ---------- 粘性锚点条 ---------- */
.tape {
  position: sticky;
  top: 64px;
  z-index: 40;
  border-block: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
}
.tape ul {
  list-style: none;
  margin: 0 auto;
  padding: 0.3rem 0.8rem;
  max-width: var(--maxw);
  display: flex;
  gap: 0.2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.tape ul::-webkit-scrollbar { display: none; }
.tape a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--dim);
  font-size: 0.92rem;
  font-weight: 500;
}
.tape a:hover { color: var(--peach-soft); background: var(--glass); }

/* ---------- 正文区 ---------- */
.doc {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.2rem 4rem;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
}
.doc-main h2 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  line-height: 1.3;
}
.doc-main > .subtitle {
  margin: 0 0 2rem;
  color: var(--dim);
  font-size: 0.98rem;
}
.doc-main section {
  margin: 0 0 2.4rem;
  padding: 1.5rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}
.doc-main section > h2 { margin-top: 0; font-size: 1.3rem; }
.doc-main section > .subtitle {
  margin: -0.15rem 0 1.1rem;
  color: var(--dim);
  font-size: 0.95rem;
}
.doc-main p { margin: 0 0 1rem; color: #cec7c3; }
.doc-main section > p:last-child,
.doc-main section > :last-child { margin-bottom: 0; }
.doc-main ul, .doc-main ol { padding-left: 1.3rem; color: #cec7c3; }
.doc-main li { margin-bottom: 0.45rem; }
.doc-main strong { color: #fff; }
.doc-main figure { margin: 1.2rem 0; }
.doc-main figure img { border-radius: var(--r); width: 100%; }
.doc-main blockquote {
  margin: 1.2rem 0;
  padding: 0.4rem 1rem;
  border-left: 3px solid var(--peach);
  color: #ddd6d2;
}
main section[id] { scroll-margin-top: 120px; }

.rail {
  align-self: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 157, 134, 0.08), rgba(255, 255, 255, 0.02));
}
.rail-head {
  margin: 0 0 0.6rem;
  color: var(--peach);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}
.rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.rail a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.55rem;
  border-radius: 9px;
  color: #c9c2be;
  font-size: 0.94rem;
}
.rail a:hover { background: rgba(255, 157, 134, 0.13); color: var(--peach-soft); }

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line);
  background: #050505;
  padding: 2.6rem 1.2rem 2rem;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 1fr);
}
.foot-brand {
  margin: 0;
  font-size: clamp(2.2rem, 9vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 0 34px rgba(255, 157, 134, 0.28);
}
.foot-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
}
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--dim);
  font-size: 0.95rem;
}
.foot-links a:hover { color: var(--peach-soft); }
.foot-kw { margin: 0; color: #6f6a67; font-size: 0.92rem; }
.foot small {
  display: block;
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: #6f6a67;
  font-size: 0.85rem;
}

/* ---------- 进场 ---------- */
html.js .reveal { opacity: 0; transform: translateY(20px); }
html.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- 断点 ---------- */
@media (min-width: 640px) {
  .hero { padding: 9rem 2rem 4rem; }
  .doc { padding-inline: 2rem; }
  .foot { padding-inline: 2rem; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .doc {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3.5rem;
    padding-top: 4.5rem;
  }
  .rail { position: sticky; top: 124px; }
  .foot { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr) minmax(0, 1fr); padding-block: 3.4rem 2.2rem; }
  .hero { padding-inline: 2.4rem; }
}

@media (max-width: 400px) {
  .overlay a { font-size: 1.15rem; }
  .hero { min-height: 480px; }
}

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