/* ============================================================
   DIP智能审核系统 官网样式（科技风 / 浅色主题）
   纯本地实现，无外部依赖，可离线部署
   ============================================================ */

:root {
  --bg: #f7fafd;
  --bg-2: #ffffff;
  --bg-3: #eef4fb;
  --card: #ffffff;
  --card-hover: #ffffff;
  --border: #e3ebf5;
  --border-strong: #93b6f0;
  --text: #12233d;
  --text-2: #4a5d78;
  --text-3: #7a8ca5;
  --blue: #2563eb;
  --cyan: #0284c7;
  --purple: #7c3aed;
  --green: #059669;
  --gold: #d97706;
  --grad: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  --grad-2: linear-gradient(135deg, #7c3aed 0%, #2563eb 60%, #0891b2 100%);
  --radius: 14px;
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

/* ---------- 通用：渐变文字 / 按钮 ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(8, 145, 178, .35); }

.btn-ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--border-strong); background: #eaf2ff; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 40, 90, .08);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 700;
}
.nav-brand img { height: 40px; width: auto; }
.nav-brand .brand-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
  display: block;
  line-height: 1.2;
}

.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-2);
  transition: all .2s;
}
.nav-links a:hover { color: var(--blue); background: #eaf2ff; }
.nav-links a.active {
  color: var(--blue);
  background: rgba(37, 99, 235, .1);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .35);
}

.nav-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 22px;
  padding: 4px 12px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 90px) 0 100px;
  overflow: hidden;
}

/* 网格背景 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
}

/* 光晕 */
.hero::after {
  content: "";
  position: absolute;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 560px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, .14) 0%, rgba(124, 58, 237, .07) 45%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; text-align: center; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid #b9d2f8;
  background: #eaf2ff;
  color: #1d4ed8;
  font-size: 14px;
  margin-bottom: 28px;
}
.hero-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #0ea5e9;
  box-shadow: 0 0 10px rgba(14, 165, 233, .7);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 1px;
}

.hero .hero-sub {
  margin: 22px auto 0;
  max-width: 800px;
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text-2);
}

.hero-btns { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 统计条 ---------- */
.stats {
  position: relative;
  z-index: 2;
  margin-top: 78px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 40, 90, .06);
}
.stat-card .num {
  font-size: 38px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.stat-card .num small { font-size: 20px; }
.stat-card .lbl { margin-top: 6px; color: var(--text-2); font-size: 14px; }

/* ---------- 通用 Section ---------- */
.section { padding: 92px 0; position: relative; }
.section-alt { background: var(--bg-2); }

.sec-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.sec-head .kicker {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.sec-head p { margin-top: 14px; color: var(--text-2); font-size: 16px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.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: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: all .28s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 40, 90, .04);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 14px 34px rgba(37, 99, 235, .13);
}

.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: #eaf2ff;
  border: 1px solid #b9d2f8;
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 14.5px; }
.card .more { margin-top: 14px; font-size: 14px; color: var(--cyan); }

