/* ============================================================
 * themes.css — 9 套模板（配色 + 布局 + 装饰一起换）
 * 切换：<body data-theme="xxx">，由 config.js 的 theme 指定，
 * 右下角切换器可实时预览。每套模板 = CSS 变量 + .app 网格布局 +
 * 卡片造型 + .deco 装饰层。
 * ============================================================ */

/* ==================== 1. 深色霓虹 neon（居中堆叠 + 粒子 + 辉光） ==================== */
body[data-theme="neon"] {
  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --bg: #050512;
  --bg-decor: radial-gradient(circle at 20% 10%, #100824 0%, #050512 60%, #020208 100%);
  --surface: rgba(18, 22, 45, 0.7);
  --surface-2: rgba(12, 15, 34, 0.8);
  --border: rgba(0, 240, 255, 0.2);
  --border-strong: rgba(0, 240, 255, 0.45);
  --text: #ffffff;
  --text-muted: #d1d5db;
  --accent: #00f0ff;
  --accent-2: #9d00ff;
  --on-accent: #000000;
  --logo-color: #ffd000;
  --glow: 0 0 12px rgba(0, 240, 255, 0.4), inset 0 0 12px rgba(0, 240, 255, 0.08);
  --glow-strong: 0 0 22px rgba(0, 240, 255, 0.7);
  --glow-focus: 0 0 8px rgba(0, 240, 255, 0.4);
  --radius: 18px;
  --card-shadow: none;
  --row-hover: rgba(255, 255, 255, 0.05);
  --success: #22c55e;
  --danger: #f87171;
  --particle-color: rgba(0, 240, 255, 0.4);
}
body[data-theme="neon"] .card { backdrop-filter: blur(10px); }

/* ==================== 2. 赛博朋克 cyberpunk（双栏 + 终端等宽 + 扫描线 + 直角） ==================== */
body[data-theme="cyberpunk"] {
  --font-body: 'Rajdhani', system-ui, sans-serif;
  --font-head: 'Rajdhani', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --bg: #0d0221;
  --bg-decor:
    repeating-linear-gradient(rgba(255, 42, 109, 0.10) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(5, 217, 232, 0.10) 0 1px, transparent 1px 44px),
    #0d0221;
  --surface: rgba(20, 8, 44, 0.82);
  --surface-2: rgba(30, 14, 58, 0.9);
  --border: rgba(255, 42, 109, 0.35);
  --border-strong: rgba(5, 217, 232, 0.6);
  --text: #ffe9f3;
  --text-muted: #c9a9d1;
  --accent: #ff2a6d;
  --accent-2: #05d9e8;
  --on-accent: #ffffff;
  --logo-color: #f9f002;
  --glow: 0 0 14px rgba(255, 42, 109, 0.55);
  --glow-strong: 0 0 26px rgba(5, 217, 232, 0.65);
  --glow-focus: 0 0 10px rgba(255, 42, 109, 0.5);
  --radius: 4px;
  --card-shadow: none;
  --row-hover: rgba(5, 217, 232, 0.08);
  --success: #2dd4bf;
  --danger: #fb7185;
  --particle-color: rgba(5, 217, 232, 0.5);
}
/* 双栏布局：需求与领取并排，记录通栏 */
body[data-theme="cyberpunk"] .app {
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "social social"
    "token token"
    "req claim"
    "records records"
    "footer footer";
}
@media (max-width: 639px) {
  body[data-theme="cyberpunk"] .app { grid-template-columns: 1fr; grid-template-areas: "social" "token" "req" "claim" "records" "footer"; }
}
/* 扫描线装饰 */
body[data-theme="cyberpunk"] .deco::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
/* 卡片左上角 ">" 终端标 */
body[data-theme="cyberpunk"] .card { position: relative; }
body[data-theme="cyberpunk"] .card::before {
  content: '> ' attr(data-cmd, '');
  position: absolute; top: 10px; right: 14px;
  font-family: var(--mono); font-size: .75rem; color: var(--accent-2);
}
body[data-theme="cyberpunk"] .section-title { text-transform: uppercase; letter-spacing: 2px; }

/* ==================== 3. 玻璃拟态 glass-light（悬浮错位卡片 + 柔光斑） ==================== */
body[data-theme="glass-light"] {
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --font-head: 'Nunito Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --bg: #eef2fa;
  --bg-decor:
    radial-gradient(circle at 12% 12%, rgba(120, 150, 255, 0.55), transparent 42%),
    radial-gradient(circle at 88% 20%, rgba(255, 160, 220, 0.5), transparent 40%),
    radial-gradient(circle at 55% 90%, rgba(120, 220, 255, 0.45), transparent 45%),
    #eef2fa;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-2: rgba(255, 255, 255, 0.8);
  --border: rgba(255, 255, 255, 0.75);
  --border-strong: rgba(91, 124, 250, 0.35);
  --text: #1f2937;
  --text-muted: #5b6472;
  --accent: #5b7cfa;
  --accent-2: #9d6bff;
  --on-accent: #ffffff;
  --logo-color: #5b7cfa;
  --glow: 0 8px 28px rgba(91, 124, 250, 0.22);
  --glow-strong: 0 12px 34px rgba(91, 124, 250, 0.32);
  --glow-focus: 0 0 0 3px rgba(91, 124, 250, 0.25);
  --radius: 26px;
  --card-shadow: 0 8px 32px rgba(31, 41, 55, 0.12);
  --row-hover: rgba(91, 124, 250, 0.08);
  --success: #10b981;
  --danger: #ef4444;
  --particle-color: rgba(91, 124, 250, 0.2);
}
body[data-theme="glass-light"] #particleCanvas { display: none; }
body[data-theme="glass-light"] .app {
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "social social"
    "token token"
    "req claim"
    "records records"
    "footer footer";
}
@media (max-width: 639px) {
  body[data-theme="glass-light"] .app { grid-template-columns: 1fr; grid-template-areas: "social" "token" "req" "claim" "records" "footer"; }
}
/* 磨砂玻璃 + 轻微错位悬浮 */
body[data-theme="glass-light"] .card { backdrop-filter: blur(16px); }
body[data-theme="glass-light"] .mod-token { transform: rotate(-0.6deg); }
body[data-theme="glass-light"] .mod-req   { transform: rotate(0.5deg); }
body[data-theme="glass-light"] .mod-claim { transform: rotate(-0.3deg); }

/* ==================== 4. 极简编辑风 minimal（无卡片 + 细线分隔 + 衬线） ==================== */
body[data-theme="minimal"] {
  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --bg: #ffffff;
  --bg-decor: none;
  --surface: transparent;
  --surface-2: #f5f6f8;
  --border: #e5e7eb;
  --border-strong: #111827;
  --text: #111827;
  --text-muted: #6b7280;
  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --on-accent: #ffffff;
  --logo-color: #2563eb;
  --glow: none;
  --glow-strong: 0 6px 16px rgba(37, 99, 235, 0.25);
  --glow-focus: 0 0 0 3px rgba(37, 99, 235, 0.18);
  --radius: 0;
  --card-shadow: none;
  --row-hover: #f3f4f6;
  --success: #16a34a;
  --danger: #dc2626;
  --particle-color: rgba(37, 99, 235, 0.15);
}
body[data-theme="minimal"] #particleCanvas { display: none; }
/* 无卡片：仅顶部一条发丝线 */
body[data-theme="minimal"] .card {
  border: none; border-top: 1px solid var(--border-strong);
  border-radius: 0; background: transparent; padding: 28px 0;
}
body[data-theme="minimal"] .app { max-width: 760px; gap: 0; }
body[data-theme="minimal"] .mod-social { justify-content: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--border-strong); }
body[data-theme="minimal"] .section-title {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: 3px;
  font-size: .85rem; font-weight: 600; color: var(--text-muted);
}
body[data-theme="minimal"] .token-name { font-family: var(--font-head); }
body[data-theme="minimal"] .btn { border-radius: 0; }
body[data-theme="minimal"] .claim-input { border-radius: 0; }

