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

:root {
  --brand-dark: #0b1e33;
  --brand-gold: #f5c542;
  --brand-silver: #eef2f6;
  --brand-blue: #1e3a5f;
  --brand-light-blue: #2c5a8c;
  --text-primary: #1a2a3a;
  --text-secondary: #4a5f73;
  --bg-body: #f9fbfd;
  --bg-card: #ffffff;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body.dark-mode {
  --brand-dark: #eef2f6;
  --brand-gold: #f5c542;
  --brand-silver: #1a2a3a;
  --brand-blue: #8ab4f8;
  --brand-light-blue: #aac8f0;
  --text-primary: #eef2f6;
  --text-secondary: #b0c4d9;
  --bg-body: #0e1621;
  --bg-card: #1a2533;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
}

a {
  color: var(--brand-light-blue);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
  transition: background var(--transition);
}

body.dark-mode .navbar {
  background: rgba(26, 37, 51, 0.92);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--brand-dark);
}

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

.nav-menu {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--brand-silver);
  border-radius: 30px;
  padding: 4px 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.search-box input {
  border: none;
  background: transparent;
  padding: 6px 4px;
  font-size: 0.9rem;
  outline: none;
  color: var(--text-primary);
  width: 140px;
}

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-secondary);
}

.theme-toggle, .menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.menu-toggle {
  display: none;
}

.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

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

.hero {
  padding: 40px 0 60px;
  background: linear-gradient(145deg, var(--brand-dark) 0%, #1a2f4a 100%);
  color: #fff;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--brand-gold);
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 760px;
  margin-bottom: 24px;
}

.hero .quick-answer {
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--brand-gold);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 20px;
  font-size: 1rem;
}

.hero .quick-answer strong {
  color: var(--brand-gold);
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 30px 0;
  background: var(--brand-silver);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  min-height: 220px;
}

.carousel-slide:nth-child(1) { background: linear-gradient(135deg, #0b1e33, #2c5a8c); }
.carousel-slide:nth-child(2) { background: linear-gradient(135deg, #1e3a5f, #4a7aa8); }
.carousel-slide:nth-child(3) { background: linear-gradient(135deg, #2a2a4a, #5a4a6a); }

.carousel-slide h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.carousel-slide p {
  opacity: 0.9;
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.carousel-dots span.active {
  background: var(--brand-gold);
}

section {
  margin-bottom: 48px;
}

h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--brand-dark);
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--brand-gold);
  border-radius: 2px;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--brand-blue);
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 18px 0 8px;
  color: var(--brand-light-blue);
}

p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card h4 {
  margin-top: 0;
  color: var(--brand-dark);
}

.card p {
  font-size: 0.95rem;
}

.stats-row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  box-shadow: var(--shadow-sm);
  margin: 30px 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand-gold);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.article-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform var(--transition);
}

.article-item:hover {
  transform: translateY(-3px);
}

.article-item .meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  gap: 16px;
}

.article-item h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.article-item p {
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.read-more {
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--brand-silver);
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--brand-gold);
  transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 20px;
  background: var(--bg-body);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 16px 20px;
}

.howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.howto-step {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  counter-increment: step;
}

.howto-step::before {
  content: counter(step);
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--brand-gold);
  color: var(--brand-dark);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.howto-step h4 {
  margin-top: 12px;
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

th {
  background: var(--brand-dark);
  color: #fff;
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.contact-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.contact-item svg {
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  color: var(--brand-gold);
}

footer {
  background: var(--brand-dark);
  color: #b0c4d9;
  padding: 48px 0 24px;
  margin-top: 60px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

footer a {
  color: #b0c4d9;
}

footer a:hover {
  color: var(--brand-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-gold);
  color: var(--brand-dark);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .carousel-slide {
    padding: 24px;
  }
  .carousel-slide h3 {
    font-size: 1.3rem;
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}