/* ==========================================================
   海王出海 SCRM 官方下载站 · 样式表
   目录：static/css/style.css
   ========================================================== */

:root {
  --navy-950: #050F1C;
  --navy-900: #081827;
  --navy-800: #0C2438;
  --navy-700: #12324D;
  --blue-600: #1B63E8;
  --blue-500: #2E7BF6;
  --blue-400: #4C97FF;
  --cyan-400: #38BDF8;
  --cyan-300: #7DD3FC;
  --ink: #0E2233;
  --muted: #567086;
  --muted-light: #8AA2B5;
  --line: rgba(14, 34, 51, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --bg: #F4F8FC;
  --bg-soft: #ECF3F9;
  --card: #FFFFFF;
  --shadow-sm: 0 2px 10px rgba(8, 24, 39, 0.08);
  --shadow-md: 0 12px 34px rgba(8, 24, 39, 0.14);
  --shadow-lg: 0 24px 60px rgba(8, 24, 39, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  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; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: #fff;
  box-shadow: 0 10px 26px rgba(27, 99, 232, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(27, 99, 232, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--line-light);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.btn-outline {
  background: #fff;
  color: var(--blue-600);
  border: 1px solid rgba(27, 99, 232, 0.3);
}
.btn-outline:hover { background: var(--bg-soft); transform: translateY(-2px); }

/* ---------- 区块标题 ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--blue-600);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-head .eyebrow::before,
.section-head .eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--blue-400);
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--navy-900);
}
.section-head p { margin-top: 16px; color: var(--muted); font-size: 16.5px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 24, 39, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-light);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 22%; }
.brand-text { line-height: 1.25; }
.brand-text .name { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: 0.02em; }
.brand-text .sub { font-size: 12px; color: var(--muted-light); letter-spacing: 0.14em; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 15px;
  color: #D7E4EE;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--cyan-300); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 11px 22px; font-size: 15px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 560px at 78% -10%, rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(27, 99, 232, 0.28), transparent 55%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: #fff;
  overflow: hidden;
  padding: 92px 0 110px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.3);
  font-size: 13.5px;
  color: var(--cyan-300);
  margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 10px var(--cyan-400); }
.hero h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--cyan-300), var(--blue-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc { margin: 22px 0 34px; font-size: 17.5px; color: #C3D6E4; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 34px; color: var(--muted-light); font-size: 14px; }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--cyan-400); }

.hero-visual { position: relative; }
.hero-shot {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.25);
  box-shadow: var(--shadow-lg);
  background: #fff;
  transform: perspective(1200px) rotateY(-4deg);
}
.hero-shot img { width: 100%; height: auto; }
.hero-float {
  position: absolute;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(12, 36, 56, 0.9);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  font-size: 14px;
}
.hero-float strong { display: block; font-size: 16px; color: #fff; }
.hero-float span { color: var(--muted-light); font-size: 12.5px; }
.float-a { top: -22px; left: -26px; }
.float-b { bottom: -20px; right: -18px; }

/* ---------- 数据条 ---------- */
.stats { background: var(--navy-900); border-top: 1px solid var(--line-light); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 44px 0;
}
.stat { text-align: center; }
.stat .num { font-size: 34px; font-weight: 800; color: #fff; }
.stat .num em { font-style: normal; color: var(--cyan-400); }
.stat .label { margin-top: 6px; color: var(--muted-light); font-size: 14px; }

/* ---------- 功能卡片 ---------- */
.features { background: var(--bg); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(27, 99, 232, 0.25); }
.feature-icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(46, 123, 246, 0.12), rgba(56, 189, 248, 0.12));
  color: var(--blue-600);
  margin-bottom: 22px;
}
.feature-icon svg { width: 27px; height: 27px; }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; color: var(--navy-900); }
.feature-card p { color: var(--muted); font-size: 15px; }

/* ---------- 接入平台 ---------- */
.platforms { background: var(--bg-soft); }
.platform-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.platform-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px 14px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.platform-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.platform-item .p-icon {
  width: 46px; height: 46px;
  margin: 0 auto 12px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; color: #fff;
}
.platform-item .p-name { font-size: 14.5px; font-weight: 600; color: var(--navy-900); }

/* ---------- 界面预览 ---------- */
.shots { background: var(--bg); }
.shot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; }
.shot-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: #fff;
}
.shot-card img { width: 100%; height: 100%; object-fit: cover; }
.shot-side { display: flex; flex-direction: column; gap: 26px; }
.shot-side .shot-card { flex: 1; }

/* ---------- 下载区 ---------- */
.download {
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(56, 189, 248, 0.16), transparent 55%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900));
  color: #fff;
}
.download .section-head h2 { color: #fff; }
.download .section-head p { color: #C3D6E4; }
.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 900px; margin: 0 auto; }
.dl-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 36px 32px;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, background 0.25s ease;
}
.dl-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.1); }
.dl-top { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.dl-os {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(56, 189, 248, 0.14);
  display: flex; align-items: center; justify-content: center;
}
.dl-os svg { width: 30px; height: 30px; color: var(--cyan-300); }
.dl-top h3 { font-size: 22px; font-weight: 800; }
.dl-top span { font-size: 13.5px; color: var(--muted-light); }
.dl-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 26px; font-size: 14px; color: #C3D6E4; }
.dl-meta li { display: flex; align-items: center; gap: 7px; }
.dl-card .btn { width: 100%; justify-content: center; }
.dl-note { text-align: center; margin-top: 30px; color: var(--muted-light); font-size: 13.5px; }

/* ---------- 安装步骤 ---------- */
.steps { background: var(--bg); }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 20px;
}
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--navy-900); }
.step-card p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-soft); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--navy-900);
  text-align: left;
}
.faq-q .chev {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease;
}
.faq-q .chev svg { width: 15px; height: 15px; color: var(--blue-600); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 26px 24px; color: var(--muted); font-size: 15.5px; }

/* ---------- 底部 CTA ---------- */
.cta-band { padding: 80px 0; background: var(--bg); }
.cta-inner {
  position: relative;
  border-radius: 26px;
  padding: 56px 40px;
  text-align: center;
  background:
    radial-gradient(700px 300px at 80% 20%, rgba(56, 189, 248, 0.25), transparent 60%),
    linear-gradient(135deg, var(--blue-600), var(--navy-700));
  color: #fff;
  overflow: hidden;
}
.cta-inner h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 14px; }
.cta-inner p { color: #D7E7F5; margin-bottom: 30px; }
.cta-inner .btn { background: #fff; color: var(--blue-600); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-950); color: var(--muted-light); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand img { width: 44px; height: 44px; margin-bottom: 16px; border-radius: 22%; }
.footer-brand p { font-size: 14px; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--cyan-300); }
.footer-bottom {
  border-top: 1px solid var(--line-light);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 640px; }
  .feature-grid, .step-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .nav-links {
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-900);
    border-bottom: 1px solid var(--line-light);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 6%; width: 100%; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-ghost { display: none; }
  .feature-grid, .step-grid, .download-grid, .shot-grid, .stats-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { gap: 18px; }
  .hero { padding: 64px 0 80px; }
  .float-a { left: 0; } .float-b { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
