/* =========================================================
   驴通聚合云媒 · 全站基础样式 base.css
   设计基调：B 端科技简约风 · 深蓝主色 + 浅蓝辅色 · 深色卡片
   约束：纯本地资源、无外部 CDN / 字体 / 图片引用
   ========================================================= */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #081226;
  --bg-2: #0a1f44;
  --surface: #0e2a5e;
  --surface-2: #12306a;
  --border: rgba(125, 155, 215, .16);
  --border-strong: rgba(125, 155, 215, .32);
  --text: #eaf0fb;
  --text-muted: #9fb1d4;
  --accent: #2f6bff;
  --accent-2: #4f8cff;
  --accent-cyan: #36c8d8;
  --danger: #ff7a7a;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --nav-h: 64px;
  --shadow: 0 18px 48px rgba(3, 10, 28, .45);
  --font: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont,
    "Segoe UI", system-ui, sans-serif;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
:where(section[id], [id].anchor) { scroll-margin-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

/* ---------- 布局 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.page { padding-top: var(--nav-h); }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 1.02rem; }

.eyebrow {
  display: inline-block;
  color: var(--accent-2);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .95rem;
  font-weight: 600;
  transition: transform .15s, background .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 22px rgba(47, 107, 255, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(47, 107, 255, .5); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--accent-2); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgba(8, 18, 38, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.04rem; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; color: var(--text-muted);
  font-size: .95rem; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-links a.active { color: #fff; background: rgba(47, 107, 255, .18); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 移动端抽屉菜单 ---------- */
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 49;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: 14px 20px 22px; display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 13px 12px; border-radius: 8px; color: var(--text-muted); font-size: 1rem; }
.mobile-menu a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.mobile-menu .btn { margin-top: 10px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 48px 0 32px; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 38px; height: 38px; }
.footer-name { font-weight: 700; font-size: 1.05rem; }
.footer-slogan { color: var(--text-muted); font-size: .9rem; max-width: 420px; margin-top: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: start; }
.footer-links a { color: var(--text-muted); font-size: .92rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent-2); }
.footer-copy { grid-column: 1 / -1; color: var(--text-muted); font-size: .85rem; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }

/* ---------- 通用卡片 ---------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }

/* ---------- Hero 首屏与数据网格动效 ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 130px 0 96px;
  background:
    radial-gradient(1100px 560px at 72% -12%, rgba(47, 107, 255, .26), transparent 60%),
    radial-gradient(820px 480px at 8% 8%, rgba(54, 200, 216, .14), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(125, 155, 215, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 155, 215, .08) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 28%, #000 28%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 28%, #000 28%, transparent 76%);
  animation: gridmove 22s linear infinite;
  pointer-events: none;
}
@keyframes gridmove { from { background-position: 0 0, 0 0; } to { background-position: 46px 46px, 46px 46px; } }
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 820px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.18; margin-bottom: 20px; }
.hero h1 .hl { color: var(--accent-2); }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--text-muted); max-width: 720px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 56px; }
.hero-stat .num { font-size: 1.7rem; font-weight: 700; color: #fff; }
.hero-stat .lbl { color: var(--text-muted); font-size: .88rem; }

/* ---------- 弹窗 / 模态 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(3, 8, 22, .72); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; z-index: 1; width: 100%; max-width: 460px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); max-height: 90vh; overflow: auto;
}
.modal-card-lg { max-width: 720px; }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--text-muted); font-size: 1.6rem; line-height: 1; padding: 4px 8px; border-radius: 8px; }
.modal-close:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.modal-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.modal-sub { color: var(--text-muted); font-size: .92rem; margin-bottom: 22px; }
.agreement-body { color: var(--text-muted); font-size: .92rem; line-height: 1.8; }
.agreement-body h4 { color: var(--text); font-size: 1rem; margin: 18px 0 8px; }
.agreement-body p { margin-bottom: 10px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: .9rem; margin-bottom: 7px; color: var(--text); }
.field .req { color: var(--accent-2); margin-left: 2px; }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea,
.field select {
  width: 100%; padding: 11px 13px; font-size: .95rem; color: var(--text);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent-2); background: rgba(255, 255, 255, .07);
}
.field input.invalid, .field textarea.invalid { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .8rem; margin-top: 5px; min-height: 1em; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.checks label { display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; color: var(--text-muted); cursor: pointer; }
.checks input { accent-color: var(--accent); width: 16px; height: 16px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.radio-row label { display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; color: var(--text-muted); cursor: pointer; }
.radio-row input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(12px);
  background: rgba(14, 42, 94, .96); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: .92rem; z-index: 200; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast[hidden] { display: none; }

/* ---------- 响应式：导航与页脚 ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .section { padding: 60px 0; }
  .hero { padding: 108px 0 76px; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }
  .hero-stats { gap: 20px; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-grid { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}
