/* ========================================================================
   金球财富 RewardPoints · 设计系统
   移动优先，桌面自适应；深色金融科技风 + 可切换浅色
   ===================================================================== */
:root {
  --bg: #0b0f1a;
  --bg-soft: #121829;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.10);
  --text: #eef2ff;
  --text-dim: #9aa6c4;
  --text-mute: #6b7690;
  --gold: #f5c451;
  --gold-deep: #e0a32e;
  --accent: #5b8cff;
  --green: #34d399;
  --red: #fb7185;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --maxw: 980px;
  --topbar-h: 104px;
  --tabbar-h: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  /* 弹窗专用 */
  --modal-bg:     #1a2035;
  --modal-border: rgba(255,255,255,.12);
  --input-bg:     rgba(255,255,255,.10);
  --input-border: rgba(255,255,255,.22);
}

[data-theme="light"] {
  --bg: #eef1f8;
  --bg-soft: #ffffff;
  --surface: rgba(15, 23, 42, 0.04);
  --surface-2: rgba(15, 23, 42, 0.07);
  --border: rgba(15, 23, 42, 0.10);
  --text: #131a2b;
  --text-dim: #4a5575;
  --text-mute: #8a93ad;
  --shadow: 0 10px 30px rgba(31, 41, 84, 0.12);
  /* 弹窗专用 */
  --modal-bg:     #ffffff;
  --modal-border: rgba(15,23,42,.12);
  --input-bg:     #f1f5f9;
  --input-border: rgba(15,23,42,.20);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(91, 140, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(245, 196, 81, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  transition: background .4s var(--ease), color .3s var(--ease);
  overflow-x: hidden;
}

.hidden { display: none !important; }

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ============================ 顶部栏 ============================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--safe-t);
  background: linear-gradient(180deg, rgba(11, 15, 26, 0.92), rgba(11, 15, 26, 0.72));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .topbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 16px;
}
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand__logo {
  font-size: 22px;
  color: var(--gold);
  filter: drop-shadow(0 0 8px rgba(245, 196, 81, 0.5));
}
.brand__name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .5px;
  background: linear-gradient(92deg, var(--gold), #fff 60%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

/* 跑马灯快讯 */
.ticker {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 8px;
  overflow: hidden;
}
.ticker__tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), #f43f5e);
  padding: 3px 7px;
  border-radius: 999px;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.ticker__viewport { flex: 1; min-width: 0; overflow: hidden; -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: inline-flex;
  white-space: nowrap;
  gap: 36px;
  will-change: transform;
  animation: ticker-scroll 30s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { font-size: 13px; color: var(--text-dim); cursor: pointer; transition: color .2s; }
.ticker__item:hover { color: var(--gold); }
.ticker__item--new { color: var(--text); font-weight: 600; }
.ticker__new {
  display: inline-block; margin-right: 6px; padding: 1px 6px;
  font-size: 10px; font-weight: 800; letter-spacing: .5px; vertical-align: 1px;
  color: #1a1407; background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border-radius: 999px; animation: pulse 1.6s infinite;
}
.ticker__item b { color: var(--gold); margin-right: 4px; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.icon-btn {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s;
}
.icon-btn:active { transform: scale(.9); }

/* 多语言下拉 */
.lang { position: relative; flex-shrink: 0; z-index: 70; }
/* 触发胶囊：🌐 + 当前语言(中/EN/MS) + 箭头，固定高度与主题按钮对齐 */
.lang__btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 38px; padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s var(--ease);
}
.lang__btn:hover { border-color: var(--gold); }
.lang__btn:active { transform: scale(.94); }
.lang__btn[aria-expanded="true"] { border-color: var(--gold); background: var(--surface-2); }
.lang__globe { font-size: 15px; line-height: 1; }
.lang__current { min-width: 20px; text-align: center; letter-spacing: .3px; }
.lang__caret { font-size: 9px; color: var(--text-mute); transition: transform .2s var(--ease); }
.lang__btn[aria-expanded="true"] .lang__caret { transform: rotate(180deg); }

/* 下拉浮层：绝对定位覆盖，向下展开，不挤压顶栏布局 */
.lang__menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 188px;
  background: var(--bg-soft);          /* 不透明，避免下方卡片透出 */
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column; gap: 2px;
  z-index: 70;
  transform-origin: top right;
  animation: lang-pop .18s var(--ease);
}
[data-theme="light"] .lang__menu { box-shadow: 0 18px 44px rgba(15, 23, 42, .16); }
.lang__menu[hidden] { display: none; }
@keyframes lang-pop {
  from { opacity: 0; transform: translateY(-6px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.lang__opt {
  display: flex; align-items: center; gap: 8px;
  text-align: left;
  padding: 10px 12px;
  border: 0; border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.lang__opt:hover { background: var(--surface-2); }
.lang__check { width: 14px; flex-shrink: 0; font-size: 12px; color: var(--gold); opacity: 0; }
.lang__opt.is-active { color: var(--gold); }
.lang__opt.is-active .lang__check { opacity: 1; }

/* 行情条 */
.market {
  display: flex;
  gap: 10px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.market::-webkit-scrollbar { display: none; }
.market__item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 96px;
}
.market__name { font-size: 11px; color: var(--text-mute); }
.market__price { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.market__chg { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.up { color: var(--green); } .down { color: var(--red); }

/* ============================ 内容区 ============================ */
.content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 16px calc(var(--tabbar-h) + var(--safe-b) + 20px);
}
.view { animation: fade-up .4s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.view__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.view__title { font-size: clamp(20px, 5vw, 28px); font-weight: 800; }
.view__sub { font-size: 12px; color: var(--text-mute); margin-top: 2px; }

.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), background .2s;
}
.refresh-btn:active { transform: scale(.95); }
.refresh-btn__icon { display: inline-block; font-size: 15px; }
.refresh-btn.loading .refresh-btn__icon { animation: spin .8s linear infinite; }
.refresh-btn.loading { opacity: .7; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================ 新闻列表 ============================ */
.news-list { display: grid; gap: 14px; }
@media (min-width: 720px) { .news-list { grid-template-columns: 1fr 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s, background .25s;
  animation: fade-up .45s var(--ease) both;
}
.card:hover { transform: translateY(-3px); border-color: rgba(245, 196, 81, 0.4); }
.card__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: .3px;
}
.chip--gold { background: rgba(245, 196, 81, 0.16); color: var(--gold); }
.chip--sport { background: rgba(91, 140, 255, 0.16); color: var(--accent); }
.chip--hot { background: rgba(251, 113, 133, 0.16); color: var(--red); }
.card__source { font-size: 11px; color: var(--text-mute); margin-left: auto; }
.card__title { font-size: 16px; font-weight: 700; line-height: 1.4; }
.card__summary {
  font-size: 13px;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__foot { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.card__foot .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-mute); }
.score {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  background: var(--surface-2);
  padding: 2px 10px;
  border-radius: 8px;
}

/* 骨架屏 */
.skeleton {
  height: 132px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  border: 1px solid var(--border);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ============================ 个人中心 ============================ */
.auth { display: flex; justify-content: center; padding-top: 8px; }
.auth__card { width: 100%; max-width: 420px; padding: 22px; }
.auth__tabs { display: flex; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.auth__tab {
  flex: 1; padding: 9px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text-dim); font-weight: 700; font-size: 14px;
  transition: all .25s var(--ease);
}
.auth__tab.is-active { background: var(--gold); color: #1a1407; box-shadow: 0 4px 14px rgba(245, 196, 81, 0.35); }
.auth__form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.field input, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 15px;
  transition: border-color .2s;
}
.field select { appearance: none; -webkit-appearance: none; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); }
.file-picker {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 15px;
  box-sizing: border-box;
}
.file-picker__text { color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-picker__text.has-file { color: var(--text); }
.field .file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  opacity: 0;
  cursor: pointer;
}
.form-msg { font-size: 12px; min-height: 16px; color: var(--red); }
.form-msg.ok { color: var(--green); }
.auth__hint { font-size: 12px; color: var(--text-mute); text-align: center; }
.auth__hint b { color: var(--gold); }

.btn {
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s var(--ease), filter .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #1a1407; }
.btn--primary:hover { filter: brightness(1.06); }
.btn--accent { background: linear-gradient(135deg, var(--accent), #7c3aed); color: #fff; }
.btn--ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn--sm { padding: 7px 12px; font-size: 13px; }

/* 按钮加载态：内嵌旋转圈，文字隐藏，禁用交互 */
.btn.is-loading { color: transparent !important; pointer-events: none; opacity: .9; }
.btn.is-loading::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border: 2px solid rgba(26, 20, 7, .28); border-top-color: #1a1407;
  border-radius: 50%; animation: spin .7s linear infinite;
}
.btn { position: relative; }
.btn--ghost.is-loading::after,
.btn--accent.is-loading::after { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }

/* 通用 shimmer 占位块 */
.sk {
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  border-radius: var(--radius-sm);
}

/* 登录/个人中心面板出入场过渡 */
#authPanel:not(.hidden),
#profilePanel:not(.hidden) { animation: fade-up .35s var(--ease); }
.panel-leave { animation: panel-out .24s var(--ease) forwards; }
@keyframes panel-out { to { opacity: 0; transform: translateY(8px); } }

/* 积分数字加载脉动 */
.points-card__value.is-loading { animation: pulse 1.1s ease-in-out infinite; }

/* 图表骨架柱 */
.chart .sk { border-radius: 6px 6px 2px 2px; align-self: flex-end; }
/* 明细骨架行 */
.history__skel { height: 42px; margin: 6px 0; border-radius: var(--radius-sm); }

.profile { display: grid; gap: 14px; }
.profile__header { display: flex; align-items: center; gap: 14px; padding: 16px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 800; color: #1a1407;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  flex-shrink: 0;
}
.profile__id { flex: 1; min-width: 0; }
.profile__name-row { display: flex; align-items: center; gap: 6px; }
.profile__name-row span { font-size: 18px; font-weight: 800; }
.profile__name { font-size: 18px; font-weight: 800; }
.btn--icon { background: none; border: none; cursor: pointer; font-size: 14px; padding: 2px 4px; opacity: 0.6; transition: opacity .15s; }
.btn--icon:hover { opacity: 1; }
.profile__meta { font-size: 12px; color: var(--text-mute); }
.member-tier-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--gold); color: #1a1a1a; display: none; }
.member-tier-badge:not(:empty) { display: inline-block; }
.member-type-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 10px; display: none; }
.member-type-badge:not(:empty) { display: inline-block; }
.member-type-badge--football { background: #e8f5e9; color: #2e7d32; }
.member-type-badge--bronze   { background: #fff3e0; color: #bf6000; }
.member-type-badge--silver   { background: #eceff1; color: #546e7a; }
.member-type-badge--gold     { background: #fffde7; color: #f57f17; }
.member-type-badge--diamond  { background: linear-gradient(135deg,#e3f2fd,#f3e5f5); color: #4a148c; }

.points-card { padding: 22px; text-align: center; position: relative; overflow: hidden; }
.points-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 160px at 50% -30%, rgba(245, 196, 81, 0.22), transparent 70%);
  pointer-events: none;
}
.points-card__label { font-size: 13px; color: var(--text-dim); }
.points-card__value {
  font-size: clamp(40px, 12vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #fff, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 4px 0;
}
.points-card__value.bump { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
.points-card__rule { font-size: 12px; color: var(--text-mute); }
.points-card__rule b { color: var(--gold); }
.points-card__actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.points-card__actions .btn { flex: 1; min-width: 140px; }
.points-card__hint { font-size: 12px; color: var(--green); margin-top: 10px; min-height: 16px; }
.points-card__hint--redeem { color: var(--text-mute); margin-top: 4px; }
.points-card__withdraw { font-size: 12px; margin-top: 8px; padding: 6px 10px; border-radius: 8px; }
.points-card__withdraw--ok { background: rgba(76,175,80,.15); color: #4caf50; }
.points-card__withdraw--need { background: rgba(255,255,255,.06); color: var(--text-mute); }
.points-card__withdraw.hidden { display: none; }
.points-card__rights { font-size: 12px; margin-top: 6px; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--text-mute); }
.points-card__rights.hidden { display: none; }
.rm-symbol { font-size: 0.55em; font-weight: 500; opacity: 0.7; vertical-align: middle; margin-right: 2px; }

/* 图表 */
.chart-card { padding: 16px; }
.chart-card__head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.chart-card__legend { font-size: 11px; color: var(--text-mute); font-weight: 500; }
.chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 140px;
  padding-top: 8px;
}
.chart__bar {
  flex: 1;
  min-width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  border-radius: 6px 6px 2px 2px;
  position: relative;
  transition: height .6s var(--ease);
  opacity: .9;
}
.chart__bar:last-child { background: linear-gradient(180deg, var(--accent), #7c3aed); opacity: 1; }
.chart__bar:hover::after {
  content: attr(data-label);
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--border);
  font-size: 11px; padding: 3px 7px; border-radius: 6px; white-space: nowrap;
  margin-bottom: 4px;
}
.chart__empty { width: 100%; text-align: center; color: var(--text-mute); font-size: 13px; align-self: center; }

.history-card { padding: 16px; }
.history-card__head { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.history { display: flex; flex-direction: column; }
.history__row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 2px; border-bottom: 1px solid var(--border); font-size: 13px;
}
.history__row:last-child { border-bottom: 0; }
.history__icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); flex-shrink: 0; }
.history__main { flex: 1; min-width: 0; }
.history__type { font-weight: 600; }
.history__time { font-size: 11px; color: var(--text-mute); }
.history__delta { font-weight: 800; font-variant-numeric: tabular-nums; }
.history__delta.plus { color: var(--green); }
.history__empty { color: var(--text-mute); font-size: 13px; padding: 8px 0; }

/* ============================ 底部 Tab ============================ */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: linear-gradient(180deg, rgba(11, 15, 26, 0.72), rgba(11, 15, 26, 0.96));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
[data-theme="light"] .tabbar { background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.97)); }
.tabbar__item {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text-mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  font-size: 11px;
  transition: color .2s;
  position: relative;
}
.tabbar__icon { font-size: 20px; transition: transform .25s var(--ease); }
.tabbar__item.is-active { color: var(--gold); }
.tabbar__item.is-active .tabbar__icon { transform: translateY(-2px) scale(1.12); }
.tabbar__item.is-active::before {
  content: ""; position: absolute; top: 6px; width: 24px; height: 3px; border-radius: 3px;
  background: var(--gold); box-shadow: 0 0 10px var(--gold);
}

/* ============================ Toast ============================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 20px);
  transform: translate(-50%, 20px);
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all .3s var(--ease);
  z-index: 100;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================ 桌面端自适应 ============================
   ≥ 860px：底部 Tab 转为顶部导航，内容居中，留白更舒适 */
@media (min-width: 860px) {
  :root { --tabbar-h: 0px; }
  .tabbar {
    position: sticky;
    top: calc(var(--topbar-h));
    bottom: auto;
    height: 56px;
    max-width: var(--maxw);
    margin: 8px auto 0;
    padding: 6px;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
  }
  .tabbar__item { flex-direction: row; gap: 8px; border-radius: 999px; font-size: 14px; font-weight: 600; }
  .tabbar__icon { font-size: 18px; }
  .tabbar__item.is-active { background: var(--surface-2); }
  .tabbar__item.is-active::before { display: none; }
  .content { padding-bottom: 40px; }
  .toast { bottom: 30px; }
  .news-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .news-list { grid-template-columns: 1fr 1fr 1fr; }
}

/* 加载更多 */
.news-more { display: flex; justify-content: center; padding: 6px 0 4px; }
.load-more {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
  border-radius: 999px; padding: 9px 22px; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: border-color .2s, color .2s, transform .15s var(--ease);
}
.load-more:hover { border-color: var(--gold); color: var(--text); }
.load-more:active { transform: scale(.97); }
.load-more.is-loading { opacity: .6; pointer-events: none; }
.load-more__end { font-size: 12px; color: var(--text-mute); padding: 6px 0; }

/* ============================ 新闻详情页 ============================ */
.detail {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: detail-in .28s var(--ease);
}
.detail.hidden { display: none; }
@keyframes detail-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
body.detail-open { overflow: hidden; }

.detail__bar {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(var(--safe-t) + 10px) 16px 10px;
  background: linear-gradient(180deg, rgba(11, 15, 26, 0.92), rgba(11, 15, 26, 0.72));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .detail__bar { background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8)); }
.detail__back {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 7px 14px 7px 9px; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s var(--ease);
}
.detail__back:hover { border-color: var(--gold); background: var(--surface-2); }
.detail__back:active { transform: scale(.96); }
.detail__back-icon { font-size: 22px; line-height: 1; margin-top: -2px; }
.detail__brand {
  font-weight: 800; font-size: 15px;
  background: linear-gradient(92deg, var(--gold), #fff 60%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* 详情页语言切换分段控件 */
.detail__lang {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px;
}
.detail__lang-btn {
  border: 0; background: transparent; color: var(--text-dim);
  font-size: 12px; font-weight: 700; min-width: 34px;
  padding: 5px 10px; border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s;
}
.detail__lang-btn:not(.is-active):hover { color: var(--text); }
.detail__lang-btn.is-active { background: var(--gold); color: #1a1407; }

.detail__body {
  flex: 1; overflow: auto; -webkit-overflow-scrolling: touch;
  max-width: var(--maxw); width: 100%; margin: 0 auto;
  padding: 20px 18px 28px;
  animation: fade-up .35s var(--ease);
}
.detail__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-mute); margin-bottom: 12px; }
.detail__source { color: var(--text-dim); font-weight: 600; }
.detail__title { font-size: clamp(22px, 6vw, 30px); font-weight: 900; line-height: 1.32; margin-bottom: 14px; }
.detail__lead {
  font-size: 16px; line-height: 1.7; color: var(--text-dim); font-weight: 600;
  padding: 12px 14px; background: var(--surface); border-left: 3px solid var(--gold);
  border-radius: 8px; margin-bottom: 18px;
}
.detail__content { font-size: 15px; line-height: 1.95; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.detail__content--empty, .detail__error { color: var(--text-mute); text-align: center; padding: 44px 0; }
.detail__sk { height: 28px; border-radius: 8px; margin-bottom: 14px; }
.detail__foot {
  flex-shrink: 0; padding: 12px 16px calc(var(--safe-b, 0px) + 12px);
  border-top: 1px solid var(--border); background: var(--bg-soft);
}
.detail__footbtn { width: 100%; }

/* ---- 推荐码卡片 ---- */
.referral-card { padding: 20px; }
.referral-card__head { font-weight: 700; font-size: 14px; margin-bottom: 16px; color: var(--text); }
.referral-mine {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 12px; gap: 12px;
}
.referral-mine__left { display: flex; flex-direction: column; gap: 4px; }
.referral-mine__label { font-size: 11px; color: var(--text-mute); letter-spacing: .5px; text-transform: uppercase; }
.referral-code {
  font-size: 22px; font-weight: 900; letter-spacing: 4px; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.referral-hint { font-size: 12px; color: var(--text-mute); margin: 0 0 14px; line-height: 1.6; }
.referral-enter { margin-top: 4px; }
.referral-enter__label { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; font-weight: 600; }
.referral-enter__row { display: flex; gap: 8px; align-items: center; }
.referral-input {
  flex: 1; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 15px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; outline: none;
  transition: border-color .2s;
}
.referral-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,196,81,.15); }
.referral-done {
  font-size: 13px; color: var(--green); padding: 10px 14px;
  background: rgba(52,211,153,.1); border-radius: var(--radius-sm);
  border: 1px solid rgba(52,211,153,.25); font-weight: 600; line-height: 1.5;
}

/* 推荐关系卡片 */
.referral-relation-section { }
.referral-relation-divider {
  height: 1px; background: rgba(255,255,255,.08); margin: 14px 0;
}

/* 我邀请的用户 */
.referral-invitees {
  padding: 16px 20px; margin-top: 12px;
}
.referral-invitees__head {
  font-weight: 700; font-size: 14px; margin-bottom: 10px; color: var(--text);
}
.referral-invitees__list { display: flex; flex-direction: column; gap: 6px; }
.referral-invitees__empty { font-size: 13px; color: var(--text-mute); padding: 4px 0; }
.invitee-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04); font-size: 13px;
}
.invitee-name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invitee-days { font-size: 12px; color: var(--text-mute); white-space: nowrap; }
.invitee-checkin {
  font-size: 11px; font-weight: 600; padding: 2px 8px;
  border-radius: 20px; white-space: nowrap;
  background: rgba(255,255,255,.08); color: var(--text-mute);
}
.invitee-checkin.is-checked {
  background: rgba(52,211,153,.15); color: var(--green);
}

/* 降低动态偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .ticker__track { animation: none; }
}

/* ====== 修改密码弹窗 ====== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  width: 100%; max-width: 360px;
  padding: 28px 24px 20px; border-radius: 16px;
  display: flex; flex-direction: column; gap: 16px;
  background: var(--modal-bg) !important;
  border: 1px solid var(--modal-border) !important;
  backdrop-filter: none !important;
}
.modal-title { font-size: 17px; font-weight: 700; color: var(--text); text-align: center; margin-bottom: 4px; }
.modal-field { display: flex; flex-direction: column; gap: 6px; }
.modal-field label { font-size: 12px; font-weight: 600; color: var(--text-dim); letter-spacing: .3px; }
.modal-field input {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text); font-size: 15px; outline: none;
  transition: border-color .18s, box-shadow .18s;
  box-sizing: border-box;
}
.modal-field input::placeholder { color: var(--text-mute); }
.modal-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,166,56,.18);
}
.modal-error { font-size: 13px; color: #ef4444; padding: 6px 10px; background: rgba(239,68,68,.08); border-radius: 6px; }
.modal-error.hidden { display: none; }
.modal-actions { display: flex; gap: 10px; margin-top: 4px; }
.modal-actions .btn { flex: 1; }
.profile__header-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ======================================================
   投资财富模块
   ====================================================== */

/* 冻结积分提示 */
.points-card__hint--frozen {
  color: var(--accent);
  font-size: 13px;
  margin-top: 2px;
}

/* 子导航 */
.invest-nav {
  display: flex;
  gap: 6px;
  padding: 0 4px;
  margin-bottom: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.invest-nav::-webkit-scrollbar { display: none; }
.invest-nav__btn {
  flex: 1;
  min-width: 64px;
  padding: 8px 10px;
  border: none;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.invest-nav__btn.is-active {
  background: var(--gold);
  color: #0b0f1a;
}

/* 面板 */
.invest-panel { display: flex; flex-direction: column; gap: 12px; }

/* 节标题 */
.invest-section-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: .3px;
  padding: 4px 2px;
  margin-top: 4px;
  border-bottom: 1px solid var(--border);
}

/* 加载/空状态 */
.invest-loading, .invest-empty {
  text-align: center;
  padding: 24px 0;
  color: var(--text-dim);
  font-size: 14px;
}

/* 足球比赛卡 */
.match-card {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.match-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.match-league {
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .3px;
}
.match-status {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
}
.match-status--open    { background: rgba(52,211,153,.15); color: var(--green); }
.match-status--closed  { background: rgba(251,113,133,.12); color: var(--red); }
.match-status--pending { background: rgba(155,170,196,.12); color: var(--text-dim); }
.match-status--settled { background: rgba(91,140,255,.12); color: var(--accent); }
.match-result {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(245,196,81,.12);
  padding: 2px 7px;
  border-radius: 6px;
}
.match-card__teams {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.match-vs {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
}
.match-card__time {
  font-size: 12px;
  color: var(--text-dim);
}
.match-bet-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.match-odds-btn {
  flex: 1;
  padding: 8px 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  transition: background .18s, border-color .18s;
}
.match-odds-btn em {
  display: block;
  font-style: normal;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
}
.match-odds-btn:hover, .match-odds-btn:active {
  background: var(--surface-2);
  border-color: var(--gold);
}
.match-odds-static {
  font-size: 13px;
  color: var(--text-dim);
}

/* 下注记录列表 */
.invest-bet-list, .invest-order-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.invest-bet-item, .invest-order-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
  flex-wrap: wrap;
}
.bet-choice, .order-dir { font-weight: 700; color: var(--text); min-width: 36px; }
.order-dir--up { color: var(--green); }
.order-dir--down { color: var(--red); }
.bet-amount, .order-amount { color: var(--text-dim); }
.bet-status, .order-status { margin-left: auto; font-size: 11px; padding: 2px 6px; border-radius: 5px; }
.bet-status--pending  { background: rgba(155,170,196,.12); color: var(--text-dim); }
.bet-status--won      { background: rgba(52,211,153,.15); color: var(--green); }
.bet-status--returned { background: rgba(91,140,255,.12); color: var(--accent); }
.bet-status--cancelled{ background: rgba(251,113,133,.10); color: var(--red); }
.order-status--active   { background: rgba(91,140,255,.12); color: var(--accent); }
.order-status--settled  { background: rgba(52,211,153,.15); color: var(--green); }
.bet-payout, .order-payout { color: var(--gold); font-weight: 700; font-size: 12px; }
.order-correct--yes { color: var(--green); font-size: 12px; }
.order-correct--no  { color: var(--red); font-size: 12px; }

/* 资产卡片 */
.asset-card {
  padding: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.asset-card__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}
.asset-card__rate {
  font-size: 12px;
  color: var(--text-dim);
}
.asset-no-period {
  font-size: 13px;
  color: var(--text-dim);
  padding: 8px 0;
}
.asset-period-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}
.period-status {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
}
.period-status--open    { background: rgba(52,211,153,.15); color: var(--green); }
.period-status--ended   { background: rgba(245,196,81,.12); color: var(--gold); }
.period-status--settled { background: rgba(91,140,255,.12); color: var(--accent); }
.period-result { font-weight: 700; color: var(--text); }
.period-time   { color: var(--text-dim); }
.period-countdown {
  font-weight: 700;
  color: var(--gold);
  background: rgba(245,196,81,.10);
  padding: 2px 8px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

/* 涨跌方向按钮 */
.invest-dir-btns { display: flex; gap: 10px; }
.dir-btn {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all .18s;
}
.dir-btn[data-dir="up"].is-active  { border-color: var(--green); background: rgba(52,211,153,.12); color: var(--green); }
.dir-btn[data-dir="down"].is-active{ border-color: var(--red); background: rgba(251,113,133,.12); color: var(--red); }
.dir-btn:hover { background: var(--surface-2); }

/* 投入金额行 */
.invest-amount-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.invest-amount-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--input-bg, rgba(255,255,255,.08));
  color: var(--text);
  font-size: 15px;
  outline: none;
}
.invest-amount-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(245,196,81,.15);
}

/* 桌面端自适应：4 个 tab 时字体微调 */
@media (max-width: 400px) {
  .tabbar__label { font-size: 10px; }
  .tabbar__icon  { font-size: 18px; }
}

/* ── 平台金矿投资总量条 ─────────────────────────────────────── */
/* ── 金矿投资数据展示面板 ─────────────────────────── */
.vol-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(38,28,8,.90) 0%, rgba(18,13,4,.96) 100%);
  border-top: 1.5px solid rgba(245,196,81,.22);
  border-bottom: 1px solid rgba(0,0,0,.28);
  gap: 0;
}
.vol-panel__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.vol-panel__label {
  font-size: 11px;
  letter-spacing: .13em;
  color: rgba(245,196,81,.52);
  font-weight: 400;
}
.vol-panel__num {
  font-size: 26px;
  font-weight: 800;
  color: #f5c451;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  text-shadow: 0 0 22px rgba(245,196,81,.45), 0 1px 3px rgba(0,0,0,.5);
  line-height: 1.2;
}
.vol-panel__num--green {
  color: #6ee7b7;
  text-shadow: 0 0 22px rgba(110,231,183,.38), 0 1px 3px rgba(0,0,0,.5);
}
.vol-panel__divider {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(245,196,81,.30), transparent);
  flex-shrink: 0;
  margin: 0 24px;
}
@media (max-width: 400px) {
  .vol-panel { padding: 8px 12px; }
  .vol-panel__num { font-size: 20px; }
  .vol-panel__label { font-size: 10px; }
  .vol-panel__divider { margin: 0 14px; height: 36px; }
}

/* ── 黄金实时走势面板 ─────────────────────────────── */
/* ── 黄金走势折叠卡片 ──────────────────────────────── */
.gold-panel {
  margin: 8px 0 4px;
  border-radius: 12px;
  background: rgba(12,9,2,.88);
  border: 1px solid rgba(245,196,81,.12);
  overflow: hidden;
}
.gold-panel__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.gold-panel__title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(245,196,81,.72);
  letter-spacing: .1em;
}
.gold-panel__sub {
  font-size: 10px;
  color: rgba(255,255,255,.28);
  letter-spacing: .05em;
  flex: 1;
}
.gold-panel__chevron {
  font-size: 14px;
  color: rgba(245,196,81,.55);
  transition: transform .25s ease;
  line-height: 1;
  flex-shrink: 0;
}
.gold-panel--open .gold-panel__chevron {
  transform: rotate(180deg);
}
.gold-panel__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.gold-panel--open .gold-panel__body {
  max-height: 185px;
}
.gold-panel__chart {
  position: relative;
  height: 155px;
  overflow: hidden;
  padding: 0 4px 4px;
}
/* 透明遮罩：拦截 iframe 内所有点击/触摸，阻止跳转 TradingView */
.gold-panel__chart::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: default;
}
.gold-panel__loading {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(8,6,2,1);
  transition: opacity .5s ease;
  pointer-events: none;
}
.gold-panel__loading.is-done {
  opacity: 0;
}
.gold-panel__loading-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245,196,81,.65);
  animation: gp-pulse 1.1s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes gp-pulse {
  0%,100% { opacity: .25; transform: scale(.75); }
  50%      { opacity: 1;   transform: scale(1);    }
}
.gold-panel__loading-text {
  font-size: 11px;
  color: rgba(245,196,81,.5);
  letter-spacing: .06em;
}
[data-theme="light"] .gold-panel__loading {
  background: rgba(255,250,238,1);
}
[data-theme="light"] .gold-panel__loading-pulse {
  background: rgba(130,85,0,.55);
}
[data-theme="light"] .gold-panel__loading-text {
  color: rgba(110,72,0,.45);
}

