/* ==========================================================
   自适应选股模型 — 全站样式（蓝色主题 · 移动端优先响应式）
   ========================================================== */
:root {
  --primary: #5B8DEF;
  --primary-dark: #4682E0;
  --primary-light: #EDF4FF;
  --accent: #2fd0a8;
  --ink: #1a2333;
  --ink-soft: #55627a;
  --line: #e6edf8;
  --bg: #f5f8fe;
  --card: #ffffff;
  --danger: #e5484d;
  --warn: #f5a623;
  --ok: #2ea75a;
  --radius: 14px;
  --shadow: 0 6px 22px rgba(30, 60, 120, 0.07);
  --nav-h: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f1f6fe 0%, var(--bg) 320px);
  line-height: 1.65;
  font-size: 16px;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(26, 58, 110, 0.98);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(26, 58, 110, 0.25);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; height: 100%;
  padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { color: #fff; font-weight: 700; font-size: 19px; display: flex; align-items: center; gap: 8px; }
.brand .dot {
  width: 12px; height: 12px; border-radius: 3px; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  color: #cfe0ff; padding: 8px 12px; border-radius: 8px; font-size: 15px;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-links a.active { background: var(--primary); color: #fff; }
.nav-cta {
  background: var(--accent); color: #04332a !important; font-weight: 700;
  padding: 8px 16px !important; border-radius: 10px;
}
.nav-burger {
  display: none; background: none; border: 0; color: #fff; font-size: 26px;
  width: 44px; height: 44px; cursor: pointer;
}

/* ---------- 通用布局 ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1px;
  color: var(--primary); background: var(--primary-light); padding: 5px 12px; border-radius: 999px;
  margin-bottom: 14px;
}
h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.2; font-weight: 800; letter-spacing: -.5px; }
h2 { font-size: clamp(22px, 3.6vw, 32px); font-weight: 800; letter-spacing: -.3px; }
h3 { font-size: 19px; font-weight: 700; }
.subtitle { color: var(--ink-soft); font-size: 17px; max-width: 640px; margin: 14px auto 0; }
.mt20 { margin-top: 20px; } .mt32 { margin-top: 32px; } .mb8 { margin-bottom: 8px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 12px; font-size: 16px; font-weight: 700;
  cursor: pointer; border: 0; transition: transform .1s, box-shadow .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgba(91,141,239,.32); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: rgba(91,141,239,.10); color: var(--primary); }
.btn-ghost:hover { background: rgba(91,141,239,.18); }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 18px; }

/* ---------- Hero 首屏 ---------- */
.hero { padding: 72px 0 60px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,141,239,.16), transparent 65%);
  top: -160px; right: -120px; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .subtitle { text-align: left; margin-left: 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-meta { margin-top: 22px; color: var(--ink-soft); font-size: 14px; }
.hero-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; border-top: 4px solid var(--primary);
}
.hero-card-title { font-weight: 800; font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.hero-card-title .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.hero-card .row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.hero-card .row:last-child { border-bottom: 0; }
.hero-card .row b { color: var(--primary); }
.hero-hint {
  margin-top: 14px; font-size: 13px; color: var(--ink-soft); background: var(--primary-light);
  border-radius: 10px; padding: 10px 12px;
}

/* ---------- 卡片 / 网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; transition: transform .15s;
}
.card:hover { transform: translateY(-3px); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary); font-size: 24px; margin-bottom: 14px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; }
.card .tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary);
  background: var(--primary-light); padding: 3px 9px; border-radius: 999px; margin-top: 12px;
}

/* ---------- 产品/案例大卡片 ---------- */
.promo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.promo .card { padding: 28px; }
.promo ul { list-style: none; margin-top: 12px; }
.promo li { color: var(--ink-soft); font-size: 14.5px; padding: 4px 0 4px 20px; position: relative; }
.promo li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* 指标小条 */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--card); border-radius: var(--radius); padding: 18px; text-align: center; border: 1px solid var(--line); }
.kpi .num { font-size: clamp(20px, 4vw, 30px); font-weight: 800; color: var(--primary); }
.kpi .lbl { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- 表格（移动端可横向滑动） ---------- */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; background: var(--card); min-width: 620px; }
table.data th, table.data td { padding: 12px 14px; text-align: left; font-size: 14.5px; white-space: nowrap; }
table.data thead th {
  background: var(--primary); color: #fff; font-weight: 700; position: sticky; top: 0;
}
table.data tbody tr:nth-child(even) { background: var(--primary-light); }
table.data tbody tr:hover { background: #e6f0ff; }
.tbl-empty { background: var(--card); padding: 34px; text-align: center; color: var(--ink-soft); border-radius: var(--radius); border: 1px dashed var(--line); }

/* ---------- 解决方案步骤 ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 12px; background: var(--primary);
  color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: 6px; } .step p { color: var(--ink-soft); font-size: 15px; }

/* ---------- 联系方式 ---------- */
.contact-card .field { display: grid; gap: 6px; margin-bottom: 16px; }
.contact-card label { font-size: 14px; font-weight: 600; }
.contact-card input, .contact-card textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px;
  font-size: 16px; font-family: inherit; background: var(--bg); min-height: 48px;
}
.contact-card textarea { min-height: 120px; resize: vertical; }
.contact-tel { font-size: clamp(22px, 5vw, 30px); font-weight: 800; color: var(--primary); }

