/* ============================================================
   东隅SI 官网 · Aurora 极光视觉（全新）
   浅色默认（[data-theme="light"]），深色为 :root
   设计语言：靛蓝→紫→青 极光渐变 · 品牌红点缀 · 玻璃质感
   ============================================================ */

/* ---------------- 深色主题（默认变量） ---------------- */
:root {
  --bg: #080b16;
  --bg-soft: #0f1424;
  --card: #121829;
  --card-glass: rgba(24, 32, 54, 0.66);
  --card-border: rgba(148, 173, 255, 0.12);
  --text: #eef2ff;
  --text-soft: #aab4d4;
  --text-muted: #6b779c;
  --primary: #818cf8;
  --primary-2: #22d3ee;
  --primary-3: #c084fc;
  --brand-red: #fb7185;
  --accent-grad: linear-gradient(120deg, #6366f1 0%, #a855f7 48%, #06b6d4 100%);
  --accent-soft: linear-gradient(120deg, rgba(99,102,241,.16), rgba(6,182,212,.16));
  --glow: rgba(99, 102, 241, 0.32);
  --nav-bg: rgba(8, 11, 22, 0.7);
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 28px 70px rgba(2, 6, 23, 0.6);
  --aurora-1: rgba(99, 102, 241, 0.34);
  --aurora-2: rgba(168, 85, 247, 0.26);
  --aurora-3: rgba(34, 211, 238, 0.22);
}

/* ---------------- 浅色主题（默认展示） ---------------- */
[data-theme="light"] {
  --bg: #f5f7fd;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.72);
  --card-border: rgba(79, 88, 160, 0.12);
  --text: #14182b;
  --text-soft: #4c5578;
  --text-muted: #939cbb;
  --primary: #4f46e5;
  --primary-2: #0891b2;
  --primary-3: #9333ea;
  --brand-red: #e11d48;
  --accent-grad: linear-gradient(120deg, #4f46e5 0%, #9333ea 48%, #0891b2 100%);
  --accent-soft: linear-gradient(120deg, rgba(79,70,229,.1), rgba(8,145,178,.1));
  --glow: rgba(79, 70, 229, 0.18);
  --nav-bg: rgba(245, 247, 253, 0.78);
  --shadow: 0 18px 50px rgba(49, 58, 130, 0.12);
  --aurora-1: rgba(99, 102, 241, 0.2);
  --aurora-2: rgba(168, 85, 247, 0.16);
  --aurora-3: rgba(6, 182, 212, 0.16);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------------- Aurora 极光背景（取代旧网格） ---------------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .9;
  will-change: transform;
}
.aurora .a1 {
  width: 620px; height: 620px;
  top: -220px; left: -120px;
  background: var(--aurora-1);
  animation: auroraFloat 18s ease-in-out infinite alternate;
}
.aurora .a2 {
  width: 560px; height: 560px;
  top: -180px; right: -140px;
  background: var(--aurora-2);
  animation: auroraFloat 22s ease-in-out infinite alternate-reverse;
}
.aurora .a3 {
  width: 520px; height: 520px;
  top: 120px; left: 38%;
  background: var(--aurora-3);
  animation: auroraFloat 26s ease-in-out infinite alternate;
}
@keyframes auroraFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
  .aurora span { animation: none; }
}

/* ===================== 顶部公告条 ===================== */
.notice-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #4f46e5, #7c3aed 50%, #0891b2);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.5;
  min-height: 38px;
  padding: 7px 44px;
  text-align: center;
}
.notice-bar-text { flex: 1; }
.notice-bar-close {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.notice-bar-close:hover { color: #fff; }
body.has-notice-bar .nav { top: 38px; }

/* ===================== 弹窗公告 ===================== */
.notice-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 8, 20, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.notice-modal {
  width: 100%;
  max-width: 460px;
  max-height: 82vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  animation: noticePop 0.28s ease both;
}
@keyframes noticePop {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.notice-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--card-border);
}
.notice-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.notice-modal-x {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.notice-modal-x:hover { color: var(--text); }
.notice-modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
  white-space: pre-wrap;
  word-break: break-word;
}
.notice-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 22px;
  border-top: 1px solid var(--card-border);
}
.notice-modal-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.notice-modal-check input { accent-color: #6366f1; cursor: pointer; }
@media (max-width: 520px) {
  .notice-modal { max-width: 100%; }
  .notice-modal-head, .notice-modal-body, .notice-modal-foot { padding-left: 18px; padding-right: 18px; }
}

/* ===================== 导航 ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--card-border);
  transition: top 0.3s ease, background 0.3s ease;
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 6px 18px var(--glow);
}
.brand-logo.sm { width: 44px; height: 44px; }
.brand-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .4px;
}

.nav-links { display: flex; gap: 28px; margin-left: 12px; }
.nav-links a {
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--accent-grad);
  border-radius: 2px;
  transition: width 0.25s;
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 11px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform 0.2s, border-color 0.2s;
}
.theme-toggle:hover { transform: translateY(-2px); border-color: var(--primary); }
.theme-toggle svg { width: 18px; height: 18px; }
.icon-sun { display: none; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

.nav-burger { display: none; background: none; border: none; cursor: pointer; }
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px 0;
  border-radius: 2px;
}

.nav-btn {
  padding: 9px 18px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid var(--card-border);
  background: var(--card);
  transition: all .2s;
  white-space: nowrap;
}
.nav-btn:hover { color: var(--text); border-color: var(--primary); transform: translateY(-1px); }
.nav-btn-primary {
  background: var(--accent-grad);
  color: #fff;
  border: none;
  box-shadow: 0 8px 22px var(--glow);
}
.nav-btn-primary:hover { color: #fff; opacity: .94; }

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, opacity 0.2s;
}
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 12px 28px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px var(--glow); }
.btn-ghost {
  background: var(--card-glass);
  color: var(--text);
  border-color: var(--card-border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--primary); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 11px; }

/* ===================== 首页 Hero ===================== */
.hero {
  padding: 150px 0 90px;
  text-align: center;
  position: relative;
}
.hero-glow {
  position: absolute;
  top: 80px; left: 50%;
  transform: translateX(-50%);
  width: 720px; height: 420px;
  background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 65%);
  z-index: -1;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--card-glass);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  font-size: 13.5px;
  color: var(--text-soft);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.16);
  animation: pulse 1.8s infinite;
}
.hero-badge .grad {
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 38px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 70px;
  flex-wrap: wrap;
}
.hero-stat .num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stat .lbl { font-size: 14px; color: var(--text-muted); margin-top: 2px; }

