/* ==========================================================================
   仟客企业官网 · 共享样式系统
   Design System v1.0
   ========================================================================== */

:root {
  /* 品牌色 - 科技蓝（深信服体系） */
  --primary: #1d4ed8;
  --primary-600: #2563eb;
  --primary-500: #3b82f6;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --cyan: #06b6d4;
  --cyan-50: #ecfeff;

  /* 中性色 */
  --ink: #0f172a;
  --ink-2: #1e293b;
  --slate: #475569;
  --slate-2: #64748b;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --line-2: #f1f5f9;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-soft-2: #f1f5f9;

  /* 强调色 */
  --accent: #f59e0b;
  --success: #16a34a;

  /* 布局 */
  --maxw: 1200px;
  --nav-h: 72px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow: 0 4px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, .12);

  /* 渐变 */
  --grad-brand: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #06b6d4 100%);
  --grad-hero: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #1d4ed8 100%);
  --grad-text: linear-gradient(120deg, #1d4ed8, #06b6d4);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

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

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

/* ---------------- 容器与通用 ---------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-soft-2 { background: var(--bg-soft-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  color: var(--primary); text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 2px; border-radius: 2px;
  background: var(--grad-brand);
}

.section-title {
  font-size: clamp(28px, 4vw, 42px); line-height: 1.25;
  font-weight: 800; color: var(--ink); letter-spacing: -.02em;
}
.section-sub {
  font-size: 17px; color: var(--slate); max-width: 720px;
  margin-top: 16px; line-height: 1.8;
}
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow::before { display: none; }

.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 600;
  transition: all .25s ease; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 24px rgba(37, 99, 235, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37, 99, 235, .38); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary-100); }
.btn-outline:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ---------------- 导航栏 ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; z-index: 1000;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: var(--grad-brand);
  display: grid; place-items: center; color: #fff; font-size: 20px; font-weight: 900;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .3);
}
.brand-sub { font-size: 11px; font-weight: 600; color: var(--slate-2); letter-spacing: .08em; margin-top: -2px; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 16px; font-size: 15px; font-weight: 500; color: var(--slate);
  border-radius: 8px; transition: all .2s ease; position: relative;
}
.nav-link:hover { color: var(--primary); background: var(--primary-50); }
.nav-link.active { color: var(--primary); font-weight: 700; }
.nav-link.active::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 18px; height: 3px; border-radius: 3px; background: var(--primary);
}
.nav-cta { margin-left: 12px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink-2); border-radius: 2px; transition: .3s; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--grad-hero);
  padding: calc(var(--nav-h) + 84px) 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 78% 20%, rgba(6,182,212,.35), transparent 42%),
    radial-gradient(circle at 12% 85%, rgba(59,130,246,.3), transparent 40%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px; font-size: 13px; font-weight: 600; margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.2); }
.hero h1 {
  font-size: clamp(34px, 5vw, 56px); line-height: 1.18; font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 22px;
}
.hero h1 .hl { color: #7dd3fc; }
.hero-lead { font-size: 18px; color: rgba(255,255,255,.82); max-width: 560px; line-height: 1.85; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px; padding: 28px; backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.hero-card-title { font-size: 13px; letter-spacing: .1em; color: rgba(255,255,255,.65); font-weight: 700; margin-bottom: 20px; }
.hero-metric { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.hero-metric .num { font-size: 46px; font-weight: 800; line-height: 1; color: #fff; }
.hero-metric .unit { font-size: 16px; color: #7dd3fc; font-weight: 700; }
.hero-metric-label { color: rgba(255,255,255,.7); font-size: 14px; margin-bottom: 22px; }
.hero-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hero-mini {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 14px; font-size: 13px; color: rgba(255,255,255,.9);
}
.hero-mini strong { display: block; font-size: 20px; color: #fff; margin-bottom: 2px; }

/* ---------------- 统计条 ---------------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-item { background: #fff; padding: 30px 20px; text-align: center; transition: background .2s; }
.stat-item:hover { background: var(--primary-50); }
.stat-num { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; color: var(--primary); line-height: 1.1; letter-spacing: -.02em; }
.stat-num .suffix { font-size: .6em; margin-left: 2px; }
.stat-label { color: var(--slate); font-size: 14px; margin-top: 8px; font-weight: 500; }

/* ---------------- 通用网格 / 卡片 ---------------- */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: all .3s ease; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  display: grid; place-items: center; font-size: 24px;
  background: var(--primary-50); color: var(--primary); margin-bottom: 20px;
}
.card-icon.cyan { background: var(--cyan-50); color: #0891b2; }
.card-icon.amber { background: #fffbeb; color: #d97706; }
.card-icon.green { background: #f0fdf4; color: #16a34a; }
.card h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 15px; line-height: 1.8; }
.card .num-tag {
  position: absolute; top: 20px; right: 24px; font-size: 40px; font-weight: 900;
  color: var(--line); line-height: 1;
}

/* 特性列表卡 */
.feature-card { padding: 28px; }
.feature-card ul { margin-top: 16px; display: grid; gap: 10px; }
.feature-card li { position: relative; padding-left: 22px; color: var(--slate); font-size: 14px; line-height: 1.6; }
.feature-card li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--primary-500); box-shadow: 0 0 0 3px var(--primary-50);
}

