/* =========================================================
   义乌市微冠网络科技有限公司 · 官网统一样式（科技风）
   ========================================================= */
:root {
  --bg: #060a18;
  --bg-2: #0a1126;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(140, 170, 255, 0.14);
  --border-strong: rgba(140, 170, 255, 0.30);
  --text: #eaf0fb;
  --muted: #97a6c2;
  --muted-2: #6f7e9c;
  --primary: #2e7bff;
  --accent: #00e0c6;
  --grad: linear-gradient(120deg, #2e7bff 0%, #00e0c6 100%);
  --grad-soft: linear-gradient(120deg, rgba(46,123,255,0.18), rgba(0,224,198,0.18));
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --radius: 18px;
  --maxw: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* 背景网格 + 光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -5%, rgba(46, 123, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at 100% 5%, rgba(0, 224, 198, 0.14), transparent 55%),
    radial-gradient(1200px 800px at 50% 110%, rgba(46, 123, 255, 0.10), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(140, 170, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 255, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ===================== 导航 ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 10, 24, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.nav-left { display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .5px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--grad);
  display: grid; place-items: center;
  font-weight: 900; color: #04111f; font-size: 17px;
  box-shadow: 0 6px 18px rgba(46,123,255,.45);
}
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 1px; }
.nav-links { display: flex; gap: 26px; align-items: center; font-size: 14.5px; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 18px; border-radius: 999px;
  background: var(--grad); color: #04111f; font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 22px rgba(46,123,255,.35);
}
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text);
  width: 42px; height: 38px; border-radius: 10px; font-size: 18px; cursor: pointer; }
.city-switch {
  appearance: none; -webkit-appearance: none;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2.5 4.5l3.5 3.5 3.5-3.5' stroke='%2397a6c2' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 12px 12px;
  border: 1px solid var(--border-strong); color: var(--text);
  font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1;
  padding: 7px 30px 7px 14px; border-radius: 999px; cursor: pointer; margin-left: 2px;
  transition: border-color .2s, background-color .2s;
}
.city-switch:hover { border-color: var(--accent); }
.city-switch option { background: #0a1126; color: var(--text); }

/* ===================== 通用区块 ===================== */
section { padding: 92px 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 2px; color: var(--accent);
  text-transform: uppercase; font-weight: 700; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.25; font-weight: 800; letter-spacing: .5px; }
.lead { color: var(--muted); font-size: 16px; max-width: 720px; margin-top: 14px; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ===================== Hero ===================== */
.hero { padding: 86px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.16; font-weight: 900; letter-spacing: .5px; }
.hero p.sub { color: var(--muted); font-size: 17px; margin-top: 20px; max-width: 560px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-tags span {
  font-size: 13px; color: var(--text); padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
}
.btn-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease; border: 1px solid transparent;
}
.btn-primary { background: var(--grad); color: #04111f; box-shadow: 0 12px 30px rgba(46,123,255,.4); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn:hover { transform: translateY(-2px); }

.hero-card {
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--border); border-radius: 22px; padding: 26px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; top: -40%; right: -30%; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(0,224,198,.35), transparent 70%); filter: blur(10px);
}
.glow-orb {
  position: absolute; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,123,255,.55), transparent 70%); filter: blur(20px);
}
.glow-orb.a { top: 10%; left: -10%; }
.glow-orb.b { bottom: -8%; right: 10%; background: radial-gradient(circle, rgba(0,224,198,.5), transparent 70%); }

/* ===================== 数据带 ===================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 20px; text-align: center;
}
.stat .num { font-size: 34px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .label { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

/* ===================== 卡片网格 ===================== */
.cards { display: grid; gap: 22px; margin-top: 40px; }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; position: relative; overflow: hidden; transition: transform .25s, border-color .25s, background .25s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.card .ico {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border-strong); font-size: 24px; margin-bottom: 16px;
}
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.card .tags span { font-size: 12px; color: var(--accent); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; }
.card.feature { background: linear-gradient(160deg, rgba(46,123,255,.14), rgba(0,224,198,.06)); border-color: var(--border-strong); }

/* ===================== 流程 / 列表 ===================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.check-list { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.check-list .dot { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--grad);
  display: grid; place-items: center; color: #04111f; font-size: 13px; font-weight: 900; margin-top: 3px; }
.check-list small { display: block; color: var(--muted); font-size: 13.5px; }

/* ===================== 城市网络 ===================== */
.city-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 38px; }
.city-pill {
  display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center;
  padding: 18px 10px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface); transition: .2s; text-align: center;
}
.city-pill:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-3px); }
.city-pill b { font-size: 16px; }
.city-pill span { font-size: 11.5px; color: var(--muted); }
.city-pill.hq { border-color: var(--accent); background: var(--grad-soft); }

/* ===================== FAQ ===================== */
.faq { max-width: 860px; margin: 36px auto 0; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; background: var(--surface); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--text);
  font-size: 16px; font-weight: 700; padding: 18px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-q .pm { color: var(--accent); font-size: 22px; flex: 0 0 auto; transition: transform .2s; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--muted); font-size: 14.5px; }
.faq-a div { padding: 0 22px 20px; }

/* ===================== 联系 / 页脚 ===================== */
.contact-box {
  background: linear-gradient(150deg, rgba(46,123,255,.16), rgba(0,224,198,.08));
  border: 1px solid var(--border-strong); border-radius: 24px; padding: 46px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
}
.contact-box .info { display: grid; gap: 12px; margin-top: 16px; }
.contact-box .info div { display: flex; gap: 10px; color: var(--text); font-size: 15px; }
.contact-box .info b { color: var(--accent); min-width: 64px; display: inline-block; }

