/* ============================= */
/* RESET & BASE */
/* ============================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: #111;
  background: #f7f7f8;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================= */
/* VARIABLES */
/* ============================= */

:root {
  --primary: #1f3a8a;
  --primary-dark: #172554;
  --text: #111111;
  --muted: #6b7280;
  --bg: #f7f7f8;
  --card: #ffffff;
  --border: rgba(17, 17, 17, 0.08);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 20px 60px rgba(0, 0, 0, 0.06);
}

/* ============================= */
/* LAYOUT */
/* ============================= */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

/* ============================= */
/* NAVBAR */
/* ============================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(247, 247, 248, 0.85);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  min-width: 0;
}

.logo img {
  display: block;
  height: 70px;
  width: auto;
  max-width: none;
}

.footer-logo img {
  height: 44px;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  margin-left: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  position: relative;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* ============================= */
/* LANGUAGE SWITCH */
/* ============================= */

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 4px;
  border-left: 1px solid rgba(17, 17, 17, 0.08);
}

.lang-btn {
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 6px 14px rgba(31, 58, 138, 0.25);
}

/* ============================= */
/* TYPOGRAPHY HELPERS */
/* ============================= */

.eyebrow,
.section-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}

/* ============================= */
/* HERO - DARK PANEL VERSION */
/* ============================= */

.hero {
  padding: 0; /* 去掉上下间距 */
}

/* 背景层：铺满屏幕 */
.hero-bg {
  width: 100%;
  padding: 80px 0 60px;

   background:
    radial-gradient(circle at 74% 40%, rgba(31,58,138,0.28), transparent 24%),
    linear-gradient(135deg, #06101f 0%, #0a1730 42%, #050a14 100%);
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  align-items: center;
  gap: 40px;

  min-height: 600px;
  padding: 0; /* 不需要padding了 */

  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 46%, rgba(59,130,246,0.14), transparent 30%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-eyebrow {
  color: rgba(255,255,255,0.68);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 22px;
  max-width: 10ch;
}

.hero-subtext {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,0.76);
  max-width: 34ch;
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-secondary {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
}

.hero-secondary:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.26);
  color: #ffffff;
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: 40px;
  background: radial-gradient(circle, rgba(59,130,246,0.22), transparent 70%);
  filter: blur(36px);
  z-index: 0;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  border-radius: 28px;
  box-shadow: 0 32px 90px rgba(0,0,0,0.34);
  transition: transform 0.35s ease;
}

.hero-visual img:hover {
  transform: translateY(-4px) scale(1.01);
}

/* ============================= */
/* BUTTONS */
/* ============================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 20px rgba(31, 58, 138, 0.25);
}

.btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn.secondary {
  background: #fff;
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================= */
/* SECTION HEADINGS */
/* ============================= */

.section-heading {
  max-width: 820px;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section-intro {
  font-size: 17px;
  color: var(--muted);
  max-width: 760px;
}

/* ============================= */
/* TRUST CARDS */
/* ============================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.info-card {
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: all 0.25s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.icon-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(31,58,138,0.12), rgba(0,0,0,0.04));
  margin-bottom: 18px;
}

.info-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.info-card p {
  color: var(--muted);
  font-size: 15px;
}

/* ============================= */
/* PRODUCT CARDS */
/* ============================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.product-card {
  background: var(--card);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: all 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.product-image {
  height: 220px;
  background: linear-gradient(
    135deg,
    rgba(31,58,138,0.08),
    rgba(0,0,0,0.04)
  );
  border-bottom: 1px solid var(--border);
}

.product-content {
  padding: 24px;
}

.product-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  background: rgba(31,58,138,0.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-weight: 600;
}

.product-content h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.product-content p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
}

.text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.text-link:hover {
  color: var(--primary-dark);
}

/* ============================= */
/* CERTIFICATION */
/* ============================= */

.cert-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 52px;
  box-shadow: var(--shadow-medium);
}

.cert-text h2 {
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.cert-text p {
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
}

.cert-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.cert-badge {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255,255,255,0.95), transparent 24%),
    linear-gradient(145deg, #ededeb, #d7d7d3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #222;
  line-height: 1.25;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 18px 44px rgba(0, 0, 0, 0.08);
}

/* ============================= */
/* CTA */
/* ============================= */

.cta {
  margin-top: 24px;
}

.cta-box {
  background: #fff;
  border-radius: 32px;
  padding: 64px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-medium);
}

.cta-box h2 {
  font-size: 36px;
  line-height: 1.12;
  margin-bottom: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 24px;
}

/* ============================= */
/* FOOTER */
/* ============================= */

.footer {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.footer-links a:hover {
  color: #000;
}

/* ============================= */
/* LEGAL PAGES */
/* ============================= */

.legal-main {
  padding: 80px 0;
}

.legal-wrapper {
  max-width: 920px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  padding: 48px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-medium);
}

.legal-wrapper h1 {
  font-size: 48px;
  margin-bottom: 24px;
}

.legal-section + .legal-section {
  margin-top: 32px;
}

.legal-section h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.legal-section p {
  color: var(--muted);
  font-size: 15px;
}

.legal-topbar {
  margin-bottom: 20px;
}

.back-link {
  font-size: 14px;
  color: var(--muted);
}

.back-link:hover {
  color: #000;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 900px) {
  .hero-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding: 32px 28px;
  }

  .hero-title {
    max-width: 100%;
    font-size: 46px;
  }

  .hero-subtext {
    max-width: 100%;
  }

  .hero-visual {
    justify-content: center;
  }

  .hero-visual img {
    max-width: 100%;
  }

  .card-grid,
  .product-grid,
  .cert-box {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 40px 28px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    height: auto;
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .nav-right {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .language-switcher {
    border-left: none;
    padding-left: 0;
  }

  .hero {
    padding: 40px 0 44px;
  }

  .hero-panel {
    padding: 26px 20px;
    border-radius: 24px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-subtext {
    font-size: 16px;
    line-height: 1.65;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading h2,
  .cert-text h2,
  .cta-box h2 {
    font-size: 28px;
  }

  .hero-visual img {
    border-radius: 20px;
  }

  .info-card,
  .product-content,
  .cert-box,
  .cta-box,
  .legal-wrapper {
    padding: 24px;
  }

  .cert-badge {
    width: 180px;
    height: 180px;
    font-size: 18px;
  }

  .legal-wrapper h1 {
    font-size: 34px;
  }
}