/* =====================================================================
   企旺星 官网 v2 · home.css —— 首页各区块（深蓝科技 · 沉稳版）
   ===================================================================== */

/* ============ 设备框（浏览器样式截图框） ============ */
.device {
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 28px 70px rgba(15, 28, 55, .18), 0 0 0 1px rgba(18, 33, 61, .06);
}
.device-bar {
  height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 16px;
  background: #F5F7FB; border-bottom: 1px solid #E6EBF3;
}
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D5DCE8; }
.device-bar span { margin-left: 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.device img { width: 100%; display: block; }

/* ============ HERO ============ */
.hero { padding-top: calc(var(--nav-h) + 60px); padding-bottom: 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1.1fr; gap: 40px; align-items: center; }
.hero-title { font-size: clamp(36px, 5.4vw, 62px); font-weight: 800; line-height: 1.1; letter-spacing: -1px; }
.hero-title .hl { color: var(--s1); position: relative; }
/* hero 第二行「符合GSP验收规范」：浅橘红强调（用户指定），字号略小于主行，独立成行并与主行拉开间距 */
.hero-title .hl-gsp { display: block; margin-top: 16px; color: #FF7A52; font-size: .8em; }
.hero-sub { font-size: 18px; color: var(--ink-soft); margin: 22px 0 30px; }
.hero-sub b { color: var(--s-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions .btn svg { width: 19px; height: 19px; }

.hero-trust { display: flex; align-items: center; gap: 20px; margin-top: 36px; }
.ht-item b { display: block; font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1;
  font-variant-numeric: tabular-nums; }
.ht-item span { font-size: 13px; color: var(--muted); font-weight: 600; }
.ht-sep { width: 1px; height: 30px; background: var(--line); }

.hero-visual { position: relative; }
.hero-visual .device img { aspect-ratio: 1600/980; object-fit: cover; object-position: top; }

.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 11px 15px 11px 11px; background: rgba(255, 255, 255, .95);
  border-radius: 12px; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.chip-ic { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--s1);
  background: var(--s-soft); border: 1px solid #DCE7F3; }
.chip-ic svg { width: 20px; height: 20px; }
.chip b { display: block; font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.chip span { font-size: 12px; color: var(--muted); }
.chip-1 { top: 12%; left: -34px; }
.chip-2 { top: 46%; right: -30px; }
.chip-3 { bottom: 8%; left: 6%; }

.mascot { position: absolute; top: -46px; right: 6%; width: 96px; height: 96px;
  filter: drop-shadow(0 10px 16px rgba(18, 33, 61, .18)); }
.mascot svg { width: 100%; height: 100%; }

/* ============ 产品系列 ============ */
.series { background: #F0F3F8; transition: background-color .6s ease; overflow: hidden;
  padding-bottom: 90px; }
.series::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 360px at 50% -8%, rgba(14, 111, 190, .08), transparent); }

/* 切换箭头：绝对定位贴在卡片左右两侧、与卡片垂直居中 */
.np-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 52px; height: 52px; border-radius: 50%; color: var(--ink);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; transition: transform .2s, color .2s, border-color .2s; }
.np-arrow.prev { right: calc(50% + 424px); left: auto; }
.np-arrow.next { left: calc(50% + 424px); right: auto; }
.np-arrow svg { width: 22px; height: 22px; }
.np-arrow:hover { transform: translateY(-50%) scale(1.05); color: var(--s1); border-color: var(--s1); }
.np-arrow:active { transform: translateY(-50%) scale(.96); }
/* 窄屏放不下时收到舞台两端 */
@media (max-width: 1024px) {
  .np-arrow.prev { right: auto; left: 6px; }
  .np-arrow.next { left: auto; right: 6px; }
}

/* 3D coverflow */
.series-stage { position: relative; height: 340px; z-index: 2; margin-top: 24px; margin-bottom: 10px; }
.series-cards { position: relative; height: 100%; perspective: 1700px; }
.s-card {
  position: absolute; top: 6px; left: 50%; width: 232px; height: 320px; margin-left: -116px;
  border-radius: 18px; overflow: hidden; transform-style: preserve-3d;
  background: linear-gradient(165deg, #14345E, #0E6FBE);
  box-shadow: 0 20px 44px rgba(13, 27, 51, .26);
  transition: transform .62s cubic-bezier(.16, 1, .3, 1), opacity .5s, box-shadow .5s, filter .5s;
  color: #fff; text-align: center; padding: 30px 18px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.s-card::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(120px 120px at 30% 18%, rgba(255, 255, 255, .16), transparent 60%); }
.s-card .s-ic { width: 76px; height: 76px; border-radius: 18px; background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.s-card .s-ic svg { width: 40px; height: 40px; }
.s-card .s-en { font-size: 11px; font-weight: 800; letter-spacing: 3px; opacity: .8; }
.s-card .s-nm { font-size: 21px; font-weight: 800; line-height: 1.2; }
.s-card .s-badge { font-size: 11px; font-weight: 800; padding: 4px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); }
.s-card.is-active { box-shadow: 0 30px 60px rgba(13, 27, 51, .34); }
.s-card.is-side { filter: saturate(.8) brightness(.86); }
.s-card.is-side::before { content: ''; position: absolute; inset: 0; background: rgba(10, 20, 45, .3); }

/* 详情 + 截图 */
.series-showcase { display: grid; grid-template-columns: .82fr 1.18fr; gap: 44px; align-items: center;
  margin-top: 30px; position: relative; z-index: 2; }
.sc-panel { transition: opacity .4s; }
.sc-panel.swap { opacity: 0; transform: translateY(12px); }
.sc-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800;
  color: var(--s1); border: 1px solid rgba(14, 111, 190, .35); background: rgba(14, 111, 190, .05);
  padding: 5px 13px; border-radius: 8px; }
.sc-title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.2; margin: 16px 0 12px;
  color: var(--ink); }
.sc-desc { font-size: 16px; color: var(--ink-soft); margin-bottom: 20px; }
.sc-feats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.sc-feats li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700;
  color: var(--ink-soft); background: #fff; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); }
.sc-feats li svg { width: 15px; height: 15px; color: var(--s1); }
.sc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sc-actions .btn svg { width: 18px; height: 18px; }

.sc-visual { position: relative; }
.sc-device { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg); }
.sc-screens { position: relative; aspect-ratio: 1600/980; }
.s-visual { position: absolute; inset: 0; opacity: 0; transform: scale(1.02);
  transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.s-visual.active { opacity: 1; transform: none; pointer-events: auto; }
.s-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* 占位 app mockup */
.app-mock { width: 100%; height: 100%; background: #F7F9FC;
  display: flex; flex-direction: column; }
.am-bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 14px;
  background: var(--s2); color: #fff; }
.am-bar span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.am-bar b { margin-left: 8px; font-size: 12px; font-weight: 700; }
.am-wrap { flex: 1; display: flex; min-height: 0; }
.am-nav { width: 50px; background: #fff; display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 16px 0; border-right: 1px solid #EEF2F8; }
.am-nav i { width: 22px; height: 22px; border-radius: 7px; background: #E8EEF6; }
.am-nav i:first-child { background: var(--s1); }
.am-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.am-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.am-kpi .k { background: #fff; border-radius: 10px; padding: 12px; box-shadow: 0 4px 12px rgba(18, 33, 61, .05);
  border-top: 3px solid var(--s1); }
.am-kpi .k b { display: block; font-size: 18px; font-weight: 800; color: var(--s-deep); }
.am-kpi .k em { font-style: normal; font-size: 11px; color: var(--muted); }
.am-chart { flex: 1; display: flex; align-items: flex-end; gap: 10px; background: #fff; border-radius: 10px;
  padding: 14px; box-shadow: 0 4px 12px rgba(18, 33, 61, .05); }
.am-chart i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0;
  background: linear-gradient(var(--s1), #7FAEDC); }
.am-rows { display: flex; flex-direction: column; gap: 8px; }
.am-rows .row { height: 14px; border-radius: 6px; background: #fff;
  box-shadow: 0 3px 8px rgba(18, 33, 61, .04); position: relative; }
.am-rows .row::before { content: ''; position: absolute; left: 10px; top: 4px; width: 32%; height: 6px;
  border-radius: 4px; background: #CBDCEE; }
.am-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.am-tags u { text-decoration: none; font-size: 12px; font-weight: 700; color: var(--s-deep);
  background: #fff; padding: 7px 12px; border-radius: 999px; box-shadow: 0 3px 8px rgba(18, 33, 61, .05); }
.am-flow { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 14px;
  box-shadow: 0 4px 12px rgba(18, 33, 61, .05); }
.am-flow span { font-size: 12px; font-weight: 800; color: #fff; padding: 7px 13px; border-radius: 999px;
  background: var(--s1); }
.am-flow svg { width: 16px; height: 16px; color: var(--s1); }

.series-dots { display: flex; justify-content: center; gap: 10px; margin-top: 40px; position: relative; z-index: 3; }
.series-dots button { width: 10px; height: 10px; border-radius: 999px; background: #C9D5E5;
  transition: .3s; }
.series-dots button.on { width: 30px; background: var(--s1); }

/* ============ 软件特色 ============ */
.features { background: #F0F3F8; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 54px; }
.feat { background: #fff; border-radius: var(--r); padding: 28px 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden; }
.feat::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: linear-gradient(160deg, rgba(14, 111, 190, .04), transparent); }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CBD9EA; }
.feat:hover::before { opacity: 1; }
.feat-ic { width: 52px; height: 52px; border-radius: 12px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; color: var(--s1); position: relative;
  background: var(--s-soft); border: 1px solid #DCE7F3; }
.feat-ic svg { width: 26px; height: 26px; }
.feat h4 { font-size: 18px; font-weight: 800; margin-bottom: 9px; position: relative; }
.feat p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; position: relative; }

/* ============ 真实界面预览 ============ */
.preview { background: #F0F3F8; }
.preview-wrap { margin-top: 50px; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.preview-device { width: 100%; max-width: 940px; }
.preview-screens { position: relative; aspect-ratio: 1600/980; }
.preview-screens .pv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: top; opacity: 0; transform: scale(1.015); transition: opacity .5s ease, transform .5s ease; }
.preview-screens .pv.active { opacity: 1; transform: none; }
/* 缩略图导航：固定单行（7 张 × 138px + 间隙 ≈ 1050px）；中屏靠 flex 收缩保持一行，仅手机端换行 */
.preview-thumbs { display: flex; flex-wrap: nowrap; gap: 14px; justify-content: center; max-width: 1100px; }
.pv-thumb { flex: 0 1 138px; width: 138px; min-width: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm);
  border: 2px solid transparent; transition: transform .25s, box-shadow .25s, border-color .25s; }
.pv-thumb img { width: 100%; height: 76px; object-fit: cover; object-position: top; display: block; }
.pv-thumb span { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); padding: 7px 6px; }
.pv-thumb:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pv-thumb.on { border-color: var(--s1); }
.pv-thumb.on span { color: var(--s-deep); }
@media (max-width: 560px) { .preview-thumbs { flex-wrap: wrap; } .pv-thumb { flex-basis: 30%; width: 30%; } .pv-thumb img { height: 56px; } .pv-thumb span { font-size: 11px; } }

/* ============ 数据 / WHY（深色科技区块） ============ */
.why { background: #0D1B33; overflow: hidden; }
.why::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 400px at 82% -10%, rgba(35, 110, 210, .16), transparent),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px; }
.why-inner { display: grid; grid-template-columns: 1fr 1.08fr; gap: 50px; align-items: center; }
.why .h-sec { color: #fff; }
.why .sub-sec { color: #A9BCDD; }
/* 深色底上的标题强调词用哑金（品牌辅色，仅此处与 CTA 使用） */
.why .h-sec .hl { color: #F2C14E; }
.why-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r); padding: 24px 18px; text-align: center; backdrop-filter: blur(6px); }
.stat b { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1;
  color: #fff; font-variant-numeric: tabular-nums; }
.stat > span { display: block; margin-top: 8px; font-size: 13.5px; color: #93A6C9; font-weight: 600; }

/* ============ CTA ============ */
.cta { padding: 90px 26px 110px; }
.cta-card { display: grid; grid-template-columns: 1.4fr .9fr; gap: 40px; align-items: center;
  background: #fff; border-radius: var(--r-lg);
  padding: 50px 54px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  border: 1px solid var(--line); }
.cta-card::before { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(14, 111, 190, .07), transparent 70%); }
.cta-qr { display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }
.cta-qr img { width: 168px; height: 168px; border-radius: 14px; background: #fff; padding: 10px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.cta-qr-txt { text-align: center; }
.cta-qr-txt b { display: block; font-size: 16px; font-weight: 800; color: var(--s-deep); }
.cta-qr-txt span { font-size: 13px; color: var(--muted); }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { max-width: 600px; margin: 0 auto; }
  .series-showcase { grid-template-columns: 1fr; gap: 30px; }
  .why-inner { grid-template-columns: 1fr; gap: 34px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-card { grid-template-columns: 1fr; text-align: center; }
  .cta-card .hero-actions, .cta-card .eyebrow { justify-content: center; }
  .cta-qr { order: -1; }
}
@media (max-width: 560px) {
  .hero-trust { flex-wrap: wrap; gap: 14px; }
  .feat-grid { grid-template-columns: 1fr; }
  .why-stats { grid-template-columns: repeat(2, 1fr); }
  .series-stage { height: 300px; }
  .s-card { width: 200px; margin-left: -100px; height: 290px; }
  .cta-card { padding: 36px 24px; }
}