footer { border-top: 1px solid var(--border); padding: 46px 0 30px; color: var(--muted); margin-top: 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot-col h4 { color: var(--text); font-size: 15px; margin-bottom: 14px; }
.foot-col a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; transition: color .2s; }
.foot-col a:hover { color: var(--accent); }
.foot-cities { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-cities a { border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; font-size: 12.5px; }
.foot-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted-2); text-align: center; }
.foot-files { margin-top: 8px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.foot-files a { color: var(--muted); font-size: 12.5px; text-decoration: none; border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; transition: border-color .2s, color .2s; }
.foot-files a:hover { color: var(--accent); border-color: var(--accent); }

/* 面包屑（分站） */
.crumb { font-size: 13.5px; color: var(--muted); padding: 18px 0 0; }
.crumb a:hover { color: var(--accent); }

/* 动画 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===================== 响应式 ===================== */
/* 中屏 / iPad 横屏（≤980）：网格适量收窄但保留多列，导航仍显示 */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards.c3 { grid-template-columns: repeat(2, 1fr); }
  .city-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
/* 手机 / 竖屏平板（≤768）：移动端体验，汉堡菜单 + 单列 + 底部栏 */
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.show { display: flex; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; gap: 4px; padding: 14px 22px 18px; background: rgba(6,10,24,.97);
    border-bottom: 1px solid var(--border); }
  .hero-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .contact-box { grid-template-columns: 1fr; }
  .cards.c3, .cards.c2 { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ===================== 右侧在线悬浮客服（桌面） ===================== */
.cs-root { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 60; }
.float-cs {
  width: 218px;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid var(--border-strong); border-radius: 18px;
  box-shadow: var(--shadow); backdrop-filter: blur(10px); overflow: hidden;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), opacity .3s ease;
}
.float-cs__collapse {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; font-size: 15px; line-height: 1; z-index: 3; transition: .2s;
}
.float-cs__collapse:hover { border-color: var(--border-strong); background: var(--surface); }
.float-cs__body { padding: 18px 16px 16px; }
.float-cs__title { font-size: 15px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.float-cs__title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2bd47a; box-shadow: 0 0 10px #2bd47a; }
.cs-row {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 10px; color: var(--text); cursor: pointer; transition: .2s;
}
.cs-row:hover { border-color: var(--border-strong); background: var(--surface-2); }
.cs-row b { font-size: 14.5px; }
.cs-row small { color: var(--muted); font-size: 12px; }
.cs-ico { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border-strong); font-size: 18px; }
.cs-qr { text-align: center; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 2px; }
.cs-qr img { width: 132px; height: 132px; border-radius: 10px; background: #fff; padding: 6px; }
.cs-qr small { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; }

/* 收起态：浮窗滑出屏幕，隐藏自身收起按钮 */
.cs-root.collapsed .float-cs { transform: translateX(140%); opacity: 0; pointer-events: none; }
.cs-root.collapsed .float-cs__collapse { display: none; }

/* 贴边展开手柄（仅在收起时显示，独立于浮窗、永远可点） */
.cs-tab {
  display: none; position: fixed; right: 14px; top: 50%; transform: translateY(-50%);
  z-index: 61; align-items: center; justify-content: center; gap: 6px;
  width: 46px; height: 96px; cursor: pointer; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(160deg, #00e0c6, #2e7bff);
  box-shadow: 0 10px 30px rgba(0,224,198,.45);
  color: #fff; writing-mode: vertical-rl; text-orientation: mixed;
  font-weight: 800; font-size: 14px; letter-spacing: 3px; transition: .25s;
}
.cs-tab:hover { box-shadow: 0 12px 36px rgba(0,224,198,.62); transform: translateY(-50%) scale(1.04); }
.cs-tab__ico { writing-mode: horizontal-tb; font-size: 18px; line-height: 1; margin-bottom: 4px; }
.cs-root.collapsed .cs-tab { display: flex; }

/* ===================== 微信二维码直接展示 ===================== */
.cs-qr { text-align: center; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 2px; }
.cs-qr img { width: 156px; height: 156px; border-radius: 12px; background: #fff; padding: 8px; display: block; margin: 0 auto; }
.cs-qr small { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; }
.contact-qr { text-align: center; margin-top: 16px; }
.contact-qr img { width: 190px; height: 190px; border-radius: 14px; background: #fff; padding: 10px; }
.contact-qr small { display: block; color: var(--muted); font-size: 13px; margin-top: 10px; }
.mobile-qr { display: none; text-align: center; padding: 28px 16px 12px; }
.mobile-qr__title { font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.mobile-qr img { width: 190px; height: 190px; border-radius: 16px; background: #fff; padding: 10px; }
@media (max-width: 768px) {
  .mobile-qr { display: block; }
}

/* ===================== 移动端底部固定悬浮栏 ===================== */
.mobile-bar { display: none; }
@media (max-width: 768px) {
  .float-cs, .cs-tab { display: none !important; }
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: rgba(8,12,26,.94); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-strong);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .mb-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: none; border: 0; color: var(--text); cursor: pointer;
    font-size: 12px; padding: 6px 2px; border-radius: 10px;
  }
  .mb-item span { font-size: 20px; line-height: 1; }
  .mb-item:active { background: var(--surface); }
  body { padding-bottom: 64px; }
}
