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

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

body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, address, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

:root {
  --ink: #060A16;
  --night: #0D1424;
  --panel: #141E34;
  --line: #2A3654;
  --line-soft: rgba(42, 54, 84, 0.72);
  --cyan: #35F0D0;
  --violet: #8C5CFF;
  --gold: #F4C66A;
  --text: #EEF4FF;
  --muted: #AAB8D0;
  --ok: #5BE49B;
  --warn: #FFB86B;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Grotesk", "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shell-max: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --stack: clamp(40px, 6vw, 80px);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 88% -8%, rgba(140, 92, 255, 0.22), transparent 62%),
    radial-gradient(900px 520px at 2% 2%, rgba(53, 240, 208, 0.12), transparent 58%),
    linear-gradient(180deg, #060A16 0%, #0D1424 46%, #060A16 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
strong { color: var(--text); font-weight: 700; }
::selection { background: rgba(53, 240, 208, 0.3); color: #04110F; }

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

/* ------- 布局容器 ------- */
.u-container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 80px); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(26px, 4vw, 42px);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(27px, 3.4vw, 42px);
  line-height: 1.24;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-lead {
  max-width: 66ch;
  font-size: 16px;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.stack { display: flex; flex-direction: column; gap: clamp(16px, 2.4vw, 26px); }
.stack--tight { gap: 10px; }

.grid { display: grid; gap: clamp(18px, 3vw, 30px); }
.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.grid--split-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ------- 跳过链接 ------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -90px;
  z-index: 300;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: #04110F;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: top 0.22s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ------- 页头 ------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 22, 0.96);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header[data-scrolled="true"] {
  background: rgba(6, 10, 22, 0.99);
  box-shadow: 0 18px 44px -30px rgba(53, 240, 208, 0.6), 0 1px 0 rgba(42, 54, 84, 0.9);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 120;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 55%, var(--gold) 100%);
  box-shadow: 0 0 12px rgba(53, 240, 208, 0.7);
}

.masthead { position: relative; }

.masthead-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-block: 15px 11px;
}

