/* ============================================================
   深圳市通关矩阵科技有限公司 · 官网样式
   banxunji.cn
   ============================================================ */

:root {
  --primary: #1450b8;
  --primary-dark: #0d3a8a;
  --primary-light: #eaf1fd;
  --accent: #0ea5b7;
  --navy: #0c1c33;
  --text: #253244;
  --text-light: #5c6b80;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --border: #e3e9f2;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(16, 42, 88, 0.08);
  --shadow-hover: 0 10px 32px rgba(16, 42, 88, 0.14);
  --max-width: 1160px;
}

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

html { scroll-behavior: smooth; }

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-text { line-height: 1.25; }

.brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 1px;
}

.brand-sub {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.main-nav ul {
  display: flex;
  gap: 36px;
}

.main-nav a {
  font-size: 15px;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0c1c33 0%, #122f5c 55%, #1450b8 100%);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 85% 20%, rgba(14, 165, 183, 0.25), transparent),
    radial-gradient(ellipse 500px 320px at 10% 90%, rgba(20, 80, 184, 0.35), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: 96px 0 108px;
  max-width: 780px;
}

.hero-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  color: #9fc3ff;
  border: 1px solid rgba(159, 195, 255, 0.45);
  border-radius: 999px;
  padding: 4px 16px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.hero h1 .em { color: #5fd4e8; }

.hero p.lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(20, 80, 184, 0.35);
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover { background: var(--primary-light); }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }

.section.soft { background: var(--bg-soft); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}

.section-head .kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 32px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-head p { color: var(--text-light); font-size: 16px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }

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

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card .icon svg { width: 26px; height: 26px; }

.card h3 {
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 10px;
}

.card p { font-size: 14.5px; color: var(--text-light); }

/* ---------- 特性列表（左文右图） ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-row + .feature-row { margin-top: 72px; }
.feature-row.flip .feature-media { order: -1; }

.feature-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 18px;
  font-size: 15.5px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-light);
}

.feature-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

.feature-list b { color: var(--navy); }

.feature-media {
  background: linear-gradient(150deg, #0c1c33, #14418f);
  border-radius: 16px;
  padding: 40px 32px;
  color: #dbe7ff;
  font-size: 14px;
  box-shadow: var(--shadow);
}

.feature-media h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.feature-media .mock-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.feature-media .mock-line .num {
  color: #5fd4e8;
  font-weight: 700;
  font-size: 16px;
}

/* ---------- 流程条 ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  counter-reset: step;
}

.flow-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 12px;
  text-align: center;
  position: relative;
}

.flow-step .no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.flow-step .t { font-size: 14px; font-weight: 600; color: var(--navy); display: block; }
.flow-step .d { font-size: 12px; color: var(--text-light); margin-top: 4px; line-height: 1.5; }

/* ---------- 数字带 ---------- */
.stats-band {
  background: linear-gradient(120deg, #0c1c33, #12315e);
  color: #fff;
  padding: 56px 0;
}

.stats-band .grid { gap: 16px; }

.stat {
  text-align: center;
  padding: 12px;
}

.stat .v {
  font-size: 34px;
  font-weight: 700;
  color: #5fd4e8;
  font-variant-numeric: tabular-nums;
}

.stat .l { font-size: 14px; color: rgba(255, 255, 255, 0.75); margin-top: 4px; }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 130%);
  color: #fff;
  border-radius: 18px;
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 { font-size: 26px; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.88); }

/* ---------- 页面头部（内页） ---------- */
.page-hero {
  background: linear-gradient(135deg, #0c1c33 0%, #122f5c 60%, #1450b8 120%);
  color: #fff;
  padding: 64px 0;
}

.page-hero .crumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}

.page-hero .crumb a { color: rgba(255, 255, 255, 0.85); }

.page-hero h1 { font-size: 34px; letter-spacing: 1px; }
.page-hero p { margin-top: 10px; color: rgba(255, 255, 255, 0.82); max-width: 640px; }

/* ---------- 公司简介 ---------- */
.prose { max-width: 860px; }
.prose p { margin-bottom: 18px; color: var(--text); }
.prose b { color: var(--navy); }

/* ---------- 信息表 ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-table th,
.info-table td {
  padding: 16px 22px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

.info-table th {
  width: 200px;
  background: var(--bg-soft);
  color: var(--navy);
  font-weight: 600;
}

.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--navy);
  font-size: 15.5px;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-item .answer {
  padding: 0 22px 18px;
  color: var(--text-light);
  font-size: 14.5px;
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  border-radius: 999px;
  padding: 3px 14px;
  margin: 0 8px 8px 0;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}

.site-footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: #5fd4e8; }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .brand-name { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  font-size: 13px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom a { color: rgba(255, 255, 255, 0.72); }
.footer-bottom a:hover { color: #5fd4e8; }

/* 占位高亮（上线前替换后删除 highlight 类） */
.ph {
  background: #fff3cd;
  color: #8a6d00;
  border-radius: 4px;
  padding: 0 6px;
  font-style: normal;
}

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

.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.flip .feature-media { order: 0; }
  .flow { grid-template-columns: repeat(4, 1fr); }
  .hero h1 { font-size: 34px; }
}

@media (max-width: 680px) {
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }

  .main-nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }

  .main-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding: 64px 0 76px; }
  .hero h1 { font-size: 28px; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 26px; }
  .cta-band { padding: 36px 26px; }
  .info-table th { width: 110px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- 能力对照表 ---------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}

.compare thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  padding: 14px 20px;
  text-align: left;
}

.compare th, .compare td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare tbody th { font-weight: 600; color: var(--navy); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare .yes { color: #0f8a4f; font-weight: 600; }
.compare .no { color: #b5453a; font-weight: 600; }

/* ---------- 实施步骤 ---------- */
.steps { display: grid; }

.step {
  position: relative;
  padding: 0 0 30px 44px;
  border-left: 2px solid var(--border);
}

.step:last-child { border-left-color: transparent; padding-bottom: 0; }

.step::before {
  content: attr(data-no);
  position: absolute;
  left: -18px;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--text-light); }
.step .dur { display: inline-block; font-size: 13px; color: var(--accent); margin-bottom: 4px; }

/* ---------- 指标定义 ---------- */
.metric {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
}

.metric .k { font-size: 14px; font-weight: 600; color: var(--navy); }
.metric .f { font-size: 13.5px; color: var(--primary); margin: 4px 0 6px; font-family: Consolas, Menlo, monospace; }
.metric .d { font-size: 13.5px; color: var(--text-light); }

/* ---------- 术语列表 ---------- */
.term-list dt { font-weight: 600; color: var(--navy); font-size: 15px; }
.term-list dd { font-size: 14px; color: var(--text-light); margin: 0 0 14px; }

/* ---------- 面包屑 ---------- */
.crumb a:hover { text-decoration: underline; }

/* ---------- 场景卡（带图标行） ---------- */
.scene {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 22px 24px;
}

.scene h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.scene p { font-size: 14.5px; color: var(--text-light); }
