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

:root {
  --c-bg: #0D0F14;
  --c-accent: #1E90FF;
  --c-ink: #F0F4FF;
  --c-ink-dim: rgba(240, 244, 255, 0.55);
  --c-ink-muted: rgba(240, 244, 255, 0.25);
  --c-border: rgba(30, 144, 255, 0.18);
  --c-card-bg: rgba(255, 255, 255, 0.03);
  --c-card-glow: rgba(30, 144, 255, 0.08);
  --nav-w: 220px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--c-bg);
  color: var(--c-ink);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  background: var(--c-bg);
  color: var(--c-ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

div[id] { scroll-margin-top: 80px; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-ink); }
ul, ol, dl { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-ink);
}

.site-wrapper {
  display: flex;
  min-height: 100vh;
}

.main-wrap {
  flex: 1;
  margin-left: var(--nav-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ── 左侧固定竖排导航 ── */
.sidenav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-w);
  height: 100vh;
  background: rgba(13, 15, 20, 0.96);
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  padding: 28px 16px 24px;
  z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-y: auto;
}

.sidenav-brand {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
}

.brand-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: var(--c-ink);
  font-weight: 700;
  padding: 8px 4px;
  min-height: 44px;
}

.brand-link:hover { color: var(--c-accent); }

.logo-mark, .logo-full {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-text {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-accent);
  line-height: 1.4;
  padding: 2px 0;
}

.brand-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: 0.04em;
  line-height: 1.4;
  padding: 2px 0;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item { display: block; }

.nav-pill {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-ink-dim);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 40px;
}

.nav-pill:hover,
.nav-pill.active {
  color: var(--c-accent);
  background: rgba(30, 144, 255, 0.1);
  border-color: var(--c-border);
}

.sidenav-contact {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-accent);
  background: rgba(30, 144, 255, 0.08);
  border: 1px solid var(--c-border);
  text-align: center;
  transition: all var(--transition);
  min-height: 40px;
  cursor: pointer;
}

.contact-btn:hover {
  background: rgba(30, 144, 255, 0.18);
  color: var(--c-ink);
}

/* ── Hero ── */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--c-bg);
}

.hero-depth-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(30, 144, 255, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 80% 80%, rgba(30, 144, 255, 0.05) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 60px 48px 40px;
  max-width: 700px;
  margin: 0 auto;
}

.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--c-ink-dim);
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 300;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 36px;
  border-radius: 999px;
  background: var(--c-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  min-height: 48px;
  box-shadow: 0 0 24px rgba(30, 144, 255, 0.35);
}

.hero-cta:hover {
  background: #3da0ff;
  color: #fff;
  box-shadow: 0 0 36px rgba(30, 144, 255, 0.55);
  transform: translateY(-2px);
}

.hero-media {
  position: relative;
  z-index: 5;
  width: 100%;
  max-height: 300px;
  overflow: hidden;
}

.hero-figure { margin: 0; width: 100%; }

.hero-figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.6) saturate(1.2);
}

.hero-figure--placeholder {
  height: 220px;
  background: linear-gradient(135deg, rgba(30,144,255,0.07) 0%, rgba(13,15,20,0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-placeholder-inner {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(30,144,255,0.07) 39px, rgba(30,144,255,0.07) 40px),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(30,144,255,0.07) 39px, rgba(30,144,255,0.07) 40px);
}

.hero-slash {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--c-bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 10;
}

/* ── 正文主容器 ── */
.page-main { flex: 1; width: 100%; }

.content-section {
  display: grid;
  grid-template-columns: 200px 1fr 80px;
  gap: 0 32px;
  padding: 64px 48px 64px 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  align-items: start;
}

.content-aside {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 24px;
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px 16px;
  backdrop-filter: blur(8px);
}

.aside-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.aside-nav-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aside-link {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--c-ink-dim);
  transition: all var(--transition);
  line-height: 1.4;
  min-height: 32px;
}

.aside-link:hover {
  color: var(--c-accent);
  background: rgba(30, 144, 255, 0.08);
}

.content-body {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.content-figure {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: 24px;
}

.figure-deco {
  width: 60px;
  height: 200px;
  border-radius: 4px;
  overflow: hidden;
}

.figure-deco--grid {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 7px, rgba(30,144,255,0.15) 7px, rgba(30,144,255,0.15) 8px),
    repeating-linear-gradient(90deg, transparent, transparent 7px, rgba(30,144,255,0.1) 7px, rgba(30,144,255,0.1) 8px);
}

.figure-cap {
  font-size: 0.65rem;
  color: var(--c-ink-muted);
  writing-mode: vertical-rl;
  letter-spacing: 0.1em;
  line-height: 1;
}

/* ── 正文内容样式 ── */
.content-body h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--c-ink);
  margin: 56px 0 8px;
  padding-top: 8px;
  border-top: 2px solid var(--c-accent);
  display: inline-block;
  padding-right: 24px;
}

.content-body h2:first-child { margin-top: 0; }

.content-body .subtitle,
.content-body .subhead,
.content-body .desc,
.content-body .lead {
  font-size: 1rem;
  color: var(--c-ink-dim);
  margin-bottom: 20px;
  font-weight: 400;
  line-height: 1.6;
}

.content-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-accent);
  margin: 32px 0 10px;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-ink-dim);
  margin-bottom: 16px;
}

.content-body p strong { color: var(--c-ink); font-weight: 600; }

