/* ============================================================
   上海百析 baixish.com — 首页深色科技风 (v20261002 重构)
   适用范围：仅首页 index.html（覆盖 style.css 默认浅色排版）
   设计语言：深空底色 + 青蓝紫渐变 + 玻璃拟态 + 分子粒子 Hero
   ============================================================ */

/* ---------- 首页导航：深色玻璃态 ---------- */
.hm-nav{
  background: rgba(255,255,255,.74);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid rgba(15,39,71,.08);
}
.hm-nav .nav-links a{ color:#2a3a55; }
.hm-nav .nav-links a:hover{ color:#6d28d9; }
.hm-nav .nav-links a.active{ color:#6d28d9; }
.hm-nav .nav-links a.active::after{ background: linear-gradient(90deg,#22d3ee,#c026d3); }
.hm-nav .nav-logo img,
.hm-nav .nav-search-btn{ color:#2a3a55; }
.hm-nav.scrolled{
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 30px rgba(20,60,120,.10);
}
.hm-nav .nav-cta{
  background: linear-gradient(135deg,#f97316,#fb923c);
  color:#fff !important; font-weight:700;
  box-shadow: 0 6px 18px rgba(249,115,22,.36);
}
.hm-nav .nav-cta:hover{ box-shadow: 0 8px 24px rgba(249,115,22,.5); }
.hm-nav .nav-toggle span{ background:#2a3a55; }

/* ============ Hero v2 ============ */
.hero-v2{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 560px at 82% -12%, rgba(34,211,238,.20), transparent 60%),
    radial-gradient(820px 480px at 0% 100%, rgba(192,38,211,.16), transparent 55%),
    linear-gradient(160deg,#ffffff 0%, #eef4fb 50%, #f5f8fc 100%);
  padding: 120px 0 90px;
  color: #0f2747;
}
.hero-v2 .hero-net{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-v2-glow{
  position: absolute; z-index: 0;
  width: 620px; height: 620px; right: -120px; top: 50%; transform: translateY(-50%);
  background: radial-gradient(circle, rgba(34,211,238,.16), transparent 65%);
  filter: blur(10px); pointer-events: none;
}
/* 蓝图网格纹理 */
.hero-v2::before{
  content:""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(120,170,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,255,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
}
.hero-v2-inner{ position: relative; z-index: 2; max-width: 980px; }
.hero-v2-badge{
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; letter-spacing: .04em; color: #6d28d9;
  background: rgba(124,58,237,.10);
  border: 1px solid rgba(124,58,237,.28);
  padding: 8px 16px; border-radius: 999px;
  margin-bottom: 26px;
}
.hero-v2-badge .dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: #22d3ee; box-shadow: 0 0 0 4px rgba(34,211,238,.22);
  animation: pulse 2s infinite;
}
@keyframes pulse{ 0%,100%{opacity:1} 50%{opacity:.35} }
.hero-v2-title{
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04; font-weight: 650; letter-spacing: -.035em;
  margin: 0 0 22px; color: #0f2747;
  text-shadow: none;
}
.hero-v2-title .hl{
  background: linear-gradient(100deg,#22d3ee 0%, #7c3aed 45%, #c026d3 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-v2-sub{
  font-size: clamp(15px, 1.8vw, 19px); line-height: 1.7;
  color: #41506a; max-width: 720px; margin: 0 0 32px;
}
/* 搜索框 */
.hero-v2-search{
  position: relative; display: flex; align-items: center;
  max-width: 620px; margin-bottom: 38px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,39,71,.16);
  border-radius: 12px; padding: 6px 6px 6px 46px;
  backdrop-filter: blur(8px);
  transition: border-color .25s, box-shadow .25s;
}
.hero-v2-search:focus-within{
  border-color: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124,58,237,.14);
}
.hero-v2-search .hs-ico{
  position: absolute; left: 16px; width: 20px; height: 20px; color: #5b8fd0;
}
.hero-v2-search input{
  flex: 1; background: transparent; border: 0; outline: 0;
  color: #0f2747; font-size: 16px; padding: 13px 8px; font-family: var(--font-cn);
}
.hero-v2-search input::placeholder{ color: #9fb0c8; }
.hero-v2-search button{
  border: 0; cursor: pointer; padding: 12px 26px; border-radius: 10px;
  font-size: 15px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg,#22d3ee,#7c3aed);
  transition: transform .15s, box-shadow .2s;
}
.hero-v2-search button:hover{ transform: translateY(-1px); box-shadow: 0 8px 22px rgba(124,58,237,.4); }
/* 统计条 */
.hero-v2-stats{
  display: flex; flex-wrap: wrap; gap: 14px 40px;
}
.hero-v2-stats .hvs{ display: flex; flex-direction: column; }
.hero-v2-stats .hvs .num{
  font-family: var(--font-num); font-size: 34px; font-weight: 600; line-height: 1;
  background: linear-gradient(120deg,#6d28d9,#7c3aed);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-v2-stats .hvs span{ font-size: 13px; color: #7a8aa3; margin-top: 6px; }
/* 向下滚动提示 */
.hero-v2-scroll{
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(15,39,71,.4);
  border-radius: 14px; display: flex; justify-content: center; padding-top: 7px;
}
.hero-v2-scroll span{
  width: 4px; height: 8px; border-radius: 2px; background: #7c3aed;
  animation: scrolldot 1.6s infinite;
}
@keyframes scrolldot{ 0%{opacity:0;transform:translateY(-4px)} 40%{opacity:1} 100%{opacity:0;transform:translateY(12px)} }

/* ============ 经营范围全景 ============ */
.scope{
  position: relative;
  background: linear-gradient(180deg,#eef4fb 0%, #f5f8fc 100%);
  color: #0f2747; padding: 96px 0 100px; overflow: hidden;
}
.scope-bg{
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(120,170,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,255,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 100%);
}
.scope .container{ position: relative; z-index: 1; }
.scope-head{ text-align: center; max-width: 760px; margin: 0 auto 54px; }
.scope-tag{
  display: inline-block; font-size: 13px; letter-spacing: .14em; font-weight: 700;
  color: #6d28d9; padding: 6px 16px; border-radius: 999px;
  background: rgba(124,58,237,.10); border: 1px solid rgba(124,58,237,.28);
  margin-bottom: 18px;
}
.scope-head h2{
  font-size: clamp(28px, 4vw, 42px); font-weight: 650; letter-spacing: -.03em; margin: 0 0 14px; color: #0f2747;
}
.scope-head p{ font-size: 16px; color: #5b6b82; line-height: 1.7; margin: 0; }

.scope-panels{
  display: grid; grid-template-columns: 1fr 1.28fr 1fr; gap: 22px; align-items: start;
}
.scope-panel{
  position: relative;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,39,71,.10);
  border-radius: 16px; padding: 24px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: background .25s, border-color .25s;
}
.scope-panel:hover{ background: rgba(255,255,255,.92); border-color: rgba(124,58,237,.40); }
.scope-panel::after{
  content:""; position: absolute; left: 18px; top: 18px; width: 20px; height: 20px;
  border-left: 2px solid rgba(34,211,238,.5); border-top: 2px solid rgba(34,211,238,.5);
}
.scope-panel::before{
  content:""; position: absolute; right: 18px; bottom: 18px; width: 20px; height: 20px;
  border-right: 2px solid rgba(192,38,211,.5); border-bottom: 2px solid rgba(192,38,211,.5);
}
.scope-panel-wide{
  background:
    radial-gradient(620px 240px at 100% 0%, rgba(34,211,238,.12), transparent 60%),
    rgba(255,255,255,.85);
  border: 1px solid rgba(15,39,71,.12);
  border-radius: 16px;
  background-clip: padding-box;
  box-shadow: 0 24px 60px rgba(20,60,120,.12);
}
.sp-head{ display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.sp-ico{
  width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(124,58,237,.18));
  border: 1px solid rgba(124,58,237,.30); color: #6d28d9;
}
.sp-ico .ico{ width: 24px; height: 24px; }
.sp-ico-hot{
  background: linear-gradient(135deg, rgba(34,211,238,.30), rgba(192,38,211,.30));
  color: #fff; box-shadow: 0 0 22px rgba(34,211,238,.3);
}
.sp-head b{ display: block; font-size: 18px; color: #0f2747; font-weight: 700; }
.sp-head span{ font-size: 12.5px; color: #7a8aa3; }

.sp-cards{ display: flex; flex-direction: column; gap: 10px; }
.sp-card{
  display: flex; align-items: center; gap: 13px;
  padding: 13px 14px; border-radius: 12px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,39,71,.08);
  text-decoration: none; color: #0f2747;
  transition: transform .18s, border-color .2s, background .2s;
}
.sp-card:hover{
  transform: translateX(4px);
  border-color: rgba(124,58,237,.45);
  background: rgba(124,58,237,.06);
}
.spc-ic{
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center; color: #6d28d9;
  background: rgba(124,58,237,.10);
}
.spc-ic .ico{ width: 20px; height: 20px; }
.sp-card > div{ flex: 1; min-width: 0; }
.sp-card b{ display: block; font-size: 15.5px; font-weight: 700; color: #0f2747; }
.sp-card i{ display: block; font-size: 12px; color: #7a8aa3; font-style: normal; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-card em{ font-style: normal; color: #2563eb; font-size: 18px; transition: transform .18s; }
.sp-card:hover em{ transform: translateX(3px); }

/* 耗材组 chips */
.sp-groups{ display: flex; flex-direction: column; gap: 11px; margin-bottom: 18px; }
.sp-grp{ }
.sp-grp > b{
  display: inline-block; font-size: 12.5px; font-weight: 700; color: #6d28d9;
  margin-bottom: 7px; padding-left: 11px; position: relative;
}
.sp-grp > b::before{
  content:""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: #22d3ee;
}
.chips{ display: flex; flex-wrap: wrap; gap: 7px; padding-left: 11px; }
.chips span{
  font-size: 12.5px; color: #41506a; padding: 5px 12px; border-radius: 999px;
  background: rgba(15,39,71,.04); border: 1px solid rgba(15,39,71,.10);
}
.sp-all{
  display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 700;
  color: #fff; text-decoration: none;
  background: linear-gradient(135deg,#22d3ee,#c026d3);
  padding: 11px 20px; border-radius: 11px;
  box-shadow: 0 8px 22px rgba(124,58,237,.30);
  transition: transform .15s, box-shadow .2s;
}
.sp-all:hover{ transform: translateY(-1px); box-shadow: 0 10px 28px rgba(124,58,237,.45); }

/* ============ 核心优势（浅色清爽段，制造节奏） ============ */
.adv{ background: linear-gradient(180deg,#fff 0%, #f5f8fc 100%); }
.adv .section-header, .quality-v2 .section-header{ text-align: center; max-width: 720px; margin: 0 auto 46px; }
.adv .section-tag, .quality-v2 .section-tag{
  display: inline-block; font-size: 13px; letter-spacing: .12em; font-weight: 700;
  color: #6d28d9; padding: 6px 16px; border-radius: 999px;
  background: rgba(109,40,217,.08); border: 1px solid rgba(109,40,217,.18);
  margin-bottom: 16px;
}
.adv .section-title, .quality-v2 .section-title{ color: #0f2747; }
.adv .section-desc, .quality-v2 .section-desc{ color: #5b6b82; }
.adv-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adv-card{
  position: relative; background: #fff; border: 1px solid #e7edf5; border-radius: 16px;
  padding: 26px 24px; overflow: hidden;
  transition: transform .2s, box-shadow .25s, border-color .2s;
}
.adv-card::before{
  content:""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg,#22d3ee,#7c3aed,#c026d3);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.adv-card:hover{ transform: translateY(-5px); box-shadow: 0 18px 40px rgba(20,60,120,.12); border-color: #cfe0f5; }
.adv-card:hover::before{ transform: scaleX(1); }
.adv-ic{
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(34,211,238,.14), rgba(124,58,237,.14));
  color: #6d28d9; margin-bottom: 16px;
}
.adv-ic .ico{ width: 26px; height: 26px; }
.adv-card h3{ font-size: 18px; margin: 0 0 9px; color: #122a4a; }
.adv-card p{ font-size: 14px; line-height: 1.7; color: #5b6b82; margin: 0; }

/* ============ 品质保障（浅色） ============ */
.quality-v2{ background: #eef3f9; padding: 88px 0; }
.qv-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.qv-card{
  background: #fff; border: 1px solid #e2e9f2; border-radius: 15px; padding: 24px 22px;
  transition: transform .2s, box-shadow .25s;
}
.qv-card:hover{ transform: translateY(-5px); box-shadow: 0 16px 36px rgba(20,60,120,.12); }
.qv-ic{
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(192,38,211,.14), rgba(124,58,237,.14));
  color: #6d3bd4; margin-bottom: 15px;
}
.qv-ic .ico{ width: 24px; height: 24px; }
.qv-card h3{ font-size: 16.5px; margin: 0 0 9px; color: #122a4a; }
.qv-card p{ font-size: 13.5px; line-height: 1.7; color: #5b6b82; margin: 0; }

/* ============ 精选热销（沿用 style.css .featured-grid，浅灰底） ============ */
.featured-blocks{ background: linear-gradient(180deg,#f5f8fc,#fff); }
.featured-blocks .section-header{ text-align: center; max-width: 720px; margin: 0 auto 46px; }
.featured-blocks .section-tag{
  display: inline-block; font-size: 13px; letter-spacing: .12em; font-weight: 700;
  color: #6d28d9; padding: 6px 16px; border-radius: 999px;
  background: rgba(109,40,217,.08); border: 1px solid rgba(109,40,217,.18); margin-bottom: 16px;
}
.featured-blocks .section-title{ color: #0f2747; }
.featured-blocks .section-desc{ color: #5b6b82; }

/* ============ CTA 深空科技区 ============ */
.cs-cta{
  position: relative; overflow: hidden;
  background: linear-gradient(160deg,#eef4fb 0%, #f5f8fc 55%, #eef4fb 100%);
  color: #0f2747; text-align: center;
}
.cs-cta::before{
  content:""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(120,170,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,255,.05) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 100%);
}
.cs-cta .container{ position: relative; z-index: 2; }
.cs-cta h2{ font-size: clamp(26px,4vw,40px); font-weight: 650; letter-spacing: -.03em; margin: 0 0 16px; color: #0f2747; }
.cs-cta p{ font-size: 16px; color: #5b6b82; max-width: 540px; margin: 0 auto 34px; line-height: 1.7; }
.cs-cta-btns{ display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cs-cta .btn-primary{
  background: linear-gradient(135deg,#22d3ee,#7c3aed); color: #fff; border: 0;
  box-shadow: 0 10px 30px rgba(124,58,237,.30);
}
.cs-cta .btn-outline{ border-color: rgba(15,39,71,.3); color: #0f2747; }
.cs-cta .btn-outline:hover{ background: rgba(15,39,71,.05); }
.cta-tel{
  display: inline-flex; align-items: center; gap: 12px; margin-top: 30px;
  padding: 12px 26px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(192,38,211,.12));
  border: 1px solid rgba(124,58,237,.30);
}
.cta-tel .lab{ font-size: 13px; color: #6d28d9; }
.cta-tel a{
  font-family: var(--font-num); font-size: 22px; font-weight: 700; color: #6d28d9;
  text-decoration: none; letter-spacing: .03em;
}
.cta-orb{
  position: absolute; border-radius: 50%; filter: blur(8px); pointer-events: none; z-index: 1;
}
.cta-orb.o1{ width: 280px; height: 280px; left: -60px; top: -80px; background: radial-gradient(circle, rgba(34,211,238,.22), transparent 70%); animation: float1 9s ease-in-out infinite; }
.cta-orb.o2{ width: 320px; height: 320px; right: -80px; bottom: -100px; background: radial-gradient(circle, rgba(192,38,211,.22), transparent 70%); animation: float2 11s ease-in-out infinite; }
@keyframes float1{ 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,30px)} }
@keyframes float2{ 0%,100%{transform:translate(0,0)} 50%{transform:translate(-25px,-20px)} }

/* ============ 光斑（桌面 hover） ============ */
.adv-card, .qv-card, .sp-card, .scope-panel{
  position: relative;
}
.adv-card::after, .qv-card::after, .sp-card::after{
  content:""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(180px circle at var(--mx,50%) var(--my%,50%), rgba(34,211,238,.12), transparent 60%);
  opacity: 0; transition: opacity .25s;
}
.adv-card:hover::after, .qv-card:hover::after, .sp-card:hover::after{ opacity: 1; }

/* ============ 入场动画兜底 ============ */
.animate-in{ opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.animate-in.visible{ opacity: 1; transform: none; }
html:not(.js-on) .animate-in{ opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce){
  .animate-in{ opacity: 1 !important; transform: none !important; transition: none; }
  .hero-v2-badge .dot, .cta-orb, .hero-v2-scroll span{ animation: none; }
}

/* ============ 响应式 ============ */
@media (max-width: 1024px){
  .scope-panels{ grid-template-columns: 1fr; }
  .adv-grid{ grid-template-columns: repeat(2, 1fr); }
  .qv-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px){
  .hero-v2{ padding: 110px 0 70px; min-height: auto; }
  .hero-v2-stats{ gap: 16px 28px; }
  .hero-v2-stats .hvs .num{ font-size: 28px; }
  .hero-v2-search{ padding-left: 42px; }
  .hero-v2-search button{ padding: 11px 18px; }
  .adv-grid, .qv-grid{ grid-template-columns: 1fr; }
  .scope{ padding: 70px 0 78px; }
  .chips span{ font-size: 12px; padding: 4px 10px; }
  .sp-card i{ white-space: normal; }
  .hero-v2-scroll{ display: none; }
}

/* ============ 首页页脚（浅色，与全站统一明亮） ============ */
.footer{
  background: linear-gradient(180deg,#eef3fa 0%, #e7eef8 100%);
  color: #41506a;
  border-top: 1px solid rgba(15,39,71,.08);
}
.footer-grid{ border-bottom: 1px solid rgba(15,39,71,.10); }
.footer-brand .logo{ background: transparent; }
.footer-brand p{ color: #5b6b82; }
.footer h4{ color: #0f2747; }
.footer-links a{ color: #5b6b82; }
.footer-links a .ico{ color: #6d28d9; }
.footer-links a:hover{ color: #6d28d9; padding-left: 4px; }
.footer-bottom{ color: #7a8aa3; border-top: 1px solid rgba(15,39,71,.08); }
.footer-bottom .icp{ color: #7a8aa3; }
