:root {
  --primary: #075aff;
  --primary-dark: #264aff;
  --primary-light: #e8eef9;
  --accent: #fe6c30;
  --accent-light: #fff4ee;
  --text: #1b1c33;
  --text-secondary: #5e6270;
  --text-muted: #8d8e99;
  --bg: #ffffff;
  --bg-soft: #f9faff;
  --bg-section: #f2f6ff;
  --border: #ededf0;
  --shadow: 0 8px 32px rgba(7, 90, 255, 0.08);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --max-w: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 48px, var(--max-w));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.logo-en {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-brand .logo-img {
  width: 40px;
  height: 40px;
}

.nav-main {
  display: flex;
  gap: 36px;
}

.nav-main a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-main a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-text {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 14px;
}

.btn-text:hover {
  color: var(--primary);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(7, 90, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(7, 90, 255, 0.45);
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero */
.hero {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 80px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(7, 90, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content .tagline-en {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  border: 1px solid var(--border);
  min-height: 280px;
  position: relative;
}

.hero-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

.hero-slide.active {
  display: block;
}

.hero-slide .quote {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-slide .detail {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.9375rem;
}

.hero-slide .author {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  justify-content: center;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: 0.3s;
}

.hero-dots button.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section common */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-section);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 640px;
  margin-inline: auto;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card h3 {
  font-size: 1.375rem;
  margin-bottom: 24px;
  color: var(--primary-dark);
}

.product-card ul {
  list-style: none;
  margin-bottom: 32px;
}

.product-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.product-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.product-actions {
  display: flex;
  gap: 12px;
}

/* Feature blocks */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: 0.3s;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-light);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Stats */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
}

.stats-section .section-header h2,
.stats-section .section-header p {
  color: #fff;
}

.stats-section .section-header p {
  opacity: 0.85;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  padding: 24px;
}

.stat-value-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stat-trend::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

.stat-trend-up {
  background: rgba(255, 159, 67, 0.2);
}

.stat-trend-up::before {
  border-bottom: 9px solid #ff9f43;
}

.stat-trend-down {
  background: rgba(52, 211, 153, 0.2);
}

.stat-trend-down::before {
  border-top: 9px solid #34d399;
}

.stat-label {
  font-size: 0.9375rem;
  opacity: 0.9;
}

/* Testimonials — Swiper coverflow */
#testimonials {
  overflow: hidden;
}

.testimonials-wrap {
  position: relative;
  margin: 0 -12px;
  padding: 8px 0 32px;
}

.testimonials-swiper {
  overflow: visible;
  padding: 24px 0 40px;
}

.testimonials-swiper .swiper-slide {
  width: min(427px, 88vw);
  height: auto;
  box-sizing: border-box;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px 36px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(7, 90, 255, 0.08);
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.testimonial-role {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.4;
}

.testimonial-line {
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.testimonial-content {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
  flex: 1;
}

.testimonials-swiper .swiper-slide:not(.swiper-slide-active) .testimonial-card {
  opacity: 0.72;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.testimonials-swiper .swiper-slide-active .testimonial-card {
  opacity: 1;
  transform: scale(1);
}

/* Articles */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: 0.3s;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.article-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #d4e4ff 100%);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 2.5rem;
  opacity: 0.6;
}

.article-body {
  padding: 20px;
}

.article-body h3 {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.section-more {
  text-align: center;
  margin-top: 40px;
}

/* Footer */
.site-footer {
  background: #06173a;
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  opacity: 0.7;
  line-height: 1.7;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  font-size: 0.875rem;
  margin-bottom: 10px;
  opacity: 0.75;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8125rem;
  opacity: 0.5;
}

.footer-bottom p {
  margin-bottom: 6px;
}

.footer-bottom a {
  color: inherit;
  opacity: 0.85;
}

.footer-bottom a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Value pillars */
.value-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.value-card {
  text-align: center;
  padding: 28px 16px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: 0.3s;
}

.value-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
}

.value-card h3 {
  font-size: 1.125rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Case studies */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.case-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.case-card .case-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.case-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.case-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Workflow */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.workflow-step {
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  counter-increment: step;
}

.workflow-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  opacity: 0.35;
}

.workflow-step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.workflow-step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Partners */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.partner-item {
  aspect-ratio: 2.2 / 1;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Mobile */
@media (max-width: 1024px) {
  .hero-grid,
  .product-grid,
  .feature-grid,
  .stats-grid,
  .article-grid,
  .value-grid,
  .case-grid,
  .workflow-steps,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-main,
  .header-actions .btn-ghost,
  .header-actions .btn-text {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .site-header.menu-open .nav-main {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }

  .hero {
    padding-bottom: 48px;
  }

  .section {
    padding: 56px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
