/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: #1a1a2e; background: #f4f6fb;
  line-height: 1.6; min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ========== 背景光晕 ========== */
.bg-glow {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 20% 10%, rgba(46,139,255,.08), transparent),
    radial-gradient(500px 350px at 85% 30%, rgba(155,106,255,.06), transparent);
}

/* ========== 导航栏（毛玻璃吸顶） ========== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 28px;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.brand-mini { display: flex; align-items: center; gap: 8px; }
.logo-mini {
  width: 32px; height: 32px; line-height: 32px; text-align: center;
  background: linear-gradient(135deg,#1a237e,#2e8bff);
  color: #ffd700; font-weight: 800; font-size: 15px; border-radius: 7px;
}
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: .5px; color: #1a1a2e; }
.nav-cta {
  padding: 6px 18px; border-radius: 20px; font-size: 13px; font-weight: 600;
  background: #1a237e; color: #fff; transition: .25s;
}
.nav-cta:hover { background: #fff; color: #1a237e; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.18); }

/* ========== Hero（完整版 · 约半屏） ========== */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 24px 70px;
  background: linear-gradient(160deg, #0d1b3e 0%, #162a6e 45%, #1a3a8a 100%);
  min-height: 460px; display: flex; align-items: center; justify-content: center;
}
.blueprint {
  position: absolute; inset: 0; opacity: .07;
  background-image:
    linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5) 20%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.5) 20%, transparent 85%);
}
.hero-inner { position: relative; text-align: center; max-width: 720px; }
.eyebrow {
  display: inline-block; padding: 5px 16px; border-radius: 20px;
  font-size: 13px; letter-spacing: 1px; color: #ffd700;
  background: rgba(255,215,0,.08);
  border: 1px solid rgba(255,215,0,.25);
  margin-bottom: 18px;
  animation: rise .6s ease both;
}
.title {
  font-size: clamp(34px, 6vw, 56px); font-weight: 900; letter-spacing: 2px;
  color: #fff; line-height: 1.15;
  animation: rise .6s ease .1s both;
}
.gold {
  display: inline-block;
  background: linear-gradient(135deg,#ffd700,#ffaa00,#ffd700);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tagline {
  margin-top: 14px; font-size: 15px; color: rgba(255,255,255,.82);
  letter-spacing: .5px;
  animation: rise .6s ease .2s both;
}
.tagline b { color: #ffd700; font-weight: 600; }
.hero-actions {
  margin-top: 26px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: rise .6s ease .3s both;
}
.btn {
  padding: 11px 28px; border-radius: 26px; font-size: 14px; font-weight: 700;
  transition: .25s; display: inline-block;
}
.btn-primary {
  background: linear-gradient(135deg,#ffd700,#ffaa00); color: #1a237e;
  box-shadow: 0 6px 18px rgba(255,170,0,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255,170,0,.45); }
.btn-ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; transform: translateY(-2px); }
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin-top: 30px;
  animation: rise .6s ease .4s both;
}
.stat { text-align: center; }
.stat b { display: block; font-size: 26px; color: #ffd700; }
.stat span { font-size: 12px; color: rgba(255,255,255,.6); letter-spacing: 1px; }
.stat-sep { width: 1px; height: 32px; background: rgba(255,255,255,.15); }

/* ========== Section 标题 ========== */
.section-head {
  text-align: center; font-size: 20px; font-weight: 800;
  color: #1a1a2e; margin-bottom: 26px; letter-spacing: 1px;
}
.head-icon { margin-right: 6px; }

/* ========== 工具卡片网格 ========== */
.tools { padding: 44px 24px 36px; max-width: 960px; margin: 0 auto; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  padding: 24px 26px 22px;
  transition: transform .3s, box-shadow .3s;
  animation: rise .5s ease both; animation-delay: calc(var(--i,0)*.08s);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1), 0 0 0 1px var(--accent,#2e8bff);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3.5px;
  background: linear-gradient(90deg, var(--accent,#2e8bff), var(--accent,#2e8bff88));
  border-radius: 14px 14px 0 0;
}
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-icon {
  width: 44px; height: 44px; line-height: 44px; text-align: center;
  font-size: 21px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent,#2e8bff) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent,#2e8bff) 18%, transparent);
}
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px; border-radius: 20px; font-size: 11px; font-weight: 700;
  letter-spacing: .5px;
}
.badge.online { background: #e8fdf0; color: #16a34a; }
.badge.offline { background: #fef2f2; color: #dc2626; }
.dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: pulse 2s infinite;
}
.card h3 { font-size: 18px; font-weight: 800; color: #1a1a2e; margin-bottom: 7px; }
.card-desc { font-size: 13px; color: #555; line-height: 1.55; flex: 1; margin-bottom: 12px; }
.chip {
  display: inline-block; padding: 2px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 700; color: var(--accent,#2e8bff);
  background: color-mix(in srgb, var(--accent,#2e8bff) 8%, transparent);
  margin-bottom: 12px; align-self: flex-start;
}
.card-enter {
  font-size: 12px; font-weight: 700; color: var(--accent,#2e8bff);
  transition: transform .2s; display: inline-block; margin-top: auto;
}
.card:hover .card-enter { transform: translateX(4px); }

/* ========== 为什么用老G（四卡） ========== */
.features { padding: 36px 24px 48px; max-width: 960px; margin: 0 auto; }
.feat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.feat-card {
  background: #fff; border-radius: 12px; padding: 24px 20px;
  border: 1px solid rgba(0,0,0,.05); text-align: center;
  transition: transform .25s, box-shadow .25s;
  border-top: 3px solid var(--fc,#2e8bff);
  animation: rise .5s ease both;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.07); }
.feat-icon { font-size: 28px; margin-bottom: 10px; }
.feat-card h3 { font-size: 15px; font-weight: 800; color: #1a1a2e; margin-bottom: 6px; }
.feat-card p { font-size: 13px; color: #666; line-height: 1.55; }

/* ========== Footer ========== */
footer {
  text-align: center; padding: 26px 20px 32px;
  color: #888; font-size: 13px; border-top: 1px solid rgba(0,0,0,.05);
  background: #fff;
}
footer strong { color: #f5a623; }
.icp { font-size: 11px; color: #aaa; margin-top: 4px; }

/* ========== 动画 ========== */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .feat-card, .eyebrow, .title, .tagline, .hero-actions, .hero-stats { animation: none; }
  .dot { animation: none; }
}

/* ========== 响应式 ========== */
@media (max-width: 640px) {
  .topbar { padding: 10px 16px; }
  .hero { padding: 56px 16px 48px; min-height: 380px; }
  .title { font-size: 34px; }
  .tagline { font-size: 13px; }
  .hero-stats { gap: 14px; }
  .stat b { font-size: 20px; }
  .tools, .features { padding-left: 16px; padding-right: 16px; }
  .grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feat-card { padding: 18px 14px; }
}

/* ========== 公众号二维码弹窗 ========== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-box {
  position: relative;
  background: #fff; border-radius: 18px;
  padding: 36px 32px 30px;
  text-align: center;
  max-width: 340px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,.25), 0 0 0 1px rgba(255,215,0,.2);
  transform: translateY(20px) scale(.96);
  transition: transform .3s ease;
}
.modal-overlay.show .modal-box { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; font-size: 24px; color: #999;
  cursor: pointer; line-height: 1; padding: 4px 8px;
  border-radius: 8px; transition: color .2s, background .2s;
}
.modal-close:hover { color: #333; background: rgba(0,0,0,.06); }
.modal-title {
  font-size: 19px; font-weight: 800; color: #1a1a2e; margin-bottom: 6px;
}
.modal-subtitle {
  font-size: 13px; color: #888; margin-bottom: 20px;
}
.modal-qr {
  width: 220px; height: 220px;
  border-radius: 12px;
  border: 2px solid #f0f0f0;
  margin-bottom: 16px;
}
.modal-tip {
  font-size: 13px; color: #666; letter-spacing: .3px;
}
