:root,
html[data-theme='light'] {
  --bg: #f6f9ff;
  --bg-soft: #eef4ff;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --text: #122033;
  --muted: #5d6b80;
  --line: rgba(17, 33, 58, 0.1);
  --primary: #2f6fff;
  --primary-2: #117dff;
  --accent: #6f59ff;
  --shadow: 0 24px 60px rgba(24, 56, 112, 0.12);
  --hero-grad-1: rgba(47, 111, 255, 0.16);
  --hero-grad-2: rgba(111, 89, 255, 0.12);
  --grid-line: rgba(17, 33, 58, 0.06);
  --tip-bg: rgba(17, 125, 255, 0.08);
  --tip-line: rgba(17, 125, 255, 0.16);
  --tip-text: #145bb8;
}

html[data-theme='dark'] {
  --bg: #07111f;
  --bg-soft: #0a1426;
  --panel: rgba(12, 24, 43, 0.72);
  --panel-strong: rgba(14, 28, 52, 0.92);
  --text: #e8eefc;
  --muted: #a9b8d3;
  --line: rgba(255, 255, 255, 0.09);
  --primary: #62a8ff;
  --primary-2: #85f0ff;
  --accent: #7c5cff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --hero-grad-1: rgba(79, 124, 255, 0.28);
  --hero-grad-2: rgba(124, 92, 255, 0.22);
  --grid-line: rgba(255, 255, 255, 0.03);
  --tip-bg: rgba(133,240,255,0.08);
  --tip-line: rgba(133,240,255,0.16);
  --tip-text: #d8faff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top left, var(--hero-grad-1), transparent 30%),
              radial-gradient(circle at 80% 20%, var(--hero-grad-2), transparent 22%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 45%, var(--bg) 100%);
  color: var(--text);
}

a { color: var(--primary); text-decoration: none; }
a:hover { opacity: .9; }

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, rgba(255,255,255,0.55), transparent 80%);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 35%, transparent);
}
.brand-cn { font-weight: 700; }
.brand-en { color: var(--muted); font-size: 12px; margin-top: 3px; }

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-links { display: flex; gap: 24px; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.nav-links a:hover { color: var(--text); }
.theme-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .72;
  transition: opacity .2s ease, transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease;
}
.theme-toggle:hover {
  opacity: 1;
  color: var(--text);
  transform: translateY(-1px);
}
.theme-toggle-icon {
  font-size: 14px;
  line-height: 1;
}

.hero { padding: 76px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: stretch;
}
.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--primary-2) 18%, transparent);
  border-radius: 999px;
  color: var(--primary-2);
  background: color-mix(in srgb, var(--primary-2) 8%, transparent);
  font-size: 13px;
  margin-bottom: 18px;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  white-space: pre-line;
}
.hero-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  max-width: 720px;
  margin: 22px 0 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 60%, var(--accent)) 50%, var(--accent));
  box-shadow: 0 16px 40px color-mix(in srgb, var(--primary) 25%, transparent);
}
.btn-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}
.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-points li,
.stat-card,
.card,
.adv-item,
.scope-box,
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.hero-points li {
  padding: 16px;
  border-radius: 18px;
  color: var(--text);
  font-size: 14px;
}
.hero-card {
  display: grid;
  gap: 18px;
}
.stat-card {
  padding: 24px;
  border-radius: 24px;
}
.stat-card span {
  display: block;
  color: var(--primary-2);
  font-size: 13px;
  margin-bottom: 12px;
}
.stat-card strong {
  display: block;
  font-size: 30px;
  margin-bottom: 10px;
}
.stat-card p,
.card p,
.adv-item p,
.section-text p,
.scope-box p,
.contact-card li,
.contact-card p { color: var(--muted); line-height: 1.8; }
.stat-card.accent {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, transparent), color-mix(in srgb, var(--accent) 22%, transparent));
}

.section { padding: 52px 0; }
.soft { background: color-mix(in srgb, var(--bg-soft) 92%, transparent); }
.section-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.section-tag {
  color: var(--primary-2);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 46px);
  margin: 0;
  line-height: 1.18;
}
.section-head { margin-bottom: 28px; }
.section-head.center { text-align: center; }
.section-head p { color: var(--muted); }
.cards.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  padding: 24px;
  border-radius: 22px;
}
.card h3, .adv-item h3, .contact-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.adv-item {
  padding: 26px;
  border-radius: 22px;
}
.adv-item span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary-2);
  margin-bottom: 14px;
  font-weight: 700;
}
.compliance {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
}
.scope-box,
.contact-card {
  padding: 28px;
  border-radius: 24px;
}
.license-note {
  color: var(--text) !important;
  font-weight: 600;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.contact-card ul {
  padding-left: 18px;
  margin: 0 0 16px;
}
.contact-tip {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--tip-bg);
  color: var(--tip-text);
  border: 1px solid var(--tip-line);
}
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-inner p, .footer-copy { color: var(--muted); margin: 6px 0 0; }

@media (max-width: 960px) {
  .hero-grid,
  .section-grid,
  .compliance,
  .contact-grid,
  .cards.three,
  .adv-grid {
    grid-template-columns: 1fr;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .nav,
  .nav-right {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1180px); }
  .hero { padding-top: 48px; }
  .hero-copy p { font-size: 15px; }
  .btn { width: 100%; }
  .theme-toggle { width: 34px; }
}
