/* =====================================================================
   企旺星 官网 v2 · 设计系统（深蓝科技 · 沉稳版）
   base.css —— 令牌 / 重置 / 导航 / 侧栏 / 页脚 / 装饰 / 通用动画
   设计原则：全站唯一主色 = 品牌深蓝；金色只在深色区块 CTA 与徽标少量出现；
   图标统一浅蓝底 + 深蓝描绘；装饰用淡网格与单色微光，不用彩色光斑。
   ===================================================================== */

:root {
  /* 品牌色（取自 logo：深蓝 + 金） */
  --brand-blue: #0E6FBE;
  --brand-gold: #E8AC33;

  /* 文本 */
  --ink: #16213A;
  --ink-soft: #47546F;
  --muted: #7E8AA3;

  /* 表面 */
  --card: #ffffff;
  --line: #E2E8F1;

  /* 主题色（全站统一深蓝，不再按系列换彩色主题） */
  --s1: #0E6FBE;
  --s2: #0A5590;
  --s-deep: #0B3B6B;
  --s-soft: #EDF3FA;

  /* 圆角 / 阴影 */
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow: 0 18px 44px rgba(18, 33, 61, .10);
  --shadow-sm: 0 6px 18px rgba(18, 33, 61, .06);
  --shadow-color: 0 10px 24px rgba(14, 111, 190, .20);

  --nav-h: 70px;
  --maxw: 1280px;

  --font: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "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: #F4F6FA;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* 选区色 */
::selection { background: var(--s1); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: #C3CEDF;
  border-radius: 10px; border: 2px solid #F4F6FA;
}
::-webkit-scrollbar-thumb:hover { background: #A9B7CC; }
::-webkit-scrollbar-track { background: transparent; }

/* =========================== 装饰背景层 =========================== */
/* 淡网格 + 单色微光：科技感来自秩序，而不是色彩 */
.bg-deco {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-deco::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(22, 55, 110, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 55, 110, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 420px, transparent 860px);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 420px, transparent 860px);
}
.bg-deco .blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .5;
}
.bg-deco .blob.b1 { width: 560px; height: 560px; left: -160px; top: -160px;
  background: radial-gradient(circle, rgba(14, 111, 190, .16), transparent 70%); }
.bg-deco .blob.b2 { width: 480px; height: 480px; right: -140px; top: 6%;
  background: radial-gradient(circle, rgba(11, 59, 107, .10), transparent 70%); }
.bg-deco .blob.b3 { display: none; }

/* 漂浮小星星：沉稳版下线（site.js 已不再注入，此处兜底隐藏） */
.stars { display: none; }

/* 让主体内容压在装饰之上 */
.page { position: relative; z-index: 2; }

/* =========================== 顶部导航 =========================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 200;
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(22, 40, 80, .06);
  box-shadow: 0 4px 18px rgba(18, 33, 61, .04);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(255, 255, 255, .94); box-shadow: 0 6px 22px rgba(18, 33, 61, .08); }

.nav-inner {
  width: 100%; max-width: 1460px; margin: 0 auto; padding: 0 26px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand .bname { font-size: 21px; font-weight: 800; letter-spacing: .5px; color: var(--ink); }
.brand .btag { font-size: 11px; color: var(--muted); font-weight: 700;
  border-left: 2px solid var(--line); padding-left: 9px; margin-left: 2px; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.nav-links a {
  position: relative; padding: 9px 13px; border-radius: 10px; white-space: nowrap;
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--brand-blue); background: rgba(14, 111, 190, .07); }
.nav-links a.active { color: #fff; background: var(--s1); }

.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-cta .btn { padding: 10px 17px; font-size: 14.5px; }
@media (max-width: 1280px) { .brand .btag { display: none; } }
@media (max-width: 1120px) { .nav-cta .btn-ghost { display: none; } }

/* ---- 三大产品线一级 Tab（导航最前，当前系列高亮） ---- */
.nav-links .line-link { font-size: 15.5px; font-weight: 800; }
.nav-sep { width: 1.5px; height: 20px; background: var(--line); margin: 0 8px; flex-shrink: 0; }
@media (max-width: 1024px) { .nav-sep { display: none; } }

