/* ============================================================
   AikaSoft 设计系统 · 暗色科技风
   玻璃拟态 + 霓虹渐变 + 网格光晕背景
   ============================================================ */

:root {
  --bg0: #05070f;
  --bg1: #0a0f1e;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(148, 163, 184, 0.16);
  --border-bright: rgba(34, 211, 238, 0.45);
  --text: #e6edf7;
  --muted: #8b98ad;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --grad: linear-gradient(135deg, #22d3ee, #818cf8 55%, #c084fc);
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --radius: 16px;
  --shadow-glow: 0 0 0 1px rgba(34, 211, 238, 0.12), 0 8px 40px rgba(34, 211, 238, 0.14);
  --font: "SF Pro Display", "Segoe UI Variable Display", system-ui, -apple-system,
    "PingFang SC", "Microsoft YaHei", "Noto Sans Thai", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg0);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------- 环境背景：网格 + 双色光晕 ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -3;
  background:
    radial-gradient(ellipse 40% 35% at 18% 8%, rgba(34, 211, 238, 0.16), transparent 65%),
    radial-gradient(ellipse 42% 38% at 85% 85%, rgba(139, 92, 246, 0.15), transparent 65%),
    radial-gradient(ellipse 30% 30% at 70% 15%, rgba(96, 165, 250, 0.08), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

::selection { background: rgba(34, 211, 238, 0.35); }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 7, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 15px;
  border-radius: 9px;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.45);
}
.brand-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.topbar nav { display: flex; align-items: center; gap: 4px; }
.topbar nav a {
  margin-left: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  transition: 0.18s;
}
.topbar nav a:hover { color: var(--cyan); background: rgba(34, 211, 238, 0.08); }

.lang-switch { margin-left: 10px; display: inline-flex; gap: 2px; }
.lang-switch a {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.18s;
}
.lang-switch a:hover { color: var(--cyan); }
.lang-switch a.active {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.1);
}
.lang-switch .sep { display: none; }

/* 货币切换器（¥ / $ / ฿） */
.cur-switch { margin-left: 8px; display: inline-flex; gap: 2px; }
.cur-switch a {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.18s;
}
.cur-switch a:hover { color: var(--violet); }
.cur-switch a.active {
  color: var(--violet);
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(167, 139, 250, 0.12);
}

/* 换算参考价 */
.price-sub {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  margin-top: 2px;
  letter-spacing: 0;
}
.price-sub-lg { font-size: 14px; }

/* ---------- 布局 ---------- */
.container { max-width: 1020px; width: 100%; margin: 0 auto; padding: 28px 18px 64px; flex: 1; }

.footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 7, 15, 0.6);
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: var(--grad);
  opacity: 0.6;
}
.footer .contacts { margin-bottom: 4px; }
.footer .contacts a { color: var(--muted); }
.footer .contacts a:hover { color: var(--cyan); }
.footer .sep { margin: 0 8px; }
.copyright { opacity: 0.7; }

