:root {
  --bg: #050505;
  --card: rgba(15, 15, 15, 0.95);
  --line: rgba(212, 169, 58, 0.25);
  --text: #ffffff;
  --muted: #888888;
  --gold: #d4a93a;
  --gold-bright: #ffd76a;
  --gold-glow: rgba(212, 169, 58, 0.15);
  --glass: rgba(255, 255, 255, 0.03);
  --font-main: 'Inter', "Microsoft YaHei", sans-serif;
  --ok: #7df2b3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: #000;
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-stadium {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.4)), url('./背景.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
}

/* 导航栏重构 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 40px;
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: 1px; color: var(--gold-bright); }

.topnav { display: flex; gap: 32px; margin: 0 auto; }
.nav-item { 
  color: #ccc; 
  text-decoration: none; 
  font-size: 14px; 
  font-weight: 500; 
  transition: all 0.3s;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-item:hover, .nav-item.active { color: var(--gold-bright); text-shadow: 0 0 10px var(--gold-glow); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.btn-task { background: var(--glass); border: 1px solid var(--line); color: var(--gold); border-radius: 8px; padding: 6px 12px; font-size: 13px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.btn-refresh-round {
  background: rgba(212, 169, 58, 0.1);
  border-color: var(--gold);
  color: var(--gold-bright);
  font-weight: 700;
  transition: 0.3s;
}
.btn-refresh-round:hover {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 15px var(--gold-glow);
}
.btn-refresh-round i {
  font-size: 14px;
}

/* 容器布局重构 */
.main-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.top-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: stretch;
}

/* Hero 区域 */
.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  height: 100%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  min-height: 400px;
}

