/* ============================================================
   /assets/site.css — 伟德主页 共享外壳
   基色：深靛蓝 #0A1030 / 强调：电光青 #2BE0C8 + 暖金 #F4B34C
   ============================================================ */

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

:root {
  --ink-900: #0A1030;
  --ink-800: #141C4E;
  --ink-600: #253482;
  --cyan: #2BE0C8;
  --cyan-soft: #8CF5E6;
  --gold: #F4B34C;
  --gold-soft: #FFD9A0;
  --paper: #E9EDF9;
  --muted: #9AA6CE;
  --wine: #63253F;
  --teal: #0B3F45;
  --violet: #3A2A72;

  --line: rgba(140, 245, 230, 0.16);
  --line-strong: rgba(140, 245, 230, 0.34);
  --line-soft: rgba(154, 166, 206, 0.18);

  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;

  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 84px;
  --header-h-sm: 64px;

  --font-head: "Archivo Black", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 620px at 84% -10%, rgba(43, 224, 200, 0.10), transparent 62%),
    radial-gradient(900px 540px at 4% 8%, rgba(58, 42, 114, 0.42), transparent 62%),
    linear-gradient(rgba(140, 245, 230, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 245, 230, 0.028) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  background-attachment: fixed, fixed, scroll, scroll;
  -webkit-font-smoothing: antialiased;
}

body.is-nav-open { overflow: hidden; }

img, svg, video { max-width: 100%; }
img { height: auto; }

a { color: var(--cyan-soft); text-decoration: none; }
a:hover { color: var(--cyan); }

ul, ol { margin: 0; padding: 0; }

button { font: inherit; color: inherit; }

::selection { background: rgba(43, 224, 200, 0.32); color: #04121A; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 5.2vw, 56px); }
h2 { font-size: clamp(26px, 3.6vw, 36px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); }
h4 { font-size: 1.06rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

strong { color: var(--cyan-soft); font-weight: 700; }

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.lede {
  max-width: 58ch;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.72;
  color: rgba(233, 237, 249, 0.82);
}

.num, .num--gold {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--cyan);
}
.num--gold { color: var(--gold); }

.prose {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.78;
  color: rgba(233, 237, 249, 0.9);
}
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; color: var(--cyan-soft); }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.25em; }
.prose li { margin-bottom: 0.42em; }
.prose li::marker { color: var(--cyan); }

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

.section {
  position: relative;
  padding-block: clamp(56px, 8vw, 112px);
}
.section--narrow { padding-block: clamp(34px, 5vw, 64px); }
.section--flush { padding-top: 0; }

.grid { display: grid; gap: clamp(20px, 3vw, 34px); }
.grid--split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }

/* ---------- 跳至主要内容 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: #04121A;
  font-weight: 700;
  font-size: 0.9rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 14px;
  color: #04121A;
}

/* ============================================================
   顶栏
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 16, 48, 0.84);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background 0.24s var(--ease), border-color 0.24s var(--ease);
}
.site-header[data-condensed] {
  background: rgba(10, 16, 48, 0.97);
  border-bottom-color: var(--line-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  transition: height 0.24s var(--ease);
}
.site-header[data-condensed] .header-inner { height: var(--header-h-sm); }

/* 品牌署名 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--paper);
  font-family: var(--font-head);
  text-decoration: none;
}
.brand:hover { color: var(--paper); }
.brand-mark {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-capsule {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(43, 224, 200, 0.08);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cyan);
  line-height: 1.2;
}
.brand-tail {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.brand--footer .brand-mark { font-size: 1.5rem; }

/* 导航 */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-label { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-list a {
  position: relative;
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  color: rgba(233, 237, 249, 0.78);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(43, 224, 200, 0));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease);
}
.nav-list a:hover {
  color: var(--cyan-soft);
  background: rgba(43, 224, 200, 0.08);
}
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] {
  color: var(--cyan);
  font-weight: 700;
}
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--cyan), var(--cyan-soft));
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  padding: 11px 20px;
  border: 1px solid rgba(244, 179, 76, 0.5);
  border-radius: var(--radius-pill);
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #241503;
}

/* 折叠按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(20, 28, 78, 0.7);
  color: var(--paper);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); }
.nav-toggle__bars {
  display: grid;
  gap: 5px;
  width: 18px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* 阅读进度轨 */
.scroll-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  pointer-events: none;
}
.scroll-rail__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transition: transform 0.1s linear;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--line-strong);
  color: var(--paper);
  background-color: var(--ink-800);
  background-image:
    radial-gradient(760px 320px at 88% 0%, rgba(43, 224, 200, 0.14), transparent 70%),
    radial-gradient(560px 300px at 6% 100%, rgba(58, 42, 114, 0.5), transparent 72%),
    linear-gradient(rgba(43, 224, 200, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 224, 200, 0.06) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.85fr 1.15fr;
  gap: clamp(26px, 4vw, 56px);
  padding-block: clamp(48px, 7vw, 88px) clamp(30px, 4vw, 48px);
}

