/* ===== 星云抽奖 · 科技风主题 ===== */
:root {
  --bg: #05070f;
  --panel: rgba(13, 20, 38, 0.72);
  --panel-solid: #0d1426;
  --border: rgba(0, 229, 255, 0.22);
  --cyan: #00e5ff;
  --blue: #2979ff;
  --purple: #7c4dff;
  --gold: #ffd54f;
  --text: #dce8ff;
  --dim: #6c86b8;
  --danger: #ff5370;
  --ok: #00e676;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
/* 动态网格 + 星云光晕背景 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(0, 229, 255, 0.09), transparent),
    radial-gradient(ellipse 50% 45% at 85% 25%, rgba(124, 77, 255, 0.10), transparent),
    radial-gradient(ellipse 55% 40% at 50% 95%, rgba(41, 121, 255, 0.08), transparent);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; opacity: 0.5;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: gridflow 18s linear infinite;
}
@keyframes gridflow { to { background-position: 44px 44px, 44px 44px; } }

a { color: var(--cyan); text-decoration: none; }

/* ===== 顶栏 ===== */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 5vw; position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 15, 0.8); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.logo { font-size: 20px; font-weight: 800; letter-spacing: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14px; }
.nav-links a { color: var(--dim); transition: 0.2s; cursor: pointer; }
.nav-links a:hover { color: var(--cyan); }
.nav-user { color: var(--cyan); font-size: 13px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border: none; border-radius: 8px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #04101c;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
  transition: 0.2s; letter-spacing: 1px;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 26px rgba(0, 229, 255, 0.45); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: transparent; color: var(--cyan);
  border: 1px solid var(--border); box-shadow: none;
}
.btn-ghost:hover { background: rgba(0, 229, 255, 0.08); }
.btn-danger { background: linear-gradient(135deg, #ff5370, #b71c4b); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #ff9100); color: #231a00; }
.btn-sm { padding: 6px 14px; font-size: 12.5px; border-radius: 6px; }

/* ===== Hero ===== */
.hero { text-align: center; padding: 72px 5vw 44px; }
.hero h1 {
  font-size: clamp(30px, 5vw, 52px); letter-spacing: 6px; margin-bottom: 14px;
  background: linear-gradient(90deg, #00e5ff 10%, #7c9dff 50%, #b388ff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(0, 229, 255, 0.25);
}
.hero p { color: var(--dim); font-size: 15px; letter-spacing: 4px; }
.hero .pulse-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); margin-right: 8px;
  box-shadow: 0 0 10px var(--ok); animation: pulse 1.6s infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }

/* ===== 区块 ===== */
.section { padding: 34px 5vw 60px; max-width: 1180px; margin: 0 auto; }
.section-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 20px; font-weight: 700; letter-spacing: 3px; margin-bottom: 24px;
}
.section-title::before {
  content: ""; width: 4px; height: 22px; border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--purple));
  box-shadow: 0 0 10px var(--cyan);
}
.section-title .en { font-size: 11px; color: var(--dim); letter-spacing: 2px; font-weight: 400; }

