/* ============================================================
   海王出海 HaiWang SCRM — 官网下载站样式
   目录：static/css/style.css
   ============================================================ */

:root {
  --bg: #07111f;
  --bg-2: #0a1727;
  --bg-3: #0d1e31;
  --line: rgba(148, 197, 255, 0.12);
  --line-strong: rgba(125, 211, 252, 0.28);
  --text: #eaf3fb;
  --text-2: #9db4c8;
  --text-3: #6f8ba3;
  --brand: #38bdf8;
  --brand-2: #2dd4bf;
  --brand-3: #2563eb;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(2, 10, 20, 0.55);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, p { margin: 0; }

button { font-family: var(--font); cursor: pointer; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }

.section-head { max-width: 720px; margin-bottom: 48px; }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}

.section-head.center .eyebrow::before,
.section-head.center .eyebrow::after { background: var(--line-strong); }

.section-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.section-desc { margin-top: 16px; color: var(--text-2); font-size: 16px; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #06121d;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.28);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(56, 189, 248, 0.38); }

.btn-ghost {
  background: var(--card);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover { background: var(--card-hover); border-color: var(--line-strong); transform: translateY(-2px); }

.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }

.btn svg { width: 18px; height: 18px; }

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 17, 31, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }

.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }

.brand-name { font-size: 18px; font-weight: 700; letter-spacing: 0.02em; }

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-links a {
  font-size: 15px;
  color: var(--text-2);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg { width: 22px; height: 22px; stroke: var(--text); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 72px;
  background:
    radial-gradient(720px 420px at 12% 8%, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(680px 420px at 88% 24%, rgba(45, 212, 191, 0.12), transparent 60%),
    var(--bg);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 197, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 197, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #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: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 13px;
  margin-bottom: 24px;
}

.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 10px var(--brand-2); }

.hero h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.hero h1 .highlight {
  background: linear-gradient(120deg, var(--brand) 10%, var(--brand-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub { margin-top: 22px; font-size: 17px; color: var(--text-2); max-width: 520px; }

.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 22px; color: var(--text-3); font-size: 14px; }

.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }

.hero-meta svg { width: 16px; height: 16px; stroke: var(--brand); }

/* Hero 工作台 mockup */

.hero-visual { position: relative; }

.workbench {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.workbench-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.workbench-top .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(148, 197, 255, 0.25); }

.workbench-top .title { margin-left: 10px; font-size: 13px; color: var(--text-3); }

.workbench-body { display: grid; grid-template-columns: 132px 1fr; min-height: 320px; }

.wb-side { border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; }

.wb-app {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--card);
  font-size: 13px;
  color: var(--text-2);
}

.wb-app .ic { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #06121d; }

.wb-main { padding: 18px; display: flex; flex-direction: column; gap: 14px; }

.wb-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--card); }

.wb-row.active { background: rgba(56, 189, 248, 0.1); border: 1px solid var(--line-strong); }

.wb-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-3), var(--brand)); flex: none; }

.wb-row .meta { flex: 1; min-width: 0; }

.wb-row .name { font-size: 14px; font-weight: 600; }

.wb-row .msg { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wb-row .time { font-size: 12px; color: var(--text-3); }

.float-card {
  position: absolute;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.float-card.fc-1 { top: -18px; left: -28px; }

.float-card.fc-2 { bottom: -22px; right: -18px; }

.float-card .num { font-size: 20px; font-weight: 700; color: var(--brand); }

.float-card .label { font-size: 12px; color: var(--text-3); }

/* ---------- 统计条 ---------- */

.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 36px 0; }

.stat { text-align: center; }

.stat .num { font-size: 30px; font-weight: 800; color: var(--text); }

.stat .num em { font-style: normal; color: var(--brand); }

.stat .label { margin-top: 6px; font-size: 14px; color: var(--text-2); }

/* ---------- 平台墙 ---------- */

.platforms-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }

.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 26px 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.platform:hover { transform: translateY(-4px); background: var(--card-hover); border-color: var(--line-strong); }

.platform .ic {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #06121d;
}

.platform .name { font-size: 15px; font-weight: 600; }

.platform .desc { font-size: 12px; color: var(--text-3); }

