:root {
  --bg: #0a0e27;
  --bg-alt: #0d1230;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.1);
  --text: #e8ecf7;
  --text-muted: #9aa4c0;
  --primary: #4f7cff;
  --primary-2: #7b5cff;
  --accent: #ffb84f;
  --accent-2: #ff7a59;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --header-h: 72px;
  --max-w: 1180px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6fc;
    --bg-alt: #eaeefb;
    --surface: rgba(255, 255, 255, 0.7);
    --surface-hover: rgba(255, 255, 255, 0.95);
    --border: rgba(10, 14, 39, 0.1);
    --text: #141a33;
    --text-muted: #55608a;
    --shadow: 0 18px 50px rgba(30, 50, 120, 0.14);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(79, 124, 255, 0.22), transparent 60%),
    radial-gradient(800px 560px at 92% 4%, rgba(123, 92, 255, 0.18), transparent 62%),
    radial-gradient(700px 520px at 50% 108%, rgba(255, 184, 79, 0.1), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  background-attachment: fixed;
  pointer-events: none;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: var(--accent);
}

ul,
ol {
  list-style: none;
}

::selection {
  background: rgba(79, 124, 255, 0.4);
  color: #fff;
}

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

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 14, 39, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}

@media (prefers-color-scheme: light) {
  #site-header {
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 6px 30px rgba(30, 50, 120, 0.08);
  }
}

.header-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: var(--text);
  white-space: nowrap;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: translateY(-1px) scale(1.02);
  color: var(--text);
}

.logo svg {
  filter: drop-shadow(0 4px 12px rgba(79, 124, 255, 0.5));
  transition: transform 0.4s ease;
}

.logo:hover svg {
  transform: rotate(-6deg);
}

#main-nav {
  margin-left: auto;
}

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

#main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

#main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transform: translateX(-50%);
  transition: width 0.28s ease;
}

#main-nav a:hover {
  color: var(--text);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

#main-nav a:hover::after {
  width: 60%;
}

#menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

#menu-toggle:hover {
  background: var(--surface-hover);
  transform: scale(1.05);
}

/* ============ Main / Sections ============ */
main {
  display: block;
}

section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px;
  scroll-margin-top: calc(var(--header-h) + 16px);
  animation: fadeUp 0.8s ease both;
}

section:nth-of-type(even) {
  position: relative;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  background: linear-gradient(100deg, #ffffff 0%, #c9d6ff 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (prefers-color-scheme: light) {
  h1 {
    background: linear-gradient(100deg, #1b2450 0%, #3a4fa0 45%, #c47a00 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 22px;
  position: relative;
  padding-left: 18px;
  letter-spacing: -0.3px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  box-shadow: 0 0 18px rgba(79, 124, 255, 0.6);
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text);
}

h4 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 20px 0 10px;
  color: var(--accent);
}

p {
  margin-bottom: 14px;
  color: var(--text-muted);
}

section > p,
section > h3 + p,
section > h4 + p {
  max-width: 78ch;
}

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

time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--accent);
  background: rgba(255, 184, 79, 0.1);
  border: 1px solid rgba(255, 184, 79, 0.25);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* ============ Hero ============ */
.hero {
  max-width: 100%;
  padding: 96px 24px 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 50% -10%, rgba(79, 124, 255, 0.35), transparent 65%),
    radial-gradient(700px 400px at 85% 20%, rgba(123, 92, 255, 0.28), transparent 60%),
    radial-gradient(700px 400px at 10% 30%, rgba(255, 184, 79, 0.16), transparent 60%);
  border-bottom: 1px solid var(--border);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin-bottom: 24px;
}

.hero-lead {
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 36px;
  text-align: left;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 56px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.3px;
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.25s ease;
  will-change: transform;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 32px rgba(79, 124, 255, 0.42);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 44px rgba(79, 124, 255, 0.6);
}

.btn-secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  color: var(--text);
  background: var(--surface-hover);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
}

.stat {
  padding: 22px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.stat:hover {
  transform: translateY(-6px);
  background: var(--surface-hover);
  border-color: rgba(79, 124, 255, 0.45);
}

.stat .num {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 6px;
}

.stat span:last-child {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ============ Cards / Lists ============ */
.timeline {
  display: grid;
  gap: 14px;
  margin: 18px 0 8px;
}

.timeline li {
  position: relative;
  padding: 16px 20px 16px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text-muted);
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.18);
}

.timeline li:hover {
  transform: translateX(6px);
  background: var(--surface-hover);
  border-color: rgba(79, 124, 255, 0.4);
}

.timeline li strong {
  color: var(--accent);
  margin-right: 6px;
}

section ul:not(.timeline):not(.contact-info) {
  display: grid;
  gap: 10px;
  margin: 14px 0 20px;
}

section ul:not(.timeline):not(.contact-info) li {
  position: relative;
  padding-left: 26px;
  color: var(--text-muted);
  transition: color 0.25s ease, transform 0.25s ease;
}

section ul:not(.timeline):not(.contact-info) li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  transform: rotate(45deg);
}

section ul:not(.timeline):not(.contact-info) li:hover {
  color: var(--text);
  transform: translateX(3px);
}

section ol {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 16px 0 22px;
}

section ol li {
  counter-increment: step;
  position: relative;
  padding: 16px 20px 16px 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text-muted);
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

section ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255, 184, 79, 0.12);
  border: 1px solid rgba(255, 184, 79, 0.28);
}