/* ==================== 5. 现代深色 dark-modern（通栏渐变 Hero） ==================== */
body[data-theme="dark-modern"] {
  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --bg: #0b0f14;
  --bg-decor: radial-gradient(circle at 75% 0%, rgba(52, 211, 153, 0.2), transparent 55%), #0b0f14;
  --surface: #131a22;
  --surface-2: #0f151c;
  --border: #223040;
  --border-strong: #34d399;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #34d399;
  --accent-2: #22d3ee;
  --on-accent: #06251b;
  --logo-color: #34d399;
  --glow: 0 0 10px rgba(52, 211, 153, 0.3);
  --glow-strong: 0 0 20px rgba(52, 211, 153, 0.5);
  --glow-focus: 0 0 0 3px rgba(52, 211, 153, 0.25);
  --radius: 16px;
  --card-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --row-hover: rgba(52, 211, 153, 0.06);
  --success: #34d399;
  --danger: #f87171;
  --particle-color: rgba(52, 211, 153, 0.35);
}
/* Hero：代币卡做成通栏渐变横幅，领取/需求并排 */
body[data-theme="dark-modern"] .app {
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "social social"
    "token token"
    "claim req"
    "records records"
    "footer footer";
}
@media (max-width: 639px) {
  body[data-theme="dark-modern"] .app { grid-template-columns: 1fr; grid-template-areas: "social" "token" "claim" "req" "records" "footer"; }
}
body[data-theme="dark-modern"] .mod-token {
  background: linear-gradient(120deg, #0f2420 0%, #131a22 60%);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 20px;
  padding: 40px;
}
body[data-theme="dark-modern"] .token-logo { width: 120px; height: 120px; }

/* ==================== 6. 科技蓝 tech-blue（信息瓦片仪表盘） ==================== */
body[data-theme="tech-blue"] {
  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --bg: #020617;
  --bg-decor:
    repeating-linear-gradient(rgba(59, 130, 246, 0.12) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(59, 130, 246, 0.12) 0 1px, transparent 1px 42px),
    radial-gradient(circle at 15% 80%, rgba(6, 182, 212, 0.28), transparent 45%),
    #020617;
  --surface: rgba(15, 28, 48, 0.78);
  --surface-2: rgba(8, 18, 34, 0.9);
  --border: rgba(59, 130, 246, 0.3);
  --border-strong: rgba(6, 182, 212, 0.55);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-2: #06b6d4;
  --on-accent: #ffffff;
  --logo-color: #60a5fa;
  --glow: 0 0 14px rgba(59, 130, 246, 0.45);
  --glow-strong: 0 0 26px rgba(6, 182, 212, 0.6);
  --glow-focus: 0 0 10px rgba(59, 130, 246, 0.5);
  --radius: 10px;
  --card-shadow: none;
  --row-hover: rgba(59, 130, 246, 0.08);
  --success: #22d3ee;
  --danger: #fb7185;
  --particle-color: rgba(96, 165, 250, 0.4);
}
/* 仪表盘：领取与需求并排，记录通栏 */
body[data-theme="tech-blue"] .app {
  grid-template-columns: 1.2fr 1fr;
  grid-template-areas:
    "social social"
    "token token"
    "claim req"
    "records records"
    "footer footer";
}
@media (max-width: 639px) {
  body[data-theme="tech-blue"] .app { grid-template-columns: 1fr; grid-template-areas: "social" "token" "claim" "req" "records" "footer"; }
}
/* 信息项做成数据瓦片 */
body[data-theme="tech-blue"] .token-meta { gap: 14px; }
body[data-theme="tech-blue"] .meta-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
body[data-theme="tech-blue"] .meta-label { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; }
body[data-theme="tech-blue"] .meta-value { font-size: 1rem; font-weight: 600; color: var(--text); }

/* ==================== 7. 奢华金 luxury-gold（居中描金相框 + 衬线） ==================== */
body[data-theme="luxury-gold"] {
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --bg: #0d0b08;
  --bg-decor: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.16), transparent 55%), #0d0b08;
  --surface: rgba(28, 24, 18, 0.85);
  --surface-2: rgba(20, 17, 12, 0.92);
  --border: rgba(212, 175, 55, 0.3);
  --border-strong: rgba(212, 175, 55, 0.6);
  --text: #f5efe0;
  --text-muted: #c7bda6;
  --accent: #d4af37;
  --accent-2: #b8860b;
  --on-accent: #1a150b;
  --logo-color: #e8c86a;
  --glow: 0 4px 18px rgba(212, 175, 55, 0.3);
  --glow-strong: 0 6px 26px rgba(212, 175, 55, 0.5);
  --glow-focus: 0 0 0 3px rgba(212, 175, 55, 0.28);
  --radius: 6px;
  --card-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  --row-hover: rgba(212, 175, 55, 0.07);
  --success: #d4af37;
  --danger: #e07b54;
  --particle-color: rgba(212, 175, 55, 0.35);
}
/* 窄版居中 */
body[data-theme="luxury-gold"] .app { max-width: 780px; }
/* 金色双线相框 + 四角装饰 */
body[data-theme="luxury-gold"] .card {
  border: 1px solid var(--border-strong);
  outline: 1px solid var(--border); outline-offset: 5px;
}
body[data-theme="luxury-gold"] .section-title {
  font-family: var(--font-head); justify-content: center; text-align: center;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
body[data-theme="luxury-gold"] .token-name { font-family: var(--font-head); text-align: center; }

/* ==================== 8. 自然绿 eco-green（软圆角友好卡片） ==================== */
body[data-theme="eco-green"] {
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --font-head: 'Nunito Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --bg: #f2faf3;
  --bg-decor:
    radial-gradient(circle at 15% 15%, rgba(22, 163, 74, 0.16), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(101, 163, 13, 0.14), transparent 45%),
    #f2faf3;
  --surface: #ffffff;
  --surface-2: #f0f7f1;
  --border: #dcebe0;
  --border-strong: #16a34a;
  --text: #1f2937;
  --text-muted: #57705f;
  --accent: #16a34a;
  --accent-2: #65a30d;
  --on-accent: #ffffff;
  --logo-color: #16a34a;
  --glow: 0 4px 16px rgba(22, 163, 74, 0.2);
  --glow-strong: 0 8px 24px rgba(22, 163, 74, 0.3);
  --glow-focus: 0 0 0 3px rgba(22, 163, 74, 0.2);
  --radius: 22px;
  --card-shadow: 0 4px 18px rgba(22, 163, 74, 0.1);
  --row-hover: #f0f7f1;
  --success: #16a34a;
  --danger: #dc2626;
  --particle-color: rgba(22, 163, 74, 0.18);
}
body[data-theme="eco-green"] #particleCanvas { display: none; }
body[data-theme="eco-green"] .app {
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "social social"
    "token token"
    "req claim"
    "records records"
    "footer footer";
}
@media (max-width: 639px) {
  body[data-theme="eco-green"] .app { grid-template-columns: 1fr; grid-template-areas: "social" "token" "req" "claim" "records" "footer"; }
}
/* 对勾做成圆形徽章 */
body[data-theme="eco-green"] .req-list li svg {
  background: var(--accent); color: #fff; border-radius: 50%;
  padding: 3px; margin-top: 0; width: 22px; height: 22px;
}

/* ==================== 9. 活力渐变 playful（贴纸大圆角 + 轻微旋转 + 彩色 blob） ==================== */
body[data-theme="playful"] {
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --font-head: 'Baloo 2', 'Nunito Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --bg: #fff8f3;
  --bg-decor:
    radial-gradient(circle at 10% 15%, rgba(255, 92, 138, 0.3), transparent 42%),
    radial-gradient(circle at 90% 25%, rgba(108, 92, 231, 0.26), transparent 42%),
    radial-gradient(circle at 30% 90%, rgba(255, 186, 84, 0.32), transparent 45%),
    #fff8f3;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-2: #ffffff;
  --border: rgba(255, 92, 138, 0.22);
  --border-strong: rgba(108, 92, 231, 0.45);
  --text: #2d2a3a;
  --text-muted: #6d6a7d;
  --accent: #ff5c8a;
  --accent-2: #6c5ce7;
  --on-accent: #ffffff;
  --logo-color: #ff8c42;
  --glow: 0 6px 22px rgba(255, 92, 138, 0.3);
  --glow-strong: 0 10px 30px rgba(108, 92, 231, 0.35);
  --glow-focus: 0 0 0 3px rgba(108, 92, 231, 0.22);
  --radius: 28px;
  --card-shadow: 0 10px 30px rgba(45, 42, 58, 0.1);
  --row-hover: rgba(255, 92, 138, 0.07);
  --success: #16a34a;
  --danger: #ef4444;
  --particle-color: rgba(255, 92, 138, 0.2);
}
body[data-theme="playful"] #particleCanvas { display: none; }
body[data-theme="playful"] .app {
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "social social"
    "token token"
    "req claim"
    "records records"
    "footer footer";
}
@media (max-width: 639px) {
  body[data-theme="playful"] .app { grid-template-columns: 1fr; grid-template-areas: "social" "token" "req" "claim" "records" "footer"; }
}
/* 贴纸卡片：大圆角 + 轻微旋转 + 彩色描边 */
body[data-theme="playful"] .card {
  border-width: 2px;
}
body[data-theme="playful"] .mod-token { transform: rotate(-1deg); }
body[data-theme="playful"] .mod-claim { transform: rotate(1deg); }
body[data-theme="playful"] .token-logo {
  border-radius: 30% !important;
  border-width: 3px;
}
body[data-theme="playful"] .btn { border-radius: 999px; }
/* （注：内容由AI生成） */