/* ── 亮色主题适配 ─────────────────────────────────── */
[data-theme="light"] .vol-panel {
  background: linear-gradient(135deg, rgba(245,196,81,.10) 0%, rgba(255,244,210,.18) 100%);
  border-top: 1.5px solid rgba(160,110,0,.18);
  border-bottom: 1px solid rgba(160,110,0,.08);
}
[data-theme="light"] .vol-panel__label {
  color: rgba(110,72,0,.55);
}
[data-theme="light"] .vol-panel__num {
  color: #9a6200;
  text-shadow: none;
}
[data-theme="light"] .vol-panel__num--green {
  color: #0a7f56;
  text-shadow: none;
}
[data-theme="light"] .vol-panel__divider {
  background: linear-gradient(to bottom, transparent, rgba(160,110,0,.22), transparent);
}
[data-theme="light"] .gold-panel {
  background: rgba(255,250,238,.96);
  border-color: rgba(160,110,0,.15);
}
[data-theme="light"] .gold-panel__title {
  color: rgba(110,72,0,.70);
}
[data-theme="light"] .gold-panel__sub {
  color: rgba(100,65,0,.32);
}
[data-theme="light"] .gold-panel__chevron {
  color: rgba(110,72,0,.50);
}

/* ── 提现申请区域 ──────────────────────────────────── */
#withdrawArea {
  margin-top: 10px;
}
#withdrawArea > .btn {
  width: 100%;
  margin-bottom: 0;
}
.withdraw-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.withdraw-form__row { display: flex; }
.withdraw-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(245,196,81,.22);
  background: rgba(255,255,255,.04);
  color: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.withdraw-input:focus { border-color: rgba(245,196,81,.55); }