/* ===================== 通用区块 ===================== */
.section { padding: 60px 0; }
.section-head { margin-bottom: 44px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.8px;
}
.section-head p { color: var(--text-soft); margin-top: 12px; font-size: 16px; }
.center { text-align: center; }

/* ===================== 系列分组（首页） ===================== */
.series { margin-bottom: 56px; }
.series-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.series-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.4px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
}
.series-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--card-border), transparent);
}
.series-badge {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-red);
  letter-spacing: .5px;
}
.series-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===================== 软件卡片 ===================== */
.soft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.soft-grid-center {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 340px));
  justify-content: center;
  gap: 22px;
}
.soft-card {
  background: var(--card-glass);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(14px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.soft-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-soft);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.soft-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  box-shadow: 0 22px 50px var(--glow);
}
.soft-card:hover::before { opacity: 1; }
.soft-card .ico {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 29px;
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
}
.soft-card .ico-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.soft-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
}
.soft-card .tag {
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  position: relative;
}
.soft-card .card-actions {
  display: flex;
  gap: 10px;
  position: relative;
}
.soft-card .card-actions .btn { flex: 1; padding: 11px 12px; font-size: 14px; }

/* ===================== 详情页 ===================== */
.detail { padding: 130px 0 80px; }
.detail-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.detail-head .ico {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  overflow: hidden;
  flex-shrink: 0;
}
.detail-head .ico img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.detail-head h1 { font-size: 32px; font-weight: 800; letter-spacing: -.6px; }
.detail-head .sub { color: var(--text-muted); font-size: 15px; margin-top: 4px; }

.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}
.panel {
  background: var(--card-glass);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(14px);
}
.panel h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.panel h4 .bar { width: 4px; height: 18px; border-radius: 2px; background: var(--accent-grad); }
.panel p.desc { color: var(--text-soft); }