/* 平台配色 */
.ic-wa { background: #25d366; }
.ic-line { background: #06c755; }
.ic-zalo { background: #0068ff; color: #fff !important; }
.ic-tg { background: #2aabee; }
.ic-fb { background: #1877f2; color: #fff !important; }
.ic-ig { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); color: #fff !important; }
.ic-ms { background: #0078d4; color: #fff !important; }
.ic-sc { background: #fffc00; }
.ic-dc { background: #5865f2; color: #fff !important; }
.ic-tt { background: #010101; color: #fff !important; }

/* ---------- 功能卡片 ---------- */

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.feature {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.feature:hover { transform: translateY(-4px); background: var(--card-hover); border-color: var(--line-strong); }

.feature .icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--line-strong);
  margin-bottom: 20px;
}

.feature .icon svg { width: 24px; height: 24px; stroke: var(--brand); }

.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }

.feature p { font-size: 14px; color: var(--text-2); }

.feature .tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }

.feature .tags span { font-size: 12px; color: var(--text-3); padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); }

/* ---------- 优势 ---------- */

.advantages { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.adv-item { display: flex; gap: 18px; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }

.adv-item .icon { flex: none; width: 46px; height: 46px; border-radius: 13px; background: rgba(45, 212, 191, 0.12); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; }

.adv-item .icon svg { width: 22px; height: 22px; stroke: var(--brand-2); }

.adv-item h3 { font-size: 17px; margin-bottom: 8px; }

.adv-item p { font-size: 14px; color: var(--text-2); }

/* ---------- 下载中心 ---------- */

.download-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }

.dl-tab {
  padding: 10px 18px;
  border-radius: 11px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

.dl-tab.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #06121d; border-color: transparent; }

.download-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.dl-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dl-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--card-hover); }

.dl-card .os-icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(56, 189, 248, 0.12); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }

.dl-card .os-icon svg { width: 24px; height: 24px; stroke: var(--brand); }

.dl-card h3 { font-size: 17px; margin-bottom: 6px; }

.dl-card .os-desc { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }

.dl-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; font-size: 13px; color: var(--text-2); }

.dl-meta span { display: inline-flex; justify-content: space-between; gap: 10px; }

.dl-meta b { color: var(--text-3); font-weight: 500; }

.dl-card .btn { margin-top: auto; width: 100%; }

.download-note { margin-top: 28px; padding: 20px 24px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; display: flex; gap: 12px; }

.download-note svg { width: 18px; height: 18px; stroke: var(--brand-2); flex: none; margin-top: 3px; }

/* ---------- 使用步骤 ---------- */

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }

.step .step-no { font-family: var(--mono); font-size: 14px; color: var(--brand); margin-bottom: 16px; letter-spacing: 0.1em; }

.step h3 { font-size: 18px; margin-bottom: 10px; }

.step p { font-size: 14px; color: var(--text-2); }

.step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}

.step:last-child::after { display: none; }

/* ---------- 评价 ---------- */

.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.testi { padding: 28px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }

.testi .stars { display: flex; gap: 4px; margin-bottom: 16px; }

.testi .stars svg { width: 16px; height: 16px; fill: var(--brand); }

.testi blockquote { font-size: 15px; color: var(--text-2); }

.testi .who { margin-top: 20px; display: flex; align-items: center; gap: 12px; }

.testi .who .avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-3), var(--brand-2)); }

.testi .who .name { font-size: 14px; font-weight: 600; }

.testi .who .role { font-size: 12px; color: var(--text-3); }

/* ---------- FAQ ---------- */

.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); overflow: hidden; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

.faq-q .chev { width: 20px; height: 20px; stroke: var(--brand); transition: transform 0.25s ease; flex: none; }

.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 22px 20px; font-size: 14px; color: var(--text-2); }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  border-radius: 26px;
  padding: 64px 40px;
  text-align: center;
  background:
    radial-gradient(500px 260px at 50% 0%, rgba(56, 189, 248, 0.18), transparent 70%),
    var(--bg-3);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}

.cta h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; }

.cta p { color: var(--text-2); max-width: 520px; margin: 0 auto 30px; }

.cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }

.footer-brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; margin-bottom: 16px; }

.footer-brand p { font-size: 14px; color: var(--text-3); max-width: 280px; }

.footer-col h4 { font-size: 15px; margin-bottom: 16px; }

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a { font-size: 14px; color: var(--text-3); transition: color 0.2s ease; }

.footer-col a:hover { color: var(--text); }

.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-3); }

/* ---------- 滚动显现 ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }

.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .platforms-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-card.fc-1 { left: 0; }
  .float-card.fc-2 { right: 0; }
}

/* ---------- 无障碍：减少动效 ---------- */

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