/* ---------- 引擎徽章 ---------- */
.engine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.engine-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all .25s;
  box-shadow: 0 2px 10px rgba(15, 40, 90, .04);
}
.engine-item:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: 0 10px 26px rgba(37, 99, 235, .12); }
.engine-item .e-icon { font-size: 30px; margin-bottom: 10px; }
.engine-item h4 { font-size: 16px; margin-bottom: 6px; }
.engine-item .e-type {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.e-type.plugin { background: #e8f7f0; color: var(--green); border: 1px solid rgba(5, 150, 105, .3); }
.e-type.webapi { background: #f1ecfe; color: var(--purple); border: 1px solid rgba(124, 58, 237, .3); }
.engine-item p { font-size: 13px; color: var(--text-3); }

/* ---------- 对比表 ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
table.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 640px;
}
table.cmp th, table.cmp td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table.cmp thead th {
  background: #eaf2ff;
  color: #1e40af;
  font-size: 15px;
  white-space: nowrap;
}
table.cmp tbody tr:hover { background: #f5f9ff; }
table.cmp td:first-child { color: var(--text-2); white-space: nowrap; }
table.cmp tbody tr:last-child td { border-bottom: none; }

/* ---------- 流程 ---------- */
.flow { display: flex; align-items: stretch; gap: 0; justify-content: center; flex-wrap: wrap; }
.flow-step {
  flex: 1 1 200px;
  max-width: 260px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 10px rgba(15, 40, 90, .04);
}
.flow-step .step-no {
  width: 40px; height: 40px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .35);
}
.flow-step h4 { font-size: 16px; margin-bottom: 8px; }
.flow-step p { font-size: 13px; color: var(--text-3); }
.flow-arrow {
  align-self: center;
  color: var(--blue);
  font-size: 24px;
  padding: 0 10px;
  flex: 0 0 auto;
}

/* ---------- 截图占位 ---------- */
.shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  position: relative;
  box-shadow: 0 2px 10px rgba(15, 40, 90, .04);
}
.shot img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  object-position: center top;
  background: #f0f4fa;
  cursor: zoom-in;
}
.shot .cap {
  padding: 12px 18px;
  font-size: 14px;
  color: var(--text-2);
  border-top: 1px solid var(--border);
  background: #f8fafd;
}
/* 图片缺失时的占位样式 */
.shot.missing .ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 300px;
  border: 2px dashed #93b6f0;
  border-radius: var(--radius);
  margin: 10px;
  color: var(--text-3);
  font-size: 14px;
  background:
    linear-gradient(rgba(37, 99, 235, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.shot .ph { display: none; }
.shot.missing .ph { display: flex; }
.shot.missing img { display: none; }
.ph .ph-icon { font-size: 34px; opacity: .6; }

/* ---------- 图片查看器（lightbox） ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 10, 20, .88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 94vw;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  background: #fff;
}
.lightbox .lb-cap {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #dbe7f7;
  font-size: 14px;
  background: rgba(0, 0, 0, .45);
  padding: 6px 18px;
  border-radius: 999px;
  white-space: nowrap;
}
.lightbox .lb-close {
  position: absolute;
  top: 20px;
  right: 26px;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, .12);
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
}
.lightbox .lb-close:hover { background: rgba(255, 255, 255, .25); }

/* ---------- 特性列表（带勾） ---------- */
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text-2);
  font-size: 15px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--green);
  font-weight: 800;
}
.check-list li b { color: var(--text); }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 34px; max-width: 860px; margin: 0 auto; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--purple));
  opacity: .4;
}
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .18);
}
.tl-item h4 { font-size: 17px; margin-bottom: 6px; }
.tl-item p { color: var(--text-2); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 40, 90, .04);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.faq-q .arrow { transition: transform .25s; color: var(--cyan); flex: 0 0 auto; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  color: var(--text-2);
  font-size: 14.5px;
}
.faq-a-inner { padding: 0 24px 20px; }

/* ---------- 文档下载 ---------- */
.doc-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: all .25s;
  box-shadow: 0 2px 10px rgba(15, 40, 90, .04);
}
.doc-card:hover { border-color: var(--border-strong); box-shadow: 0 10px 26px rgba(37, 99, 235, .12); }
.doc-card .doc-icon {
  width: 54px; height: 54px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #fdf3e0;
  border: 1px solid rgba(217, 119, 6, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.doc-card .doc-info { flex: 1; }
.doc-card h4 { font-size: 16.5px; margin-bottom: 4px; }
.doc-card p { font-size: 13.5px; color: var(--text-3); }
.doc-card .dl-btn {
  flex: 0 0 auto;
  padding: 9px 22px;
  border-radius: 8px;
  background: #eaf2ff;
  border: 1px solid #b9d2f8;
  color: #1d4ed8;
  font-size: 14px;
  transition: all .2s;
}
.doc-card .dl-btn:hover { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(15, 40, 90, .04);
}
.contact-card .c-icon {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #eaf2ff;
  border: 1px solid #b9d2f8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.contact-card h4 { font-size: 17px; margin-bottom: 10px; }
.contact-card p { color: var(--text-2); font-size: 15px; }
.contact-card .big { font-size: 20px; font-weight: 700; color: var(--text); }

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  border-radius: 20px;
  padding: 64px 40px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 120% at 50% 0%, rgba(37, 99, 235, .1), transparent 70%),
    #f5f9ff;
  border: 1px solid #bcd3f5;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.cta-band p { color: var(--text-2); margin-bottom: 30px; }

/* ---------- 页脚 ---------- */
.footer {
  background: #eef3fa;
  border-top: 1px solid #dbe5f2;
  padding: 56px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid #dbe5f2;
}
.footer .f-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.footer .f-brand img { height: 34px; }
.footer p { color: var(--text-3); font-size: 13.5px; }
.footer h5 { font-size: 15px; margin-bottom: 16px; color: var(--text); }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--text-3); font-size: 14px; transition: color .2s; }
.footer ul a:hover { color: var(--blue); }
.footer-copy { padding-top: 24px; text-align: center; color: var(--text-3); font-size: 13px; }

/* ---------- 内页横幅 ---------- */
.page-banner {
  padding: calc(var(--nav-h) + 66px) 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 90% at 50% 0%, rgba(37, 99, 235, .1), transparent 70%),
    var(--bg);
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 20%, transparent 80%);
}
.page-banner h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; position: relative; }
.page-banner p { margin-top: 14px; color: var(--text-2); position: relative; }

/* ---------- 滚动显现动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .engine-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 18px; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: center; }
  .flow-arrow { transform: rotate(90deg); padding: 6px 0; }
  .flow-step { max-width: 400px; width: 100%; }
  .doc-card { flex-direction: column; text-align: center; }
  .section { padding: 64px 0; }
}
