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

:root {
  --ink: #000000;
  --panel: #121212;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #e7eaec;
  --dim: #9aa3a9;
  --mint: #7cffb2;
  --ice: #6fd3ff;
  --gold: #f3c96b;
  --wrap: 1180px;
  --pad: clamp(16px, 4vw, 34px);
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', sans-serif;
  --head: 'Lexend', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(90% 45% at 78% -8%, rgba(111, 211, 255, 0.07), transparent 62%),
    radial-gradient(70% 40% at 6% 4%, rgba(124, 255, 178, 0.05), transparent 60%);
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--head);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h2 {
  margin: 0;
  padding-left: 14px;
  position: relative;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}

h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.32em;
  bottom: 0.32em;
  width: 3px;
  background: linear-gradient(180deg, var(--mint), rgba(111, 211, 255, 0.3));
  box-shadow: 0 0 12px rgba(124, 255, 178, 0.45);
}

.subtitle {
  margin: 9px 0 0;
  padding-left: 14px;
  color: var(--dim);
  font-size: 17px;
  line-height: 1.62;
}

a {
  color: var(--mint);
}

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

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px var(--pad);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.logo {
  order: 1;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--mint);
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.05rem;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.85), rgba(10, 10, 10, 0.85));
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.logo:hover {
  border-color: rgba(124, 255, 178, 0.55);
  box-shadow: 0 0 18px rgba(124, 255, 178, 0.18);
}

.logo-img {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}

.searchbox {
  order: 2;
  margin-left: auto;
  display: flex;
  align-items: stretch;
  width: min(260px, 40vw);
  background: rgba(18, 18, 18, 0.66);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.searchbox:focus-within {
  border-color: rgba(124, 255, 178, 0.5);
  box-shadow: 0 0 0 1px rgba(124, 255, 178, 0.2), 0 0 20px rgba(124, 255, 178, 0.1);
}

.search-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.search-input::placeholder {
  color: #6e767c;
}

.search-input:focus {
  outline: none;
}

.search-input::-webkit-search-cancel-button {
  filter: invert(0.8);
}

.search-btn {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--mint);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.search-btn:hover {
  background: rgba(124, 255, 178, 0.1);
  color: #fff;
}

/* 菜单（details） */
.menu-wrap {
  order: 3;
  position: relative;
  flex: 0 0 auto;
}

.menu-wrap summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.82), rgba(11, 11, 11, 0.82));
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

.menu-wrap summary:hover {
  color: var(--mint);
  border-color: rgba(124, 255, 178, 0.5);
}

.menu-glyph {
  display: block;
  position: relative;
  width: 15px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.menu-glyph::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 3px;
  height: 2px;
  background: currentColor;
}

.menu-wrap[open] summary {
  color: var(--mint);
  border-color: rgba(124, 255, 178, 0.55);
}

.navmenu {
  margin: 0;
  padding: 8px;
  list-style: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(88vw, 320px);
  display: grid;
  gap: 2px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-2);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(124, 255, 178, 0.05);
  z-index: 60;
}

.navmenu li {
  list-style: none;
}

.navmenu a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  border-left: 2px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.navmenu a:hover,
.navmenu a:focus-visible {
  background: rgba(124, 255, 178, 0.08);
  border-left-color: var(--mint);
  color: #fff;
}

.ico {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  background: var(--mint);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(124, 255, 178, 0.75);
}

/* 首屏 */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  max-width: var(--wrap);
  min-height: 45vh;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 30px) var(--pad) clamp(22px, 3vw, 36px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-fig {
  margin: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 18% 8%, rgba(111, 211, 255, 0.1), transparent 62%),
    linear-gradient(150deg, #0a0a0a, #161616);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.92);
}

.hero-fig::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.55));
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.05) saturate(0.95);
}

.hero-copy {
  text-align: right;
  min-width: 0;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4.6vw, 3.3rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 0 22px rgba(124, 255, 178, 0.13);
}

/* 品牌带 */
.brief {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px) var(--pad);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* 主体两栏 */
.body-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 44px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 40px) var(--pad) clamp(40px, 6vw, 72px);
}

.rail {
  position: sticky;
  top: 92px;
  align-self: start;
  padding-right: clamp(12px, 2vw, 20px);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.rail h2 {
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding-left: 11px;
}

.rail h2::before {
  width: 2px;
}

.rail-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.rail-list li {
  list-style: none;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 8px;
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: #fff;
  border-left-color: var(--ice);
  background: rgba(111, 211, 255, 0.07);
}

/* 正文 */
.content {
  min-width: 0;
  max-width: 760px;
}

.content section {
  scroll-margin-top: 100px;
  padding: clamp(18px, 3vw, 28px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.content section:last-child {
  border-bottom: 0;
}

.content > *:first-child {
  margin-top: 0;
}

.content h2 {
  margin-bottom: 10px;
}

.content h3 {
  font-size: 1.12rem;
  margin: 1.3em 0 0.4em;
}

.content p {
  margin: 0.85em 0;
  color: #cfd6da;
}

.content a {
  color: var(--mint);
  text-underline-offset: 3px;
}

.content a:hover {
  color: #fff;
}

.content ul,
.content ol {
  margin: 0.9em 0;
  padding-left: 1.25em;
}

.content li {
  margin: 0.45em 0;
}

.content li::marker {
  color: var(--mint);
}

.content blockquote {
  margin: 1.2em 0;
  padding: 12px 16px;
  border-left: 2px solid rgba(124, 255, 178, 0.5);
  background: rgba(18, 18, 18, 0.65);
  color: #b9c1c7;
}

.content figure {
  margin: 1.2em 0;
}

.content img {
  display: block;
  height: auto;
}

.content aside {
  margin: 1.3em 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.72), rgba(10, 10, 10, 0.72));
  backdrop-filter: blur(8px);
  color: #c3cad0;
  font-size: 16px;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.content th,
.content td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

/* 页脚 */
.foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: clamp(24px, 5vw, 48px) var(--pad) clamp(20px, 4vw, 32px);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.7), #000 70%);
}

.foot section {
  max-width: var(--wrap);
  margin: 0 auto;
}

.foot-brand {
  padding-bottom: clamp(14px, 3vw, 24px);
  overflow: hidden;
}

.giant {
  margin: 0;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(2.4rem, 11.5vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  word-break: break-word;
  background: linear-gradient(180deg, #4d4d4d, #0f0f0f 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.foot-links {
  padding: 14px 0 clamp(14px, 3vw, 22px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.foot-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.foot-menu li {
  list-style: none;
}

.foot-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease;
}

.foot-menu a:hover,
.foot-menu a:focus-visible {
  color: var(--mint);
}

.foot-base {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.copy {
  margin: 0;
  color: #71797f;
  font-size: 16px;
  letter-spacing: 0.05em;
}

/* 动效 */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* 响应式 */
@media (max-width: 900px) {
  .body-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .content {
    order: 1;
    max-width: none;
  }

  .rail {
    order: 2;
    position: static;
    margin-top: 12px;
    padding: 18px 0 0;
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

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

@media (max-width: 720px) {
  .searchbox {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
  }

  .menu-wrap {
    order: 2;
    margin-left: auto;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 14px;
  }

  .hero-fig {
    aspect-ratio: 16 / 9;
  }

  .body-grid {
    padding-top: 18px;
  }
}

@media (max-width: 520px) {
  .rail-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy h1 {
    font-size: clamp(1.7rem, 7.2vw, 2.4rem);
  }

  .foot-menu {
    gap: 2px 14px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (hover: none) {
  .navmenu a:hover {
    background: transparent;
  }
}

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