:root {
  --blue-50: #f5f8ff;
  --blue-100: #e1ebff;
  --blue-500: #1a73e8;
  --blue-600: #0b5ed7;
  --blue-700: #0a4fb3;
  --indigo: #102a54;
  --gray-50: #f8fafc;
  --gray-100: #eef2f6;
  --gray-300: #d3d9e5;
  --gray-600: #5b6270;
  --gray-800: #1f2430;
  --shadow-soft: 0 12px 36px rgba(16, 42, 84, 0.12);
  --shadow-card: 0 10px 30px rgba(0, 31, 80, 0.12);
  --radius: 16px;
  --font-sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #4b5563;
  --border: #e5e7eb;
  --accent: var(--blue-600);
  --accent-strong: var(--blue-700);
}

body.dark {
  --bg: #0c1526;
  --surface: #0f1b33;
  --text: #e8edf5;
  --muted: #c2c9d6;
  --border: #1f2a44;
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--muted);
  margin: 0 0 0.75rem;
}

h1, h2, h3, h4 {
  color: var(--text);
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
}

main {
  display: block;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

body.dark header {
  background: rgba(12, 21, 38, 0.9);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--text);
  font-size: 20px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-600), var(--indigo));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 20px rgba(12, 94, 215, 0.32);
}

nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease, background 0.2s ease;
}

nav a.active,
nav a:hover {
  color: var(--accent);
  background: rgba(26, 115, 232, 0.08);
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 20px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
  margin-left: 2px;
}

.lang-switch-btn {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.72;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.lang-switch-btn:hover {
  color: var(--text);
  opacity: 0.92;
}

.lang-switch-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.lang-switch-btn.is-active {
  color: var(--text);
  font-weight: 600;
  opacity: 0.98;
  cursor: default;
}

.lang-switch-sep {
  color: var(--muted);
  opacity: 0.42;
  margin: 0 10px;
  user-select: none;
}

body.dark .lang-switch-btn {
  color: rgba(255, 255, 255, 0.96);
}

body.dark .lang-switch-sep {
  color: rgba(255, 255, 255, 0.75);
  opacity: 0.45;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 12px 30px rgba(12, 94, 215, 0.28);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-strong);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle, .nav-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover,
.nav-toggle:hover {
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 120% at 10% 20%, rgba(26, 115, 232, 0.12), transparent), linear-gradient(120deg, #f5f8ff 0%, #e4edff 50%, #f8fbff 100%);
  border-bottom: 1px solid var(--border);
}

body.dark .hero {
  background: radial-gradient(120% 120% at 20% 20%, rgba(26, 115, 232, 0.2), transparent), linear-gradient(120deg, #0d1b34 0%, #0b1428 100%);
}

.hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 115, 232, 0.1);
  color: var(--accent);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.highlight-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.highlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.highlight strong {
  display: block;
  color: var(--accent);
  font-size: 22px;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.12), rgba(16, 42, 84, 0.06));
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.55s ease, transform 0.9s ease;
  pointer-events: none;
}

.hero-carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.hero-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(12, 21, 38, 0.24);
  backdrop-filter: blur(10px);
}

.hero-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  transition: width 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
  opacity: 0.9;
}

.hero-carousel-dot.is-active {
  width: 22px;
  background: rgba(255, 255, 255, 0.98);
}

body.dark .hero-carousel {
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.2), rgba(8, 15, 30, 0.75));
}

body.dark .hero-carousel-dots {
  background: rgba(255, 255, 255, 0.1);
}

.blur {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.28), transparent 45%);
  filter: blur(60px);
  z-index: -1;
}

.section {
  padding: 88px 20px;
}

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

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.section-head p {
  max-width: 720px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 115, 232, 0.25);
  box-shadow: var(--shadow-card);
}

.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

body.dark .pill {
  background: rgba(26, 115, 232, 0.18);
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.partner {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.01em;
}

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

.stat {
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.12), rgba(16, 42, 84, 0.08));
  color: var(--text);
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(26, 115, 232, 0.2);
}

