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

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

:root {
  --ink: #0B0B0B;
  --lime: #C6FF2E;
  --orange: #FF4D2E;
  --line: #2B2B2B;
  --fg: #F3F3EE;
  --dim: #9C9C95;
  --panel: #101010;
  --r: 18px;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--fg);
  font: 400 17px/1.7 'Epilogue', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  letter-spacing: 0.01em;
}

ul, ol { list-style: none; margin: 0; padding: 0; }
hr { border: 0; height: 2px; width: 72px; background: var(--lime); margin: 0 0 22px; }

/* ---------- 顶部 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(14px, 3vw, 28px);
  background: rgba(11, 11, 11, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(9px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--fg);
  text-decoration: none;
  font-family: 'Anton', 'Epilogue', system-ui, 'PingFang SC', sans-serif;
  font-size: 21px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.mark {
  width: 13px;
  height: 13px;
  background: var(--lime);
  border-radius: 3px;
  transform: rotate(45deg);
  flex: none;
}

.brand:hover .mark { background: var(--orange); }

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.menu { display: flex; flex-wrap: wrap; gap: 2px; }

.menu a,
.foot-nav a,
.rail-list a,
.panel a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 11px;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.menu a:hover,
.menu a:focus-visible,
.foot-nav a:hover,
.panel a:hover,
.rail-list a:hover {
  color: var(--lime);
  border-color: var(--line);
  background: #141414;
}

.drawer { position: relative; }

.menu-btn {
  min-height: 40px;
  padding: 0 15px;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}

.menu-btn:hover,
.menu-btn[aria-expanded="true"] { color: var(--lime); border-color: var(--lime); }

.panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
  min-width: 300px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  z-index: 50;
}

.panel.open { display: grid; }
.panel ul { display: flex; flex-direction: column; }
.panel a { min-height: 44px; }

.nav-contact {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  color: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}

.nav-contact:hover { background: var(--lime); color: var(--ink); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  overflow: hidden;
  text-align: right;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  padding: clamp(24px, 7vh, 70px) clamp(16px, 4vw, 48px) 0;
}

.badge {
  display: inline-block;
  padding: 5px 15px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  color: var(--orange);
  font-size: 13px;
  letter-spacing: 0.16em;
  transform: rotate(-4deg);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-7px); }
}

.hero h1 {
  margin: 0;
  font-family: 'Anton', 'Epilogue', system-ui, 'PingFang SC', sans-serif;
  font-size: clamp(52px, 15vw, 168px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  font-weight: 700;
  word-break: break-word;
}

.hero h1 .ch { display: inline-block; white-space: pre; }

.hero h1.split .ch {
  animation: chIn 0.75s cubic-bezier(0.2, 0.9, 0.25, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

@keyframes chIn {
  from { transform: translateY(0.55em) rotate(9deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.lede {
  margin: 0 0 8px auto;
  max-width: 46ch;
  font-size: clamp(16px, 2.1vw, 19px);
  line-height: 1.7;
  color: var(--dim);
}

.marquee {
  overflow: hidden;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  font-family: 'Anton', 'Epilogue', system-ui, sans-serif;
  font-size: clamp(17px, 3vw, 27px);
  letter-spacing: 0.1em;
  color: transparent;
  -webkit-text-stroke: 1px var(--lime);
  animation: slide 26s linear infinite;
}

.marquee-track span { padding-right: 26px; }
.marquee-track i { padding-right: 26px; font-style: normal; color: var(--orange); -webkit-text-stroke: 0; }

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

.hero-fig { margin: 0; }
.hero-img {
  display: block;
  width: 100%;
  height: min(44svh, 400px);
  object-fit: cover;
  border-top: 1px solid var(--line);
  border-radius: var(--r) var(--r) 0 0;
}

/* ---------- 主体 ---------- */
.main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 278px;
  gap: clamp(24px, 4vw, 56px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(44px, 8vw, 96px) clamp(16px, 4vw, 32px);
}

