:root {
  --bg-body: #f7f8fc;
  --bg-card: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.72);
  --bg-footer: #141b2b;
  --bg-hero: #1a1a2e;
  --bg-tag: #eef2ff;
  --bg-input: #f1f5f9;
  --bg-table-head: #e8edf5;
  --bg-faq-open: #f0f4ff;
  --bg-glass: rgba(255, 255, 255, 0.55);
  --bg-glass-border: rgba(255, 255, 255, 0.6);

  --text-primary: #17202A;
  --text-secondary: #334155;
  --text-muted: #4b5563;
  --text-heading: #0f172a;
  --text-link: #1d4ed8;
  --text-link-hover: #1e3a8a;
  --text-btn: #ffffff;
  --text-nav: #1f2937;
  --text-nav-hover: #1d4ed8;
  --text-footer: #cbd5e1;
  --text-footer-heading: #f8fafc;
  --text-tag: #1e3a8a;
  --text-placeholder: #6b7280;
  --text-error: #b91c1c;
  --text-success: #166534;

  --border-color: #d1d9e6;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 0 3px rgba(29, 78, 216, 0.15);
  --brand-primary: #1d4ed8;
  --brand-secondary: #7c3aed;
  --brand-accent: #0ea5e9;
  --hero-overlay: rgba(0, 0, 0, 0.55);
  --scroll-bar: #94a3b8;

  --gradient-brand: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%);
  --gradient-accent: linear-gradient(135deg, #0ea5e9 0%, #1d4ed8 100%);
  --gradient-soft: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

body.dark-mode {
  --bg-body: #0b1120;
  --bg-card: #1e293b;
  --bg-nav: rgba(15, 23, 42, 0.78);
  --bg-footer: #020617;
  --bg-hero: #0f172a;
  --bg-tag: #1e293b;
  --bg-input: #1e293b;
  --bg-table-head: #1e293b;
  --bg-faq-open: #1e293b;
  --bg-glass: rgba(30, 41, 59, 0.55);
  --bg-glass-border: rgba(148, 163, 184, 0.22);

  --text-primary: #E5E7EB;
  --text-secondary: #CBD5E1;
  --text-muted: #94a3b8;
  --text-heading: #FFFFFF;
  --text-link: #60a5fa;
  --text-link-hover: #93c5fd;
  --text-btn: #0b1120;
  --text-nav: #E2E8F0;
  --text-nav-hover: #60a5fa;
  --text-footer: #94a3b8;
  --text-footer-heading: #F1F5F9;
  --text-tag: #bfdbfe;
  --text-placeholder: #94a3b8;
  --text-error: #fca5a5;
  --text-success: #86efac;

  --border-color: #334155;
  --border-light: #1e293b;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  --brand-primary: #3b82f6;
  --brand-secondary: #a78bfa;
  --brand-accent: #38bdf8;
  --hero-overlay: rgba(0, 0, 0, 0.65);
  --scroll-bar: #475569;

  --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #a78bfa 100%);
  --gradient-accent: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
  --gradient-soft: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, a, span, li, td, th, label, input, textarea, button, summary, footer, nav, div {
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: var(--scroll-bar);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

::selection {
  background: var(--brand-primary);
  color: #ffffff;
}

h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.35;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.4;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--brand-primary);
  display: inline-block;
}
h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 1.5rem 0 0.75rem;
}
h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 1.2rem 0 0.5rem;
}
p {
  color: var(--text-primary);
  margin-bottom: 1rem;
}
a {
  color: var(--text-link);
  text-decoration: none;
  font-weight: 500;
}
a:hover {
  color: var(--text-link-hover);
  text-decoration: underline;
}
a:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

ul, ol {
  color: var(--text-primary);
}
li {
  margin-bottom: 6px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-nav);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.25s ease;
}
.nav-logo:hover {
  text-decoration: none;
  transform: scale(1.03);
}
.nav-logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links li {
  margin: 0;
}
.nav-links a {
  color: var(--text-nav);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  position: relative;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width 0.25s ease;
  border-radius: 2px;
}
.nav-links a:hover {
  color: var(--text-nav-hover);
  text-decoration: none;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-glow);
}
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  width: 150px;
  font-family: inherit;
}
.search-box input::placeholder {
  color: var(--text-placeholder);
}
.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color 0.2s, transform 0.2s;
}
.search-box button:hover {
  color: var(--brand-primary);
  transform: scale(1.1);
}
.theme-toggle {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: background 0.2s, border-color 0.2s, transform 0.3s;
}
.theme-toggle:hover {
  border-color: var(--brand-primary);
  background: var(--bg-tag);
  transform: rotate(20deg);
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.mobile-menu-btn:hover {
  border-color: var(--brand-primary);
  background: var(--bg-tag);
}

.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-link);
  font-weight: 400;
}
.breadcrumb span {
  margin: 0 6px;
  color: var(--text-muted);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 48px 0;
}
.section-header {
  margin-bottom: 28px;
}

.hero {
  position: relative;
  background: var(--bg-hero);
  color: #ffffff;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  padding: 60px 20px;
  will-change: opacity;
}
.hero-slide.active {
  opacity: 1;
  position: relative;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.25), transparent 55%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  animation: heroFade 0.9s ease both;
}
@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-content h1 {
  color: #ffffff;
  font-size: 2.4rem;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  max-width: 800px;
}
.hero-content p {
  color: #f1f5f9;
  font-size: 1.1rem;
  max-width: 700px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
}
.hero-badge {
  display: inline-block;
  background: var(--gradient-brand);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, width 0.3s;
  padding: 0;
}
.hero-dot:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: scale(1.2);
}
.hero-dot.active {
  background: #ffffff;
  width: 26px;
  border-radius: 6px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}
