/* ============ 明策 MetaDecide 官网样式 ============ */
:root {
  --brand: #1a5cff;
  --brand-dark: #0b3bb8;
  --ink: #0f1b2d;
  --ink-2: #3d4c63;
  --ink-3: #6b7a92;
  --bg: #ffffff;
  --bg-soft: #f5f8ff;
  --bg-dark: #0a1428;
  --line: #e3e9f4;
  --ok: #0e9f6e;
  --warn: #d97706;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 27, 45, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.logo { font-size: 38px; font-weight: 900; color: var(--ink); display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo .badge {
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 6px; letter-spacing: 0.5px;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--brand); }
.nav-links a.cta {
  background: var(--brand); color: #fff; padding: 8px 18px; border-radius: 8px; font-weight: 600;
}
.nav-links a.cta:hover { background: var(--brand-dark); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(26,92,255,0.14), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(124,58,237,0.10), transparent 60%),
    linear-gradient(90deg, rgba(10,20,40,0.90) 0%, rgba(10,20,40,0.55) 55%, rgba(10,20,40,0.10) 100%),
    url('img/hero-bg.jpg') center/cover no-repeat var(--bg-dark);
  color: #fff;
  padding: 96px 24px 80px;
}
.hero-inner { max-width: 1140px; margin: 0 auto; }
.hero h1 { font-size: 46px; line-height: 1.2; font-weight: 800; letter-spacing: -0.5px; max-width: 720px; }
.hero h1 .hl {
  background: linear-gradient(90deg, #6ea8ff, #a78bfa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { font-size: 18px; color: #b9c6dd; max-width: 640px; margin: 20px 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 10px;
  font-size: 15px; font-weight: 600; text-decoration: none; transition: all .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #2f6bff; transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-outline { border: 1.5px solid var(--brand); color: var(--brand); background: #fff; }
.btn-outline:hover { background: var(--bg-soft); }

/* ---------- 数据条 ---------- */
.stats { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.stats-inner {
  max-width: 1140px; margin: 0 auto; padding: 28px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat .num { font-size: 30px; font-weight: 800; color: var(--brand); }
.stat .lbl { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }

/* ---------- 板块 ---------- */
.section { padding: 72px 24px; }
.section-inner { max-width: 1140px; margin: 0 auto; }
.sec-tag { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: 1.5px; text-transform: uppercase; }
.sec-title { font-size: 32px; font-weight: 800; margin: 8px 0 14px; letter-spacing: -0.3px; }
.sec-desc { font-size: 16px; color: var(--ink-2); max-width: 680px; }

/* ---------- 案例卡片 ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.case-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
  transition: transform .15s;
}
.case-card:hover { transform: translateY(-6px); }
.case-type { font-size: 12.5px; font-weight: 700; color: var(--brand); }
.case-name { font-size: 19px; font-weight: 700; }
.case-desc { font-size: 14px; color: var(--ink-2); flex: 1; }
.case-metrics { display: flex; gap: 18px; padding-top: 4px; border-top: 1px dashed var(--line); }
.metric .m-num { font-size: 17px; font-weight: 800; color: var(--ink); }
.metric .m-num.ok { color: var(--ok); }
.metric .m-lbl { font-size: 12px; color: var(--ink-3); }
.case-links { display: flex; gap: 12px; margin-top: 4px; }
.case-links a { font-size: 13.5px; font-weight: 600; color: var(--brand); text-decoration: none; }
.case-links a:hover { text-decoration: underline; }

/* ---------- 解决方案 ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.sol-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  background: var(--bg-soft); display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow); transition: transform .15s;
}
.sol-card:hover { transform: translateY(-6px); }
.sol-card .ico { font-size: 26px; }
.sol-card h3 { font-size: 16.5px; font-weight: 700; }
.sol-card p { font-size: 13.5px; color: var(--ink-2); flex: 1; }
.sol-card a { font-size: 13.5px; font-weight: 600; color: var(--brand); text-decoration: none; }

/* ---------- 产品步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.step { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transition: transform .15s; }
.step:hover { transform: translateY(-6px); }
.step .n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand-dark), #6d28d9); color: #fff; text-align: center; padding: 64px 24px; }
.cta-band h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.cta-band p { color: #d9e2f5; margin-bottom: 28px; font-size: 16px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); }
.cta-band .btn-primary:hover { background: #eef2ff; }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-dark); color: #94a3b8; padding: 48px 24px 32px; font-size: 14px; }
.footer-inner { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand { color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.footer a { color: #94a3b8; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-bottom { max-width: 1140px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12.5px; }

/* ---------- 页面头部（内页） ---------- */
.page-head {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(26,92,255,0.12), transparent 60%),
    linear-gradient(90deg, rgba(10,20,40,0.80) 0%, rgba(10,20,40,0.62) 38%, rgba(10,20,40,0.28) 68%, rgba(10,20,40,0.05) 100%),
    url('img/page-head-bg.jpg') center/cover no-repeat var(--bg-dark);
  color: #fff;
  padding: 60px 24px 46px;
}
.page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px;
  background: linear-gradient(to bottom, rgba(10,20,40,0.55), rgba(10,20,40,0));
  pointer-events: none;
}
.page-head-inner { max-width: 1140px; margin: 0 auto; }
.page-head h1 { font-size: 36px; font-weight: 800; }
.page-head p { color: #ccd8ee; margin-top: 10px; max-width: 680px; }

/* ---------- 表格 ---------- */
table.tbl { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 14.5px; }
table.tbl th, table.tbl td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.tbl th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
table.tbl tr:hover td { background: #fafcff; }

/* ---------- 通用 ---------- */
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-36 { margin-top: 36px; }
.dark-band { background: var(--bg-dark); color: #fff; }
.breadcrumb { font-size: 13.5px; color: #a9bad9; margin-bottom: 18px; }
.breadcrumb a { color: #8fa0ba; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

@media (max-width: 900px) {
  .hero h1 { font-size: 32px; }
  .cases, .sol-grid, .steps { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 14px; }
  .nav-links a:not(.cta) { display: none; }
}

/* ========== 移动端适配 (≤640px) ========== */
@media (max-width: 640px) {
  /* 导航紧凑化：logo 缩到 24px、badge 隐藏、CTA 缩边距 */
  .nav-inner { padding: 0 16px; gap: 10px; height: 56px; }
  .logo { font-size: 24px; gap: 0; }
  .logo .badge { display: none; }
  .nav-links { gap: 0; }
  .nav-links a.cta { padding: 7px 14px; font-size: 13.5px; border-radius: 8px; }

  /* Hero：遮罩加深成氛围光效，图表不再裁切出硬边；标题缩到 27px */
  .hero {
    background:
      radial-gradient(480px 300px at 85% -10%, rgba(26,92,255,0.20), transparent 60%),
      radial-gradient(380px 260px at 10% 110%, rgba(124,58,237,0.14), transparent 60%),
      linear-gradient(180deg, rgba(10,20,40,0.88) 0%, rgba(10,20,40,0.68) 55%, rgba(10,20,40,0.50) 100%),
      url('img/hero-bg.jpg') 72% 30%/auto 115% no-repeat var(--bg-dark);
    padding: 64px 20px 56px;
  }
  .hero h1 { font-size: 27px; line-height: 1.3; letter-spacing: 0; }
  .hero p.sub { font-size: 15.5px; margin: 14px 0 26px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; padding: 13px 20px; font-size: 15px; width: 100%; }

  /* 通用 section：加宽留白、缩小标题 */
  .section { padding: 48px 20px; }
  .sec-title { font-size: 24px; line-height: 1.3; }
  .sec-desc { font-size: 15px; line-height: 1.7; }

  /* 卡片内边距收紧 */
  .case-card, .sol-card, .step { padding: 20px; }
  .stats-inner { padding: 20px; }

  /* CTA 带 */
  .cta-band { padding: 48px 20px; }
  .cta-band h2 { font-size: 24px; }
  .cta-band p { font-size: 15px; }

  /* 内页头（solutions/cases/about） */
  .page-head { padding: 44px 20px 40px; }
  .page-head h1 { font-size: 26px; line-height: 1.3; }
  .page-head p { font-size: 15px; }

  /* 表格：窄屏横向滚动防溢出 */
  table.tbl { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }

  /* 页脚 */
  .footer { padding: 40px 20px 28px; }
  .footer-inner { gap: 24px; }
}

/* ========== 移动端适配 v2（微调） ========== */
@media (max-width: 640px) {
  /* 导航：留白对称 */
  .nav-inner { padding: 0 18px; }
  .nav-links { margin-left: auto; }

  /* 标题两行均衡断行 */
  .hero h1, .page-head h1, .sec-title, .cta-band h2 { text-wrap: balance; }

  /* 首页 hero：更紧凑，让 stats 上首屏 */
  .hero { padding: 52px 20px 44px; }
  .hero h1 { font-size: 25px; }
  .hero p.sub { margin: 12px 0 22px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 12px 20px; }

  /* solutions 标题一行放下 */
  .page-head h1 { font-size: 24px; }
  .page-head p { font-size: 14.5px; line-height: 1.7; }
  .breadcrumb { margin-bottom: 14px; }

  /* 表格：允许单元格换行（不再 nowrap 截断），仍可横向滚动 */
  table.tbl { display: block; overflow-x: auto; white-space: normal; -webkit-overflow-scrolling: touch; }
  table.tbl th, table.tbl td { white-space: normal; }

  /* 正文段落呼吸感 */
  .section p, .case-desc, .sol-card p { line-height: 1.7; }
}