.stat strong {
  display: block;
  font-size: 28px;
  color: var(--accent);
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-meta {
  color: var(--muted);
  font-size: 14px;
}

.banner-mini {
  background:
    radial-gradient(120% 140% at 8% 18%, rgba(26, 115, 232, 0.14), transparent 55%),
    linear-gradient(120deg, #f7fbff 0%, #eaf2ff 52%, #f5f9ff 100%);
  color: var(--text);
  border: 1px solid rgba(26, 115, 232, 0.14);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 16px 38px rgba(26, 115, 232, 0.16);
}

body.dark .banner-mini {
  background: linear-gradient(120deg, rgba(16, 42, 84, 0.92), rgba(11, 94, 215, 0.92));
  color: #fff;
  border-color: rgba(110, 164, 255, 0.18);
  box-shadow: 0 16px 44px rgba(11, 94, 215, 0.35);
}

.banner-mini h3 {
  color: inherit;
  margin: 0;
}

.banner-mini-links {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.banner-mini-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0.95;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.banner-mini-link:hover {
  color: var(--accent);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.banner-mini-link:focus-visible {
  outline: 2px solid rgba(26, 115, 232, 0.7);
  outline-offset: 4px;
  border-radius: 4px;
}

body.dark .banner-mini-link {
  color: rgba(255, 255, 255, 0.95);
}

body.dark .banner-mini-link:hover {
  color: #fff;
}

body.dark .banner-mini-link:focus-visible {
  outline-color: rgba(255, 255, 255, 0.85);
}

.banner-mini .btn-secondary {
  color: var(--text);
  border: none;
  background: transparent;
}

.banner-mini .btn-secondary:hover {
  border: none;
  background: transparent;
  color: var(--accent);
}

body.dark .banner-mini .btn-secondary {
  color: #fff;
  border: none;
  background: transparent;
}

body.dark .banner-mini .btn-secondary:hover {
  border: none;
  background: transparent;
  color: #fff;
}

footer {
  background: #0b1428;
  color: #d7e3ff;
  padding: 48px 20px 32px;
  margin-top: 40px;
}

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

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

footer h4 {
  color: #fff;
  margin-bottom: 12px;
}

footer a {
  color: #d7e3ff;
}

.footer-bottom {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  font-size: 14px;
}

.breadcrumb {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--muted);
}

.timeline {
  border-left: 2px solid var(--border);
  padding-left: 20px;
  display: grid;
  gap: 18px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  left: -27px;
  top: 4px;
}

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

.team-card img {
  border-radius: 12px;
  margin-bottom: 12px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

form {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 700;
}

input, textarea, select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-card {
  border: 1px solid rgba(26, 115, 232, 0.2);
  background: linear-gradient(160deg, rgba(26, 115, 232, 0.14), rgba(16, 42, 84, 0.08));
  color: var(--text);
  padding: 20px;
  border-radius: var(--radius);
}

.article {
  max-width: 860px;
  margin: 0 auto;
}

.article header {
  position: relative;
  background: none;
  border: none;
  backdrop-filter: none;
}

.article h1 {
  margin-top: 16px;
}

.article-meta {
  color: var(--muted);
  display: flex;
  gap: 12px;
  font-size: 14px;
  flex-wrap: wrap;
}

.article main {
  padding-top: 10px;
}

.article p {
  font-size: 17px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: var(--blue-50);
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
}

body.dark .tag {
  background: rgba(26, 115, 232, 0.18);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.table th, .table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.chip {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
}

.quote {
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--muted);
  font-style: italic;
}

.cta-section {
  background: linear-gradient(115deg, rgba(16, 42, 84, 0.92), rgba(11, 94, 215, 0.95));
  color: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 18px 50px rgba(11, 94, 215, 0.35);
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: center;
}

.cta-section h2, .cta-section p {
  color: #fff;
}

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    padding: 90px 20px 60px;
  }

  .section {
    padding: 64px 16px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout, .cta-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  nav ul {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    display: none;
    z-index: 998;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  }

  nav ul.open {
    display: flex;
  }

  .actions .btn {
    display: none;
  }

  .actions {
    margin-left: 0;
  }

  .highlight-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 540px) {
  .badge {
    font-size: 13px;
  }

  .btn, .btn-secondary, .theme-toggle {
    width: 100%;
    justify-content: center;
  }

  .lang-switch-btn {
    font-size: 16px;
  }

  .lang-switch-sep {
    margin: 0 8px;
  }

  .hero-carousel-dots {
    bottom: 10px;
    gap: 6px;
    padding: 5px 9px;
  }

  .hero-carousel-dot {
    width: 6px;
    height: 6px;
  }

  .hero-carousel-dot.is-active {
    width: 18px;
  }

  .highlight-cards {
    grid-template-columns: 1fr;
  }
}
