/* ===== Vivid Multicolor theme override（多彩财经）=====
   背景：多色光晕 + 明快三色渐变（红/紫/蓝 → 粉/青/绿/橙）
   板块：彩色顶条 + 浅色着色卡片，按 红/紫/青/橙 四色轮换
   文字：深墨紫主文字 #1a1330 + 紫调次文字 #5b5578
   强调：计算器为深紫终端块 + 琥珀高光；标题为多色渐变 */
:root {
  color-scheme: light;
  --ink: #1a1330;
  --muted: #5b5578;
  --line: rgba(26, 19, 48, 0.14);
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --gold: #f59e0b;
  --teal: #0d9488;
  --red: #e11d48;
  --blue: #2563eb;
  --green: #059669;
  --rose: #e11d48;
  --violet: #7c3aed;
  --orange: #ea580c;
  --cyan: #0891b2;
  --pink: #db2777;
  --indigo: #4f46e5;
  --lime: #65a30d;
  --shadow: 0 18px 46px rgba(76, 29, 149, 0.16);
}

body {
  background:
    radial-gradient(circle at 8% -2%, rgba(124, 58, 237, 0.22), transparent 32%),
    radial-gradient(circle at 94% 2%, rgba(219, 39, 119, 0.20), transparent 30%),
    radial-gradient(circle at 82% 40%, rgba(8, 145, 178, 0.18), transparent 34%),
    radial-gradient(circle at 10% 66%, rgba(5, 150, 105, 0.16), transparent 32%),
    radial-gradient(circle at 50% 112%, rgba(245, 158, 11, 0.26), transparent 48%),
    linear-gradient(180deg, #fff6ee 0%, #fdeafd 44%, #e6f2ff 100%);
  color: var(--ink);
}

body::before {
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
}

.topbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 3px solid #7c3aed;
  box-shadow: 0 10px 30px rgba(76, 29, 149, 0.14);
}

button.brand {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}

button.brand:focus-visible {
  outline: 2px solid #e11d48;
  outline-offset: 3px;
  border-radius: 8px;
}