.doc { min-width: 0; overflow-wrap: break-word; }

.doc h2 {
  margin: 0 0 8px;
  font-family: 'Anton', 'Epilogue', system-ui, 'PingFang SC', sans-serif;
  font-size: clamp(25px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.doc h3 {
  margin: 30px 0 8px;
  font-family: 'Anton', 'Epilogue', system-ui, 'PingFang SC', sans-serif;
  font-size: clamp(19px, 2.4vw, 24px);
  letter-spacing: 0.02em;
  font-weight: 700;
}

.doc p { margin: 0 0 18px; line-height: 1.85; }
.doc a { color: var(--lime); text-underline-offset: 3px; }
.doc a:hover { color: var(--orange); }
.doc strong { color: var(--lime); font-weight: 600; }

.doc ul, .doc ol { padding-left: 1.15em; margin: 0 0 20px; }
.doc ul { list-style: square; }
.doc ol { list-style: decimal; }
.doc li { margin-bottom: 8px; line-height: 1.75; }
.doc li::marker { color: var(--orange); }

.doc blockquote {
  margin: 0 0 22px;
  padding: 14px 20px;
  border-left: 3px solid var(--orange);
  background: #101010;
  border-radius: 0 var(--r) var(--r) 0;
  color: #DCDCD4;
}

.doc code {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 0.92em;
  background: #171717;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

.doc img { max-width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); }

.doc div { padding: 4px 0 46px; scroll-margin-top: 96px; }
.doc div + div { border-top: 1px dashed var(--line); padding-top: 46px; }
.doc div:last-child { padding-bottom: 8px; }

/* ---------- 侧栏 ---------- */
.rail {
  align-self: start;
  position: sticky;
  top: 88px;
  padding: 18px;
  background: #0F0F0F;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.rail h2 {
  margin: 0 0 5px;
  font-family: 'Anton', 'Epilogue', system-ui, 'PingFang SC', sans-serif;
  font-size: 20px;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.rail hr { width: 48px; margin-bottom: 14px; }
.rail-list a { width: 100%; font-size: 15px; }

/* ---------- 页脚 ---------- */
.foot { margin-top: 40px; background: #070707; border-top: 1px solid var(--line); }

.cta-box { padding: clamp(44px, 8vw, 88px) clamp(16px, 4vw, 40px); text-align: right; }

.cta-box h2 {
  margin: 0 0 10px;
  font-family: 'Anton', 'Epilogue', system-ui, 'PingFang SC', sans-serif;
  font-size: clamp(38px, 9vw, 92px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.cta-box hr { margin-left: auto; width: 96px; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid var(--lime);
  border-radius: 999px;
  color: var(--lime);
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.cta-btn:hover { background: var(--lime); color: var(--ink); transform: translateY(-2px); }

.foot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px clamp(16px, 4vw, 40px);
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
}

.foot-brand a {
  color: var(--fg);
  text-decoration: none;
  font-family: 'Anton', 'Epilogue', system-ui, 'PingFang SC', sans-serif;
  font-size: 18px;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.foot-brand a:hover { color: var(--lime); }
.foot-nav ol { display: flex; flex-wrap: wrap; gap: 2px; }
.foot-nav a { min-height: 40px; font-size: 14px; padding: 4px 8px; }
.foot-copy { white-space: nowrap; }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .menu { display: none; }
  .main { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; margin-top: 8px; }
  .cta-box { text-align: left; }
  .cta-box hr { margin-left: 0; }
  .hero-top { padding-top: clamp(20px, 5vh, 44px); }
}

@media (max-width: 560px) {
  .masthead { gap: 8px; padding: 10px 14px; }
  .brand { font-size: 18px; }
  .nav-contact { padding: 0 14px; }
  .panel { min-width: 260px; grid-template-columns: 1fr; }
  .foot-bar { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: clamp(48px, 18vw, 90px); }
}

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

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