/* ===== 卡片网格 ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.card {
  position: relative; border-radius: 14px; padding: 24px;
  background: var(--panel); backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  transition: 0.25s; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(0, 229, 255, 0.07), transparent);
  transition: 0.5s;
}
.card:hover { border-color: rgba(0, 229, 255, 0.5); box-shadow: 0 8px 36px rgba(0, 120, 255, 0.14); transform: translateY(-3px); }
.card:hover::before { left: 120%; }
.card .corner {
  position: absolute; top: 0; right: 0; width: 70px; height: 70px;
  background: linear-gradient(225deg, rgba(0, 229, 255, 0.16), transparent 55%);
}
.card h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: 1px; }
.card .prize { color: var(--gold); font-size: 14px; margin-bottom: 14px; }
.card .meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--dim); margin-bottom: 18px; flex-wrap: wrap; }
.card .foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; letter-spacing: 1px; border: 1px solid;
}
.badge-open  { color: var(--ok);  border-color: rgba(0, 230, 118, 0.4); background: rgba(0, 230, 118, 0.07); }
.badge-done  { color: var(--dim); border-color: rgba(108, 134, 184, 0.4); background: rgba(108, 134, 184, 0.08); }
.badge-mode  { color: var(--cyan); border-color: var(--border); background: rgba(0, 229, 255, 0.06); }
.badge-gold  { color: var(--gold); border-color: rgba(255, 213, 79, 0.4); background: rgba(255, 213, 79, 0.08); }

/* 中奖名单 */
.winners { margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(0, 229, 255, 0.2); }
.winners .w-title { font-size: 12px; color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; }
.winners .w-item {
  display: inline-block; margin: 3px 6px 3px 0; padding: 4px 12px;
  border-radius: 6px; font-size: 12.5px; color: #ffe082;
  background: linear-gradient(135deg, rgba(255, 213, 79, 0.12), rgba(255, 145, 0, 0.08));
  border: 1px solid rgba(255, 213, 79, 0.3);
}
.winners .w-item.rigged { color: #b388ff; border-color: rgba(179, 136, 255, 0.4); background: rgba(124, 77, 255, 0.1); }

.empty { text-align: center; color: var(--dim); padding: 60px 0; letter-spacing: 2px; }
.empty .icon { font-size: 44px; margin-bottom: 12px; opacity: 0.5; }

/* ===== 模态框 ===== */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  background: rgba(3, 5, 10, 0.75); backdrop-filter: blur(6px);
}
.modal-mask.show { display: flex; }
.modal {
  position: relative;
  width: min(430px, 92vw); max-height: 88vh; overflow-y: auto;
  background: var(--panel-solid); border: 1px solid var(--border);
  border-radius: 16px; padding: 30px;
  box-shadow: 0 0 60px rgba(0, 150, 255, 0.18);
  animation: mup 0.25s ease;
}
.modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 5;
  width: 32px; height: 32px; border-radius: 8px;
  background: transparent; border: 1px solid transparent;
  color: var(--dim); font-size: 20px; line-height: 1; cursor: pointer;
  transition: 0.2s;
}
.modal-close:hover { color: var(--cyan); border-color: var(--border); background: rgba(0, 229, 255, 0.06); }
@keyframes mup { from { transform: translateY(24px); opacity: 0; } }
.modal h2 { font-size: 19px; letter-spacing: 2px; margin-bottom: 4px; }
.modal .sub { color: var(--dim); font-size: 12.5px; margin-bottom: 22px; }

.tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.tabs .tab {
  flex: 1; text-align: center; padding: 9px; border-radius: 8px; cursor: pointer;
  color: var(--dim); border: 1px solid transparent; font-size: 14px;
}
.tabs .tab.on { color: var(--cyan); border-color: var(--border); background: rgba(0, 229, 255, 0.06); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--dim); margin-bottom: 7px; letter-spacing: 1px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 8px; outline: none;
  background: rgba(4, 10, 22, 0.85); border: 1px solid rgba(0, 229, 255, 0.18);
  color: var(--text); font-size: 14px; transition: 0.2s; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
}
.field select option { background: var(--panel-solid); }
.row2 { display: flex; gap: 10px; }
.row2 > * { flex: 1; }

.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row input { flex: 1; }
.captcha-img {
  height: 44px; min-width: 130px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(0, 229, 255, 0.25); background: #080c18;
}
.code-btn { white-space: nowrap; }

/* ===== 滑块验证 ===== */
.slider-wrap {
  background: rgba(4, 10, 22, 0.85); border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 8px; padding: 6px; user-select: none;
}
.slider-track { position: relative; height: 36px; border-radius: 6px; overflow: hidden; background: rgba(0, 229, 255, 0.06); }
.slider-fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.25), rgba(41, 121, 255, 0.35));
}
.slider-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: var(--dim); letter-spacing: 2px;
}
.slider-btn {
  position: absolute; left: 0; top: 0; width: 44px; height: 36px; z-index: 2;
  border-radius: 6px; border: none; cursor: grab;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  display: flex; align-items: center; justify-content: center;
  color: #04101c; font-size: 17px; touch-action: none;
}
.slider-wrap.ok .slider-track { background: rgba(0, 230, 118, 0.12); }
.slider-wrap.ok .slider-text { color: var(--ok); }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
th {
  text-align: left; padding: 13px 16px; color: var(--cyan);
  font-size: 12px; letter-spacing: 2px; font-weight: 600;
  border-bottom: 1px solid var(--border); background: rgba(0, 229, 255, 0.04);
  white-space: nowrap;
}
td { padding: 12px 16px; border-bottom: 1px solid rgba(0, 229, 255, 0.08); color: var(--text); }
tr:hover td { background: rgba(0, 229, 255, 0.04); }
.tag-won { color: var(--gold); font-weight: 700; }
.tag-lost { color: var(--dim); }

