:root {
  --primary: #2b6cb0;
  --primary-dark: #1e4e8c;
  --primary-light: #4a90d9;
  --accent: #6b9bd2;
  --bg: #f7fafc;
  --bg-alt: #edf2f7;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --text: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border: rgba(43, 108, 176, 0.15);
  --shadow-sm: 0 2px 8px rgba(43, 108, 176, 0.08);
  --shadow-md: 0 8px 24px rgba(43, 108, 176, 0.12);
  --shadow-lg: 0 16px 48px rgba(43, 108, 176, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 72px;
}

[data-theme="dark"] {
  --primary: #4a90d9;
  --primary-dark: #2b6cb0;
  --primary-light: #6ba3e0;
  --accent: #7fb3e0;
  --bg: #0d1117;
  --bg-alt: #161b22;
  --surface: #1c2333;
  --surface-glass: rgba(28, 35, 51, 0.78);
  --text: #e6edf3;
  --text-secondary: #a8b8cc;
  --text-muted: #7d8ea3;
  --border: rgba(74, 144, 217, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
}

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

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

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-light);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  transition: all var(--transition);
}

input {
  font-family: inherit;
  font-size: inherit;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Header ========== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

#site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
}

.brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand a:hover {
  color: var(--primary);
}

.brand-logo {
  flex-shrink: 0;
  border-radius: 50%;
  transition: transform var(--transition);
}

.brand a:hover .brand-logo {
  transform: rotate(-10deg) scale(1.05);
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav ul {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: all var(--transition);
}

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

.main-nav a:hover {
  color: var(--primary);
  background: rgba(43, 108, 176, 0.06);
}

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

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-search {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  transition: all var(--transition);
}

.site-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

.site-search input {
  width: 150px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 0.85rem;
}

.site-search input::placeholder {
  color: var(--text-muted);
}

.site-search button {
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 0 999px 999px 0;
}

.site-search button:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

#theme-toggle,
#menu-toggle {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
}

#theme-toggle:hover,
#menu-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(43, 108, 176, 0.08);
}

#menu-toggle {
  display: none;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--text-muted);
  font-size: 1.1em;
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb [aria-current="page"] {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f0fb 0%, #dbe8f8 30%, #eaf2fc 60%, #f0f6fd 100%);
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #131a2b 0%, #16203a 30%, #131c30 60%, #0f1626 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(43, 108, 176, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatBlob 12s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(107, 155, 210, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatBlob 15s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.9;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 6px 20px rgba(43, 108, 176, 0.35);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(43, 108, 176, 0.45);
}

.btn-secondary {
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  color: #fff;
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(43, 108, 176, 0.3);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual svg {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: heroFloat 6s ease-in-out infinite;
  transition: transform var(--transition);
}

.hero-visual svg:hover {
  transform: scale(1.03);
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ========== Stats ========== */
.stats {
  padding: 0 0 20px;
  margin-top: -50px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--surface-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  box-shadow: var(--shadow-lg);
}

.stat-item {
  text-align: center;
  position: relative;
  transition: transform var(--transition);
}

.stat-item:hover {
  transform: translateY(-4px);
}

.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: var(--border);
}

.stat-number {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========== Sections ========== */
.section {
  padding: 80px 0;
  position: relative;
}

.section.alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 28px;
  line-height: 1.4;
  position: relative;
  padding-bottom: 16px;
  color: var(--text);
}

.section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--primary);
  line-height: 1.5;
}

.section p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.9;
  font-size: 0.98rem;
}

.section p:last-child {
  margin-bottom: 0;
}

/* ========== News List ========== */
.news-list {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.news-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.news-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

.news-list li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(43, 108, 176, 0.3);
}

.news-list li:hover::before {
  transform: scaleY(1);
}

.news-list h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--text);
}

.news-list h3 a {
  color: var(--text);
  transition: color var(--transition);
}

.news-list h3 a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.news-list time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
  padding: 2px 10px;
  background: rgba(43, 108, 176, 0.08);
  border-radius: 999px;
}

.news-list p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ========== Article Cards ========== */
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.article-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, rgba(43, 108, 176, 0.07), transparent 70%);
  transition: opacity var(--transition);
  opacity: 0;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(43, 108, 176, 0.3);
}

.article-card:hover::after {
  opacity: 1;
}

.article-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.5;
}

.article-meta {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 14px !important;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-meta time {
  color: var(--primary);
  font-weight: 600;
}

.article-card p {
  font-size: 0.94rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 0;
  position: relative;
}

.read-more::after {
  content: "→";
  transition: transform var(--transition);
}

.read-more:hover {
  color: var(--primary-light);
}

.read-more:hover::after {
  transform: translateX(6px);
}

/* ========== FAQ ========== */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}