.feature-list { list-style: none; display: grid; gap: 13px; }
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--text-soft); font-size: 15px;
}
.feature-list li .ck {
  flex: 0 0 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff; font-size: 12px; margin-top: 2px;
}

/* 下载区 */
.dl-list { display: grid; gap: 12px; }
.dl-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--card-border);
}
.dl-item .dl-info { display: flex; align-items: center; gap: 12px; }
.dl-item .dl-ico { font-size: 21px; }
.dl-item .dl-name { font-weight: 600; font-size: 14.5px; }
.dl-item .dl-code { font-size: 12px; color: var(--text-muted); }

/* 购买区 */
.buy-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.buy-tab {
  padding: 14px 8px;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--card-border);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.buy-tab:hover { transform: translateY(-2px); }
.buy-tab.active { border-color: var(--primary); background: var(--glow); }
.buy-tab .t-name { font-size: 13px; color: var(--text-soft); }
.buy-tab .t-price { font-size: 17px; font-weight: 700; margin-top: 4px; }

/* 活动价：现价醒目（红），原价灰色划线小字，上下排列（详情页/充值页通用） */
.t-promo { color: #e53935; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.t-orig {
  font-size: 12px; font-weight: 400; color: var(--text-muted);
  text-decoration: line-through;
}

.pay-type-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.pay-tab {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14.5px; font-weight: 600;
  color: var(--text-soft);
  transition: all .2s;
}
.pay-tab:hover { border-color: var(--primary); transform: translateY(-1px); }
.pay-tab.active { border-color: var(--primary); background: var(--glow); color: var(--text); }
.pay-ico {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.alipay-ico { background: #1677ff; }
.wx-ico { background: #07c160; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13.5px; color: var(--text-soft); font-weight: 500; margin-bottom: 7px; }
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--glow); }

/* 更新日志 */
.log-list { display: grid; gap: 18px; }
.log-item .ver { font-weight: 700; }
.log-item .date { font-size: 13px; color: var(--text-muted); margin-left: 10px; }
.log-item ul { margin: 8px 0 0 18px; color: var(--text-soft); font-size: 14px; }

/* ===================== 大 CTA 收尾区 ===================== */
.cta-band {
  margin: 30px 0 0;
  padding: 56px 40px;
  border-radius: 26px;
  text-align: center;
  background: var(--accent-grad);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 50%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; margin-bottom: 12px; letter-spacing: -.3px; }
.cta-band p { opacity: .92; font-size: 16px; margin-bottom: 26px; }
.cta-band .btn { background: #fff; color: var(--primary); box-shadow: none; }
.cta-band .btn:hover { transform: translateY(-2px); }

/* ===================== 页脚 ===================== */
.footer {
  margin-top: 84px;
  border-top: 1px solid var(--card-border);
  background: var(--card-glass);
  backdrop-filter: blur(14px);
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px 34px;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 40px;
}
.footer-brand { display: flex; gap: 15px; align-items: flex-start; }
.footer-name { font-weight: 700; font-size: 17px; }
.footer-slogan { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h5 { font-size: 14px; margin-bottom: 14px; }
.footer-col a, .footer-col span {
  display: block; font-size: 13.5px; color: var(--text-soft); margin-bottom: 9px;
}
.footer-col a:hover { color: var(--primary); }
.footer-copy {
  border-top: 1px solid var(--card-border);
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===================== 错误页 ===================== */
.error-page { padding: 200px 0 120px; text-align: center; }
.error-page .code {
  font-size: 92px; font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-page h2 { font-size: 27px; margin: 10px 0 14px; }
.error-page p { color: var(--text-soft); margin-bottom: 28px; }

/* ===================== 查询页 ===================== */
.query-form { display: flex; gap: 12px; }
.query-form input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 13px;
  border: 1px solid var(--card-border);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
}
.query-form input:focus { outline: none; border-color: var(--primary); }
.query-empty { text-align: center; color: var(--text-soft); padding: 16px 0; }
.demo-banner {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 13px;
  font-size: 14px;
  color: #9a6a12;
  background: color-mix(in srgb, #fbbf24 16%, transparent);
  border: 1px solid color-mix(in srgb, #fbbf24 45%, transparent);
  line-height: 1.7;
}
[data-theme="light"] .demo-banner { color: #8a5a06; }

.query-result { margin-top: 20px; display: grid; gap: 18px; }
.order-card { padding: 24px; }
.order-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.order-name { font-size: 17px; font-weight: 700; }
.status-pill {
  font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 999px;
}
.status-pill.paid { background: color-mix(in srgb, #34d399 16%, transparent); color: #16a377; }
.status-pill.unpaid { background: color-mix(in srgb, #fbbf24 16%, transparent); color: #d98a1a; }

.order-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.order-meta div {
  display: flex; justify-content: space-between; gap: 12px; font-size: 14px;
  border-bottom: 1px dashed var(--card-border); padding-bottom: 8px;
}
.order-meta span { color: var(--text-muted); }
.order-meta b { font-weight: 600; word-break: break-all; text-align: right; }

.card-key-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 13px;
  border: 1px solid var(--primary);
  background: var(--glow);
}
.card-key-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.card-key-head span { font-size: 14px; font-weight: 600; color: var(--primary); }
.card-key-val {
  font-family: "SFMono-Regular", Consolas, "Courier New", monospace;
  font-size: 16px; letter-spacing: 0.5px; word-break: break-all;
  user-select: all; color: var(--text);
}

/* ===================== 滚动显现 ===================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ===================== 客服（右下角悬浮） ===================== */
.cs-fab {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px var(--glow);
  z-index: 999;
  transition: transform 0.2s ease;
}
.cs-fab:hover { transform: scale(1.08); }
.cs-fab svg { width: 26px; height: 26px; }

.cs-panel {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 48px);
  background: var(--card-glass);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cs-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.cs-header {
  padding: 15px 18px;
  background: var(--accent-grad);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.cs-title { font-weight: 700; font-size: 15px; }
.cs-close {
  background: none; border: none; color: #fff;
  font-size: 26px; cursor: pointer; line-height: 1; padding: 0 4px; opacity: .9;
}
.cs-close:hover { opacity: 1; }

.cs-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column;
  gap: 12px;
  background: var(--bg);
}
.cs-msg { display: flex; gap: 8px; align-items: flex-end; }
.cs-msg-right { flex-direction: row-reverse; }
.cs-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.cs-msg-right .cs-avatar { background: #6b7280; }
.cs-bubble {
  max-width: 74%;
  padding: 10px 14px;
  border-radius: 15px;
  background: var(--card-glass);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 14px; line-height: 1.55;
  word-break: break-word;
}
.cs-msg-right .cs-bubble { background: var(--accent-grad); color: #fff; border: none; }
.cs-read-mark { font-size: 11px; color: var(--text-muted); text-align: right; margin-top: 3px; }
.cs-typing { display: flex; gap: 5px; align-items: center; padding: 13px 16px; }
.cs-typing span {
  width: 7px; height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: csBlink 1.2s infinite ease-in-out;
}
.cs-typing span:nth-child(2) { animation-delay: 0.2s; }
.cs-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes csBlink {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.cs-quick {
  padding: 8px 16px 10px;
  border-top: 1px solid var(--card-border);
  background: var(--card-glass);
  flex-shrink: 0;
}
.cs-quick-title { font-size: 12px; color: var(--text-muted); padding: 6px 0 4px; }
.cs-quick-btn {
  display: block; width: 100%; text-align: left;
  padding: 6px 0; background: none; border: none;
  color: var(--primary); font-size: 13px; cursor: pointer;
}
.cs-quick-btn:hover { text-decoration: underline; }
.cs-input-bar {
  display: flex; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--card-border);
  background: var(--card-glass);
  flex-shrink: 0;
}
.cs-input-bar input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.cs-input-bar input:focus { border-color: var(--primary); }
.cs-input-bar button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cs-input-bar button svg { width: 18px; height: 18px; }

/* ===================== 登录 / 注册 ===================== */
.auth-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 20px 60px;
}
.auth-card {
  width: 100%;
  max-width: 430px;
  background: var(--card-glass);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 38px 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.3px; }
.auth-head p { color: var(--text-muted); font-size: 14px; margin-top: 8px; }
.auth-error {
  background: color-mix(in srgb, #ef4444 12%, transparent);
  border: 1px solid color-mix(in srgb, #ef4444 35%, transparent);
  color: #f87171;
  border-radius: 13px;
  padding: 11px 14px;
  font-size: 14px;
  margin-bottom: 18px;
}
.auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-switch a { color: var(--primary); font-weight: 600; }
.auth-links {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin-top: 20px; font-size: 13.5px;
}
.auth-links a { color: var(--text-muted); transition: color .2s; }
.auth-links a:hover { color: var(--primary); }

/* 图形验证码 */
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row input { flex: 1; }
.captcha-img {
  width: 120px; height: 44px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid var(--card-border);
  background: var(--bg);
  flex-shrink: 0;
}

/* 找回密码 */
.forgot-done { text-align: center; padding: 10px 0; }
.forgot-check {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  font-size: 32px;
  display: flex; align-items: center; justify-content: center;
}
.forgot-done p { color: var(--text-soft); font-size: 15px; margin-bottom: 22px; }

/* ===================== 用户中心 ===================== */
.user-page { padding: 108px 0 60px; }
.user-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  background: var(--card-glass);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 30px;
  backdrop-filter: blur(14px);
}
.user-hero-info h2 { font-size: 24px; margin-bottom: 8px; letter-spacing: -.3px; }
.user-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--text-muted); font-size: 14px; }
.user-hero-actions { display: flex; gap: 10px; align-items: center; }

.myapp-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.myapp-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  background: var(--card-glass);
  border: 1px solid var(--card-border);
  border-radius: 15px;
}
.myapp-ico {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  overflow: hidden;
}
.myapp-info { flex: 1; }
.myapp-name { font-weight: 700; font-size: 15.5px; margin-bottom: 4px; }
.myapp-status { font-size: 13px; }
.myapp-status.ok { color: #34d399; }
.myapp-status.no { color: var(--text-muted); }
.myapp-right { display: flex; align-items: center; gap: 14px; }
.myapp-expire { font-size: 13px; color: var(--text-muted); }
.user-empty { color: var(--text-muted); font-size: 14px; padding: 16px 4px; }
.user-empty a { color: var(--primary); }

.redeem-form { display: flex; gap: 10px; margin-top: 12px; }
.redeem-form input {
  flex: 1;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
}
.redeem-form input:focus { outline: none; border-color: var(--primary); }
.redeem-msg { margin-top: 12px; font-size: 14px; min-height: 20px; }
.redeem-msg.ok { color: #34d399; }
.redeem-msg.no { color: #f87171; }

.uc-order-table { margin-top: 14px; overflow-x: auto; }
.uc-order-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.uc-order-table th, .uc-order-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
}
.uc-order-table th { color: var(--text-muted); font-weight: 600; font-size: 13px; }
.st-ok { color: #34d399; }
.st-no { color: var(--text-muted); }
.st-wait { color: #fbbf24; }

/* ===================== 充值页 ===================== */
.recharge-page { padding: 108px 0 60px; }
.recharge-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card-glass);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 36px 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.recharge-head { text-align: center; margin-bottom: 30px; }
.recharge-head h2 { font-size: 26px; margin-bottom: 8px; letter-spacing: -.3px; }
.recharge-head p { color: var(--text-muted); font-size: 14px; }
.rc-block { margin-bottom: 26px; }
.rc-label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--text-soft); margin-bottom: 12px;
}
.rc-apps { display: flex; gap: 12px; flex-wrap: wrap; }
.rc-app {
  flex: 1;
  min-width: 150px;
  padding: 16px;
  background: var(--bg);
  border: 1.5px solid var(--card-border);
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.rc-app.active { border-color: var(--primary); background: var(--glow); }
.rc-app-ico { display: block; font-size: 27px; margin-bottom: 6px; }
.rc-durations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rc-dur {
  padding: 16px 10px;
  background: var(--bg);
  border: 1.5px solid var(--card-border);
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.rc-dur.active { border-color: var(--primary); background: var(--glow); }
.rc-dur-name { font-weight: 600; margin-bottom: 6px; }
.rc-dur-price { font-size: 18px; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.rc-dur-days { font-size: 12px; color: var(--text-muted); }
.rc-tip { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-muted); }

/* ===================== 收银台 ===================== */
.cashier-wrap {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
}
.cashier-card {
  width: 100%;
  max-width: 460px;
  background: var(--card-glass);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  padding: 28px 28px 30px;
  position: relative;
}
.cashier-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.pay-badge {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.pay-badge-alipay { background: color-mix(in srgb, #1677ff 12%, transparent); color: #1677f7; }
.pay-badge-wx { background: color-mix(in srgb, #07c160 12%, transparent); color: #07c160; }
.cashier-countdown {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--text-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.cashier-countdown svg { width: 16px; height: 16px; }
.cashier-amount { text-align: center; color: var(--text); line-height: 1; }
.amount-symbol { font-size: 24px; font-weight: 600; vertical-align: top; margin-right: 2px; }
.amount-num { font-size: 46px; font-weight: 800; letter-spacing: -1px; }
.cashier-name { text-align: center; color: var(--text-soft); font-size: 14px; margin-top: 10px; }
.cashier-qr {
  margin: 26px auto 18px;
  width: 220px; height: 220px;
  background: #fff;
  border-radius: 17px;
  padding: 12px;
  display: flex; align-items: center; justify-content: center;
}
.cashier-qr img { width: 100%; height: 100%; object-fit: contain; }
.qr-empty { text-align: center; color: #999; }
.qr-empty p { font-size: 15px; }
.qr-empty-sub { font-size: 12px; margin-top: 6px; color: #bbb; }
.cashier-tip { text-align: center; margin-bottom: 18px; }
.cashier-tip strong { font-size: 15px; color: var(--text); }
.cashier-tip p { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.cashier-status {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--text-soft);
  font-size: 13px;
  padding: 12px;
  background: var(--bg);
  border-radius: 13px;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: statusPulse 1.2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 var(--glow); }
  50% { opacity: .5; box-shadow: 0 0 0 6px transparent; }
}

/* 成功页 */
.cashier-success { text-align: center; padding: 8px 0; }
.success-icon {
  width: 68px; height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.success-icon svg { width: 36px; height: 36px; }
.cashier-success h3 { font-size: 22px; margin-bottom: 6px; }
.cashier-success > p { color: var(--text-soft); font-size: 14px; }
.card-box {
  margin: 22px 0;
  padding: 18px;
  background: var(--bg);
  border: 1px dashed var(--card-border);
  border-radius: 17px;
}
.card-box-label { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.card-key {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 16px; font-weight: 700;
  word-break: break-all;
  color: var(--primary);
  margin-bottom: 14px;
  letter-spacing: .5px;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 11px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s, border-color .2s, color .2s, background .2s;
}
.copy-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
}
.copy-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.card-usage {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: 13px;
  padding: 12px 14px;
  text-align: left;
  margin-bottom: 20px;
}
.back-home {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 14px;
  transition: border-color .2s, color .2s;
}
.back-home:hover { border-color: var(--primary); color: var(--primary); }

/* 过期页 */
.cashier-expired { text-align: center; padding: 16px 0; }
.expired-icon {
  width: 68px; height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: color-mix(in srgb, #ff5a5a 12%, transparent);
  color: #ff5a5a;
  display: flex; align-items: center; justify-content: center;
}
.expired-icon svg { width: 34px; height: 34px; }
.cashier-expired h3 { font-size: 22px; margin-bottom: 6px; }
.cashier-expired p { color: var(--text-soft); font-size: 14px; margin-bottom: 22px; }

/* ===================== 响应式 ===================== */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .soft-grid, .soft-grid-center { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    padding: 16px 24px; gap: 16px;
    border-bottom: 1px solid var(--card-border);
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .buy-tabs { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .rc-durations { grid-template-columns: repeat(2, 1fr); }
  .soft-grid, .soft-grid-center { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cs-panel { right: 12px; bottom: 12px; width: calc(100vw - 24px); height: calc(100vh - 24px); border-radius: 18px; }
  .cs-fab { right: 16px; bottom: 16px; }
  .cashier-card { padding: 22px 18px 24px; }
  .amount-num { font-size: 38px; }
  .cashier-qr { width: 190px; height: 190px; }
  .auth-card, .recharge-card { padding: 28px 22px; }
  .myapp-right { flex-direction: column; align-items: flex-end; gap: 8px; }
}