.content-body ul,
.content-body ol {
  margin: 16px 0 20px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.content-body ul li {
  padding-left: 20px;
  position: relative;
  font-size: 0.97rem;
  color: var(--c-ink-dim);
  line-height: 1.7;
}

.content-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

.content-body ol { counter-reset: ol-cnt; }

.content-body ol li {
  counter-increment: ol-cnt;
  padding-left: 28px;
  position: relative;
  font-size: 0.97rem;
  color: var(--c-ink-dim);
  line-height: 1.7;
}

.content-body ol li::before {
  content: counter(ol-cnt, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.8;
}

.content-body div {
  padding: 48px 0;
  border-bottom: 1px solid var(--c-border);
  position: relative;
}

.content-body div:last-child { border-bottom: none; }

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.content-body th {
  text-align: left;
  padding: 12px 16px;
  background: rgba(30, 144, 255, 0.1);
  color: var(--c-accent);
  font-weight: 600;
  border-bottom: 2px solid var(--c-border);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.content-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-ink-dim);
  line-height: 1.6;
}

.content-body tr:hover td { background: rgba(30, 144, 255, 0.04); }

.content-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--c-accent);
  background: var(--c-card-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--c-ink-dim);
  font-style: italic;
}

.content-body a {
  color: var(--c-accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.content-body a:hover { border-color: var(--c-accent); }

.content-body figure {
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.content-body figcaption {
  font-size: 0.8rem;
  color: var(--c-ink-muted);
  padding: 8px 12px;
  background: rgba(0,0,0,0.3);
  text-align: center;
}

.content-body .card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: box-shadow var(--transition), transform var(--transition);
}

.content-body .card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px var(--c-card-glow);
  transform: translateY(-2px);
}

/* ── 视差动效 ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-depth-layer {
    animation: depth-pulse 8s ease-in-out infinite alternate;
  }

  @keyframes depth-pulse {
    from { opacity: 0.7; transform: scale(1); }
    to   { opacity: 1;   transform: scale(1.04); }
  }

  .hero-section:hover .hero-figure img {
    transform: scale(1.02) translateY(-4px);
    transition: transform 0.8s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-depth-layer { animation: none; }
}

/* ── 页脚 ── */
.site-footer {
  background: rgba(13, 15, 20, 0.98);
  border-top: 1px solid var(--c-border);
  padding: 20px 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-logo-wrap { flex-shrink: 0; }

.footer-logo-link {
  display: flex;
  align-items: center;
  color: var(--c-ink-dim);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 0;
  min-height: 44px;
}

.footer-logo-link:hover { color: var(--c-accent); }

.footer-brand-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-ink-dim);
  letter-spacing: 0.06em;
  padding: 4px 0;
}

.footer-nav { flex: 1; min-width: 0; }

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

.footer-nav-item { display: inline-flex; }

.footer-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--c-ink-muted);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  min-height: 40px;
  white-space: nowrap;
}

.footer-nav-link:hover {
  color: var(--c-accent);
  background: rgba(30, 144, 255, 0.08);
}

.footer-copy {
  flex-shrink: 0;
  text-align: right;
  font-size: 0.75rem;
  color: var(--c-ink-muted);
  line-height: 1.6;
}

.footer-icp { margin-top: 2px; opacity: 0.7; }

/* ── 响应式 ── */
@media (max-width: 1024px) {
  :root { --nav-w: 190px; }

  .content-section {
    grid-template-columns: 180px 1fr;
    padding: 48px 32px;
  }

  .content-figure { display: none; }
  .content-aside { grid-column: 1; }
  .content-body { grid-column: 2; }
}

@media (max-width: 768px) {
  :root { --nav-w: 0px; }

  html { scroll-padding-top: 64px; }
  div[id] { scroll-margin-top: 64px; }

  .site-wrapper { flex-direction: column; }

  .sidenav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 8px 16px;
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 300;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .sidenav-brand {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    flex-shrink: 0;
    margin-right: 8px;
  }

  .brand-link {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 4px 6px;
  }

  .brand-text {
    font-size: 0.75rem;
    white-space: nowrap;
    padding: 0;
  }

  .brand-name { display: none; }

  .nav-list {
    flex-direction: row;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-pill {
    white-space: nowrap;
    font-size: 0.75rem;
    padding: 8px 12px;
    min-height: 40px;
  }

  .sidenav-contact {
    flex-direction: row;
    border-top: none;
    margin-top: 0;
    padding-top: 0;
    flex-shrink: 0;
    gap: 4px;
  }

  .contact-btn {
    font-size: 0.72rem;
    padding: 8px 10px;
    min-height: 40px;
    white-space: nowrap;
  }

  .main-wrap {
    margin-left: 0;
    margin-top: 64px;
  }

  .hero-section { min-height: 60vh; }

  .hero-content { padding: 40px 20px 28px; }

  .hero-h1 { font-size: 1.8rem; }

  .hero-sub { font-size: 0.95rem; }

  .hero-cta {
    padding: 12px 28px;
    font-size: 0.88rem;
    min-height: 48px;
  }

  .content-section {
    grid-template-columns: 1fr;
    padding: 32px 20px;
    gap: 24px 0;
  }

  .content-aside {
    grid-column: 1;
    grid-row: 1;
    position: static;
  }

  .content-body {
    grid-column: 1;
    grid-row: 2;
  }

  .content-figure { display: none; }

  .content-body h2 {
    font-size: 1.25rem;
    margin-top: 40px;
  }

  .site-footer { padding: 16px 20px; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-logo-link {
    min-height: 44px;
    padding: 4px 0;
  }

  .footer-copy { text-align: left; }

  .footer-nav-link {
    font-size: 0.75rem;
    padding: 8px 10px;
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 1.5rem; }
  .nav-list { gap: 2px; }

  .nav-pill {
    font-size: 0.7rem;
    padding: 7px 10px;
  }

  .content-body p,
  .content-body ul li,
  .content-body ol li {
    font-size: 0.95rem;
  }
}