/* ---------- 通用文本 ---------- */
.section-title { font-size: 17px; font-weight: 600; margin: 34px 0 14px; display: flex; align-items: center; gap: 10px; }
.section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}
h1 { font-size: 22px; margin-bottom: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.danger { color: var(--red); }
.empty { text-align: center; color: var(--muted); padding: 56px 0; }

/* 分类标题右侧「查看全部」链接 */
.section-more {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.section-more:hover { color: var(--cyan); }

/* 分类列表页翻页条 */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 30px 0 10px;
}
.pager-link {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pager-link:hover {
  border-color: var(--border-bright);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.25);
}
.pager-off { opacity: 0.35; pointer-events: none; }
.pager-info { color: var(--muted); font-size: 13px; }

/* 会员中心：积分与邀请 */
.points-line { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 2px; }
.points-value {
  font-size: 32px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.invite-box { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 6px; }
.invite-box input {
  flex: 1 1 280px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
}
.point-plus { color: var(--green); font-weight: 600; }
.point-minus { color: var(--red); font-weight: 600; }

/* 积分充值 */
.topup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
}
.topup-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 24px 14px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.topup-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.topup-amount { font-size: 26px; font-weight: 800; color: var(--cyan); font-family: var(--mono); }
.topup-points { color: var(--text); font-size: 14px; }
.topup-bonus {
  font-size: 12px;
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  border-radius: 999px;
  padding: 2px 10px;
}

/* 首页转盘抽奖 · AI 霓虹舞台 v2 */
.lottery-sec {
  position: relative;
  max-width: 1080px;
  margin: 56px auto 0;
  padding: 46px 28px 42px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(5, 7, 15, 0.28));
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}
/* 面板角落的漂浮光球 */
.lottery-sec::before,
.lottery-sec::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.lottery-sec::before {
  width: 340px;
  height: 340px;
  left: -110px;
  top: -120px;
  background: rgba(34, 211, 238, 0.14);
  animation: orb-float 14s ease-in-out infinite;
}
.lottery-sec::after {
  width: 380px;
  height: 380px;
  right: -130px;
  bottom: -150px;
  background: rgba(147, 51, 234, 0.13);
  animation: orb-float 17s ease-in-out infinite reverse;
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(26px, 18px); }
}
.lottery-head { position: relative; z-index: 1; text-align: center; margin-bottom: 6px; }
.lottery-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--cyan);
  opacity: 0.9;
  margin-bottom: 10px;
}
.lottery-kicker::before,
.lottery-kicker::after { content: ""; width: 72px; height: 1px; }
.lottery-kicker::before { background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.7)); }
.lottery-kicker::after { background: linear-gradient(270deg, transparent, rgba(34, 211, 238, 0.7)); }
.lottery-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 2px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lottery-sub { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.wheel-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}
.wheel-stage { position: relative; width: 380px; height: 380px; flex: 0 0 380px; }
/* 舞台光晕：转盘背后的青紫径向辉光 */
.wheel-stage::before {
  content: "";
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(34, 211, 238, 0.18),
    rgba(129, 140, 248, 0.12) 45%,
    transparent 72%
  );
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
/* 背景旋转光射线（舞台追光） */
.wheel-rays { position: absolute; inset: -48px; z-index: 0; pointer-events: none; opacity: 0.9; }
.wheel svg,
.wheel-overlay svg,
.wheel-rays svg { display: block; width: 100%; height: 100%; }
.wheel {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: transform 4.6s cubic-bezier(0.12, 0.84, 0.09, 1);
  will-change: transform;
}
.wheel-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}
/* 中奖瞬间：转盘泛绿光 + 向外爆发光环 */
.wheel-stage.is-win .wheel svg { filter: drop-shadow(0 0 30px rgba(52, 211, 153, 0.45)); transition: filter 0.4s; }
.wheel-stage.is-win::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px solid rgba(52, 211, 153, 0.65);
  animation: win-burst 0.8s ease-out 2;
  pointer-events: none;
  z-index: 3;
}
@keyframes win-burst {
  from { transform: scale(0.92); opacity: 1; }
  to { transform: scale(1.25); opacity: 0; }
}
.wheel-side { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.wheel-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.wheel-points {
  font-size: 14px;
  color: var(--text);
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
}
.wheel-points b { color: var(--cyan); font-size: 19px; margin-left: 6px; }
.wheel-points-quiet { color: var(--muted); }
.wheel-spin-btn {
  display: inline-block;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #05070f;
  padding: 14px 42px;
  border: none;
  border-radius: 999px;
  background: var(--grad);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
  transition: box-shadow 0.25s, transform 0.25s;
  animation: spin-glow 2.8s ease-in-out infinite;
}
.wheel-spin-btn:hover {
  box-shadow: 0 0 44px rgba(34, 211, 238, 0.6);
  transform: translateY(-1px);
}
.wheel-spin-btn:disabled { opacity: 0.65; cursor: wait; transform: none; animation: none; }
@keyframes spin-glow {
  0%, 100% { box-shadow: 0 0 18px rgba(34, 211, 238, 0.3); }
  50% { box-shadow: 0 0 30px rgba(129, 140, 248, 0.55); }
}
.wheel-out {
  min-height: 24px;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.3s;
  text-align: center;
}
.wheel-out.win {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.08);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.18);
}
.wheel-out.lose { color: var(--muted); font-weight: 500; }
.wheel-rule { text-align: center; max-width: 560px; }
@media (max-width: 460px) {
  .wheel-stage { width: 300px; height: 300px; flex-basis: 300px; }
  .lottery-sec { padding: 34px 16px 30px; margin-top: 44px; }
  .lottery-title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .wheel-spin-btn, .lottery-sec::before, .lottery-sec::after { animation: none; }
}
a { color: var(--cyan); }
code, pre, .mono { font-family: var(--mono); }