.brand {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  background: linear-gradient(100deg, var(--cyan) 0%, var(--text) 52%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-lockup { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.brand-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.22em;
  color: var(--text);
}

.brand-tagline {
  font-size: 11.5px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.masthead-tools {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.thumb-entry {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(53, 240, 208, 0.45);
  background: rgba(53, 240, 208, 0.07);
  color: var(--cyan);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.thumb-entry:hover {
  border-color: var(--gold);
  background: rgba(244, 198, 106, 0.1);
  color: var(--gold);
  transform: translateY(-2px);
}

.thumb-entry-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2.6s var(--ease) infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(53, 240, 208, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(53, 240, 208, 0); }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(140, 92, 255, 0.5);
  background: rgba(140, 92, 255, 0.1);
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); background: rgba(53, 240, 208, 0.1); }

.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 16px; flex: none; }
.nav-toggle-bars span {
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}
.site-header[data-open="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bars span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.nav-toggle-label { font-size: 13px; letter-spacing: 0.06em; }

.nav-bar {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(13, 20, 36, 0.78), rgba(6, 10, 22, 0));
}

.nav-inner { padding-block: 2px 9px; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 11px 17px 13px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.28s var(--ease);
}
.nav-link:hover { color: var(--text); background: rgba(53, 240, 208, 0.07); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--cyan); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* ------- 页脚 ------- */
.site-footer {
  position: relative;
  margin-top: var(--stack);
  padding-block: clamp(48px, 7vw, 80px) 0;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(13, 20, 36, 0.94) 0%, rgba(6, 10, 22, 0.99) 72%);
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: -180px;
  right: -140px;
  width: min(560px, 80vw);
  height: min(560px, 80vw);
  background: radial-gradient(circle at center, rgba(140, 92, 255, 0.2), transparent 66%);
  pointer-events: none;
}

.footer-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.footer-mark {
  font-family: var(--font-mono);
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.07em;
  color: rgba(53, 240, 208, 0.32);
  user-select: none;
}
@supports ((-webkit-text-stroke: 1px #fff)) {
  .footer-mark {
    color: transparent;
    -webkit-text-stroke: 1px rgba(53, 240, 208, 0.5);
  }
}

.footer-brand-name { font-size: 16px; font-weight: 700; letter-spacing: 0.04em; color: var(--text); }
.footer-brand-name span {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}
.footer-brand-note { font-size: 13.5px; letter-spacing: 0.04em; color: var(--muted); }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  display: inline-block;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-links a:hover { color: var(--gold); transform: translateX(3px); }

.footer-meta {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding-block: clamp(28px, 4vw, 40px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
.footer-contact-title {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}
.footer-contact-label {
  display: inline-block;
  min-width: 46px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(170, 184, 208, 0.7);
}
.footer-contact-note {
  margin-top: 6px;
  max-width: 56ch;
  padding-left: 12px;
  border-left: 2px solid rgba(140, 92, 255, 0.5);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(170, 184, 208, 0.78);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
}
.footer-icp { font-family: var(--font-mono); letter-spacing: 0.06em; }
.footer-copy { font-size: 12.5px; color: rgba(170, 184, 208, 0.75); }

.footer-strip {
  height: 4px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 50%, var(--gold) 100%);
  opacity: 0.55;
}

/* ------- 通用按钮 ------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn--primary {
  background: var(--cyan);
  color: #04110F;
  box-shadow: 0 16px 36px -22px rgba(53, 240, 208, 0.95);
}
.btn--primary:hover {
  background: #63F8E0;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px rgba(53, 240, 208, 1);
}
.btn--ghost {
  border-color: rgba(140, 92, 255, 0.55);
  background: rgba(140, 92, 255, 0.1);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--gold);
  background: rgba(244, 198, 106, 0.1);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn:active { transform: translateY(0); }

/* ------- 面包屑 ------- */
.breadcrumb { margin-bottom: clamp(20px, 3vw, 32px); }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.breadcrumb-list li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb-list li:not(:last-child)::after {
  content: "/";
  font-family: var(--font-mono);
  color: rgba(42, 54, 84, 1);
}
.breadcrumb-list a { color: var(--muted); transition: color 0.2s var(--ease); }
.breadcrumb-list a:hover { color: var(--cyan); }
.breadcrumb-current { color: var(--text); }

/* ------- 正文排版 ------- */
.prose {
  max-width: 74ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
}
.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-display);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
}
.prose h2 { margin-top: 2em; margin-bottom: 0.7em; font-size: clamp(23px, 2.6vw, 30px); }
.prose h3 { margin-top: 1.7em; margin-bottom: 0.6em; font-size: clamp(19px, 2.1vw, 23px); }
.prose p { margin-top: 1.1em; }
.prose p:first-child { margin-top: 0; }
.prose ul,
.prose ol { margin-top: 1.1em; padding-left: 1.2em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.5em; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(53, 240, 208, 0.4); }
.prose a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.prose strong { color: var(--text); }
.prose blockquote {
  margin-top: 1.4em;
  padding: 16px 20px;
  border-left: 2px solid var(--violet);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(20, 30, 52, 0.7);
  color: var(--text);
}

/* ------- 胶囊标签 ------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(20, 30, 52, 0.72);
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.pill--on {
  border-color: rgba(53, 240, 208, 0.55);
  background: rgba(53, 240, 208, 0.1);
  color: var(--cyan);
}
.pill--gold {
  border-color: rgba(244, 198, 106, 0.5);
  background: rgba(244, 198, 106, 0.1);
  color: var(--gold);
}

/* ------- 图片容器基础规则 ------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: linear-gradient(150deg, #0D1424 0%, #141E34 100%);
  aspect-ratio: 16 / 10;
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(53, 240, 208, 0.2), transparent 58%),
    radial-gradient(100% 85% at 92% 100%, rgba(140, 92, 255, 0.26), transparent 62%);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 9px);
}
.media-frame img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame > figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(238, 244, 255, 0.78);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 9 / 16; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ------- 显现动效 ------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ------- 响应式 ------- */
@media (max-width: 900px) {
  .grid--split,
  .grid--split-rev { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-meta { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .masthead-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-block: 13px 11px;
  }
  .brand { grid-column: 1; justify-self: start; gap: 10px; }
  .masthead-tools { grid-column: 2; }
  .nav-toggle { display: inline-flex; }

  .nav-bar {
    max-height: 0;
    overflow: hidden;
    border-top-color: transparent;
    transition: max-height 0.38s var(--ease), border-color 0.22s var(--ease);
  }
  .site-header[data-open="true"] .nav-bar {
    max-height: 600px;
    border-top-color: var(--line-soft);
  }
  .nav-inner { padding-block: 0; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; padding-block: 12px 18px; }
  .nav-link { padding: 13px 16px; font-size: 16px; border-radius: var(--radius-md); }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    background: rgba(53, 240, 208, 0.1);
    box-shadow: inset 0 0 0 1px rgba(53, 240, 208, 0.4);
    color: var(--cyan);
  }
}

@media (max-width: 700px) {
  .thumb-entry-text { display: none; }
  .thumb-entry { padding: 9px 11px; }
  .brand-tagline { display: none; }
  .brand-lockup { gap: 0; }
}

@media (max-width: 560px) {
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-mark { font-size: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .thumb-entry-dot { animation: none; }
}
