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

:root {
  --ink: #111318;
  --hot: #FF5A3C;
  --paper: #F5F1E8;
  --line: rgba(245, 241, 232, .17);
  --soft: rgba(245, 241, 232, .68);
  --r: 28px;
  --pad: clamp(20px, 5vw, 44px);
}

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

html {
  background: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Nunito Sans", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .tick, .ft-mark, .hero-ghost {
  font-family: Rubik, "Nunito Sans", system-ui, sans-serif;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.02em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
menu, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; }

/* ── 顶部字条 ── */
.tick {
  overflow: hidden;
  background: var(--hot);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 7px 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3em;
}

.tick-in {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  white-space: nowrap;
  animation: slide 30s linear infinite;
}

@keyframes slide {
  to { transform: translateX(-50%); }
}

/* ── 头部 ── */
.hd {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(17, 19, 24, .9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.bar {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px var(--pad) 16px;
}

.menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  transition: background .25s, color .25s, border-color .25s;
}

.menu > summary::-webkit-details-marker { display: none; }

.bars {
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

.menu[open] > summary {
  background: var(--hot);
  border-color: var(--hot);
  color: var(--ink);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
}

.menu:not([open]) .menu-grid { display: none; }

.menu-l, .menu-r {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu-r { justify-content: flex-end; }

.menu-l a,
.menu-r a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  transition: background .22s, color .22s, border-color .22s, transform .22s;
}

.menu-l a:hover,
.menu-r a:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
  transform: translateY(-2px);
}

.brand {
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 700;
  letter-spacing: -.03em;
  white-space: nowrap;
  text-align: center;
  padding: 0 4px;
}

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

/* ── 首屏 ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(48px, 12vh, 120px) 0 clamp(96px, 16vh, 150px);
  isolation: isolate;
}

.hero-plain {
  background:
    radial-gradient(120% 90% at 85% 15%, rgba(255, 90, 60, .32), transparent 62%),
    var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scale(1.08);
  will-change: transform;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(.7);
  opacity: .62;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(17, 19, 24, .82) 0%, rgba(17, 19, 24, .18) 42%, rgba(17, 19, 24, .96) 100%),
    linear-gradient(270deg, rgba(17, 19, 24, .78), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -2px;
  height: 66px;
  z-index: 2;
  background: var(--ink);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero-ghost {
  position: absolute;
  top: 12vh;
  right: -3vw;
  z-index: 1;
  font-size: clamp(58px, 16.5vw, 210px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .86;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 241, 232, .28);
  pointer-events: none;
  animation: ghost 14s ease-in-out infinite alternate;
}

@keyframes ghost {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-3vw, 22px, 0); }
}

.hero-text {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad);
  text-align: right;
}

.hero-text h1 {
  margin: 0 0 22px auto;
  max-width: 16em;
  font-size: clamp(38px, 6.6vw, 88px);
  font-weight: 700;
  letter-spacing: -.04em;
  text-wrap: balance;
  animation: rise .95s cubic-bezier(.2, .72, .2, 1) both;
}

.hero-text h1.split { animation: none; }

.hero-text h1.split span {
  display: inline-block;
  animation: rise .72s cubic-bezier(.2, .72, .2, 1) both;
  animation-delay: calc(var(--i, 0) * .045s);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(.62em) rotate(5deg); }
  to { opacity: 1; transform: none; }
}

.hero-desc {
  margin: 0 0 0 auto;
  max-width: 44ch;
  color: var(--soft);
  font-size: 17px;
  text-align: right;
  animation: rise 1s .18s cubic-bezier(.2, .72, .2, 1) both;
}

/* ── 主体 ── */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 96px) var(--pad) clamp(64px, 9vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: clamp(32px, 4.5vw, 60px);
  align-items: start;
}

.prose { min-width: 0; }

.prose div {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(245, 241, 232, .022);
  padding: var(--pad);
  margin: 0 0 26px;
  scroll-margin-top: 108px;
}

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

.prose h2,
.side h2 {
  margin: 0;
  font-size: clamp(23px, 3.2vw, 34px);
  letter-spacing: -.03em;
}

.prose h3 {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--paper);
}

.prose hr,
.side hr {
  width: 54px;
  height: 3px;
  background: var(--hot);
  margin: 14px 0 22px;
  border-radius: 2px;
}

.prose p {
  margin: 0 0 1.05em;
  color: var(--soft);
}

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

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

.prose ul,
.prose ol {
  margin: 0 0 1.05em;
  padding-left: 1.35em;
  list-style: revert;
  color: var(--soft);
}

.prose li { margin-bottom: .4em; }

.prose blockquote {
  margin: 0 0 1.05em;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--hot);
  color: var(--paper);
}

.prose strong { color: var(--paper); }

.prose img, .prose figure { border-radius: 20px; }
.prose figcaption { font-size: 15px; color: var(--soft); margin-top: 10px; }

/* ── 侧栏 ── */
.side {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 20px;
  background: rgba(245, 241, 232, .03);
}

.side h2 { font-size: 19px; letter-spacing: -.02em; }

.side-list { display: grid; gap: 4px; }

.side-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 16px;
  color: var(--soft);
  transition: background .22s, color .22s;
}

.side-list a:hover {
  background: rgba(245, 241, 232, .08);
  color: var(--paper);
}

.side-list b {
  font-family: Rubik, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--hot);
  font-variant-numeric: tabular-nums;
}

/* ── 页脚 ── */
.ft {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px 48px;
  padding: clamp(48px, 7vw, 72px) max(var(--pad), calc((100vw - 1140px) / 2)) 30px;
}

.ft-mark {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  font-size: clamp(34px, 10.5vw, 118px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .88;
  color: var(--paper);
  word-break: break-all;
}

.ft-desc {
  margin: 0;
  max-width: 54ch;
  color: var(--soft);
  font-size: 16px;
}

.ft-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  justify-content: flex-end;
  font-size: 16px;
}

.ft-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--soft);
  border-bottom: 1px solid transparent;
}

.ft-links a:hover {
  color: var(--hot);
  border-bottom-color: var(--hot);
}

.ft-copy {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: block;
  font-size: 15px;
  color: rgba(245, 241, 232, .48);
}

/* ── 回到顶部 ── */
.top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--hot);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .28s, transform .28s;
}

.top.on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* ── 入场 ── */
.js-anim .reveal { opacity: 0; transform: translateY(28px); }

.js-anim .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .75s cubic-bezier(.2, .72, .2, 1);
}

/* ── 断点 ── */
@media (max-width: 900px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; order: 2; }
  .ft { grid-template-columns: minmax(0, 1fr); }
  .ft-links { justify-content: flex-start; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .bar { padding: 12px var(--pad) 14px; }
  .menu-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .brand { order: -1; text-align: left; font-size: 20px; }
  .menu-l, .menu-r { justify-content: flex-start; }
  .menu-l a, .menu-r a { font-size: 15px; padding: 0 15px; }
  .hero-ghost { top: 16vh; right: -6vw; font-size: clamp(52px, 19vw, 96px); }
  .hero::after { height: 42px; }
  .hero-text { text-align: left; }
  .hero-text h1, .hero-desc { margin-left: 0; text-align: left; }
  .hero-text h1 { font-size: clamp(32px, 9.4vw, 52px); }
  .prose div { padding: 22px 18px; border-radius: 22px; }
  .ft-mark { font-size: clamp(30px, 12.5vw, 62px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js-anim .reveal { opacity: 1; transform: none; }
  .hero-media { transform: none !important; }
}

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