.notice {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: #cde9ff;
  padding: 12px 18px;
  border-radius: var(--radius);
  margin: 22px 0 8px;
  font-size: 14px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: 12px;
  padding: 11px 22px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s, color 0.16s, background 0.16s;
}
.btn-primary {
  background: var(--grad);
  color: #04101a;
  box-shadow: 0 4px 22px rgba(34, 211, 238, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 34px rgba(34, 211, 238, 0.55);
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--border-bright); color: var(--cyan); box-shadow: var(--shadow-glow); }
.btn-sm { padding: 6px 13px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; text-align: center; font-size: 15px; padding: 13px; }
.linklike {
  background: none;
  border: none;
  color: var(--cyan);
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  font-family: inherit;
}
.linklike:hover { color: var(--violet); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 44px;
  /* 3D 赛博朋克城市背景（Unsplash 免费授权）+ 双层遮罩：
     左侧加深保证标题可读，上下渐隐与页面背景无缝衔接 */
  background:
    linear-gradient(90deg, rgba(5, 7, 15, 0.93) 0%, rgba(5, 7, 15, 0.78) 40%, rgba(5, 7, 15, 0.42) 74%, rgba(5, 7, 15, 0.6) 100%),
    linear-gradient(180deg, rgba(5, 7, 15, 0.5) 0%, rgba(5, 7, 15, 0.05) 34%, rgba(5, 7, 15, 0.05) 62%, rgba(5, 7, 15, 0.92) 100%),
    url('/hero-bg.jpg') center 40% / cover no-repeat;
  border-bottom: 1px solid var(--border);
}
.hero-wrap {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 26px;
  align-items: center;
}
.hero-copy { text-align: left; position: relative; z-index: 1; }
.hero-copy > * { animation: fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.1s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.2s; }
.hero-visual { animation: fadeUp 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; display: grid; place-items: center; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } }

.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.25;
  background: var(--grad);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(99, 102, 241, 0.35));
  animation: fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both, shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }
.hero p { color: var(--muted); max-width: 560px; margin: 14px 0 0; font-size: 15.5px; }
.hero-pills { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

/* 粒子漂浮 */
.hero-fx { position: absolute; inset: -20px 0 0; pointer-events: none; }
.hero-fx span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.4;
  box-shadow: 0 0 10px var(--cyan);
  animation: floaty 7s ease-in-out infinite;
}
.hero-fx span:nth-child(1) { left: 6%; top: 62%; }
.hero-fx span:nth-child(2) { left: 26%; top: 12%; width: 4px; height: 4px; background: var(--violet); box-shadow: 0 0 10px var(--violet); animation-delay: 1.4s; }
.hero-fx span:nth-child(3) { left: 44%; top: 78%; width: 5px; height: 5px; animation-delay: 2.6s; }
.hero-fx span:nth-child(4) { left: 58%; top: 20%; background: var(--violet); box-shadow: 0 0 10px var(--violet); animation-delay: 0.8s; }
.hero-fx span:nth-child(5) { left: 88%; top: 60%; width: 4px; height: 4px; animation-delay: 3.2s; }
.hero-fx span:nth-child(6) { left: 74%; top: 86%; width: 3px; height: 3px; background: var(--violet); box-shadow: 0 0 10px var(--violet); animation-delay: 2s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); opacity: 0.25; }
  50% { transform: translateY(-26px); opacity: 0.6; }
}

