/* ============================================================
   河南省汇流电子科技有限公司 · 官网 H5
   品牌配色（取自 logo 渐变蓝）：主 #1E73BE / 浅 #2E9BD8 / 深 #0B3C8C
   设计语言：流线汇聚 · 圆形徽章 · 蓝色渐变光晕（呼应 logo 环绕流线）
   ============================================================ */

:root {
  --c-primary: #1e73be;
  --c-primary-light: #2e9bd8;
  --c-primary-dark: #0b3c8c;
  --c-ink: #16233a;
  --c-text: #5a6b7b;
  --c-bg: #ffffff;
  --c-bg-soft: #f5f7fa;
  --c-border: #e3e8ef;
  --grad-brand: linear-gradient(135deg, #2e9bd8 0%, #1e73be 48%, #0b3c8c 100%);
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-card: 0 6px 24px rgba(11, 60, 140, 0.08);
  --shadow-float: 0 12px 40px rgba(11, 60, 140, 0.16);
  --wrap: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ---------- 顶部导航（毛玻璃） ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(227, 232, 239, 0.6);
  transition: box-shadow 0.3s;
}
.topbar.scrolled { box-shadow: 0 4px 24px rgba(11, 60, 140, 0.1); }
.topbar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(30, 115, 190, 0.35);
  flex-shrink: 0;
}
.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-name em { font-style: normal; color: var(--c-primary); }
.topbar-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 4px 14px rgba(30, 115, 190, 0.35);
}
.topbar-tel svg { width: 14px; height: 14px; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  background: var(--grad-brand);
  color: #fff;
  padding: 128px 0 96px;
  overflow: hidden;
}
/* 流线层（呼应 logo 的环绕带状流线） */
.hero-stream {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 65%);
  top: -220px; right: -160px;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-logo {
  width: 108px; height: 108px;
  margin: 0 auto 22px;
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.12), 0 18px 50px rgba(0, 20, 60, 0.45);
  animation: floatY 5s ease-in-out infinite;
}
.hero-since {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 3px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(26px, 6vw, 42px);
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.3;
  text-shadow: 0 4px 24px rgba(0, 20, 60, 0.35);
}
.hero-sub {
  margin-top: 14px;
  font-size: clamp(14px, 3.4vw, 17px);
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 1px;
}
.hero-cta {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn svg { width: 16px; height: 16px; }
.btn-light {
  background: #fff;
  color: var(--c-primary-dark);
  box-shadow: 0 8px 26px rgba(0, 20, 60, 0.3);
}
.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}
.btn:active { transform: scale(0.96); }

/* 波浪过渡到白底 */
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
  z-index: 2;
}
.hero-wave svg { width: 100%; height: 60px; display: block; }

/* ---------- 数据带 ---------- */
.stats {
  padding: 46px 0 8px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.stat-card {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 22px 12px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.stat-card:active { transform: scale(0.97); }
.stat-num {
  font-size: 34px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}
.stat-num small { font-size: 18px; font-weight: 700; }
.stat-label { margin-top: 4px; font-size: 13px; color: var(--c-text); }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--c-bg-soft); }
.sec-head { text-align: center; margin-bottom: 42px; }
.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--c-primary);
  text-transform: uppercase;
}
.sec-eyebrow::before,
.sec-eyebrow::after {
  content: "";
  width: 26px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--c-primary-light));
}
.sec-eyebrow::after { background: linear-gradient(90deg, var(--c-primary-light), transparent); }
.sec-title {
  margin-top: 12px;
  font-size: clamp(24px, 5.4vw, 34px);
  font-weight: 800;
  letter-spacing: 1px;
}
.sec-desc { margin-top: 12px; color: var(--c-text); font-size: 15px; }

/* ---------- 业务卡片 ---------- */
.biz-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.biz-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: transform 0.28s, box-shadow 0.28s;
}
.biz-card::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 155, 216, 0.14) 0%, transparent 70%);
}
.biz-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(30, 115, 190, 0.32);
  margin-bottom: 18px;
}
.biz-icon svg { width: 28px; height: 28px; color: #fff; }
.biz-tag {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-primary);
  background: rgba(46, 155, 216, 0.12);
  border: 1px solid rgba(46, 155, 216, 0.28);
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: 1px;
}
.biz-title { font-size: 20px; font-weight: 800; letter-spacing: 0.5px; }
.biz-desc { margin-top: 10px; font-size: 14.5px; color: var(--c-text); }