/* ---------- 页脚 ---------- */
.footer { background: #1A3A6E; color: #aebfe2; padding: 40px 0 30px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.footer a { color: #aebfe2; display: block; padding: 4px 0; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer .copy { margin-top: 26px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; font-size: 13px; text-align: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(120px);
  background: #16233d; color: #fff; padding: 12px 22px; border-radius: 10px; font-size: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22); transition: transform .25s; z-index: 300; max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- 响应式：手机端 ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .promo, .about-row, .hero-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 720px) {
  .section { padding: 40px 0; }
  .nav-burger { display: block; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #1A3A6E; flex-direction: column; align-items: stretch; padding: 10px 14px 18px;
    gap: 4px; box-shadow: 0 16px 30px rgba(26,58,110,.35);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; border-radius: 10px; font-size: 16px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .contact-tel { font-size: 24px; }
  .step { flex-direction: column; }
}
@media (max-width: 420px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

/* ==========================================================
   [v2 质感升级] 蓝调夹白线 —— 细网格 / 白色描边 / 高光线 / 玻璃层次
   统一应用于全站 6 页面 + 复盘页（蓝色基调中加入白色线条与细节，
   避免纯蓝大色块，提升层次与质感）
   ========================================================== */

/* 1) 页面底色：浅蓝渐变 + 白色细网格纹理（全局统一） */
body {
  background:
    linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px) 0 0 / 100% 36px,
    linear-gradient(90deg, rgba(255,255,255,.40) 1px, transparent 1px) 0 0 / 36px 100%,
    linear-gradient(180deg, #eef5ff 0%, #f6fafe 340px, var(--bg) 100%) !important;
  background-attachment: fixed;
}

/* 2) 顶部导航：深蓝底 + 白色高光线（顶部内亮 + 底部细白线分隔 + 细网格） */
.nav {
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 100% 12px,
    linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px) 0 0 / 46px 100%,
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,0) 46%),
    rgba(26, 58, 110, 0.98);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 2px 12px rgba(26, 58, 110, .28);
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.nav-links a { border: 1px solid rgba(255,255,255,.06); }
.nav-links a:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.14); }
.nav-links a.active { border-color: rgba(255,255,255,.55); box-shadow: inset 0 -2px 0 #fff, 0 0 14px rgba(255,255,255,.35); }
.nav-cta { border: 1px solid rgba(255,255,255,.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 14px rgba(47,208,168,.45); }

/* 3) 白色描边 / 内高光线（卡片、KPI、步骤、Hero 卡） */
.card, .kpi, .step, .hero-card, .tbl-scroll {
  border-top: 1px solid rgba(255,255,255,.95);
  border-left: 1px solid rgba(255,255,255,.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 0 0 1px rgba(255,255,255,.12),
    var(--shadow);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.card:hover { box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255,255,255,.2), 0 14px 34px rgba(91,141,239,.16); }
.card .icon {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.95), 0 0 0 1px rgba(91,141,239,.08);
}
.kpi { z-index: 1; position: relative; }
.kpi::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, #fff, var(--primary), #fff);
  border-radius: 3px 3px 0 0; opacity: .9;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91,141,239,.35), rgba(255,255,255,.9), rgba(91,141,239,.35), transparent);
}
.hero h1 em { text-shadow: 0 1px 0 rgba(255,255,255,.85), 0 0 22px rgba(91,141,239,.25); }
.eyebrow { border: 1px solid rgba(91,141,239,.28); box-shadow: inset 0 1px 0 #fff; }

/* 4) 区块分隔线：白色细线代替大色块交替 */
.section-alt {
  border-top: 1px solid rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.45);
  background:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px) 0 0 / 100% 44px,
    #ffffff;
}
.section + .section, .section { position: relative; }

/* 5) 表格：蓝头 + 底部白色强调线 + 斑马白线 */
table.data { border: 1px solid rgba(91,141,239,.14); box-shadow: inset 0 1px 0 #fff, 0 8px 24px rgba(30,60,120,.05); }
table.data thead th { border-bottom: 2px solid #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); letter-spacing: .4px; }
table.data tbody tr { border-bottom: 1px solid rgba(91,141,239,.07); }
table.data tbody tr:nth-child(even) { background: rgba(232,241,255,.55); }

/* 6) 产品大卡 / 联系表单 */
.promo .card, .contact-card { border-top-width: 2px; border-top-color: #fff; }
.promo li::before { text-shadow: 0 1px 0 #fff; }
.contact-card input, .contact-card textarea {
  border: 1px solid rgba(91,141,239,.22);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.95), 0 1px 4px rgba(91,141,239,.05);
}
.contact-card input:focus, .contact-card textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: inset 0 2px 0 #fff, 0 0 0 3px rgba(91,141,239,.15);
}
.step::before { border: 1px solid rgba(255,255,255,.45); box-shadow: inset 1px 1px 0 rgba(255,255,255,.4), 0 4px 10px rgba(91,141,239,.3); }

/* 7) 页脚：深蓝 + 白色纹理 + 顶部白色高光线 */
.footer {
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 100% 22px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 44px 100%,
    linear-gradient(180deg, #1C3D74, #16305C 80%);
  border-top: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 -8px 26px rgba(26,58,110,.25);
}
.footer h4 { border-left: 3px solid var(--accent); padding-left: 10px; }
.footer a { position: relative; }
.footer a::after { content: ""; position: absolute; left: 0; bottom: 2px; height: 1px; width: 0; background: #fff; transition: width .18s; }
.footer a:hover::after { width: 100%; }
.footer .copy { border-top-color: rgba(255,255,255,.28); }

/* 8) Toast 统一蓝白描边 */
.toast { border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 10px 30px rgba(0,0,0,.24); }

/* 9) 移动端：网格纹理加密避免毛边，其余视觉元素保持一致 */
@media (max-width: 720px) {
  body { background-size: 100% 28px, 28px 100%, auto; }
  .nav-links {
    background:
      linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 100% 14px,
      linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 40%),
      #1A3A6E;
    border-top: 1px solid rgba(255,255,255,.28);
  }
  .nav-links a { border-radius: 10px; border: 1px solid rgba(255,255,255,.08); }
}
