/* ============================================================
 * aoee.work 静态官网样式 (v69+ 重写版)
 *
 * 设计语言:
 *   - 主色: 渐变蓝紫 (#3b82f6 → #8b5cf6)
 *   - 表面: 玻璃态 (半透明白 + backdrop-filter blur)
 *   - 字体: 系统字体栈 (无外网依赖)
 *   - 暗色: 自动跟随 prefers-color-scheme
 *   - 响应式: mobile-first, ≥640px / ≥1024px 两个断点
 * ============================================================ */

/* ─── Reset & Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", Roboto, "Helvetica Neue",
               Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-dark); }
button { font: inherit; cursor: pointer; }

/* ─── Theme tokens (light) ────────────────────────────── */
:root {
  --bg: #f6f8fc;
  --bg-elev: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --text-regular: #334155;
  --text-muted: #64748b;
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --accent: #8b5cf6;
  --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-soft: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.08));
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(79, 70, 229, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-elev: #131a2e;
    --surface: rgba(30, 41, 75, 0.55);
    --surface-strong: #131a2e;
    --border: rgba(148, 163, 184, 0.16);
    --text: #f1f5f9;
    --text-regular: #cbd5e1;
    --text-muted: #94a3b8;
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --accent: #a78bfa;
    --gradient: linear-gradient(135deg, #6366f1 0%, #a78bfa 100%);
    --gradient-soft: linear-gradient(135deg, rgba(99,102,241,0.16), rgba(167,139,250,0.16));
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 50px rgba(99, 102, 241, 0.28);
  }
}

/* ─── Layout ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }
.section-alt { background: var(--gradient-soft); }
.section-products { background: var(--bg-elev); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 8px 0 12px; }
.section-head p { color: var(--text-regular); margin: 0; }

.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--gradient-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

/* ─── Header / Nav ────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, .08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15px; font-weight: 600; }
.brand-text small { font-size: 11px; color: var(--text-muted); letter-spacing: 0.02em; }

.nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-regular);
  font-size: 14px;
  font-weight: 500;
  transition: background-color .15s ease, color .15s ease;
}
.nav a:hover { background: var(--gradient-soft); color: var(--primary); }
.nav a.active {
  background: var(--gradient-soft);
  color: var(--primary);
  font-weight: 600;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--gradient);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #fff !important;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav { display: none; }
  .brand-text { display: none; }
  .nav-wrap { justify-content: space-between; }
}

/* ─── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 60px;
  background: var(--bg);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin: 8px 0 20px;
  letter-spacing: -0.01em;
}
.lede { font-size: 17px; color: var(--text-regular); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  list-style: none;
}
.hero-meta li { display: flex; flex-direction: column; }
.hero-meta strong { font-size: 26px; font-weight: 700; color: var(--text); }
.hero-meta span { font-size: 13px; color: var(--text-muted); }

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* Hero visual (orb + cards stack) */
.hero-visual {
  position: relative;
  height: 380px;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  animation: float 8s ease-in-out infinite;
}
.orb-a { width: 220px; height: 220px; background: #3b82f6; top: -40px; right: -30px; }
.orb-b { width: 180px; height: 180px; background: #8b5cf6; bottom: -30px; left: -20px; animation-delay: -2s; }
.orb-c { width: 140px; height: 140px; background: #06b6d4; top: 40%; left: 40%; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}
.hero-card-stack {
  position: relative;
  height: 100%;
}
.hero-card {
  position: absolute;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  width: 230px;
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: float-card 6s ease-in-out infinite;
}
.hero-card h3 { margin: 8px 0 6px; font-size: 16px; }
.hero-card p { font-size: 13px; color: var(--text-muted); margin: 0; }
.hero-card-icon { font-size: 28px; }
.card-1 { top: 10%; left: 0; }
.card-2 { top: 38%; right: 0; animation-delay: -2s; }
.card-3 { bottom: 8%; left: 18%; animation-delay: -4s; }
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gradient);
  color: #fff !important;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); color: #fff !important; }
.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--gradient-soft); border-color: var(--primary); color: var(--primary) !important; }
.btn-large { padding: 16px 28px; font-size: 16px; }