.card:hover::before {
  transform: scaleX(1);
}
.card h3 {
  margin-top: 0;
  color: var(--text-heading);
}
.card p {
  color: var(--text-primary);
  font-size: 0.95rem;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.card:hover .card-icon {
  transform: scale(1.1) rotate(-5deg);
}

.tag {
  display: inline-block;
  background: var(--bg-tag);
  color: var(--text-tag);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 2px 4px 2px 0;
  border: 1px solid var(--border-light);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.tag:hover {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

.article-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  overflow: hidden;
}
.article-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}
.article-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(6px);
  border-color: var(--brand-primary);
}
.article-item:hover::after {
  transform: scaleY(1);
}
.article-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.article-item h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.article-item h3 a {
  color: var(--text-heading);
  transition: color 0.2s;
}
.article-item h3 a:hover {
  color: var(--text-link);
  text-decoration: none;
}
.article-summary {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-link);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.25s ease, color 0.2s;
}
.read-more:hover {
  gap: 10px;
  text-decoration: none;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.faq-item:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}
.faq-item.open {
  background: var(--bg-faq-open);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  line-height: 1.5;
  transition: color 0.2s;
}
.faq-question:hover {
  color: var(--text-link);
}
.faq-question .arrow {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
  color: var(--brand-primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.3s ease, opacity 0.3s ease;
  padding: 0 22px;
  opacity: 0;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 22px 20px;
  opacity: 1;
}
.faq-answer p {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.8;
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}
th {
  background: var(--bg-table-head);
  color: var(--text-heading);
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}
td {
  padding: 13px 18px;
  color: var(--text-primary);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}
tbody tr {
  transition: background 0.2s;
}
tbody tr:hover td {
  background: var(--bg-tag);
}
tr:last-child td {
  border-bottom: none;
}

.btn {
  display: inline-block;
  padding: 10px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gradient-brand);
  color: var(--text-btn);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
}
.btn-primary:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(29, 78, 216, 0.4);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
}
.btn-outline:hover {
  background: var(--brand-primary);
  color: var(--text-btn);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(29, 78, 216, 0.3);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.stat-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.stat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.stat-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}
.stat-item:hover::before {
  opacity: 0.6;
}
.stat-number {
  position: relative;
  z-index: 1;
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.stat-label {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, box-shadow 0.3s;
  z-index: 999;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 14px 34px rgba(29, 78, 216, 0.45);
}
.back-to-top:active {
  transform: translateY(0) scale(1);
}

footer {
  background: var(--bg-footer);
  color: var(--text-footer);
  padding: 48px 0 24px;
  margin-top: 40px;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}
footer h4 {
  color: var(--text-footer-heading);
  font-size: 1.05rem;
  margin-bottom: 16px;
  font-weight: 700;
}
footer a {
  color: var(--text-footer);
  font-weight: 400;
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}
footer a:hover {
  color: #ffffff;
  text-decoration: underline;
  padding-left: 4px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-footer);
}
.footer-bottom p {
  color: var(--text-footer);
  margin: 0 0 6px;
}
.footer-bottom a {
  color: var(--text-footer);
}
.footer-bottom a:hover {
  color: #ffffff;
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  resize: vertical;
}
.form-control::placeholder {
  color: var(--text-placeholder);
}
.form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card);
}

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-heading { color: var(--text-heading); }

main p, main li, main td, main dd, main dt {
  color: var(--text-primary);
}
.card p, .card li {
  color: var(--text-primary);
}
.faq-answer p {
  color: var(--text-primary);
}
footer, footer p, footer li, footer span {
  color: var(--text-footer);
}
footer h4 {
  color: var(--text-footer-heading);
}

body.dark-mode a {
  color: var(--text-link);
}
body.dark-mode a:hover {
  color: var(--text-link-hover);
}

.btn-primary {
  color: var(--text-btn);
}
.btn-primary:hover {
  color: #ffffff;
}
body.dark-mode .btn-primary {
  color: #0b1120;
}
body.dark-mode .btn-primary:hover {
  color: #0b1120;
}
body.dark-mode .btn-outline {
  color: var(--brand-primary);
}
body.dark-mode .btn-outline:hover {
  color: #0b1120;
}

input, textarea, select {
  color: var(--text-primary);
}
input::placeholder, textarea::placeholder {
  color: var(--text-placeholder);
}

.tag {
  color: var(--text-tag);
}
.tag:hover {
  color: #ffffff;
}

.nav-links a {
  color: var(--text-nav);
}
.nav-links a:hover {
  color: var(--text-nav-hover);
}

.high-contrast {
  color: var(--text-heading);
  font-weight: 700;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-light);
    animation: slideDown 0.3s ease;
  }
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }
  .nav-links a::after {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .search-box {
    display: none;
  }
  .hero-content h1 {
    font-size: 1.7rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  h1 {
    font-size: 1.75rem;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
  .section {
    padding: 36px 0;
  }
  .grid-3, .grid-2 {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
  .hero-content h1 {
    font-size: 1.4rem;
  }
  .hero {
    min-height: 320px;
  }
  .hero-slide {
    padding: 40px 14px;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .card {
    padding: 18px;
  }
  .article-item {
    padding: 18px;
  }
  .faq-question {
    padding: 14px 16px;
    font-size: 0.95rem;
  }
  .faq-answer {
    padding: 0 16px;
  }
  .faq-item.open .faq-answer {
    padding: 0 16px 16px;
  }
  th, td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  .btn {
    padding: 9px 20px;
    font-size: 0.9rem;
  }
}

@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 {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .navbar, .back-to-top, .hero-dots, .theme-toggle, .mobile-menu-btn {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
}