/* =========================================
   微驰数字 · 企业官网样式
   Nanjing Weichi Digital Technology Co., Ltd.
   ========================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --dark: #0b1220;
  --dark-2: #101a30;
  --text: #1f2937;
  --muted: #5b6472;
  --primary: #2b5cff;
  --primary-2: #7c3aed;
  --border: #e5e8ef;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 8px 20px rgba(43, 92, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(43, 92, 255, 0.45); }
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: #fff;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.logo-text {
  font-size: 18px;
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text small {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 2px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav > a {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav > a:hover, .site-nav > a.active { color: var(--primary); }
.site-nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(700px 400px at 15% 20%, rgba(43, 92, 255, 0.35), transparent 60%),
    radial-gradient(600px 400px at 85% 70%, rgba(124, 58, 237, 0.32), transparent 60%),
    var(--dark);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-inner {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  letter-spacing: 1px;
  color: #c7d2fe;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.25;
  letter-spacing: 1px;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, #6d9bff, #b78bff, #6d9bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 34px 0 64px;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hero-stats .num {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(120deg, #8fb0ff, #c9a5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats .label { font-size: 13px; color: rgba(255, 255, 255, 0.6); margin-top: 4px; }

/* ---------- 子页面横幅 ---------- */
.page-hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 72px 0;
  background:
    radial-gradient(600px 300px at 20% 30%, rgba(43, 92, 255, 0.35), transparent 60%),
    radial-gradient(500px 300px at 80% 60%, rgba(124, 58, 237, 0.3), transparent 60%),
    var(--dark);
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: 1px; margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, 0.7); max-width: 560px; margin: 0 auto; }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2, .split h2 { font-size: clamp(24px, 3.2vw, 34px); letter-spacing: 0.5px; margin-bottom: 14px; }
.section-head p { color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- 卡片 ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: all 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(43, 92, 255, 0.12), rgba(124, 58, 237, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--muted); }

/* ---------- 左右分栏 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.reverse .split-text { order: 2; }
.split-text .kicker { margin-bottom: 10px; }
.split-text h2 { margin-bottom: 16px; }
.split-text > p { color: var(--muted); margin-bottom: 24px; }
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 0;
  font-size: 15px;
}
.feature-list .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}
.split-visual { position: relative; }

/* 视觉面板（模拟平台界面） */
.panel {
  border-radius: 18px;
  background:
    radial-gradient(400px 220px at 80% 0%, rgba(124, 58, 237, 0.5), transparent 60%),
    radial-gradient(400px 260px at 0% 100%, rgba(43, 92, 255, 0.5), transparent 60%),
    var(--dark);
  padding: 28px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.panel-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
}
.panel-bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}
.panel-bar i:first-child { background: #ff5f57; }
.panel-bar i:nth-child(2) { background: #febc2e; }
.panel-bar i:nth-child(3) { background: #28c840; }
.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 12px;
}
.panel-row .tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(109, 155, 255, 0.2);
  color: #9db9ff;
}
.panel-row .tag.purple { background: rgba(183, 139, 255, 0.2); color: #cfa9ff; }
.panel-row .tag.green { background: rgba(40, 200, 100, 0.18); color: #6fe3a0; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: step; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 15px;
  font-weight: 800;
  color: transparent;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: 1px;
}
.step h3 { font-size: 17px; margin: 8px 0 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- 发展历程 ---------- */
.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--primary), var(--primary-2));
  border-radius: 2px;
}
.timeline-item { position: relative; padding: 0 0 34px 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
}
.timeline-item .year { font-weight: 700; color: var(--primary); font-size: 15px; }
.timeline-item h3 { font-size: 16.5px; margin: 4px 0 6px; }
.timeline-item p { font-size: 14.5px; color: var(--muted); }

/* ---------- 数据条 ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 20px;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 44px 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.stats-band .num { font-size: 36px; font-weight: 800; }
.stats-band .label { font-size: 14px; opacity: 0.85; margin-top: 4px; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 84px 0;
  background:
    radial-gradient(500px 300px at 20% 20%, rgba(43, 92, 255, 0.4), transparent 60%),
    radial-gradient(500px 300px at 80% 80%, rgba(124, 58, 237, 0.4), transparent 60%),
    var(--dark);
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, 0.7); margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 产品页 ---------- */
.product-block { padding: 80px 0; }
.product-block + .product-block { border-top: 1px solid var(--border); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 0;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text small { color: rgba(255, 255, 255, 0.45); }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.8; color: rgba(255, 255, 255, 0.55); }
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: rgba(255, 255, 255, 0.6); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-col p { margin-bottom: 11px; color: rgba(255, 255, 255, 0.6); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.45); }
.footer-bottom a:hover { color: #fff; }

/* ---------- 动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-text { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 10px 0; width: 100%; }
  .site-nav .btn { margin: 10px 0 0; width: 100%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; }
  .hero-inner { padding: 80px 0 60px; }
  .footer-bottom .container { justify-content: center; text-align: center; }
}
