/* ==========================================================================
   海王出海 SCRM 官网 · 全新曜石星空紫青/电光天青科技主题
   目录：style.css
   ========================================================================== */

:root {
  --primary: #0f1c30;          /* 曜石深蓝 */
  --primary-deep: #070d18;     /* 曜石深黑夜空 */
  --accent: #6366f1;          /* 极光紫靛 */
  --cyan: #06b6d4;            /* 电光天青 */
  --teal: #10b981;            /* 翡翠薄荷绿 */
  --gold: #f59e0b;            /* 耀光琥珀金 */
  --coral: #f97316;           /* 极光暖橙 */
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --line-light: rgba(99, 102, 241, 0.18);
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(7, 13, 24, 0.08);
  --shadow-lg: 0 20px 50px rgba(99, 102, 241, 0.16);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.72;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: all .2s ease; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- 顶部状态条 ---------- */
.topbar {
  background: var(--primary-deep);
  color: #94a3b8;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: var(--cyan); font-weight: 600; }
.topbar a:hover { color: #fff; }

/* ---------- 顶部吸顶导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: all .25s ease;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img { height: 42px; width: auto; border-radius: 8px; }
.logo .brand {
  font-size: 21px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav a {
  font-size: 15px;
  color: #334155;
  font-weight: 600;
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav a:hover { color: var(--accent); }
.nav a.active { color: var(--accent); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 2px;
}
.nav a.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #fff;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}
.nav a.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--primary);
  cursor: pointer;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: all .25s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(99, 102, 241, 0.45);
}
.btn-outline {
  border-color: var(--line);
  color: var(--primary);
  background: #fff;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-white {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}
.btn-white:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ---------- 首屏 Hero (深空曜石底色 + 客户端仿真器) ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(99, 102, 241, 0.28), transparent 55%),
    radial-gradient(circle at 10% 70%, rgba(6, 182, 212, 0.18), transparent 50%),
    linear-gradient(160deg, var(--primary-deep), var(--primary));
  color: #fff;
  overflow: hidden;
  padding: 84px 0 76px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.20);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #c7d2fe;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.hero h1 {
  font-size: clamp(38px, 4.8vw, 54px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--gold), #fde047);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  color: #cbd5e1;
  font-size: 17px;
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 36px;
}
.hero-stats .num {
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.1;
}
.hero-stats .lbl {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}

/* 客户端模拟器 (chat-sim) */
.chat-sim {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.sim-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  margin-bottom: 16px;
}
.sim-dot { width: 11px; height: 11px; border-radius: 50%; }
.sim-dot.r { background: #ef4444; }
.sim-dot.y { background: #f59e0b; }
.sim-dot.g { background: #10b981; }
.sim-title {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
}
.chat-tabs {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.chat-tab {
  flex: 1;
  text-align: center;
  padding: 6px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: all .2s;
}
.chat-tab.active, .chat-tab:hover {
  background: var(--accent);
  color: #fff;
}
.chat-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all .2s;
}
.chat-item:hover { background: rgba(255, 255, 255, 0.1); }
.chat-item .avatar { font-size: 18px; }
.chat-meta { flex: 1; min-width: 0; }
.chat-name {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}
.plat {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.2);
  color: var(--cyan);
}
.chat-preview {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.chat-badge {
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}
.translate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-size: 12.5px;
  color: #e0f2fe;
  margin-bottom: 16px;
}
.translate-bar .arrow { color: var(--gold); font-weight: 900; }
.stat-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}
.stat-chip {
  padding: 10px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
}
.stat-chip .v {
  font-size: 16px;
  font-weight: 800;
  color: #38bdf8;
}
.stat-chip .k {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

/* ---------- 核心能力六宫格 ---------- */
.section { padding: 92px 0; }
.section.alt { background: var(--bg); }
.sec-head {
  max-width: 700px;
  margin: 0 auto 52px;
  text-align: center;
}
.sec-head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sec-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}
.sec-head p {
  color: var(--muted);
  font-size: 16px;
  margin-top: 14px;
}
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.feature-card {
  background: #fff;
  padding: 34px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: all .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.feature-card .icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- 公告区时间线 ---------- */
.announce {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.announce-card {
  background: #fff;
  padding: 22px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: var(--shadow);
  transition: all .2s;
}
.announce-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.announce-card .tag {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.announce-card h4 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.announce-card p { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.announce-card .date { font-size: 12px; color: #94a3b8; }

/* ---------- 信任背书四大数据 ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item {
  background: #fff;
  padding: 34px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.trust-item .big {
  font-size: 38px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 8px;
}
.trust-item .lbl { font-size: 14.5px; font-weight: 600; color: var(--muted); }

/* ---------- 企业方案场景 ---------- */
.scene-card {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: all .2s;
}
.scene-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
}
.scene-card h3 {
  font-size: 18.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.scene-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- 新闻中心 Tab 切换 ---------- */
.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}
.tab-btn {
  padding: 10px 24px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.news-card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: flex;
  gap: 18px;
  box-shadow: var(--shadow);
  transition: all .2s;
}
.news-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.news-card .cover {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex: none;
}
.news-card .meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.news-card .cat {
  color: var(--accent);
  font-weight: 700;
}
.news-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.news-card p.excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}
.news-card .more {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- 客户端下载横幅 ---------- */
.download-banner {
  background:
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.25), transparent 50%),
    linear-gradient(135deg, var(--primary-deep), #1e1b4b);
  color: #fff;
  padding: 54px 48px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
}
.download-banner h2 { font-size: 32px; font-weight: 900; margin-bottom: 10px; }
.download-banner p { font-size: 16px; color: #cbd5e1; max-width: 580px; margin-bottom: 24px; }
.platforms {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.platform {
  background: #fff;
  padding: 24px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow);
  transition: all .2s;
}
.platform:hover { transform: translateY(-3px); border-color: var(--accent); }
.platform .ic { font-size: 32px; margin-bottom: 10px; }
.platform .name { font-size: 16px; font-weight: 700; color: var(--text); }
.platform .ver { font-size: 12px; color: #94a3b8; margin: 4px 0 14px; }
.platform .dl {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  padding: 6px 18px;
  border-radius: 999px;
  width: 100%;
}
.platform .dl:hover { background: var(--accent); }

/* ---------- 常见问题 FAQ 手风琴 ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .2s;
}
.faq-q {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.faq-q:hover { color: var(--accent); }
.faq-q .arr { font-size: 20px; color: var(--accent); font-weight: 700; transition: transform .2s; }
.faq-item.open .faq-q .arr { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 24px 20px;
  font-size: 14.8px;
  color: var(--muted);
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ---------- 底部 CTA ---------- */
.cta {
  background:
    radial-gradient(circle at 18% 22%, rgba(99, 102, 241, 0.28), transparent 50%),
    linear-gradient(135deg, var(--primary-deep), #111827);
  color: #fff;
  padding: 84px 0;
  text-align: center;
}
.cta h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin-bottom: 14px; }
.cta p { font-size: 17px; color: #cbd5e1; max-width: 640px; margin: 0 auto 32px; }
.btn-group { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.footer {
  background: #050811;
  color: #94a3b8;
  padding: 64px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer .grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.brand-txt { font-size: 13.5px; line-height: 1.7; color: #64748b; margin-top: 12px; }
.footer h4 { font-size: 15px; font-weight: 700; color: #f1f5f9; margin-bottom: 16px; }
.footer a { display: block; font-size: 13.5px; color: #94a3b8; margin-bottom: 8px; }
.footer a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #475569;
}

/* ---------- 响应式断点 ---------- */
@media (max-width: 992px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .platforms { grid-template-columns: repeat(3, 1fr); }
  .news-list { grid-template-columns: 1fr; }
  .footer .grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #0f172a;
    padding: 24px;
  }
  .menu-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: repeat(2, 1fr); }
  .download-banner { flex-direction: column; padding: 32px 24px; text-align: center; }
  .footer .grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
