/* ============================================================
 * 全局样式（原创实现，蓝紫渐变 / 玻璃拟态风格）
 * ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --brand-1: #2563eb;
  --brand-2: #4f46e5;
  --brand-3: #7c3aed;
  --brand-4: #0ea5e9;
  --text-1: #0f172a;
  --text-2: #334155;
  --text-3: #64748b;
  --text-4: #94a3b8;
  --line: #e2e8f0;
  --bg: #f7f9fc;
  --radius: 22px;
  --shadow: 0 15px 40px rgba(15, 23, 42, .07);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: var(--text-1);
  background: var(--bg);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ---------- 背景光斑 ---------- */
.page-bg {
  position: fixed; inset: 0; z-index: -10; overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(59,130,246,.13), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(139,92,246,.12), transparent 28%),
    radial-gradient(circle at 50% 90%, rgba(14,165,233,.08), transparent 30%),
    var(--bg);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: floatBlob 12s ease-in-out infinite; }
.blob.one { width: 280px; height: 280px; background: #60a5fa; left: -100px; top: 120px; }
.blob.two { width: 320px; height: 320px; background: #a78bfa; right: -120px; top: 400px; animation-delay: -4s; }
.blob.three { width: 250px; height: 250px; background: #38bdf8; left: 40%; bottom: -120px; animation-delay: -7s; }
@keyframes floatBlob {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(20px,-25px,0); }
}

/* ---------- 头部 ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; height: 76px; z-index: 1000;
  background: rgba(255,255,255,.68);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.65);
  transition: .3s;
}
.header.scrolled { background: rgba(255,255,255,.92); box-shadow: 0 8px 30px rgba(15,23,42,.06); }
.nav { max-width: 1180px; height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 42px; height: 42px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 20px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
  box-shadow: 0 8px 20px rgba(37,99,235,.25);
}
.logo-text strong { display: block; font-size: 17px; letter-spacing: -.4px; }
.logo-text span { display: block; margin-top: 2px; color: var(--text-4); font-size: 10px; letter-spacing: 1.5px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { position: relative; color: var(--text-3); font-size: 14px; transition: .25s; }
.nav-links a:hover { color: var(--brand-1); }
.nav-links a::after { content: ""; position: absolute; width: 0; height: 2px; background: var(--brand-1); border-radius: 10px; left: 50%; bottom: -9px; transition: .25s; }
.nav-links a:hover::after { width: 100%; left: 0; }
.nav-btn {
  padding: 11px 20px; border-radius: 12px; color: #fff !important;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 7px 18px rgba(37,99,235,.22);
}
.nav-btn:hover { transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero { max-width: 1180px; min-height: 720px; margin: auto; padding: 150px 24px 90px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 50px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 30px; background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.8); color: var(--brand-1); font-size: 13px; box-shadow: 0 8px 30px rgba(15,23,42,.05); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 5px rgba(34,197,94,.12); }
.hero h1 { margin-top: 24px; font-size: clamp(42px,5vw,64px); line-height: 1.08; letter-spacing: -3px; font-weight: 800; color: var(--text-1); }
.hero h1 .gradient { background: linear-gradient(100deg, var(--brand-1), var(--brand-3), var(--brand-4)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { max-width: 580px; margin-top: 25px; color: var(--text-3); font-size: 17px; line-height: 1.9; }
.hero-buttons { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; padding: 14px 25px; border-radius: 13px; color: #fff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 12px 30px rgba(37,99,235,.22); font-size: 14px; font-weight: 600; transition: .25s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 35px rgba(37,99,235,.28); }
.btn-secondary { padding: 14px 25px; border-radius: 13px; background: rgba(255,255,255,.8); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; font-weight: 600; transition: .25s; }
.btn-secondary:hover { background: #fff; transform: translateY(-2px); }

.hero-visual { position: relative; height: 480px; display: flex; align-items: center; justify-content: center; }
.visual-glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,.25), rgba(124,58,237,.12), transparent 68%); filter: blur(10px); }
.phone-card {
  position: relative; width: 320px; min-height: 400px; padding: 26px; border-radius: 32px;
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(244,247,255,.84));
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 35px 80px rgba(30,41,59,.16), inset 0 1px 0 rgba(255,255,255,.8);
  transform: rotate(4deg); animation: phoneFloat 5s ease-in-out infinite;
}
@keyframes phoneFloat { 0%,100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-12px); } }
.phone-top { display: flex; justify-content: space-between; align-items: center; }
.phone-title { font-weight: 700; font-size: 18px; }
.phone-more { width: 30px; height: 30px; border-radius: 10px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.balance-card { margin-top: 28px; padding: 22px; border-radius: 20px; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: #fff; box-shadow: 0 15px 30px rgba(37,99,235,.22); }
.balance-label { font-size: 12px; opacity: .75; }
.balance { margin-top: 8px; font-size: 30px; font-weight: 750; }
.balance-bottom { display: flex; justify-content: space-between; margin-top: 22px; font-size: 11px; opacity: .8; }
.service-list { margin-top: 22px; }
.service-item { display: flex; align-items: center; padding: 13px 0; border-bottom: 1px solid #eef2f7; }
.service-icon { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-right: 12px; font-size: 17px; background: #eff6ff; }
.service-name { font-size: 13px; font-weight: 600; }
.service-status { margin-left: auto; color: #22c55e; font-size: 11px; }
.float-card { position: absolute; padding: 14px 17px; border-radius: 16px; background: rgba(255,255,255,.86); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 18px 45px rgba(15,23,42,.12); display: flex; align-items: center; gap: 11px; font-size: 12px; z-index: 5; }
.float-card.one { top: 90px; left: 0; animation: float1 4s ease-in-out infinite; }
.float-card.two { right: -10px; bottom: 85px; animation: float2 4.5s ease-in-out infinite; }
.float-icon { width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; border-radius: 11px; background: #eff6ff; font-size: 17px; }
@keyframes float1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- 数据条 ---------- */
.stats { max-width: 1120px; margin: -20px auto 80px; padding: 0 24px; }
.stats-box { display: grid; grid-template-columns: repeat(4,1fr); background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.95); border-radius: 24px; box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.stat { padding: 28px; text-align: center; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 25%; width: 1px; height: 50%; background: var(--line); }
.stat strong { display: block; font-size: 28px; background: linear-gradient(135deg, var(--brand-1), var(--brand-3)); -webkit-background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 5px; font-size: 12px; color: var(--text-4); }

/* ---------- 通用版块 ---------- */
section { padding: 90px 24px; }
.container { max-width: 1120px; margin: auto; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 55px; }
.section-label { color: var(--brand-1); font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.section-head h2 { margin-top: 12px; font-size: 38px; letter-spacing: -1.5px; color: var(--text-1); }
.section-head p { margin-top: 15px; color: var(--text-3); line-height: 1.8; font-size: 14px; }

.services { background: rgba(255,255,255,.55); }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.service-box { padding: 30px; border-radius: var(--radius); background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.95); box-shadow: var(--shadow); transition: .3s; }
.service-box:hover { transform: translateY(-7px); box-shadow: 0 25px 55px rgba(15,23,42,.10); }
.service-box-icon { width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: linear-gradient(135deg, #eff6ff, #eef2ff); }
.service-box h3 { margin-top: 20px; font-size: 17px; }
.service-box p { margin-top: 10px; color: var(--text-3); font-size: 13px; line-height: 1.8; }

.platforms { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.platform { min-height: 190px; padding: 30px; border-radius: 24px; background: #fff; border: 1px solid #edf2f7; display: flex; align-items: center; gap: 25px; box-shadow: var(--shadow); transition: .3s; }
.platform:hover { transform: translateY(-5px); }
.platform-logo { width: 75px; height: 75px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 34px; flex-shrink: 0; background: #f1f5f9; }
.platform h3 { font-size: 19px; }
.platform p { margin-top: 8px; color: var(--text-3); font-size: 13px; line-height: 1.7; }

.process { background: linear-gradient(180deg, transparent, rgba(239,246,255,.7)); }
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.process-item { position: relative; padding: 30px 22px; text-align: center; background: rgba(255,255,255,.82); border-radius: 20px; border: 1px solid rgba(255,255,255,.9); }
.process-num { width: 45px; height: 45px; margin: 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--brand-1), #6366f1); }
.process-item h3 { margin-top: 18px; font-size: 16px; }
.process-item p { margin-top: 8px; color: var(--text-3); font-size: 12px; line-height: 1.7; }

.security-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.security-box { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid #edf2f7; text-align: center; }
.security-icon { width: 55px; height: 55px; margin: auto; display: flex; align-items: center; justify-content: center; border-radius: 17px; background: #f1f5f9; font-size: 23px; }
.security-box h3 { margin-top: 18px; font-size: 16px; }
.security-box p { margin-top: 8px; color: var(--text-3); font-size: 12px; line-height: 1.8; }

.cta { padding-top: 30px; padding-bottom: 100px; }
.cta-box { position: relative; overflow: hidden; padding: 65px 50px; border-radius: 30px; text-align: center; color: #fff; background: linear-gradient(135deg, #1d4ed8, var(--brand-2), var(--brand-3)); box-shadow: 0 30px 70px rgba(79,70,229,.22); }
.cta-box::before { content: ""; position: absolute; width: 350px; height: 350px; border-radius: 50%; background: rgba(255,255,255,.08); right: -100px; top: -180px; }
.cta-box::after { content: ""; position: absolute; width: 250px; height: 250px; border-radius: 50%; background: rgba(255,255,255,.06); left: -100px; bottom: -150px; }
.cta-content { position: relative; z-index: 2; }
.cta-box h2 { font-size: 34px; letter-spacing: -1px; }
.cta-box p { margin-top: 12px; opacity: .8; font-size: 14px; }
.cta-btn { display: inline-block; margin-top: 27px; padding: 13px 25px; border-radius: 12px; background: #fff; color: var(--text-2); font-size: 13px; font-weight: 700; transition: .25s; }
.cta-btn:hover { transform: translateY(-3px); }

footer { padding: 45px 24px; background: #0f172a; color: var(--text-4); }
.footer-inner { max-width: 1120px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-company { color: #e2e8f0; font-size: 14px; font-weight: 600; }
.footer-company small { display: block; margin-top: 7px; color: #64748b; font-size: 11px; font-weight: 400; }
.footer-right { font-size: 11px; text-align: right; line-height: 1.8; }

/* ---------- 滚动进入动画 ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
 * 充值商城页
 * ============================================================ */
.mall-wrap { max-width: 1120px; margin: 0 auto; padding: 130px 24px 90px; }
.mall-head { text-align: center; margin-bottom: 40px; }
.mall-head h1 { font-size: 34px; letter-spacing: -1px; }
.mall-head p { margin-top: 12px; color: var(--text-3); font-size: 14px; }

.mall-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }

.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.cat-tab { padding: 9px 18px; border-radius: 30px; background: #fff; border: 1px solid var(--line); color: var(--text-3); font-size: 13px; transition: .2s; }
.cat-tab.active { color: #fff; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); border-color: transparent; box-shadow: 0 7px 18px rgba(37,99,235,.22); }

.product-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.product-card { background: #fff; border: 1px solid #edf2f7; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: .25s; }
.product-card:hover { transform: translateY(-4px); }
.product-card-top { display: flex; align-items: center; gap: 13px; }
.product-card-icon { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #eff6ff, #eef2ff); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.product-card-top h3 { font-size: 16px; }
.product-card-top small { color: var(--text-4); font-size: 11px; }
.pkg-list { margin-top: 16px; display: grid; gap: 10px; }
.pkg { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: .2s; }
.pkg:hover { border-color: var(--brand-1); }
.pkg.active { border-color: var(--brand-1); background: #eff6ff; }
.pkg-name { font-size: 13px; font-weight: 600; }
.pkg-price { margin-left: auto; color: var(--brand-1); font-weight: 700; }
.pkg-price small { color: var(--text-4); font-weight: 400; }
.product-card.active { border-color: var(--brand-1); background: #eff6ff; }
.product-card.disabled { opacity: .55; cursor: not-allowed; }
.product-card.disabled:hover { transform: none; }
.rule-line { font-size: 12px; color: var(--text-3); line-height: 1.6; }
.rule-line.note { color: #e0607a; }

.order-panel { background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.95); border-radius: 26px; padding: 28px; box-shadow: var(--shadow); position: sticky; top: 100px; }
.order-panel h3 { font-size: 18px; }
.order-summary { margin: 18px 0; padding: 16px; border-radius: 16px; background: #f8fafc; font-size: 13px; color: var(--text-3); line-height: 2; }
.order-summary b { color: var(--text-1); }
.order-summary .total { color: var(--brand-1); font-size: 22px; font-weight: 800; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-2); }
.field input, .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; font-size: 14px; background: #fff; outline: none; transition: .2s; }
.field input:focus, .field select:focus { border-color: var(--brand-1); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-btn { width: 100%; margin-top: 6px; padding: 14px; border: 0; border-radius: 14px; color: #fff; font-size: 15px; font-weight: 700; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); box-shadow: 0 12px 30px rgba(37,99,235,.22); transition: .25s; }
.form-btn:hover { transform: translateY(-2px); }
.form-btn:disabled { opacity: .6; cursor: not-allowed; }
.tip { margin-top: 12px; font-size: 12px; color: var(--text-4); line-height: 1.7; }

/* 订单查询 */
.query-section { margin-top: 50px; }
.query-box { display: flex; gap: 12px; max-width: 520px; margin: 24px auto 0; }
.query-box input { flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; font-size: 14px; outline: none; }
.order-table { width: 100%; margin-top: 24px; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); font-size: 13px; }
.order-table th, .order-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #eef2f7; }
.order-table th { color: var(--text-4); font-weight: 600; font-size: 12px; background: #f8fafc; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; }
.badge.pending { background: #fef3c7; color: #b45309; }
.badge.doing { background: #dbeafe; color: #1d4ed8; }
.badge.success { background: #dcfce7; color: #15803d; }
.badge.fail { background: #fee2e2; color: #b91c1c; }

.empty { text-align: center; color: var(--text-4); padding: 50px 0; font-size: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 130px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .stats-box { grid-template-columns: repeat(2,1fr); }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .security-grid { grid-template-columns: 1fr 1fr; }
  .mall-layout { grid-template-columns: 1fr; }
  .order-panel { position: static; }
}
@media (max-width: 600px) {
  section { padding: 65px 18px; }
  .section-head h2, .mall-head h1 { font-size: 28px; }
  .service-grid, .platforms, .process-grid, .security-grid, .product-grid { grid-template-columns: 1fr; }
  .stats-box { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-right { text-align: left; }
  .query-box { flex-direction: column; }
}

/* ---------- 登录页 ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.95); border-radius: 26px; padding: 34px 30px; box-shadow: var(--shadow); }
.login-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.login-logo h2 { font-size: 20px; }
.login-logo small { color: var(--text-4); font-size: 12px; }
.login-err { color: #e0607a; font-size: 13px; min-height: 18px; margin: 4px 0 8px; }
.agent-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 16px; border-radius: 14px; background: #f1f5ff; font-size: 13px; color: var(--text-2); }
.agent-bar b { color: var(--brand-1); font-size: 16px; }

/* ---------- 管理后台 ---------- */
.admin-wrap { max-width: 1180px; margin: 0 auto; padding: 110px 22px 60px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-head h1 { font-size: 24px; }
.admin-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 26px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.stat-card .num { font-size: 24px; font-weight: 800; color: var(--brand-1); }
.stat-card .lbl { font-size: 12px; color: var(--text-4); margin-top: 4px; }
.admin-section { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 26px; }
.admin-section h3 { font-size: 16px; margin-bottom: 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #eef2f7; }
.admin-table th { color: var(--text-4); font-weight: 600; font-size: 12px; }
.btn-sm { padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 12px; color: var(--text-2); }
.btn-sm.primary { background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: #fff; border: 0; }
.btn-sm.danger { color: #e0607a; border-color: #fbd5dd; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.inline-form input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; outline: none; }
.badge-off { color: var(--text-4); }
@media (max-width: 600px) { .admin-stats { grid-template-columns: 1fr; } }