/* ---- 导航下拉（桌面 hover 展开；窄屏汉堡内直接平铺） ---- */
.nav-drop { position: relative; }
.nav-drop .nd-top { display: inline-flex; align-items: center; gap: 4px; }
.nav-drop .nd-top .nd-caret { width: 14px; height: 14px; transition: transform .25s; }
.nd-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 230px; padding: 8px; border-radius: 14px;
  background: rgba(255, 255, 255, .98); backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(18, 33, 61, .14); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transition: opacity .22s, transform .22s, visibility .22s;
  z-index: 300;
}
.nd-menu::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 12px; }
.nav-drop:hover .nd-menu, .nav-drop:focus-within .nd-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-drop:hover .nd-top .nd-caret { transform: rotate(180deg); }
.nd-menu a {
  display: flex; flex-direction: column; gap: 1px; padding: 10px 14px; border-radius: 10px;
  transition: background .18s;
}
.nd-menu a b { font-size: 14px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.nd-menu a span { font-size: 12px; color: var(--muted); font-weight: 600; }
.nd-menu a:hover { background: rgba(14, 111, 190, .07); }
.nd-menu a:hover b { color: var(--brand-blue); }

/* 「即将上线」小徽章（哑金） */
.soon-pill {
  display: inline-flex; align-items: center; font-size: 10px; font-weight: 800; letter-spacing: .4px;
  color: #8A6A1F; background: #F5EDD8;
  padding: 2px 8px; border-radius: var(--r-pill); white-space: nowrap;
}
/* 「在售」小徽章（主色实底） */
.live-pill {
  display: inline-flex; align-items: center; font-size: 10px; font-weight: 800; letter-spacing: .4px;
  color: #fff; background: var(--s1);
  padding: 2px 8px; border-radius: var(--r-pill); white-space: nowrap;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 12px;
  font-size: 15px; font-weight: 700; white-space: nowrap;
  transition: transform .18s ease, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  color: #fff; background: var(--s1);
  box-shadow: var(--shadow-color);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--s2); }
.btn-gold { color: #3A2B06; background: var(--brand-gold);
  box-shadow: 0 10px 26px rgba(232, 172, 51, .28); }
.btn-gold:hover { transform: translateY(-1px); background: #DBA02B; }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, .9);
  border: 1.5px solid #D6DFEB; box-shadow: none; }
.btn-ghost:hover { transform: translateY(-1px); border-color: var(--s1); color: var(--s1); }
.btn-lg { padding: 15px 32px; font-size: 17px; }
/* 通用兜底：按钮内联图标尺寸（更具体的 .hero-actions/.sc-actions 规则特异性更高会覆盖） */
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-lg svg { width: 20px; height: 20px; }

/* 汉堡（移动端） */
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(14, 111, 190, .08); align-items: center; justify-content: center; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ''; display: block; width: 20px; height: 2.4px; border-radius: 2px;
  background: var(--brand-blue); transition: .3s; position: relative; }
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }

/* =========================== 区块通用 =========================== */
.section { position: relative; padding: 110px 26px; }
.section-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.eyebrow .num { font-size: 12.5px; font-weight: 800; letter-spacing: 1.5px; color: var(--s1);
  border: 1px solid rgba(14, 111, 190, .35); background: rgba(14, 111, 190, .05);
  padding: 4px 12px; border-radius: 8px; }