/* ===== 统计卡 ===== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat {
  padding: 20px; border-radius: 12px; background: var(--panel);
  border: 1px solid var(--border); text-align: center;
}
.stat .num { font-size: 30px; font-weight: 800; color: var(--cyan); text-shadow: 0 0 18px rgba(0, 229, 255, 0.4); }
.stat .lbl { font-size: 12px; color: var(--dim); margin-top: 5px; letter-spacing: 2px; }

/* ===== Toast ===== */
#toast-box { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 12px 22px; border-radius: 10px; font-size: 14px;
  background: var(--panel-solid); border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); animation: mup 0.25s ease;
  max-width: 90vw;
}
.toast.ok { border-color: rgba(0, 230, 118, 0.5); color: var(--ok); }
.toast.err { border-color: rgba(255, 83, 112, 0.5); color: var(--danger); }

/* ===== 开奖动画遮罩 ===== */
#draw-fx {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; flex-direction: column; gap: 26px;
  background: rgba(3, 5, 10, 0.9); backdrop-filter: blur(8px);
}
#draw-fx.show { display: flex; }
.fx-roller {
  width: min(560px, 90vw); padding: 34px 20px; text-align: center;
  border-radius: 18px; border: 1px solid var(--border);
  background: var(--panel-solid);
  box-shadow: 0 0 80px rgba(0, 229, 255, 0.2);
}
.fx-roller .fx-title { font-size: 13px; color: var(--dim); letter-spacing: 4px; margin-bottom: 18px; }
.fx-name {
  font-size: clamp(22px, 4vw, 34px); font-weight: 800; letter-spacing: 2px;
  background: linear-gradient(90deg, var(--gold), #ff9100);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  min-height: 46px;
}
.fx-final .fx-name { animation: finalglow 1.2s ease infinite alternate; }
@keyframes finalglow { to { filter: drop-shadow(0 0 18px rgba(255, 213, 79, 0.8)); } }
.fx-ring {
  width: 54px; height: 54px; border-radius: 50%;
  border: 3px solid rgba(0, 229, 255, 0.15); border-top-color: var(--cyan);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 页脚 ===== */
.footer {
  text-align: center; padding: 34px 5vw; color: var(--dim);
  font-size: 12px; letter-spacing: 2px; border-top: 1px solid rgba(0, 229, 255, 0.1);
}
.footer a { color: var(--dim); }
.footer a:hover { color: var(--cyan); }

@media (max-width: 640px) {
  .nav-links { gap: 12px; }
  .hero { padding: 48px 5vw 30px; }
}

/* ===== 全站公告 ===== */
.banner {
  max-width: 1180px; margin: -8px auto 0; padding: 13px 18px;
  display: flex; align-items: center; gap: 12px;
  border-radius: 12px; font-size: 14px;
  background: linear-gradient(90deg, rgba(0,229,255,.09), rgba(124,77,255,.09));
  border: 1px solid var(--border);
}
.banner .ann-tag { color: var(--cyan); font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.banner .ann-close {
  margin-left: auto; background: none; border: none; color: var(--dim);
  font-size: 18px; cursor: pointer; line-height: 1; padding: 4px;
}
.banner .ann-close:hover { color: var(--cyan); }

/* ===== 中奖跑马灯 ===== */
.marquee-wrap {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--panel); padding: 12px 18px; overflow: hidden;
}
.mq-label {
  color: var(--gold); font-size: 13px; letter-spacing: 2px;
  white-space: nowrap; flex: 0 0 auto; font-weight: 700;
}
.mq-viewport { overflow: hidden; flex: 1; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: mq 36s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq-item { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--dim); white-space: nowrap; }
.mq-item b { color: #ffe082; font-weight: 600; }
.mq-item .t { color: var(--cyan); }
.mq-item .p { color: #b388ff; }

/* ===== 搜索框 ===== */
.search-box {
  background: rgba(4,10,22,.85); border: 1px solid rgba(0,229,255,.18);
  border-radius: 8px; padding: 8px 14px; color: var(--text);
  font-size: 13px; outline: none; width: 210px; transition: .2s;
}
.search-box:focus { border-color: var(--cyan); width: 260px; }

.pc-link { cursor: pointer; color: var(--cyan); border-bottom: 1px dashed rgba(0,229,255,.4); }

/* ===== 后台：侧边栏布局 ===== */
.layout {
  display: flex; gap: 22px; align-items: flex-start;
  max-width: 1280px; margin: 0 auto; padding: 26px 3vw 60px;
}
.sidebar {
  flex: 0 0 208px; position: sticky; top: 86px;
  background: var(--panel); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 14px; padding: 16px 12px;
}
.side-title {
  font-size: 11.5px; letter-spacing: 3px; color: var(--dim);
  padding: 4px 12px 14px; margin-bottom: 10px;
  border-bottom: 1px solid rgba(0,229,255,.12);
}
.menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; margin-bottom: 4px; border-radius: 9px;
  color: var(--dim); font-size: 14px; cursor: pointer;
  border: 1px solid transparent; transition: .2s; user-select: none;
}
.menu-item:hover { color: var(--text); background: rgba(0,229,255,.05); }
.menu-item.on { color: var(--cyan); background: rgba(0,229,255,.08); border-color: var(--border); }
.content { flex: 1; min-width: 0; }
.page { display: none; }
.page.on { display: block; animation: mup .25s ease; }

/* ===== 移动端适配 ===== */
@media (max-width: 820px) {
  .nav { flex-wrap: wrap; gap: 8px; padding: 12px 4vw; }
  .nav-links { gap: 12px; flex-wrap: wrap; }
  .hero { padding: 40px 4vw 26px; }
  .hero h1 { letter-spacing: 3px; }
  .section { padding: 24px 4vw 40px; }
  .banner { margin: -4px 4vw 0; }
  .search-box { width: 100%; }
  .search-box:focus { width: 100%; }
  .marquee-wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
  .mq-viewport { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  /* 后台：侧边栏折叠为顶部横排 */
  .layout { flex-direction: column; padding: 18px 4vw 50px; }
  .sidebar { position: static; flex: auto; width: 100%; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
  .side-title { display: none; }
  .menu-item { margin: 0; padding: 9px 12px; font-size: 13px; }
  .row2 { flex-direction: column; gap: 0; }
  .row2 .field[style*="flex"] { flex: 1 !important; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  table { min-width: 480px; }
  .captcha-row { flex-direction: column; }
  .captcha-img { width: 100%; }
  .modal { padding: 24px 18px; }
}

/* ===== 系统设置：头部页签 ===== */
.set-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0; margin-bottom: 4px;
}
.stab {
  padding: 11px 18px; font-size: 13.5px; color: var(--dim);
  cursor: pointer; border: 1px solid transparent; border-bottom: none;
  border-radius: 10px 10px 0 0; user-select: none; transition: .2s;
  letter-spacing: 1px; white-space: nowrap;
}
.stab:hover { color: var(--text); background: rgba(0,229,255,.05); }
.stab.on {
  color: var(--cyan); background: var(--panel);
  border-color: var(--border);
  box-shadow: 0 -6px 18px rgba(0,229,255,.06) inset;
}
.setpage { display: none; }
.setpage.on { display: block; animation: mup .25s ease; }

/* 通知开关行 */
.switch-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 4px; font-size: 13.5px; color: var(--text);
  cursor: pointer; border-bottom: 1px dashed rgba(0,229,255,.08);
}
.switch-row:last-of-type { border-bottom: none; }
.switch-row input { width: 17px; height: 17px; accent-color: #00e5ff; cursor: pointer; }

/* 主题预览卡片 */
.theme-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.theme-card {
  flex: 0 0 108px; text-align: center; padding: 12px 8px 10px;
  border: 1px solid var(--border); border-radius: 12px;
  font-size: 12.5px; color: var(--dim); cursor: pointer; transition: .2s;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
}
.theme-card:hover { color: var(--text); border-color: var(--cyan); }
.theme-card.on { color: var(--cyan); border-color: var(--cyan); background: rgba(0,229,255,.07); }
.tc-prev { width: 100%; height: 34px; border-radius: 8px; }
.tc-dot { width: 8px; height: 8px; border-radius: 50%; }

/* API 文档 */
.api-doc {
  border: 1px solid var(--border); border-radius: 10px;
  background: rgba(4,10,22,.6); padding: 6px 14px;
}
.api-line {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px dashed rgba(0,229,255,.08);
  font-size: 12.5px; color: var(--dim);
}
.api-line:last-child { border-bottom: none; }
.api-line code { color: var(--cyan); font-family: Consolas, monospace; font-size: 12.5px; }
.empty-plugin { text-align: center; padding: 46px 20px; }

/* ===== 主题配色（body.theme-xxx 覆盖变量，模板开发可直接引用） ===== */
body.theme-aurora {
  --border: rgba(43, 245, 181, 0.22); --cyan: #2bf5b5; --purple: #00b8d4;
  --blue: #00e5a0; --gold: #f5ff7a;
}
body.theme-aurora::before {
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(43, 245, 181, 0.09), transparent),
    radial-gradient(ellipse 50% 45% at 85% 25%, rgba(0, 184, 212, 0.10), transparent),
    radial-gradient(ellipse 55% 40% at 50% 95%, rgba(0, 229, 160, 0.08), transparent);
}
body.theme-aurora::after {
  background-image:
    linear-gradient(rgba(43, 245, 181, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 245, 181, 0.04) 1px, transparent 1px);
}
body.theme-violet {
  --border: rgba(224, 64, 251, 0.24); --cyan: #e040fb; --purple: #7c4dff;
  --blue: #aa00ff; --gold: #ffd54f;
}
body.theme-violet::before {
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(224, 64, 251, 0.10), transparent),
    radial-gradient(ellipse 50% 45% at 85% 25%, rgba(124, 77, 255, 0.12), transparent),
    radial-gradient(ellipse 55% 40% at 50% 95%, rgba(170, 0, 255, 0.09), transparent);
}
body.theme-violet::after {
  background-image:
    linear-gradient(rgba(224, 64, 251, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 64, 251, 0.04) 1px, transparent 1px);
}
body.theme-gold {
  --border: rgba(255, 196, 0, 0.25); --cyan: #ffc400; --purple: #ff6e40;
  --blue: #ff9100; --gold: #ffe082;
}
body.theme-gold::before {
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(255, 196, 0, 0.09), transparent),
    radial-gradient(ellipse 50% 45% at 85% 25%, rgba(255, 110, 64, 0.10), transparent),
    radial-gradient(ellipse 55% 40% at 50% 95%, rgba(255, 145, 0, 0.08), transparent);
}
body.theme-gold::after {
  background-image:
    linear-gradient(rgba(255, 196, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 196, 0, 0.045) 1px, transparent 1px);
}
body.theme-crimson {
  --border: rgba(255, 82, 82, 0.25); --cyan: #ff5252; --purple: #ff8a80;
  --blue: #ff1744; --gold: #ffd54f;
}
body.theme-crimson::before {
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(255, 82, 82, 0.10), transparent),
    radial-gradient(ellipse 50% 45% at 85% 25%, rgba(255, 138, 128, 0.10), transparent),
    radial-gradient(ellipse 55% 40% at 50% 95%, rgba(255, 23, 68, 0.08), transparent);
}
body.theme-crimson::after {
  background-image:
    linear-gradient(rgba(255, 82, 82, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 82, 82, 0.045) 1px, transparent 1px);
}

/* 移动端：设置页签横向滚动 */
@media (max-width: 820px) {
  .set-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .stab { padding: 10px 14px; font-size: 12.5px; }
  .theme-card { flex: 0 0 30%; }
}