/* AI 神经网络核心 */
.ai-core { width: min(320px, 78vw); height: auto; filter: drop-shadow(0 0 34px rgba(99, 102, 241, 0.3)); }
.ai-core .ring { transform-origin: 170px 170px; }
.ai-core .ring-a { animation: spin 16s linear infinite; }
.ai-core .ring-b { animation: spin 9s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-core .flow {
  stroke-dasharray: 8 120;
  animation: dashflow 2.8s linear infinite;
}
.ai-core .f2 { animation-delay: 0.4s; }
.ai-core .f3 { animation-delay: 0.9s; }
.ai-core .f4 { animation-delay: 1.5s; }
.ai-core .f5 { animation-delay: 2s; }
.ai-core .f6 { animation-delay: 0.6s; }
.ai-core .f7 { animation-delay: 1.2s; }
@keyframes dashflow { from { stroke-dashoffset: 128; } to { stroke-dashoffset: 0; } }
.ai-core .node { animation: nodeblink 2.4s ease-in-out infinite; }
.ai-core .n2 { animation-delay: 0.4s; }
.ai-core .n3 { animation-delay: 0.9s; }
.ai-core .n4 { animation-delay: 1.3s; }
.ai-core .n5 { animation-delay: 1.8s; }
.ai-core .n6 { animation-delay: 0.6s; }
.ai-core .n7 { animation-delay: 1.6s; }
@keyframes nodeblink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
.ai-core .core { animation: coreglow 3.2s ease-in-out infinite; }
@keyframes coreglow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.5)); }
  50% { filter: drop-shadow(0 0 22px rgba(139, 92, 246, 0.75)); }
}

/* 滚动播报条 */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  margin: 30px 0 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  gap: 44px;
  width: max-content;
  padding: 10px 0;
  animation: ticker 26s linear infinite;
}
.tk { color: var(--muted); font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* 卡片流光描边（hover 时旋转扫过） */
@property --ang {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.product-card { isolation: isolate; }
.product-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ang), transparent 0 68%, rgba(34, 211, 238, 0.9) 82%, rgba(192, 132, 252, 0.7) 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.2s;
  animation: spin-ang 3.4s linear infinite;
  pointer-events: none;
}
.product-card:hover::after { opacity: 1; }
@keyframes spin-ang { to { --ang: 360deg; } }

/* 滚动入场（JS 加 body.js-reveal 后生效；无 JS 时元素直接可见） */
.js-reveal .reveal-init {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js-reveal .reveal-init.in { opacity: 1; transform: none; }

.nav-quiet { opacity: 0.65; }
.pill {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 999px;
  padding: 6px 16px;
  backdrop-filter: blur(8px);
}

/* ---------- 商品卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 16px; }
.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  display: block;
  backdrop-filter: blur(10px);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 45% at 50% -10%, rgba(34, 211, 238, 0.13), transparent 70%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-bright); box-shadow: var(--shadow-glow); }
.card:hover::before { opacity: 1; }

.product-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.product-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--border);
}
.detail-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--border);
}
.img-preview-wrap img {
  max-width: 240px;
  max-height: 160px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  background: #fff;
  display: block;
}
.product-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 21px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.22);
}
.product-icon-lg { width: 52px; height: 52px; font-size: 26px; }
.product-name { font-weight: 650; font-size: 15.5px; display: block; }
.product-desc { color: var(--muted); font-size: 13px; margin: 8px 0 14px; min-height: 20px; }
.product-meta { display: flex; justify-content: space-between; align-items: center; }
.price {
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 750;
  white-space: nowrap;
}
.go { color: var(--muted); transition: 0.18s; font-size: 17px; }
.card:hover .go { color: var(--cyan); transform: translateX(4px); }

.tag { font-size: 12px; padding: 3px 11px; border-radius: 999px; white-space: nowrap; }
.tag-auto { color: var(--green); background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); }
.tag-manual { color: var(--amber); background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.3); }

/* ---------- 详情 / 表单 ---------- */
.detail {
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(10px);
}
.detail.narrow { max-width: 440px; margin: 40px auto; }
.detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; align-items: start; }
.detail-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.detail-info .tag { display: inline-block; margin-bottom: 12px; }
.detail-info .price-lg { font-size: 32px; }

