:root {
  --primary: #0a4d8c;
  --primary-light: #1a6bb5;
  --accent: #00a8a8;
  --accent-glow: rgba(0, 168, 168, 0.25);
  --dark: #0d1b2a;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(10, 77, 140, 0.08);
  --font-zh: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-en: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-zh);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

body[lang="en"] {
  font-family: var(--font-en);
}

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

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

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10, 77, 140, 0.08);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  width: 132px;
  height: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.9rem;
  color: var(--text);
  transition: color 0.2s;
  white-space: nowrap;
}

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

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg);
  border-radius: 8px;
  padding: 2px;
  border: 1px solid rgba(10, 77, 140, 0.12);
}

.lang-switch a {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  color: var(--text-muted);
}

.lang-switch a.active {
  background: var(--primary);
  color: white;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  background: linear-gradient(135deg, #0a2540 0%, var(--primary) 45%, #0d4a6e 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/static/images/page-01.png") center/cover no-repeat;
  opacity: 0.18;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 37, 64, 0.92) 0%, rgba(10, 77, 140, 0.75) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.hero-content {
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  margin-bottom: 1rem;
  color: #9ff7ee;
  border: 1px solid rgba(159, 247, 238, 0.45);
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero-tagline {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: white;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.18);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-title .line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 0 auto;
  border-radius: 2px;
}

.section-title p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 1.5rem;
}

.about-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.framework-banner {
  margin-top: 2.5rem;
  border-radius: var(--radius);
}

.framework-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 168, 168, 0.24), transparent 30%),
    linear-gradient(135deg, #0a2540 0%, var(--primary) 54%, #102f56 100%);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(10, 37, 64, 0.18);
  color: white;
}

.framework-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent);
}

.framework-card > * {
  position: relative;
}

.framework-head {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
  margin-bottom: 1.4rem;
}

.framework-head span {
  display: inline-flex;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(159, 247, 238, 0.36);
  border-radius: 999px;
  color: #9ff7ee;
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.framework-head strong {
  width: min(820px, 100%);
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.framework-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.framework-column,
.framework-layer,
.framework-platform {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.framework-column {
  padding: 1.15rem;
}

.framework-column h3,
.framework-layer h3 {
  margin-bottom: 0.9rem;
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.framework-pills,
.framework-tags,
.framework-platform {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.framework-pills span {
  flex: 1 1 140px;
  padding: 0.72rem 0.85rem;
  background: linear-gradient(135deg, rgba(0, 168, 168, 0.92), rgba(91, 204, 232, 0.86));
  border-radius: 12px;
  color: white;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.framework-layer {
  padding: 1.15rem;
  margin-top: 1rem;
}

.framework-layer.accent {
  background: rgba(77, 57, 150, 0.36);
}

.framework-tags span,
.framework-platform span {
  padding: 0.55rem 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 0.84rem;
}

.framework-tags.compact span {
  color: #d8efff;
}

.framework-platform {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 168, 168, 0.16);
}

.framework-banner img {
  width: 100%;
}

/* Products */
.products-grid {
  display: grid;
  gap: 2.5rem;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-card.reverse {
  direction: rtl;
}

.product-card.reverse > * {
  direction: ltr;
}

.product-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e2e8f0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 2rem;
}

.product-body h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.product-tagline {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.product-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.product-specs {
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-radius: 8px;
  color: var(--text);
  line-height: 1.6;
}

.solutions-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(10, 77, 140, 0.96), rgba(0, 168, 168, 0.88));
  color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.solutions-panel h3 {
  margin-bottom: 0.6rem;
  font-size: 1.45rem;
}

.solutions-panel p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
}

.solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.solution-tags span {
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
}

/* Advantages */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.adv-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s;
}

.adv-card:hover {
  transform: translateY(-4px);
}

.adv-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 1rem;
}

.adv-card h4 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.adv-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Downloads */
.download-center-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.download-center-card {
  position: relative;
  min-height: 230px;
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid rgba(10, 77, 140, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.download-center-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.download-center-card.pending {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.download-center-type {
  align-self: flex-start;
  padding: 0.32rem 0.7rem;
  margin-bottom: 1rem;
  background: rgba(0, 168, 168, 0.1);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.download-center-card h3 {
  color: var(--primary);
  font-size: 1.14rem;
  margin-bottom: 0.65rem;
}

.download-center-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.download-center-version {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}

.download-center-action {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.68rem 1rem;
  background: var(--primary);
  color: white;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 700;
}

.download-center-action.disabled {
  background: #e2e8f0;
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Partners */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.partner-item {
  background: var(--white);
  padding: 1.5rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
  min-width: 180px;
  text-align: center;
}

/* Contact */
.contact-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0d4a6e 100%);
  color: white;
}

.contact-section .section-title h2 {
  color: white;
}

.contact-section .section-title .line {
  background: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--accent);
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-visual {
  display: flex;
  justify-content: center;
}

.qr-card {
  width: min(320px, 100%);
  padding: 2rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  text-align: center;
  backdrop-filter: blur(10px);
}

.qr-card img {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.2rem;
  padding: 0.65rem;
  background: white;
  border-radius: 14px;
}

.qr-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
}

.qr-card p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
}

/* Mobile nav */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .product-card,
  .product-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .framework-columns {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .solutions-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .logo-img {
    width: 108px;
  }
}