.brand::before {
  border-color: #7c3aed;
  background: linear-gradient(135deg, #e11d48, #7c3aed 55%, #0891b2);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.3);
}

.brand-title { color: #1a1330; }

.tape-chip {
  border-color: rgba(124, 58, 237, 0.28);
  color: #4a3f6b;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.12);
}

.tape-chip:nth-child(2n) { border-color: rgba(8, 145, 178, 0.32); }
.tape-chip:nth-child(3n) { border-color: rgba(225, 29, 72, 0.30); }
.tape-chip:nth-child(4n) { border-color: rgba(245, 158, 11, 0.38); }

.tape-chip b,
.hero-stat strong,
.story-body h3,
.policy-card h3,
.crypto-card h3,
.quote strong,
.rank-name b {
  color: #1a1330;
}

h1 {
  background: linear-gradient(96deg, #e11d48 0%, #7c3aed 34%, #2566eb 64%, #0891b2 84%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h2 { color: #1a1330; }

.edition {
  color: #e11d48;
}

.edition::before {
  background: linear-gradient(90deg, #e11d48, #7c3aed, #0891b2);
}

.kicker { color: #7c3aed; }

.lead,
.section-note,
.story-body p,
.policy-card p,
.crypto-card p,
.quote span,
.story-meta,
.rank-name span,
.result-meta,
.rate-card span,
.site-footer-inner,
.legal-dialog p {
  color: #5b5578;
}

/* ---------- Section-level color coding ---------- */
#hot .kicker { color: #e11d48; }
#magazine .kicker { color: #7c3aed; }
#rank .kicker { color: #2566eb; }
#community .kicker { color: #0891b2; }
#crypto .kicker { color: #db2777; }
#signals .kicker { color: #059669; }

#hot h2 { color: #b8123c; }
#magazine h2 { color: #6d28d9; }
#rank h2 { color: #1d4ed8; }
#community h2 { color: #0e7490; }
#crypto h2 { color: #be185d; }
#signals h2 { color: #047857; }

.hero-copy {
  border: 2px solid rgba(124, 58, 237, 0.4);
  background:
    linear-gradient(100deg, #ffffff 0%, rgba(255, 255, 255, 0.94) 52%, rgba(255, 255, 255, 0.32) 100%),
    url("../../../../img/local/fx-01.jpg") center / cover;
  box-shadow: 0 18px 46px rgba(76, 29, 149, 0.16);
}

.hero-stat {
  border-left: 4px solid #e11d48;
  padding-left: 12px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.12), #ffffff);
}

.hero-stat:nth-child(2) {
  border-left: 4px solid #7c3aed;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), #ffffff);
}

.hero-stat:nth-child(3) {
  border-left: 4px solid #0891b2;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.14), #ffffff);
}

.calculator {
  background: linear-gradient(160deg, #28194a 0%, #171029 58%, #0f0a1c 100%);
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 24px 70px rgba(76, 29, 149, 0.42);
}

.calculator::before {
  background:
    radial-gradient(circle at 84% 0%, rgba(245, 158, 11, 0.26), transparent 42%),
    radial-gradient(circle at 10% 100%, rgba(8, 145, 178, 0.28), transparent 46%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05), transparent 46%);
}

.calculator .calc-tabs button.active,
.calculator .swap-btn,
.legal-close {
  color: #1a1330;
  background: linear-gradient(135deg, #ffd43b, #f59e0b);
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.4);
}

.calculator .result-value {
  color: #ffd43b;
}

.calculator .result-box {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.5);
}

.calculator .field,
.calculator .rate-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

/* ---------- Cards: multicolor top bars + tinted backgrounds ---------- */
.lead-story,
.side-stack article,
.feature-card,
.policy-card,
.crypto-card,
.rank-card,
.quote,
#hot .lead-story,
#hot .side-stack article,
#hot .hot-river article,
#magazine .feature-card,
.sentiment-card {
  border: 1px solid rgba(26, 19, 48, 0.10);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(76, 29, 149, 0.12);
}

.lead-story,
.hot-river article:nth-child(4n + 1),
.side-stack article:nth-child(4n + 1),
.feature-card:nth-child(4n + 1),
.crypto-card:nth-child(4n + 1),
.quote:nth-child(4n + 1),
.sentiment-card:nth-child(4n + 1),
.policy-card:nth-child(4n + 1) {
  border-top: 4px solid #e11d48;
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.09), #ffffff 60%);
}

.hot-river article:nth-child(4n + 2),
.side-stack article:nth-child(4n + 2),
.feature-card:nth-child(4n + 2),
.crypto-card:nth-child(4n + 2),
.quote:nth-child(4n + 2),
.sentiment-card:nth-child(4n + 2),
.policy-card:nth-child(4n + 2) {
  border-top: 4px solid #7c3aed;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.10), #ffffff 60%);
}

.hot-river article:nth-child(4n + 3),
.side-stack article:nth-child(4n + 3),
.feature-card:nth-child(4n + 3),
.crypto-card:nth-child(4n + 3),
.quote:nth-child(4n + 3),
.sentiment-card:nth-child(4n + 3),
.policy-card:nth-child(4n + 3) {
  border-top: 4px solid #0891b2;
  background: linear-gradient(180deg, rgba(8, 145, 178, 0.10), #ffffff 60%);
}

.hot-river article:nth-child(4n),
.side-stack article:nth-child(4n),
.feature-card:nth-child(4n),
.crypto-card:nth-child(4n),
.quote:nth-child(4n),
.sentiment-card:nth-child(4n),
.policy-card:nth-child(4n) {
  border-top: 4px solid #f59e0b;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12), #ffffff 60%);
}

/* ---------- Tags: multicolor pills ---------- */
.tag,
#hot .tag,
#magazine .tag {
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48, #db2777);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.28);
}

article:nth-child(2n) .tag,
.crypto-card:nth-child(2n) .tag,
.policy-card:nth-child(2n) .tag {
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
}

article:nth-child(3n) .tag,
.crypto-card:nth-child(3n) .tag,
.policy-card:nth-child(3n) .tag {
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2, #0d9488);
  box-shadow: 0 6px 16px rgba(8, 145, 178, 0.3);
}

article:nth-child(4n) .tag,
.crypto-card:nth-child(4n) .tag,
.policy-card:nth-child(4n) .tag {
  color: #1a1330;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.32);
}

.markets-band {
  background: linear-gradient(135deg, rgba(37, 102, 235, 0.12), rgba(8, 145, 178, 0.10) 50%, rgba(124, 58, 237, 0.12));
  border-block: 2px solid rgba(37, 102, 235, 0.35);
}

.rank-no {
  color: #e11d48;
}

.rank-share {
  color: #2566eb;
}

#rank .rank-item:nth-child(3n) .rank-no { color: #7c3aed; }
#rank .rank-item:nth-child(3n + 1) .rank-no { color: #e11d48; }
#rank .rank-item:nth-child(3n + 2) .rank-no { color: #0891b2; }

.crypto-hero::after {
  background: linear-gradient(90deg, rgba(26, 19, 48, 0.92), rgba(76, 29, 149, 0.42) 58%, rgba(8, 145, 178, 0.34));
}

#crypto .crypto-hero h2 { color: #ffffff; }
#crypto .crypto-hero .kicker { color: #ffd43b; }

.site-footer {
  background: linear-gradient(120deg, #1a1330 0%, #2a1a4d 45%, #3b1d5e 100%);
  border-top-color: #7c3aed;
}

.site-footer-inner {
  color: #ece6ff;
}

.footer-actions button {
  color: #f3eaff;
  background: transparent;
  border-color: rgba(199, 180, 255, 0.5);
}

.footer-actions button:hover {
  background: rgba(124, 58, 237, 0.3);
}

.legal-dialog {
  background: #ffffff;
}

.legal-modal {
  background: rgba(26, 19, 48, 0.62);
}

.section-head {
  border-bottom: 2px solid rgba(26, 19, 48, 0.16);
}

#hot .section-head { border-bottom-color: rgba(225, 29, 72, 0.55); }
#magazine .section-head { border-bottom-color: rgba(124, 58, 237, 0.55); }
#rank .section-head { border-bottom-color: rgba(37, 102, 235, 0.5); }
#community .section-head { border-bottom-color: rgba(8, 145, 178, 0.5); }
#crypto .section-head { border-bottom-color: rgba(219, 39, 119, 0.5); }
#signals .section-head { border-bottom-color: rgba(5, 150, 105, 0.5); }

.rank-item {
  border-bottom-color: rgba(26, 19, 48, 0.12);
}

#hot .lead-story .story-body {
  background: #ffffff;
}

.policy-card:not(:first-child)::before {
  background: rgba(255, 255, 255, 0.84);
}

.policy-card::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.94));
}

.quote:nth-child(1),
.quote:nth-child(2),
.quote:nth-child(3),
.quote:nth-child(4) {
  background: #ffffff;
}

@media (max-width: 640px) {
  .hero-copy {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.92) 60%, rgba(255, 255, 255, 0.46) 100%),
      url("../../../../img/local/fx-01.jpg") center / cover;
  }
}