.buy-panel {
  background: rgba(5, 7, 15, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.35);
}

.form { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
.detail-grid .form { margin-top: 0; }
.form-wide { max-width: 760px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--muted); }
.form input, .form textarea, .form select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: border-color 0.16s, box-shadow 0.16s;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(139, 152, 173, 0.55); }
.form select option { background: var(--bg1); color: var(--text); }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--border-bright);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.form .row { display: flex; gap: 16px; }
.form .row label { flex: 1; }
/* 输入框下方的字段说明（如“密码需至少 8 位”），上提贴近输入框 */
.form .field-hint { margin: -7px 0 0; font-size: 12.5px; }
.form .checkbox { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
.form input[type="checkbox"] { accent-color: var(--cyan); width: 16px; height: 16px; }
.form button[type="submit"] { align-self: flex-start; }
.buy-panel button[type="submit"] { align-self: stretch; }

/* ---------- 订单页 ---------- */
.paybox {
  background: rgba(5, 7, 15, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 18px 0;
}
.paybox.done { border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.06); }
.amount { font-size: 16px; }
.order-no { margin: 12px 0; font-size: 15px; }
.order-no b, .mono { font-family: var(--mono); letter-spacing: 0.04em; }
.qr { text-align: center; margin: 14px 0; }
.qr img { max-width: 210px; border-radius: 12px; background: #fff; padding: 10px; border: 1px solid var(--border); }
.instructions {
  white-space: pre-wrap;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 13px;
  font-size: 14px;
  color: var(--text);
}
.contacts-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.contact-item { font-size: 14px; }
.keys pre {
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-family: var(--mono);
  white-space: pre-wrap;
  word-break: break-all;
  margin: 8px 0 10px;
  color: #a5f3fc;
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.4);
}

/* ---------- 客服联系按钮 ---------- */
.contact-block { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); }
.contact-block p { margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  --chip-c: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13.5px;
  text-decoration: none;
  transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}