.faq-item:hover {
  border-color: rgba(43, 108, 176, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.faq-item h3::before {
  content: "Q";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 1px;
}

.faq-item p {
  margin: 0;
  padding-left: 36px;
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

/* ========== Sitemap & Footer Links ========== */
.sitemap-list,
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.sitemap-list a,
.friend-links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.sitemap-list a:hover,
.friend-links a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(43, 108, 176, 0.3);
}

/* ========== Footer ========== */
#site-footer {
  background: linear-gradient(160deg, #1a2740 0%, #14203a 50%, #0f1828 100%);
  color: #cbd5e0;
  padding: 64px 0 32px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] #site-footer {
  background: linear-gradient(160deg, #0a0f18 0%, #0d1422 50%, #080c14 100%);
}

#site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #6ba3e0, #a8c8e8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-slogan {
  font-size: 0.92rem;
  color: #7fb3e0;
  margin-bottom: 14px;
  font-weight: 500;
}

.footer-desc {
  font-size: 0.88rem;
  color: #8fa3b8;
  line-height: 1.85;
  max-width: 420px;
}

.footer-links h3,
.footer-legal h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after,
.footer-legal h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary-light);
  border-radius: 2px;
}

.footer-links ul,
.footer-legal ul {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-legal a {
  font-size: 0.88rem;
  color: #8fa3b8;
  transition: all var(--transition);
  display: inline-block;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: #7fb3e0;
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 28px;
  display: grid;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #6b7d92;
  line-height: 1.75;
}

.footer-update {
  color: #5a6b80 !important;
  font-size: 0.76rem !important;
  margin-top: 6px;
}

/* ========== Back to Top ========== */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(43, 108, 176, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all var(--transition);
  line-height: 1.2;
  text-align: center;
  padding: 4px;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 32px rgba(43, 108, 176, 0.55);
}

/* ========== Scroll Animations ========== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.article-card,
.faq-item,
.news-list li {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow var(--transition), border-color var(--transition);
}

.article-card.revealed,
.faq-item.revealed,
.news-list li.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 1080px) {
  .main-nav ul {
    gap: 0;
  }

  .main-nav a {
    padding: 8px 10px;
    font-size: 0.86rem;
  }

  .site-search input {
    width: 110px;
  }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-text h1 {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual svg {
    max-width: 320px;
  }

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

  .stat-item + .stat-item::before {
    display: none;
  }

  .stat-item:nth-child(odd)::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--border);
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 64px;
  }

  #menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--surface-glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .main-nav.open {
    max-height: 80vh;
    overflow-y: auto;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 12px 16px;
    gap: 2px;
  }

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

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

  .site-search {
    display: none;
  }

  .header-tools {
    gap: 8px;
  }

  #theme-toggle,
  #menu-toggle {
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  .section {
    padding: 56px 0;
  }

  .section h2 {
    margin-bottom: 22px;
  }

  .section h3 {
    margin-top: 26px;
  }

  .article-card {
    padding: 22px 20px;
  }

  .faq-item {
    padding: 20px 20px;
  }

  .faq-item p {
    padding-left: 0;
    margin-top: 8px;
  }

  .news-list li {
    padding: 20px 22px;
  }

  .hero {
    padding: 56px 0 80px;
  }

  .stats {
    margin-top: -40px;
  }

  .stats-grid {
    padding: 28px 16px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  body {
    font-size: 15px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding: 44px 0 70px;
  }

  .hero-text h1 {
    font-size: 1.5rem;
    margin-bottom: 18px;
  }

  .hero-lead {
    font-size: 0.96rem;
  }

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

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
    padding: 13px 24px;
  }

  .hero-visual svg {
    max-width: 260px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 12px;
    padding: 24px 12px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.78rem;
  }

  .section {
    padding: 44px 0;
  }

  .section h2 {
    font-size: 1.3rem;
    padding-bottom: 12px;
  }

  .section h2::after {
    width: 48px;
    height: 3px;
  }

  .section h3 {
    font-size: 1.05rem;
  }

  .section p {
    font-size: 0.92rem;
  }

  .article-card h3 {
    font-size: 1.02rem;
  }

  .article-card {
    padding: 18px 16px;
    border-radius: var(--radius-sm);
  }

  .faq-item {
    padding: 18px 16px;
    border-radius: var(--radius-sm);
  }

  .faq-item h3 {
    font-size: 0.98rem;
  }

  .faq-item h3::before {
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
    border-radius: 6px;
  }

  .news-list li {
    padding: 18px 16px;
    border-radius: var(--radius-sm);
  }

  .news-list h3 {
    font-size: 0.98rem;
  }

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

  #site-footer {
    padding: 44px 0 24px;
  }

  .footer-bottom p {
    font-size: 0.76rem;
  }

  #back-to-top {
    width: 46px;
    height: 46px;
    bottom: 20px;
    right: 20px;
    font-size: 0.66rem;
  }
}

@media (max-width: 380px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item:nth-child(odd)::after {
    display: none;
  }

  .brand-name {
    font-size: 1rem;
  }
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .article-card,
  .faq-item,
  .news-list li {
    opacity: 1;
    transform: none;
  }
}

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

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

  .section {
    padding: 20px 0;
  }

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

/* ========== Focus Visible ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== Selection ========== */
::selection {
  background: rgba(43, 108, 176, 0.25);
  color: var(--text);
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 999px;
  border: 2px solid var(--bg-alt);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}