/* ===== Press Ink theme override（纸墨财经）=====
   背景：暖米纸色渐变 + 琥珀/淡红环境光（与原深色主题明度相反）
   板块：白色卡片 + 墨黑描边 + 红/蓝/绿/橙四色顶条轮换
   文字：墨黑主文字 #141414 + 暖灰次文字 #5a564c
   强调：计算器为墨黑终端块 + 琥珀高光；红/蓝/绿语义色；墨黑页脚收底 */
:root {
  color-scheme: light;
  --ink: #141414;
  --muted: #5a564c;
  --line: rgba(20, 20, 20, 0.15);
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --gold: #f59e0b;
  --teal: #047857;
  --red: #d92d20;
  --blue: #1d4ed8;
  --green: #047857;
  --rose: #be123c;
  --violet: #6d28d9;
  --orange: #ea580c;
  --cyan: #0e7490;
  --shadow: 0 18px 50px rgba(20, 20, 20, 0.14);
}

body {
  background:
    radial-gradient(circle at 92% -4%, rgba(245, 158, 11, 0.14), transparent 30%),
    radial-gradient(circle at -4% 28%, rgba(217, 45, 32, 0.06), transparent 32%),
    linear-gradient(180deg, #f8f2e6 0%, #f3ecdc 55%, #ede4cf 100%);
  color: var(--ink);
}

body::before {
  background-image:
    linear-gradient(rgba(20, 20, 20, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 20, 0.06) 1px, transparent 1px);
}

.topbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 3px solid #141414;
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.08);
}

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

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

.brand::before {
  border-color: #141414;
  background: linear-gradient(135deg, #d92d20, #f59e0b);
  box-shadow: 0 10px 24px rgba(217, 45, 32, 0.22);
}

.brand-title { color: #141414; }

.tape-chip {
  border-color: rgba(20, 20, 20, 0.35);
  color: #5a564c;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(20, 20, 20, 0.06);
}

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

.edition,
.kicker {
  color: #d92d20;
}

.edition::before {
  background: #d92d20;
}

.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: #5a564c;
}

.hero-copy {
  border: 2px solid #141414;
  background:
    linear-gradient(100deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 52%, rgba(255, 255, 255, 0.35) 100%),
    url("../../../../img/local/fx-01.jpg") center / cover;
}

.hero-stat {
  border-left-color: #d92d20;
  background: #ffffff;
}

.hero-stat:nth-child(2) {
  border-left-color: #1d4ed8;
  background: #ffffff;
}

.hero-stat:nth-child(3) {
  border-left-color: #047857;
  background: #ffffff;
}

.calculator {
  background: linear-gradient(160deg, #222222 0%, #141414 60%, #0d0d0d 100%);
  border-color: #141414;
  box-shadow: 0 24px 70px rgba(20, 20, 20, 0.3);
}

.calculator::before {
  background:
    radial-gradient(circle at 84% 0%, rgba(245, 158, 11, 0.22), transparent 42%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05), transparent 46%);
}

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

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

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

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

.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 {
  border-color: #141414;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(20, 20, 20, 0.1);
}

.lead-story,
.feature-card:nth-child(4n + 1),
.quote:nth-child(4n + 1) {
  background: #ffffff;
  border-top: 4px solid #d92d20;
}

.side-stack article:nth-child(3n + 1),
.feature-card:nth-child(4n + 2),
.crypto-card:nth-child(4n + 2),
.quote:nth-child(4n + 2) {
  background: #ffffff;
  border-top: 4px solid #1d4ed8;
}

.side-stack article:nth-child(3n + 2),
.feature-card:nth-child(4n + 3),
.crypto-card:nth-child(4n + 3),
.quote:nth-child(4n + 3) {
  background: #ffffff;
  border-top: 4px solid #047857;
}

.side-stack article:nth-child(3n),
.feature-card:nth-child(4n),
.crypto-card:nth-child(4n),
.quote:nth-child(4n) {
  background: #ffffff;
  border-top: 4px solid #f59e0b;
}

.tag,
#hot .tag,
#magazine .tag {
  color: #ffffff;
  background: #d92d20;
  box-shadow: 0 6px 16px rgba(217, 45, 32, 0.24);
}

article:nth-child(2n) .tag,
.crypto-card:nth-child(2n) .tag,
.policy-card:nth-child(2n) .tag {
  color: #ffffff;
  background: #1d4ed8;
}

article:nth-child(3n) .tag,
.crypto-card:nth-child(3n) .tag,
.policy-card:nth-child(3n) .tag {
  color: #ffffff;
  background: #047857;
}

.markets-band {
  background: #ffffff;
  border-block: 2px solid #141414;
}

.rank-no {
  color: #d92d20;
}

.rank-share {
  color: #1d4ed8;
}

.crypto-hero::after {
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.92), rgba(20, 20, 20, 0.34) 58%, rgba(20, 20, 20, 0.24));
}

.site-footer {
  background: #141414;
  border-top-color: #141414;
}

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

.footer-actions button {
  color: #f4efe6;
  background: transparent;
  border-color: rgba(244, 239, 230, 0.45);
}

.legal-dialog {
  background: #ffffff;
}

.legal-modal {
  background: rgba(20, 20, 20, 0.6);
}

.section-head {
  border-bottom: 2px solid #141414;
}

#hot .section-head,
#magazine .section-head {
  border-top-color: rgba(20, 20, 20, 0.3);
  border-bottom-color: #141414;
}

.rank-item {
  border-bottom-color: rgba(20, 20, 20, 0.14);
}

#hot .lead-story .story-body {
  border-color: #141414;
  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) { background: #ffffff; }
.quote:nth-child(2) { background: #ffffff; }
.quote:nth-child(3) { background: #ffffff; }
.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.9) 60%, rgba(255, 255, 255, 0.42) 100%),
      url("../../../../img/local/fx-01.jpg") center / cover;
  }
}