/* ---------------- 交替图文行 ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 88px; }
.split.reverse .split-visual { order: -1; }
.split-visual {
  border-radius: 20px; padding: 40px; min-height: 300px;
  background: linear-gradient(145deg, var(--primary-50), #fff);
  border: 1px solid var(--line); position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.split-visual.graphic {
  background: var(--grad-hero); color: #fff; border: none;
}
.split-big-emoji { font-size: 84px; line-height: 1; margin-bottom: 20px; }
.split-visual h4 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.split-visual p { font-size: 15px; opacity: .85; }
.split-text h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; color: var(--ink); line-height: 1.3; margin-bottom: 16px; letter-spacing: -.02em; }
.split-text p { color: var(--slate); font-size: 16px; line-height: 1.85; margin-bottom: 20px; }
.check-list { display: grid; gap: 12px; margin-top: 8px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 15px; }
.check-list .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-size: 13px; font-weight: 800;
}

/* ---------------- 数据高亮块 ---------------- */
.data-badge {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  background: var(--primary-50); border: 1px solid var(--primary-100);
  border-radius: 14px; padding: 18px 24px;
}
.data-badge .big { font-size: 36px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.data-badge .cap { font-size: 13px; color: var(--slate); margin-top: 4px; }

/* ---------------- 流程 / 时间线 ---------------- */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; align-items: stretch; }
.flow-step {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px; text-align: center;
  position: relative;
}
.flow-step .step-n {
  width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--grad-brand); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
}
.flow-step h4 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.flow-step p { font-size: 13px; color: var(--slate); line-height: 1.6; }
.flow-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  color: var(--primary-500); font-weight: 800; font-size: 20px; z-index: 2;
}

/* ---------------- 案例卡 ---------------- */
.case-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .3s ease; display: flex; flex-direction: column;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-top {
  padding: 24px; color: #fff; position: relative;
  background: var(--grad-hero); min-height: 120px; display: flex; flex-direction: column; justify-content: flex-end;
}
.case-top.cyan { background: linear-gradient(135deg, #0e7490, #06b6d4); }
.case-top.blue { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.case-top.indigo { background: linear-gradient(135deg, #312e81, #4f46e5); }
.case-top.green { background: linear-gradient(135deg, #14532d, #16a34a); }
.case-tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; opacity: .85; margin-bottom: 6px; }
.case-top h3 { font-size: 22px; font-weight: 800; }
.case-body { padding: 24px; flex: 1; }
.case-body p { color: var(--slate); font-size: 14px; line-height: 1.75; }
.case-results { display: flex; gap: 20px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.case-result .r-num { font-size: 22px; font-weight: 800; color: var(--primary); }
.case-result .r-cap { font-size: 12px; color: var(--slate-2); }

/* ---------------- 行业标签 ---------------- */
.industry-tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.industry-tag {
  padding: 10px 22px; border-radius: 100px; font-size: 15px; font-weight: 600;
  background: #fff; border: 1px solid var(--line); color: var(--slate);
  transition: all .2s;
}
.industry-tag:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-sm); }

/* ---------------- CTA 横幅 ---------------- */
.cta {
  background: var(--grad-hero); color: #fff; border-radius: 24px;
  padding: 56px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(6,182,212,.4), transparent 60%);
}
.cta > * { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 14px; }
.cta p { font-size: 17px; color: rgba(255,255,255,.8); margin-bottom: 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------- 页脚 ---------------- */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 700; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: #7dd3fc; }
.footer-contact { font-size: 14px; line-height: 2; }
.footer-contact strong { color: #fff; font-size: 20px; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; text-align: center;
  font-size: 13px; color: rgba(255,255,255,.5);
}

/* ---------------- 面包屑 / 内页 hero ---------------- */
.page-hero {
  background: var(--grad-hero); color: #fff;
  padding: calc(var(--nav-h) + 60px) 0 64px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 30%, rgba(6,182,212,.3), transparent 45%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,.8); max-width: 680px; }
.crumb { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.crumb a:hover { color: #fff; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { padding: 16px 20px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line-2); }
th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--primary-50); }

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

/* ---------------- 响应式 ---------------- */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { gap: 36px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding: 64px 0; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 20px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-150%); opacity: 0;
    transition: all .3s ease; pointer-events: none;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: 12px 14px; }
  .nav-link.active::after { display: none; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: flex; }
  .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); }

  .hero { padding: calc(var(--nav-h) + 56px) 0 64px; }
  .hero-lead { font-size: 16px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-visual { order: 0; }
  .split + .split { margin-top: 56px; }
  .cta { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .flow-step:not(:last-child)::after { display: none; }
}

@media (max-width: 480px) {
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 20px 10px; }
  .hero-mini-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 18px; }
}

/* 案例分组交替背景（渲染引擎加 .alt 类） */
.case-group.alt { background: var(--bg-soft); }

/* ---------------- 打印 ---------------- */
@media print {
  .nav, .cta, .footer { display: none; }
  body { color: #000; }
}