.hero-text h2 { 
  font-size: 64px; 
  font-weight: 900; 
  margin: 0; 
  line-height: 1.1; 
  font-style: italic;
  background: linear-gradient(135deg, #fff 30%, var(--gold-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p { font-size: 24px; color: #fff; margin: 12px 0 32px; font-weight: 300; }

.hero-stats { display: flex; gap: 32px; }
.hero-stat-item { display: flex; flex-direction: column; gap: 4px; }
.hero-stat-item span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.hero-stat-item strong { font-size: 18px; color: #fff; }

.hero-btns { display: flex; gap: 16px; margin-top: 40px; }
.btn-hero { padding: 14px 32px; border-radius: 8px; font-weight: 700; font-size: 16px; transition: 0.3s; cursor: pointer; }
.btn-hero-primary { background: var(--gold); color: #000; border: none; }
.btn-hero-primary:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(212, 169, 58, 0.3); }
.btn-hero-outline { background: transparent; border: 1px solid #444; color: #fff; }
.btn-hero-outline:hover { border-color: var(--gold); color: var(--gold); }

/* 金靴奖杯展示区 */
.trophy-display {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.boot-image { 
  width: 100%; 
  max-width: 550px; 
  filter: drop-shadow(0 0 20px rgba(212, 169, 58, 0.3));
  transform: translateY(-30px);
  animation: golden-glow 4s ease-in-out infinite;
}

@keyframes golden-glow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(212, 169, 58, 0.25));
  }
  50% {
    filter: drop-shadow(0 0 35px rgba(212, 169, 58, 0.45));
  }
}

.jackpot-display {
  position: absolute;
  bottom: 40%; /* 从 42% 降低到 40%，向下微调一点点 */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  background: transparent;
  padding: 0;
  border: none;
  backdrop-filter: none;
  width: 100%;
  pointer-events: none;
}
.jackpot-display span { 
  color: var(--gold-bright); 
  font-size: 12px; 
  font-weight: 600; 
  letter-spacing: 1px; 
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.jackpot-display h3 { 
  font-size: 32px; 
  margin: 0; 
  font-weight: 900; 
  color: #fff;
  text-shadow: 0 0 15px rgba(212, 169, 58, 0.5);
  line-height: 1.1;
}
.jackpot-display p { 
  color: var(--ok); 
  font-size: 11px; 
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* 侧边实时动态 */
.live-activity {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 480px;
  overflow: hidden;
}
.live-head { display: flex; justify-content: space-between; align-items: center; }
.live-head h4 { margin: 0; font-size: 15px; color: #fff; }
.live-head a { color: var(--muted); font-size: 12px; text-decoration: none; }

.activity-list { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
  flex: 1;
  min-height: 0;
  overflow-y: auto; 
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.activity-list::-webkit-scrollbar { width: 4px; }
.activity-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

.activity-item { display: flex; gap: 12px; font-size: 13px; line-height: 1.4; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.activity-icon { width: 32px; height: 32px; background: var(--glass); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.activity-content { flex: 1; }
.activity-content b { color: var(--gold-bright); }
.activity-time { color: var(--muted); font-size: 11px; margin-top: 4px; }

/* 功能网格区：现在可以利用 full-width 对齐 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: linear-gradient(135deg, rgba(25, 25, 25, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  padding: 0;
  min-height: 260px; /* 增加高度使内容更舒展 */
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-card:hover { border-color: var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.card-info {
  flex: 1; /* 缩小内容占比 */
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.card-media {
  flex: 1.4; /* 增大图片占比，对齐右侧边缘 */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(212, 169, 58, 0.08) 0%, transparent 80%);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center;
  transition: 0.8s;
  mask-image: linear-gradient(to left, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 70%, transparent 100%);
}

.feature-card:hover .card-media img {
  transform: scale(1.05);
}

.feature-card h4 { margin: 0 0 8px; font-size: 20px; font-weight: 800; color: #fff; }
.feature-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.4; }

.btn-enter { 
  align-self: flex-start; 
  background: var(--glass); 
  border: 1px solid #444; 
  color: #fff; 
  padding: 8px 20px; 
  border-radius: 6px; 
  font-size: 13px; 
  font-weight: 600;
  cursor: pointer; 
  transition: 0.3s;
}
.btn-enter:hover { border-color: var(--gold); color: var(--gold); }

.feature-card.hot::after { 
  content: 'HOT'; 
  position: absolute; 
  top: 12px; 
  left: 12px; 
  background: #ff4d4d; 
  color: #fff; 
  font-size: 10px; 
  padding: 2px 8px; 
  border-radius: 4px; 
  font-weight: 900; 
  z-index: 3;
}

/* 底部数据面板也改为全宽 */
.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.data-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.data-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.data-card-head h4 { margin: 0; font-size: 15px; font-weight: 700; color: #fff; }
.data-card-head .more { color: var(--muted); font-size: 12px; text-decoration: none; cursor: pointer; }

/* 排行榜 UCL 风格 */
.ucl-rank-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ucl-rank-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; background: var(--glass); }
.ucl-rank-num { width: 24px; font-weight: 800; color: var(--gold); font-style: italic; }
.ucl-rank-avatar { width: 32px; height: 32px; border-radius: 50%; background: #222; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); }
.ucl-rank-info { flex: 1; min-width: 0; }
.ucl-rank-info .addr { display: block; font-size: 12px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ucl-rank-info .val { font-size: 11px; color: var(--gold-bright); }

/* 个人战绩 UCL 风格 */
.my-stats-list { display: flex; flex-direction: column; gap: 16px; }
.my-stat-row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.my-stat-row span { color: var(--muted); font-size: 13px; }
.my-stat-row strong { color: #fff; font-size: 15px; }

/* 合作伙伴 */
.partners-section {
  max-width: 1400px;
  margin: 60px auto 40px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  opacity: 0.4;
  filter: grayscale(1);
}
.partner-logo { height: 20px; }

/* 弹窗 & 遮罩 (原抽屉重构为弹窗) */
.drawer { 
  position: fixed; 
  inset: 0; 
  display: none; 
  z-index: 200; 
  align-items: center; 
  justify-content: center; 
  padding: 20px;
}
.drawer.open { display: flex; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); }
.drawer-panel { 
  position: relative; 
  width: min(800px, 100%); 
  max-height: 85vh; 
  overflow: auto; 
  padding: 40px; 
  background: #0a0a0a; 
  border: 1px solid var(--line); 
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modal-in 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.confirm-panel {
  width: min(400px, 90%);
  padding: 32px;
  text-align: center;
}
.confirm-body {
  margin-bottom: 28px;
}
.confirm-icon {
  font-size: 48px;
  color: var(--gold);
  margin-bottom: 16px;
}
.confirm-panel h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #fff;
}
.confirm-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.confirm-footer {
  display: flex;
  gap: 12px;
}
.confirm-footer .btn {
  flex: 1;
  padding: 12px;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(30px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.drawer-head h3 { margin: 0; font-size: 24px; color: var(--gold-bright); }

/* 排行榜弹窗内部布局 */
.rank-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.rank-tab-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}

.rank-tab-btn:hover {
  color: #fff;
}

.rank-tab-btn.active {
  color: var(--gold-bright);
}

.rank-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-bright);
  box-shadow: 0 0 10px var(--gold-glow);
}

.rank-actions {
  margin-bottom: 24px;
  display: flex;
  justify-content: flex-end;
}

.rank-content {
  position: relative;
  min-height: 400px;
}

.rank-pane {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.rank-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.rank-pane h4 {
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 20px;
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}

.rank-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-list li {
  padding: 0;
  border: none;
  background: none;
  margin-bottom: 8px;
}

.rank-item-ucl {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.rank-item-ucl:hover {
  background: linear-gradient(90deg, rgba(212, 169, 58, 0.1) 0%, rgba(212, 169, 58, 0.02) 100%);
  border-color: var(--line);
  transform: translateX(4px);
}

.rank-item-ucl .rank-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  font-style: italic;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  flex-shrink: 0;
}

/* 前三名特殊样式 */
.rank-list li:nth-child(1) .rank-item-ucl .rank-num {
  background: linear-gradient(135deg, #ffd700, #b8860b);
  color: #000;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.rank-list li:nth-child(2) .rank-item-ucl .rank-num {
  background: linear-gradient(135deg, #c0c0c0, #708090);
  color: #000;
}

.rank-list li:nth-child(3) .rank-item-ucl .rank-num {
  background: linear-gradient(135deg, #cd7f32, #8b4513);
  color: #000;
}

.rank-item-ucl .rank-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.rank-item-ucl .addr {
  font-family: 'Mono', monospace;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

.rank-item-ucl .val {
  font-size: 14px;
  color: var(--gold-bright);
  font-weight: 700;
  text-align: right;
}

/* 玩法介绍弹窗内部布局 */
.rules-content { display: flex; flex-direction: column; gap: 24px; }
.rules-intro {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212,169,58,0.12), rgba(255,255,255,0.02));
}
.rules-intro strong { display: block; color: var(--gold-bright); font-size: 18px; margin-bottom: 8px; }
.rules-intro p { margin: 0; color: #ddd; font-size: 14px; line-height: 1.7; }
.rule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rule-card {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
}
.rule-card-highlight { border-color: var(--line); box-shadow: 0 0 0 1px rgba(212,169,58,0.12), 0 18px 40px rgba(0,0,0,0.28); }
.rule-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.rule-head i {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; color: var(--gold-bright); background: rgba(212,169,58,0.12); font-size: 16px;
}
.rule-head h4 { margin: 0; color: #fff; font-size: 18px; }
.rule-badge {
  margin-left: auto; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  color: var(--gold-bright); background: rgba(212,169,58,0.1); border: 1px solid rgba(212,169,58,0.22);
}
.rule-card .desc { color: #d5d5d5; font-size: 14px; line-height: 1.7; margin: 0; padding-left: 18px; }
.rule-card li { margin-bottom: 8px; }
.rule-card li:last-child { margin-bottom: 0; }
.trend-board {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}
.trend-cell {
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  text-align: center;
}
.trend-cell.is-latest {
  border-color: var(--line);
  box-shadow: 0 0 0 1px rgba(212,169,58,0.12);
  background: linear-gradient(180deg, rgba(212,169,58,0.12), rgba(255,255,255,0.03));
}
.trend-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.trend-number {
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--gold-bright);
}
.trend-empty {
  padding: 18px;
  text-align: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}
.history-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.history-template-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.history-template-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.history-template-btn.active {
  background: rgba(212,169,58,0.16);
  color: var(--gold-bright);
}
.history-board {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.history-trend-cell {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.trend-tone-number .trend-number { color: var(--gold-bright); }
.trend-tone-hot .trend-number { color: #ffb36b; }
.trend-tone-cool .trend-number { color: #86d8ff; }
.trend-meta {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

/* 加载动画样式 */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  gap: 16px;
  color: var(--gold);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(212, 169, 58, 0.1);
  border-top-color: var(--gold-bright);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.global-loading {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(10px);
}
.global-loading[hidden] {
  display: none !important;
}
.global-loading-card {
  min-width: 320px; max-width: 90vw; text-align: center;
  padding: 30px 28px; border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18,18,18,0.96), rgba(8,8,8,0.98));
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.global-loading-spinner {
  width: 52px; height: 52px; margin: 0 auto 18px;
  border: 4px solid rgba(212,169,58,0.14);
  border-top-color: var(--gold-bright);
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
#globalLoadingTitle { display: block; font-size: 22px; color: var(--gold-bright); margin-bottom: 8px; }
#globalLoadingText { margin: 0; color: #d6d6d6; font-size: 14px; line-height: 1.7; }

.success-toast {
  position: fixed;
  inset: 24px 24px auto auto;
  z-index: 1200;
}
.success-toast[hidden] {
  display: none !important;
}
.success-toast-card {
  min-width: 280px;
  max-width: 360px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(212,169,58,0.28);
  background: rgba(8, 10, 15, 0.94);
  box-shadow: 0 18px 40px rgba(0,0,0,0.38);
  animation: toastIn 0.28s ease;
}
.success-toast-card i {
  color: var(--gold-bright);
  font-size: 22px;
  margin-top: 2px;
}
.success-toast-card strong {
  display: block;
  color: #fff;
  font-size: 15px;
  margin-bottom: 4px;
}
.success-toast-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 按钮基础样式覆盖 */
.btn {
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
  border: 1px solid #444;
  background: #111;
  color: #fff;
}
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn:disabled,
.btn-primary:disabled {
  background: #2a2a2a;
  color: #777;
  border-color: #333;
  cursor: not-allowed;
  opacity: 0.75;
  box-shadow: none;
  transform: none;
}
.btn:disabled:hover,
.btn-primary:disabled:hover {
  background: #2a2a2a;
  color: #777;
  border-color: #333;
  box-shadow: none;
  transform: none;
}
.btn.is-loading,
.btn-primary.is-loading {
  position: relative;
  pointer-events: none;
}
.btn.is-loading::before,
.btn-primary.is-loading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn-primary { background: var(--gold); border: none; color: #000; }
.btn-primary:hover { background: var(--gold-bright); transform: scale(1.02); }

/* 日志区域 */
.log-wrap { margin-top: 40px; background: #080808; border: 1px solid #222; border-radius: 12px; padding: 20px; }
.log-wrap h3 { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
#log { max-height: 150px; overflow-y: auto; font-family: monospace; font-size: 12px; color: var(--gold); margin: 0; }

/* 网站页脚 */
.site-footer {
  background: rgba(10, 10, 10, 0.98);
  border-top: 1px solid var(--line);
  padding: 60px 20px 40px;
  margin-top: 60px;
}
.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo {
  height: 32px;
}
.footer-brand span {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: 1px;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.social-item {
  color: var(--muted);
  font-size: 20px;
  transition: 0.3s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.social-item:hover {
  color: var(--gold-bright);
  transform: translateY(-2px);
}
.qq-group {
  font-size: 14px;
  background: var(--glass);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}
.qq-num {
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 40px;
}
.disclaimer {
  max-width: 800px;
  margin-bottom: 24px;
}
.disclaimer strong {
  display: block;
  color: var(--gold);
  margin-bottom: 8px;
  font-size: 14px;
}
.disclaimer p {
  color: #666;
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
}
.copyright {
  color: #444;
  font-size: 11px;
  letter-spacing: 1px;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .site-footer {
    padding: 40px 16px 30px;
    text-align: center;
  }
  .footer-top {
    flex-direction: column;
    align-items: center;
  }
  .social-links {
    justify-content: center;
  }
  .disclaimer {
    margin: 0 auto 24px;
  }
}

/* 进攻表单 */
.attack-form { display: flex; flex-direction: column; gap: 20px; }
.input-group { position: relative; }
#inputNumber { width: 100%; padding: 16px; background: #000; border: 1px solid var(--line); border-radius: 12px; color: var(--gold-bright); font-size: 24px; text-align: center; letter-spacing: 8px; }
.inline-tip { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.history-item-ucl {
  animation: fadeInRight 0.4s ease-out backwards;
}

/* 按钮点击反馈 */
.btn:active { transform: scale(0.95); }

/* 输入框聚焦效果 */
#inputNumber:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 15px var(--gold-glow);
}

/* 资格检测状态文字颜色 */
#eligibilityStatus[data-tone="ok"] { color: var(--ok); }
#eligibilityStatus[data-tone="warn"] { color: #ff6b6b; }
#eligibilityStatus[data-tone="muted"] { color: var(--muted); }

/* 滚动条美化 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--line); }

/* 更多 UCL 风格细节 */
.ucl-rank-item {
  border: 1px solid transparent;
  transition: 0.2s;
}
.ucl-rank-item:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.data-card {
  transition: 0.3s;
}
.data-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* 响应式 */
@media (max-width: 1200px) {
  .main-layout { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .data-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .topbar { padding: 0 20px; }
  .topnav { gap: 16px; }
  .nav-item { font-size: 13px; }
  .hero-text h2 { font-size: 52px; }
}

@media (max-width: 768px) {
  /* 导航栏适配：允许横向滚动 */
  .topbar {
    height: auto;
    flex-direction: column;
    padding: 12px 16px;
    gap: 12px;
  }
  .brand h1 { font-size: 18px; }
  .topnav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
    gap: 20px;
    -webkit-overflow-scrolling: touch;
  }
  .topnav::-webkit-scrollbar { display: none; }
  .nav-item { white-space: nowrap; flex-shrink: 0; }
  .header-actions { width: 100%; justify-content: space-between; }

  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 20px; min-height: auto; }
  .hero-text h2 { font-size: 40px; }
  .hero-text p { font-size: 18px; margin-bottom: 24px; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: 20px; }
  .hero-btns { justify-content: center; }
  
  .boot-image { max-width: 100%; transform: translateY(0); margin-top: 20px; }
  .jackpot-display { bottom: 32%; } /* 移动端向下微调，使其落在底座更中心的位置 */
  .jackpot-display h3 { font-size: 28px; }

  .feature-grid, .data-grid { grid-template-columns: 1fr; }
  .feature-card { flex-direction: column; min-height: auto; }
  .card-media { flex: none; height: 180px; order: -1; } /* 图片移到上方 */
  .card-media img { mask-image: linear-gradient(to top, black 70%, transparent 100%); -webkit-mask-image: linear-gradient(to top, black 70%, transparent 100%); }
  .card-info { padding: 24px; }

  .rank-grid { grid-template-columns: 1fr; gap: 24px; }
  .rule-grid { grid-template-columns: 1fr; }
  .history-actions { flex-direction: column; align-items: stretch; }
  .history-template-switch { justify-content: center; }
  
  .drawer-panel { 
    padding: 20px; 
    border-radius: 16px; 
    width: 100%; 
    height: 90vh; 
    align-self: flex-end; 
    margin-bottom: -20px; /* 抽屉感 */
    animation: modal-up 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  @keyframes modal-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .drawer-head h3 { font-size: 20px; }

  .top-row { grid-template-columns: 1fr; }
  .live-activity { order: 2; } /* 动态移到英雄区下方 */

  .rule-card { padding: 16px; }
  .rule-head h4 { font-size: 16px; }
  
  .trend-board { grid-template-columns: repeat(2, 1fr); }
  .history-board { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-text h2 { font-size: 32px; }
  .hero-btns { flex-direction: column; width: 100%; }
  .btn-hero { width: 100%; }
  .jackpot-display h3 { font-size: 24px; }
  .data-card { padding: 16px; }
  .ucl-rank-item { padding: 6px; }
  .brand h1 { font-size: 16px; }
  .topbar { padding: 10px 12px; }
}

/* 兼容现有 JS 逻辑的显示类 */
.status-item strong[data-tone="ok"] { color: var(--ok); }
.status-item strong[data-tone="warn"] { color: #fcc; }
.status-item strong[data-tone="muted"] { color: var(--muted); }