.footer-seg { min-width: 0; }
.footer-seg--brand { grid-column: auto; }

.footer-note {
  margin: 18px 0 0;
  max-width: 34ch;
  font-size: 0.92rem;
  line-height: 1.72;
  color: rgba(233, 237, 249, 0.72);
}

.footer-title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.footer-list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.footer-list a {
  color: rgba(233, 237, 249, 0.76);
  font-size: 0.9rem;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.footer-list a:hover {
  color: var(--cyan-soft);
  padding-left: 4px;
}

.contact-list { margin: 0; display: grid; gap: 14px; }
.contact-list div { min-width: 0; }
.contact-list dt {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.contact-list dd {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(233, 237, 249, 0.92);
  word-break: break-word;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px 34px;
  border-top: 1px solid var(--line-soft);
}
.footer-icp,
.footer-copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.footer-icp { color: var(--cyan-soft); }

/* ============================================================
   通用组件
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn--primary { background: var(--cyan); color: #04121A; }
.btn--primary:hover { background: var(--cyan-soft); color: #04121A; }
.btn--gold { background: var(--gold); color: #241503; }
.btn--gold:hover { background: var(--gold-soft); color: #241503; }
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--paper);
  background: rgba(20, 28, 78, 0.5);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.breadcrumb { margin: 0 0 clamp(20px, 3vw, 30px); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.breadcrumb li + li::before {
  content: "/";
  color: var(--ink-600);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current] { color: var(--cyan-soft); }

.panel {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(20, 28, 78, 0.62);
}
.panel--wine {
  background: linear-gradient(158deg, rgba(99, 37, 63, 0.9), rgba(20, 28, 78, 0.74));
  border-color: rgba(233, 237, 249, 0.14);
}
.panel--teal {
  background: linear-gradient(158deg, rgba(11, 63, 69, 0.92), rgba(20, 28, 78, 0.74));
  border-color: rgba(140, 245, 230, 0.2);
}

.section-band {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.section-band__no {
  flex: none;
  padding: 5px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
}
.section-band__line {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 58%, transparent);
}

.anchor-nav { position: relative; }
.anchor-nav ol { list-style: none; display: grid; gap: 4px; }
.anchor-nav a {
  display: block;
  padding: 9px 14px;
  border-left: 2px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.86rem;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.anchor-nav a:hover { color: var(--cyan-soft); border-left-color: var(--cyan); }
.anchor-nav a[aria-current] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(43, 224, 200, 0.07);
}

/* 图片容器基础规则（页面阶段放入 img） */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--ink-800);
  background-image:
    radial-gradient(120% 90% at 18% 12%, rgba(58, 42, 114, 0.95), transparent 62%),
    radial-gradient(110% 80% at 88% 96%, rgba(11, 63, 69, 0.95), transparent 60%),
    linear-gradient(135deg, rgba(43, 224, 200, 0.14), transparent 58%);
}
.media > img,
.media > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media__tag {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 5px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(10, 16, 48, 0.74);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--cyan-soft);
}

/* 章节显现 */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 28px; }
  .footer-seg--brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  html { font-size: 15.5px; }

  .site-header .header-inner,
  .site-header[data-condensed] .header-inner { height: var(--header-h-sm); }

  .brand-tail { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 380px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: calc(var(--header-h-sm) + 30px) 26px 40px;
    background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
    border-left: 1px solid var(--line-strong);
    box-shadow: -30px 0 80px rgba(3, 6, 20, 0.72);
    overflow-y: auto;
    transform: translateX(102%);
    transition: transform 0.28s var(--ease);
  }
  .nav[data-open] { transform: translateX(0); }

  .nav-label {
    display: block;
    margin: 0 0 14px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: var(--muted);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    counter-reset: navidx;
  }
  .nav-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    counter-increment: navidx;
    border-bottom: 1px solid var(--line);
  }
  .nav-list li::before {
    content: "0" counter(navidx);
    flex: none;
    min-width: 24px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--muted);
  }
  .nav-list a {
    flex: 1;
    padding: 17px 4px;
    border-radius: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(233, 237, 249, 0.88);
  }
  .nav-list a::after { display: none; }
  .nav-list a:hover { background: transparent; color: var(--cyan-soft); }
  .nav-list a[aria-current="page"] { color: var(--cyan); }

  .nav-cta {
    margin: 26px 0 0;
    justify-content: center;
    padding: 15px 22px;
  }

  .grid--split,
  .grid--12 { grid-template-columns: minmax(0, 1fr); }
  .col-4, .col-5, .col-7, .col-8 { grid-column: auto; }

  .section { padding-block: clamp(46px, 9vw, 72px); }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .header-inner { gap: 14px; }
  .brand-mark { font-size: 1.08rem; }
  .media { border-radius: var(--radius-md); }
  .panel { border-radius: var(--radius-md); }
}

@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;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