.eyebrow .en { font-size: 13px; font-weight: 800; letter-spacing: 3px; color: var(--muted); }
/* 深色区块上的 eyebrow 变体 */
.why .eyebrow .num, .flow-inner .eyebrow .num {
  color: #BFD7F5; border-color: rgba(191, 215, 245, .35); background: rgba(255, 255, 255, .04); }
.why .eyebrow .en, .flow-inner .eyebrow .en { color: #7FA0CC; }

.h-sec { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; line-height: 1.14;
  letter-spacing: -.5px; color: var(--ink); }
/* 区块标题强调词用纯色主蓝 */
.h-sec .hl { color: var(--s1); }
.sub-sec { font-size: 17px; color: var(--ink-soft); max-width: 640px; margin-top: 16px; }

.center { text-align: center; }
.center .sub-sec { margin-left: auto; margin-right: auto; }

/* 卡片通用 */
.card { background: var(--card); border-radius: var(--r);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); }

/* =========================== 浮动右侧栏 =========================== */
.side-rail {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 150; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.rail-qr {
  width: 92px; padding: 8px 8px 6px; border-radius: 14px; text-align: center;
  background: #fff;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.rail-qr .qr { width: 76px; height: 76px; border-radius: 8px; }
.rail-qr .qtxt { font-size: 10px; font-weight: 800; color: var(--s-deep); margin-top: 3px; }

.rail-socials { display: flex; flex-direction: column; gap: 8px; padding: 9px 7px;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.rail-ico {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: var(--ink-soft); position: relative;
  background: #F1F5FA; transition: .22s;
}
.rail-ico:hover { color: #fff; transform: translateY(-2px); background: var(--s1); }
.rail-ico svg { width: 21px; height: 21px; }
.rail-ico .tip {
  position: absolute; right: 50px; white-space: nowrap; font-size: 12px; font-weight: 700;
  background: var(--s2); color: #fff; padding: 5px 10px; border-radius: 8px;
  opacity: 0; pointer-events: none; transform: translateX(6px); transition: .2s;
}
.rail-ico:hover .tip { opacity: 1; transform: translateX(0); }

.rail-top {
  width: 44px; height: 44px; border-radius: 50%; color: #fff;
  background: var(--s1); box-shadow: var(--shadow-color);
  display: flex; align-items: center; justify-content: center; opacity: 0;
  transform: translateY(8px); transition: .25s;
}
.rail-top.show { opacity: 1; transform: translateY(0); }
.rail-top:hover { transform: translateY(-2px); background: var(--s2); }
.rail-top svg { width: 20px; height: 20px; }

/* 音乐开关 */
.music-toggle {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
  border-radius: var(--r-pill); font-size: 12px; font-weight: 800; color: var(--ink-soft);
  background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.music-toggle .disc { width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff 2px, var(--s1) 3px); }
.music-toggle.on .disc { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================== 页脚 =========================== */
.footer { position: relative; z-index: 2; background: #0B1426; color: #C0CBE0;
  padding: 64px 26px 30px; overflow: hidden; }
.footer::before { content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 300px at 18% -20%, rgba(14, 111, 190, .18), transparent),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; position: relative; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.footer-brand { max-width: 320px; }
.footer-brand .fb-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .fb-row img { width: 36px; height: 36px; border-radius: 10px; }
.footer-brand .fb-row b { font-size: 20px; font-weight: 800; color: #fff; }
.footer-brand p { font-size: 14px; color: #8B9BC0; }
.footer-col h4 { font-size: 15px; color: #fff; margin-bottom: 16px; font-weight: 800; }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: #97A7CA;
  margin-bottom: 11px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
/* 友情链接（仅首页页脚） */
.footer-links { padding: 16px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
  font-size: 13px; color: #7686AC; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.footer-links .fl-label { color: #8B9BC0; }
.footer-links a { color: #97A7CA; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px;
  justify-content: space-between; font-size: 13px; color: #7686AC; }
.footer-bottom a { color: #7686AC; }
.footer-bottom a:hover { color: #C0CBE0; }
/* 备案信息（ICP + 公安联网备案） */
.footer-bottom .beian { display: inline-flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; }
.footer-bottom .beian a { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.footer-bottom .beian img { width: 14px; height: 14px; display: inline-block; }

/* =========================== 滚动揭示动画 =========================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }

/* 通用浮动（幅度收小，沉稳） */
.floaty { animation: floaty 8s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================== 响应式 =========================== */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(255, 255, 255, .98); padding: 14px; gap: 4px;
    box-shadow: 0 20px 40px rgba(18, 33, 61, .12); border-radius: 0 0 16px 16px;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav.open .nav-links a { width: 100%; }
  /* 窄屏：下拉退化为平铺子项 */
  .nav.open .nav-drop { width: 100%; }
  .nav.open .nd-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; background: rgba(14, 111, 190, .05);
    min-width: 0; margin: 2px 0 4px; padding: 6px;
  }
  .nav.open .nd-top .nd-caret { display: none; }
  .side-rail { right: 10px; transform: translateY(-50%) scale(.86); }
}
@media (max-width: 640px) {
  .section { padding: 80px 18px; }
  .brand .btag { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .side-rail { display: none; }
}