.chip::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--chip-c);
  box-shadow: 0 0 10px var(--chip-c);
  flex: none;
}
a.chip:hover { border-color: var(--chip-c); box-shadow: 0 0 18px rgba(0, 0, 0, 0.3), 0 0 14px var(--chip-c); transform: translateY(-1px); }
.chip-whatsapp { --chip-c: #25d366; }
.chip-telegram { --chip-c: #229ed9; }
.chip-line { --chip-c: #06c755; }
.chip-wechat { --chip-c: #07c160; }
.chip-qq { --chip-c: #12b7f5; }
.chip-email { --chip-c: #a78bfa; }

/* ---------- 订单步骤条 ---------- */
.steps { display: flex; align-items: center; margin: 18px 0 6px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; }
.step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  transition: 0.2s;
}
.step-label { font-size: 12px; color: var(--muted); }
.step.done .step-dot {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
}
.step.done .step-label { color: var(--text); }
.step.active .step-dot {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.25);
  animation: pulse 1.6s ease-in-out infinite;
}
.step.active .step-label { color: var(--cyan); }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 6px 18px; border-radius: 1px; }
.step.done + .step-line, .step-line:has(+ .step.done), .step-line:has(+ .step.active) {
  background: linear-gradient(90deg, var(--cyan), rgba(34, 211, 238, 0.3));
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(34, 211, 238, 0); }
}

/* ---------- 状态徽章 ---------- */
.badge {
  font-size: 12px;
  padding: 4px 13px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-pending { color: var(--amber); background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.35); }
.badge-pending::before { animation: pulse 1.6s ease-in-out infinite; }
.badge-processing { color: #7dd3fc; background: rgba(125, 211, 252, 0.1); border: 1px solid rgba(125, 211, 252, 0.35); }
.badge-completed { color: var(--green); background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.35); }
.badge-cancelled { color: var(--muted); background: rgba(139, 152, 173, 0.1); border: 1px solid var(--border); }

/* ---------- 管理后台 ---------- */
.admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 7px;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.admin-bar a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  padding: 6px 13px;
  border-radius: 8px;
  transition: 0.15s;
}
.admin-bar a:hover { color: var(--cyan); background: rgba(34, 211, 238, 0.08); }
.admin-bar a.active { color: #04101a; background: var(--grad); font-weight: 600; }
.admin-bar .spacer { flex: 1; }
.admin-bar a.quit { color: var(--red); }
.admin-bar a.quit:hover { color: var(--red); background: rgba(248, 113, 113, 0.1); }

.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.admin-head h1 {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.stat { text-align: center; }
.stat b { font-size: 28px; display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 13px; }
.admin-nav { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.admin-nav .btn { text-align: center; }

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
  backdrop-filter: blur(10px);
}
.table th, .table td { padding: 11px 13px; border-bottom: 1px solid rgba(148, 163, 184, 0.1); text-align: left; vertical-align: top; }
.table th { background: rgba(255, 255, 255, 0.04); font-weight: 600; color: var(--muted); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr, .table tr { transition: background 0.15s; }
.table tr:hover td { background: rgba(34, 211, 238, 0.04); }
.table .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.table-orders td { font-size: 13px; }
.table .inline { display: inline; }
.cell-input {
  width: 130px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
}
.cell-input:focus { outline: none; border-color: var(--border-bright); }
.cell-num { width: 64px; }
.table-orders .complete-form { display: flex; gap: 6px; }
.table-orders .complete-form input {
  width: 180px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
}
.table-orders .complete-form input:focus { outline: none; border-color: var(--border-bright); }

.filters { margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  text-decoration: none;
  color: var(--muted);
  font-size: 13.5px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  transition: 0.15s;
}
.filter:hover { color: var(--cyan); border-color: rgba(34, 211, 238, 0.35); }
.filter.active { color: #04101a; background: var(--grad); border-color: transparent; font-weight: 600; }

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .detail-grid { grid-template-columns: 1fr; gap: 20px; }
  .form .row { flex-direction: column; }
  .table { font-size: 12px; display: block; overflow-x: auto; }
  .table th, .table td { padding: 8px 7px; white-space: nowrap; }
  .table-orders .complete-form input { width: 130px; }
  .hero { padding: 34px 0 6px; }
  .hero-wrap { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-pills { justify-content: center; }
  .hero-visual { order: -1; }
  .ai-core { width: min(230px, 62vw); }
  .ticker-track { gap: 28px; }
  .topbar { padding: 12px 14px; gap: 8px; overflow: hidden; }
  .brand { flex: 0 0 auto; white-space: nowrap; }
  .brand-text { white-space: nowrap; font-size: 15px; }
  .topbar nav {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { flex: 0 0 auto; margin-left: 2px; padding: 6px 8px; }
  .lang-switch, .cur-switch { flex: 0 0 auto; }
  .lang-switch { margin-left: 2px; }
  .container { padding: 20px 14px 48px; }
  .detail { padding: 20px; }
}

/* 部署说明：npm run deploy:live 一键上线；npm run deploy:watch 保存即自动上传 */

/* ---------- 信任元素：服务承诺 / 已售数量 / 最近成交 / 帮助页 ---------- */
.promise-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 18px 0 0; padding: 12px 16px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(34, 211, 238, 0.06);
  border-radius: 12px; font-size: 13px; color: var(--muted);
}
.promise-label { color: var(--cyan); font-weight: 600; white-space: nowrap; }
.promise-inline { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.sold-badge { font-size: 12px; color: var(--muted); white-space: nowrap; }
.meta-tail { display: flex; align-items: center; gap: 10px; }

.recent-sales {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  margin: 16px 0 0; padding: 10px 16px;
  border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px; color: var(--muted); overflow: hidden;
}
.recent-label { color: var(--text); font-weight: 600; white-space: nowrap; }
.recent-item { white-space: nowrap; }
.recent-item b { color: var(--text); font-weight: 600; }
.recent-time { opacity: 0.7; }

.footer-nav { margin: 6px 0 2px; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--cyan); }
.footer-nav .sep { margin: 0 8px; }

.faq-list { margin: 20px 0 8px; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255, 255, 255, 0.03); overflow: hidden;
}
.faq-q {
  cursor: pointer; padding: 14px 16px; font-weight: 600; font-size: 14.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: "＋"; color: var(--cyan); font-weight: 400; }
.faq-item[open] .faq-q::after { content: "－"; }
.faq-a { padding: 0 16px 16px; color: var(--muted); font-size: 13.5px; line-height: 1.75; }

.legal { max-width: 760px; }
.legal-section { margin: 22px 0; }
.legal-section h2 { font-size: 15.5px; margin: 0 0 8px; }
.legal-section p { color: var(--muted); font-size: 13.5px; line-height: 1.8; margin: 0 0 8px; }

/* ---------- 收款码：多方式切换（纯 CSS，无需 JS）与截图提示 ---------- */
.pay-methods { margin: 16px 0 4px; }
.pay-methods-title { text-align: center; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.payqr-radio { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.pay-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 12px; }
.pay-tab {
  cursor: pointer; padding: 6px 16px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--border); color: var(--muted); background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.pay-tab:hover { border-color: var(--border-bright); color: var(--text); }
.pay-panel { display: none; }
.pay-panel-label { text-align: center; color: var(--text); font-size: 13.5px; margin-top: 2px; }
#payqr-0:checked ~ .pay-tabs label[for="payqr-0"],
#payqr-1:checked ~ .pay-tabs label[for="payqr-1"],
#payqr-2:checked ~ .pay-tabs label[for="payqr-2"],
#payqr-3:checked ~ .pay-tabs label[for="payqr-3"] {
  border-color: var(--cyan); color: var(--cyan); background: rgba(34, 211, 238, 0.1);
}
#payqr-0:checked ~ .pay-panels .pay-panel-0,
#payqr-1:checked ~ .pay-panels .pay-panel-1,
#payqr-2:checked ~ .pay-panels .pay-panel-2,
#payqr-3:checked ~ .pay-panels .pay-panel-3 { display: block; }
.pay-screenshot {
  margin-top: 14px; padding: 11px 14px; border-radius: 10px; font-size: 13px; line-height: 1.7;
  color: #fcd34d; background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.3);
}

/* 后台：收款码槽位 */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 6px; }
.qr-slot { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: rgba(255, 255, 255, 0.03); }
.qr-slot-title { font-weight: 600; font-size: 13.5px; margin-bottom: 10px; }
.qr-slot label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.qr-slot-row { display: flex; gap: 12px; align-items: flex-start; }
.qr-file-label { flex: 1; margin-bottom: 0 !important; }
.qr-slot-preview img { max-width: 110px; border-radius: 8px; background: #fff; padding: 4px; border: 1px solid var(--border); }

/* 后台商品列表：人工商品行内改库存 */
.stock-form { display: inline-flex; align-items: center; gap: 6px; }
.stock-form input {
  width: 62px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 13px;
  text-align: center;
}
