/* ===================================================================
   聚量 AdFlow · 广告聚合平台官网 H5
   Responsive (mobile-first) + refined modern ad-tech UI
=================================================================== */
:root {
  --blue: #4688F3;   /* primary solid — matches logo blue */
  --purple: #1E90FF; /* secondary accent — ocean blue */
  --cyan: #06B6D4;
  --ink: #0F1633;
  --ink-2: #3a4060;
  --gray: #6a708a;
  --line: #e4e7f6;
  --bg: #ffffff;
  --bg-tint: #f1f7ff;
  --grad: #4688F3;   /* solid primary */
  --grad-soft: #e7f1ff;   /* soft solid tint */
  --shadow-sm: 0 4px 16px rgba(22, 30, 80, .07);
  --shadow-md: 0 12px 36px rgba(22, 30, 80, .12);
  --shadow-lg: 0 24px 60px rgba(22, 30, 80, .18);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --header-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px; border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; white-space: nowrap; transition: .25s ease;
  font-family: inherit;
}
.btn-lg { height: 52px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; /**box-shadow: 0 8px 22px rgba(70, 136, 243, .32);**/ }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(70, 136, 243, .42); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--blue); }
.btn-outline { background: #fff; color: var(--blue); border: 1.5px solid rgba(70, 136, 243, .35); }
.btn-outline:hover { border-color: var(--blue); background: #ebf3ff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-img { height: 66px; width: auto; display: block; }
.brand-img-footer { height: 66px; }
.brand-logo { display: inline-flex; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.brand-name i { font-style: normal; font-weight: 700; color: var(--blue); margin-left: 4px; font-size: 15px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand-light .brand-name { color: #fff; }

.nav { display: flex; gap: 30px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-2); position: relative; transition: .2s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad); border-radius: 2px; transition: .25s; }
.nav a:hover { color: var(--blue); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; width: 42px; height: 42px; border: none; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; margin: 0 auto; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 60px) 0 0; overflow: hidden; background: #f0f6ff; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob-1 { width: 460px; height: 460px; background: #5b9bff; opacity: .16; top: -120px; right: -80px; }
.blob-2 { width: 420px; height: 420px; background: #8fd0ff; opacity: .16; top: 120px; left: -120px; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(70, 136, 243,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(70, 136, 243,.05) 1px, transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 75%); }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding-bottom: 70px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 600; color: var(--blue); }
.hero-title { font-size: 52px; line-height: 1.18; font-weight: 800; margin: 22px 0 18px; letter-spacing: -.5px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 18px; color: var(--gray); max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }

/* hero visual */
.hero-visual { position: relative; }
.dash-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 18px; border: 1px solid var(--line); transform: perspective(1000px) rotateY(-6deg) rotateX(2deg); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: perspective(1000px) rotateY(-6deg) rotateX(2deg) translateY(0); } 50% { transform: perspective(1000px) rotateY(-6deg) rotateX(2deg) translateY(-12px); } }
.dash-head { display: flex; align-items: center; gap: 7px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; background: #e4e7f0; }
.dash-dot:nth-child(1) { background: #ff6058; } .dash-dot:nth-child(2) { background: #ffbd2e; } .dash-dot:nth-child(3) { background: #28c840; }
.dash-head em { font-style: normal; margin-left: auto; font-size: 13px; color: var(--gray); font-weight: 600; }
.dash-body { padding-top: 16px; }
.dash-stat { display: flex; flex-direction: column; }
.dash-stat span { font-size: 13px; color: var(--gray); }
.dash-stat b { font-size: 30px; font-weight: 800; margin: 2px 0; }
.dash-stat .up { font-style: normal; font-size: 13px; color: #16b364; font-weight: 700; }
.dash-chart { margin: 14px 0; }
.dash-chart svg { width: 100%; height: 110px; }
.dash-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-tags span { font-size: 12px; padding: 5px 12px; border-radius: 999px; background: var(--grad-soft); color: var(--blue); font-weight: 600; }
.float-pill { position: absolute; background: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow-md); font-size: 13px; font-weight: 700; color: var(--ink); border: 1px solid var(--line); }
.pill-1 { top: 8%; left: -28px; animation: floaty2 5s ease-in-out infinite; }
.pill-2 { bottom: 12%; right: -18px; animation: floaty2 5s ease-in-out infinite .8s; }
@keyframes floaty2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-trust { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 18px 0; }
.hero-trust span { display: block; text-align: center; font-size: 14px; color: var(--gray); letter-spacing: 1px; }

/* ---------- Sections ---------- */
.section { padding: 86px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--blue); margin-bottom: 12px; }
.section-head h2 { font-size: 36px; font-weight: 800; letter-spacing: -.5px; }
.section-head p { color: var(--gray); font-size: 17px; margin-top: 14px; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: .3s ease; position: relative; overflow: hidden; }
.feature-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: .3s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feat-icon { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: #fff; }
.icon-blue { background: #4688F3; }
.icon-purple { background: #1E90FF; }
.icon-cyan { background: #06B6D4; }
.icon-green { background: #16b364; }
.icon-orange { background: #ff8a3d; }
.icon-pink { background: #ff5d8f; }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--gray); font-size: 15px; }

/* ---------- Platforms (logo grid) ---------- */
.logo-group { margin-top: 32px; }
.logo-group:first-of-type { margin-top: 0; }
.logo-group-title { font-size: 18px; font-weight: 700; color: var(--ink-2); margin-bottom: 18px; padding-left: 12px; border-left: 3px solid var(--blue); }
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logo-item { height: 84px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; padding: 16px; transition: .25s; }
.logo-item img { max-width: 78%; max-height: 42px; object-fit: contain; }
.logo-item .logo-text { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.logo-item:hover { border-color: rgba(70, 136, 243,.4); box-shadow: var(--shadow-sm); transform: translateY(-4px); }

/* ---------- Ad formats ---------- */
.format-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.format-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .3s; }
.format-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.fmt-preview { height: 300px; position: relative; display: flex; align-items: center; justify-content: center; background: var(--grad-soft); overflow: hidden; padding: 18px 0 0; }
.fmt-preview img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom center; display: block; filter: drop-shadow(0 10px 24px rgba(20,30,55,.18)); }
.fmt-preview em { position: absolute; right: 12px; top: 10px; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: rgba(70, 136, 243,.55); }
.fmt-text { flex: 1; display: flex; flex-direction: column; }
.format-card h3 { font-size: 18px; font-weight: 700; padding: 18px 18px 6px; }
.format-card p { color: var(--gray); font-size: 13.5px; line-height: 1.7; padding: 0 18px 22px; }

/* ---------- Stat band ---------- */
.stat-band { background: var(--grad); color: #fff; padding: 56px 0; }
.stat-band-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-size: 44px; font-weight: 800; line-height: 1; }
.stat span { font-size: 14px; opacity: .9; margin-top: 8px; display: inline-block; }

/* ---------- Cases ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: .3s; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.case-top { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; margin-bottom: 16px; }
.tag-game { background: #e3efff; color: #4688F3; }
.tag-tool { background: #eafff4; color: #16b364; }
.tag-content { background: #fff3e8; color: #ff8a3d; }
.tag-camera { background: #f3e8ff; color: #9333ea; }
.tag-video { background: #e4f0ff; color: #1E90FF; }
.case-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.case-card > p { color: var(--gray); font-size: 15px; margin-bottom: 22px; }
.case-kpi { display: flex; gap: 14px; border-top: 1px dashed var(--line); padding-top: 20px; }
.case-kpi div { flex: 1; text-align: center; }
.case-kpi b { display: block; font-size: 24px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.case-kpi span { font-size: 12px; color: var(--gray); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding: 80px 0; background: var(--grad); color: #fff; text-align: center; overflow: hidden; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; /**filter: blur(60px);**/ opacity: .35; }
.cta-band::before { width: 300px; height: 300px; background: #fff; top: -120px; left: 10%; }
.cta-band::after { width: 360px; height: 360px; background: #06B6D4; bottom: -160px; right: 8%; }
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 { font-size: 38px; font-weight: 800; }
.cta-inner p { font-size: 18px; opacity: .92; margin: 14px 0 30px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #07261F; color: #bcd8ce; padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2.6fr; gap: 50px; padding-bottom: 48px; }
.footer-desc { font-size: 14px; color: #7fa093; margin: 16px 0 22px; max-width: 320px; }
.footer-qr { display: flex; align-items: center; gap: 14px; }
.qr-box { background: #fff; padding: 8px; border-radius: 10px; }
.qr-box img { display: block; width: 92px; height: 92px; }
.footer-qr span { font-size: 13px; color: #7fa093; line-height: 1.5; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.footer-col h4 { font-size: 15px; color: #fff; margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; font-size: 14px; color: #7fa093; margin-bottom: 11px; transition: .2s; }
.footer-col a:hover { color: #fff; }
.footer-contact p { font-size: 14px; color: #7fa093; margin-bottom: 11px; display: flex; gap: 8px; }
.footer-contact p i { font-style: normal; color: #4f6b60; min-width: 34px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom span { font-size: 13px; color: #5f7d72; }
.footer-bottom a { display: inline-flex; align-items: center; color: inherit; text-decoration: none; transition: color .2s ease; white-space: nowrap; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.icp-icon { width: 14px; height: 14px; margin-right: 5px; flex-shrink: 0; }

/* ---------- Side dock (right floating) ---------- */
.side-dock { position: fixed; right: 18px; bottom: 90px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.dock-item { width: 64px; padding: 12px 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; color: var(--ink-2); font-size: 12px; font-weight: 600; transition: .22s; font-family: inherit; }
.dock-item:hover { color: #fff; background: var(--grad); border-color: transparent; transform: translateX(-3px); }
.dock-item svg { transition: .2s; }
.dock-top { opacity: 0; pointer-events: none; transform: translateY(10px); }
.dock-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal-mask { position: absolute; inset: 0; background: rgba(6, 33, 27, .55); backdrop-filter: blur(3px); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(100% - 40px); max-width: 440px; background: #fff; border-radius: 20px; padding: 30px; box-shadow: var(--shadow-lg); animation: pop .3s cubic-bezier(.2,.8,.2,1); max-height: 90vh; overflow: auto; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.modal-close { position: absolute; right: 16px; top: 12px; width: 34px; height: 34px; border: none; background: transparent; font-size: 26px; color: var(--gray); cursor: pointer; line-height: 1; border-radius: 8px; transition: .2s; }
.modal-close:hover { background: var(--bg-tint); color: var(--ink); }
.modal-head h3 { font-size: 24px; font-weight: 800; }
.modal-head p { color: var(--gray); font-size: 14px; margin-top: 6px; }
.modal-form { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-form label { display: flex; flex-direction: column; gap: 7px; }
.modal-form label span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.modal-form label span i { color: #ff5d5d; font-style: normal; }
.modal-form input, .modal-form select { height: 46px; border: 1.5px solid var(--line); border-radius: 11px; padding: 0 14px; font-size: 15px; font-family: inherit; color: var(--ink); transition: .2s; background: #fff; }
.modal-form input:focus, .modal-form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(70, 136, 243,.12); }
.modal-form input.err { border-color: #ff5d5d; }
.modal-form button { margin-top: 6px; }
.form-tip { font-size: 12px; color: var(--gray); text-align: center; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.feature-grid .reveal:nth-child(2), .format-grid .reveal:nth-child(2) { transition-delay: .08s; }
.feature-grid .reveal:nth-child(3), .format-grid .reveal:nth-child(3) { transition-delay: .16s; }

/* ===================================================================
   Responsive
=================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 44px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .format-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .container { padding: 0 18px; }

  /* nav -> drawer */
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; background: #fff; padding: 8px 0; box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform .32s ease; border-top: 1px solid var(--line); }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 24px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn-primary { height: 38px; padding: 0 16px; font-size: 14px; }

  /* hero */
  .hero { padding-top: calc(var(--header-h) + 36px); }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; padding-bottom: 48px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 16px; margin: 0 auto 26px; }
  .hero-cta { justify-content: center; }
  .hero-visual { max-width: 360px; margin: 0 auto; }
  .dash-card { transform: none; animation: none; }
  .pill-1 { left: -8px; } .pill-2 { right: -6px; }

  /* sections */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 38px; }
  .section-head h2 { font-size: 27px; }
  .section-head p { font-size: 15px; }

  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 24px 22px; }
  .format-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .fmt-preview { height: 260px; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .logo-item { height: 68px; padding: 12px; }

  .stat-band { padding: 40px 0; }
  .stat-band-inner { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .stat strong { font-size: 34px; }

  .case-grid { grid-template-columns: 1fr; gap: 16px; }
  .case-card { padding: 24px; }
  .case-card h3 { font-size: 19px; }

  .cta-inner h2 { font-size: 27px; }
  .cta-inner p { font-size: 15px; }
  .cta-btns .btn { flex: 1; min-width: 140px; }

  /* footer */
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  /* side dock -> compact */
  .side-dock { right: 12px; bottom: 16px; gap: 8px; }
  .dock-item { width: 54px; padding: 9px 0; font-size: 11px; border-radius: 12px; }
  .dock-item svg { width: 19px; height: 19px; }
}

@media (max-width: 380px) {
  .format-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