.withdraw-form__actions {
  display: flex;
  gap: 8px;
}
.withdraw-form__actions .btn { flex: 1; }

/* ── 公告卡片 ─────────────────────────────────── */
.announcement-card {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
}
.announcement-card.hidden { display: none; }
.announcement-card__head {
  font-size: 13px;
  font-weight: 600;
  color: rgba(245,196,81,.75);
  margin-bottom: 10px;
  letter-spacing: .04em;
}
.announcement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  cursor: pointer;
  transition: opacity .15s;
}
.announcement-row:last-child { border-bottom: none; }
.announcement-row:hover { opacity: .75; }
.announcement-row__title {
  flex: 1; min-width: 0;
  font-size: 13px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.announcement-row__time { font-size: 11px; color: var(--text-mute); flex-shrink: 0; }
.announcement-modal__content {
  font-size: 14px; line-height: 1.6; color: var(--text-dim);
  white-space: pre-wrap; word-break: break-word;
  max-height: 50vh; overflow-y: auto;
}

/* ── 提现记录卡片 ─────────────────────────────────── */
.withdraw-history-card {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
}
.withdraw-history-card__head {
  font-size: 13px;
  font-weight: 600;
  color: rgba(245,196,81,.75);
  margin-bottom: 10px;
  letter-spacing: .04em;
}
.wr-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.wr-row:last-child { border-bottom: none; }
.wr-row__left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.wr-amount {
  font-size: 16px;
  font-weight: 700;
  color: #f5c451;
  font-variant-numeric: tabular-nums;
}
.wr-time {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  font-variant-numeric: tabular-nums;
}
.wr-remark {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wr-admin-note {
  font-size: 12px;
  color: rgba(255,200,100,.60);
  font-style: italic;
}
.wr-status {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}
.wr-status--pending  { background: rgba(251,191,36,.15); color: #fbbf24; }
.wr-status--approved { background: rgba(52,211,153,.15); color: #34d399; }
.wr-status--rejected { background: rgba(248,113,113,.15); color: #f87171; }
.wr-status--voided   { background: rgba(148,163,184,.12); color: #94a3b8; }

/* light theme */
[data-theme="light"] .withdraw-input {
  background: rgba(255,255,255,.80);
  border-color: rgba(160,110,0,.20);
  color: #1a1a1a;
}
[data-theme="light"] .withdraw-input:focus { border-color: rgba(160,110,0,.50); }
[data-theme="light"] .withdraw-history-card__head { color: rgba(110,72,0,.70); }
[data-theme="light"] .wr-row { border-color: rgba(0,0,0,.06); }
[data-theme="light"] .wr-amount { color: #9a6200; }
[data-theme="light"] .wr-time { color: rgba(0,0,0,.35); }
[data-theme="light"] .wr-remark { color: rgba(0,0,0,.45); }
[data-theme="light"] .wr-admin-note { color: rgba(140,80,0,.60); }
[data-theme="light"] .wr-status--pending  { background: rgba(180,130,0,.12); color: #9a6200; }
[data-theme="light"] .wr-status--approved { background: rgba(0,120,70,.10); color: #0a7f56; }
[data-theme="light"] .wr-status--rejected { background: rgba(180,0,0,.08); color: #c0392b; }
[data-theme="light"] .wr-status--voided   { background: rgba(100,100,120,.08); color: #5a5a7a; }