/* ---------- 发展历程（时间线） ---------- */
.timeline { position: relative; max-width: 720px; margin: 0 auto; }
.timeline::before {
  content: "";
  position: absolute;
  left: 21px; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--c-primary-light), var(--c-primary), var(--c-primary-dark));
}
.tl-item { position: relative; padding: 0 0 34px 66px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: 8px; top: 5px;
  width: 29px; height: 29px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--c-primary);
  box-shadow: 0 0 0 6px rgba(46, 155, 216, 0.15);
}
.tl-dot::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
}
.tl-year {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--c-primary-dark);
  background: rgba(46, 155, 216, 0.12);
  padding: 3px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.tl-title { font-size: 18px; font-weight: 800; }
.tl-text { margin-top: 6px; font-size: 14.5px; color: var(--c-text); }

/* ---------- 价值观 ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.value-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s;
}
.value-num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--c-primary-light);
}
.value-title {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 800;
  position: relative;
  display: inline-block;
}
.value-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -8px;
  transform: translateX(-50%);
  width: 22px; height: 3px;
  border-radius: 3px;
  background: var(--grad-brand);
}
.value-text { margin-top: 14px; font-size: 12.5px; color: var(--c-text); line-height: 1.7; }

/* ---------- 愿景使命 ---------- */
.vision-box {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--grad-brand);
  color: #fff;
  padding: 40px 28px;
  overflow: hidden;
  box-shadow: var(--shadow-float);
}
.vision-box::before {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.07);
  top: -140px; right: -100px;
}
.vision-box::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 30px solid rgba(255, 255, 255, 0.06);
  bottom: -120px; left: -80px;
}
.vision-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 4px 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 14px;
}
.vision-title { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.vision-text { margin-top: 12px; font-size: 14.5px; color: rgba(255, 255, 255, 0.92); position: relative; z-index: 1; }
.vision-split { margin-top: 20px; }

/* ---------- 门店列表 ---------- */
.store-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
.store-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s;
}
.store-mark {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(46, 155, 216, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-mark svg { width: 22px; height: 22px; color: var(--c-primary); }
.store-info { flex: 1; min-width: 0; }
.store-addr {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
}
.store-tel { margin-top: 2px; font-size: 13px; color: var(--c-text); }
.store-call {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(30, 115, 190, 0.35);
  transition: transform 0.2s;
}
.store-call svg { width: 18px; height: 18px; color: #fff; }
.store-call:active { transform: scale(0.9); }

/* ---------- 页脚 ---------- */
.footer {
  background: linear-gradient(160deg, #0b3c8c 0%, #092f6e 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 52px 0 36px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 155, 216, 0.25) 0%, transparent 70%);
  top: -200px; left: -120px;
}
.footer-logo {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08), 0 12px 30px rgba(0, 20, 60, 0.4);
}
.footer-name { text-align: center; font-size: 17px; font-weight: 800; letter-spacing: 2px; color: #fff; }
.footer-slogan {
  text-align: center;
  margin-top: 8px;
  font-size: 12.5px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-line {
  width: 44px; height: 3px;
  margin: 22px auto;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--c-primary-light), transparent);
}
.footer-contact {
  text-align: center;
  font-size: 13.5px;
  line-height: 2.1;
}
.footer-contact strong { color: #fff; font-size: 16px; }
.footer-copy {
  margin-top: 26px;
  text-align: center;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 1px;
  line-height: 2;
}
.footer-copy a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}
.footer-copy a:active { color: #fff; }

/* ---------- 滚动入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* 首屏加载入场（分层错落） */
.hero [data-anim] { opacity: 0; transform: translateY(20px); animation: riseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.hero [data-anim="1"] { animation-delay: 0.05s; }
.hero [data-anim="2"] { animation-delay: 0.18s; }
.hero [data-anim="3"] { animation-delay: 0.32s; }
.hero [data-anim="4"] { animation-delay: 0.46s; }

@keyframes riseIn { to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* 流线描边动画 */
.hero-stream .st-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 3.2s ease forwards;
}
.hero-stream .st-line:nth-child(2) { animation-delay: 0.5s; }
.hero-stream .st-line:nth-child(3) { animation-delay: 1s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .store-list { grid-template-columns: repeat(2, 1fr); }
  .vision-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .vision-split { margin-top: 0; }
}

@media (min-width: 960px) {
  .biz-grid { grid-template-columns: repeat(4, 1fr); }
  .store-list { grid-template-columns: repeat(3, 1fr); }
  .brand-name { font-size: 17px; }
  .hero { padding: 170px 0 130px; }
  .biz-card { padding: 32px 26px 30px; }
  .value-text { font-size: 13.5px; }
}

/* 尊重系统减弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