section ol li:hover {
  transform: translateX(6px);
  background: var(--surface-hover);
  border-color: rgba(255, 184, 79, 0.4);
}

/* ============ Articles & News ============ */
article {
  position: relative;
  padding: 24px 26px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.32s ease, border-color 0.32s ease, background 0.32s ease, box-shadow 0.32s ease;
}

article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.32s ease;
}

article:hover {
  transform: translateY(-5px);
  background: var(--surface-hover);
  border-color: rgba(79, 124, 255, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

article:hover::before {
  opacity: 1;
}

article h3 {
  margin-top: 0;
  margin-bottom: 8px;
  transition: color 0.25s ease;
}

article:hover h3 {
  color: var(--accent);
}

article p {
  margin-bottom: 10px;
}

article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(79, 124, 255, 0.35);
  background: rgba(79, 124, 255, 0.1);
  transition: gap 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

article a::after {
  content: "→";
  transition: transform 0.25s ease;
}

article a:hover {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  border-color: transparent;
  transform: translateY(-1px);
}

article a:hover::after {
  transform: translateX(4px);
}

/* ============ Blockquote ============ */
blockquote {
  position: relative;
  margin: 16px 0;
  padding: 20px 24px 20px 56px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(79, 124, 255, 0.1), rgba(255, 184, 79, 0.07));
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 4px;
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--accent);
  opacity: 0.85;
}

blockquote p {
  margin: 0;
  color: var(--text);
  font-style: italic;
}

blockquote:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 184, 79, 0.4);
}

/* ============ FAQ ============ */
#faq h3 {
  position: relative;
  padding: 16px 20px 16px 52px;
  margin: 14px 0 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background 0.28s ease, color 0.28s ease;
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

#faq h3 + p {
  margin: 0 0 14px;
  padding: 16px 20px 16px 52px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-top: none;
  transition: background 0.28s ease;
}

#faq h3:hover {
  color: var(--accent);
  background: var(--surface-hover);
}

#faq h3:hover + p {
  background: rgba(255, 255, 255, 0.05);
}

/* ============ Contact ============ */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 20px 0 26px;
}

.contact-info li {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text-muted);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.contact-info li:hover {
  transform: translateY(-4px);
  background: var(--surface-hover);
  border-color: rgba(79, 124, 255, 0.45);
}

.contact-info li strong {
  color: var(--accent);
  margin-right: 4px;
}

/* ============ Sitemap & Links ============ */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

#sitemap ul li,
#links ul li {
  padding: 0 !important;
}

#sitemap ul li::before,
#links ul li::before {
  display: none;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  border-color: transparent;
  transform: translateY(-3px);
}

/* ============ Footer ============ */
footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10, 14, 39, 0.6), rgba(10, 14, 39, 0.95));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  position: relative;
}

@media (prefers-color-scheme: light) {
  footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(240, 243, 252, 0.95));
  }
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-col h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--text);
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.footer-col p {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 24px 40px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 8px;
  opacity: 0.85;
}

.footer-bottom strong {
  color: var(--text);
}

#copyright {
  font-size: 0.82rem;
  color: var(--text);
  opacity: 0.9;
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(79, 124, 255, 0.45);
  transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease;
}

#back-to-top:hover {
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 18px 44px rgba(79, 124, 255, 0.65);
}

/* ============ Scroll reveal ============ */
@supports (animation-timeline: view()) {
  section,
  article,
  .timeline li,
  .stat {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(36px) scale(0.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .header-inner {
    gap: 14px;
  }

  #main-nav a {
    padding: 7px 9px;
    font-size: 0.84rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }

  #menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 16px 20px;
    background: rgba(10, 14, 39, 0.96);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }

  @media (prefers-color-scheme: light) {
    #main-nav {
      background: rgba(255, 255, 255, 0.97);
    }
  }

  #main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  #main-nav a {
    display: block;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  #main-nav a::after {
    display: none;
  }

  .hero {
    padding: 64px 20px 64px;
  }

  .hero-lead {
    text-align: left;
  }

  section {
    padding: 52px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 20px 24px;
  }

  .footer-bottom {
    padding: 20px 20px 34px;
  }

  #back-to-top {
    right: 16px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }

  .header-inner {
    padding: 0 16px;
  }

  .logo {
    font-size: 1rem;
  }

  .logo svg {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding: 48px 16px 52px;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 8vw, 2.1rem);
    line-height: 1.3;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 40px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 14px 20px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat {
    padding: 16px 8px;
  }

  .stat .num {
    font-size: 1.4rem;
  }

  .stat span:last-child {
    font-size: 0.74rem;
  }

  section {
    padding: 44px 16px;
  }

  h2 {
    padding-left: 14px;
    font-size: 1.24rem;
  }

  h2::before {
    width: 4px;
  }

  article {
    padding: 20px 18px;
  }

  blockquote {
    padding: 18px 18px 18px 48px;
  }

  blockquote::before {
    left: 14px;
    font-size: 2.4rem;
  }

  .timeline li,
  section ol li {
    padding-left: 42px;
  }

  section ol li {
    padding-left: 58px;
  }

  #faq h3,
  #faq h3 + p {
    padding-left: 46px;
    padding-right: 16px;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  #sitemap a,
  #links a {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

/* ============ Reduced motion ============ */
@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;
  }
}

/* ============ Print ============ */
@media print {
  #site-header,
  #back-to-top,
  footer,
  .hero-actions {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  body::before {
    display: none;
  }

  section {
    padding: 16px 0;
    animation: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}