/* ─── Cards / Grid ────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.3);
}
.card h3 { margin: 14px 0 8px; font-size: 18px; }
.card p { color: var(--text-regular); margin: 0; font-size: 14.5px; }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  color: var(--c);
}

/* ─── CTA block (products section) ────────────────────── */
.cta-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}
.cta-block h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 8px 0 16px; }
.cta-block p { color: var(--text-regular); }
.cta-block .btn { margin-top: 24px; }
.cta-note { font-size: 13px; color: var(--text-muted); margin-top: 14px; }
@media (max-width: 1024px) {
  .cta-block { grid-template-columns: 1fr; padding: 32px; }
}

.mockup {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.mockup-bar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #f87171;
}
.mockup-bar span:nth-child(2) { background: #fbbf24; }
.mockup-bar span:nth-child(3) { background: #34d399; }
.mockup-bar em {
  margin-left: 12px;
  font-style: normal;
  font-size: 12px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.mockup-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mockup-tile {
  height: 80px;
  border-radius: 10px;
  background: var(--gradient);
  opacity: 0.85;
}
.mockup-tile:nth-child(even) { opacity: 0.55; }
.mockup-tile:nth-child(3) { grid-column: span 2; opacity: 0.7; }

/* ─── Page Hero (sub pages) ───────────────────────────── */
.page-hero {
  padding: 80px 0 40px;
  background: var(--gradient-soft);
  border-bottom: 1px solid var(--border);
}
.page-hero-short { padding: 60px 0 32px; }
.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin: 8px 0 16px;
  max-width: 760px;
}
.page-hero .lede { max-width: 720px; }

/* ─── Stat band ────────────────────────────────────────── */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -40px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}
.stat-band div { text-align: center; }
.stat-band strong {
  display: block;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-band span { font-size: 13px; color: var(--text-muted); }
@media (max-width: 640px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Timeline ────────────────────────────────────────── */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--gradient);
  opacity: 0.4;
}
.timeline li {
  position: relative;
  padding: 0 0 32px 56px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px var(--bg-elev);
}
.time {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--gradient-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.timeline h3 { margin: 4px 0 6px; font-size: 18px; }
.timeline p { color: var(--text-regular); margin: 0; }

/* ─── Contact ─────────────────────────────────────────── */
.contact-card { text-align: left; }
.contact-card p { margin: 0 0 16px; }
.contact-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--gradient-soft);
  color: var(--primary) !important;
  font-weight: 600;
  font-size: 14px;
  transition: background-color .15s ease;
}
.contact-link:hover { background: var(--gradient); color: #fff !important; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
.info-item {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}
.info-item h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 8px;
  font-weight: 600;
}
.info-item p { margin: 0; font-size: 15px; color: var(--text); }
@media (max-width: 640px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* ─── Redirect card (products.html) ───────────────────── */
.redirect-card {
  position: relative;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.redirect-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(59,130,246,0.18), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139,92,246,0.18), transparent 50%);
  pointer-events: none;
}
.redirect-inner {
  position: relative;
  text-align: center;
  padding: 60px 32px;
}
.redirect-icon {
  font-size: 56px;
  margin-bottom: 12px;
}
.redirect-inner h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin: 0 0 14px;
}
.redirect-url {
  margin: 0 0 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.redirect-url a {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 600;
  color: var(--primary);
  border-bottom: 2px dashed currentColor;
  padding-bottom: 2px;
}
.redirect-desc {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--text-regular);
}

/* ─── Placeholder tag ───────────────────────────────────── */
.placeholder { position: relative; overflow: hidden; }
.placeholder .tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--gradient-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

/* ─── Footer ──────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 48px 0 32px;
  margin-top: 40px;
}
.footer-wrap {
  display: grid;
  grid-template-columns: 1.5fr 2fr auto;
  gap: 32px;
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand strong { display: block; font-size: 15px; }
.footer-brand small { font-size: 12px; color: var(--text-muted); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links a {
  color: var(--text-regular);
  font-size: 14px;
}
.footer-links a:hover { color: var(--primary); }
.footer-meta small { color: var(--text-muted); font-size: 12px; }
@media (max-width: 768px) {
  .footer-wrap { grid-template-columns: 1fr; gap: 20px; }
}

/* ─── Back to top ─────────────────────────────────────── */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 50;
}
.back-top.show { opacity: 1; transform: translateY(0); }
.back-top:hover { background: var(--gradient); color: #fff; border-color: transparent; }

/* ─── Reveal animation (IntersectionObserver in main.js) ─ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ─── Misc ────────────────────────────────────────────── */
.text-center { text-align: center; }
::selection { background: var(--primary); color: #fff; }