/* AUTO-GENERATED FROM frontend_src/mobile/css/ DO NOT EDIT. */
/* =========================================================
   ⚠️ AUTO-GENERATED FILE. DO NOT EDIT DIRECTLY! 
   Please modify the source files in `frontend_src/mobile/css/`
   ========================================================= */

/* --- _variables.css --- */
/* ═══════════════════════════════════════════════════════
   arena_leaderboard_m.css  —  H5 Premium Dark Redesign
   ═══════════════════════════════════════════════════════ */

:root {
  /* ── 调色板（亮色极简科技风） */
  --bg:           #fcfaf8;
  --bg-card:      #ffffff;
  --bg-card2:     #f4f4f5;
  --border:       rgba(0,0,0,0.08);
  --border-soft:  rgba(0,0,0,0.04);

  --text:         #18181b;
  --text-sub:     #52525b;
  --text-muted:   #a1a1aa;

  --accent:       #4f46e5;          /* 靛蓝主色 */
  --accent-glow:  rgba(79,70,229,0.15);
  --accent-light: #6366f1;
  --gold:         #f59e0b;
  --gold-glow:    rgba(245,158,11,0.15);
  --green:        #10b981;
  --red:          #ef4444;

  --font-sans: "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
  --shadow-sheet: 0 -12px 48px rgba(0,0,0,0.1), 0 -1px 0 rgba(0,0,0,0.05);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



/* --- _layout.css --- */
/* ══════════════════════════════════════════
   WRAPPER & HERO
══════════════════════════════════════════ */
.wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 16px 100px;
}

.hero { margin-bottom: 28px; }

.hero h1 {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  line-height: 1.2;
}

.hero-title-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #18181b;
  -webkit-text-fill-color: #18181b;
}

#hero-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,158,11,0.1);
  border: 1.5px solid rgba(245,158,11,0.25);
  color: #92400e;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hero p {
  color: #413D39;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 560px;
}

/* 数据指标行 */
.hero-stats-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #67625B;
}

.stat-item svg {
  color: #67625B;
}



/* --- _nav.css --- */
/* ══════════════════════════════════════════
   SUB-NAV BAR — 对齐官网 sticky 风格
   白色底 + 底部细分割线，随页面滚动固定在顶部
══════════════════════════════════════════ */
.sub-nav-bar {
  background: var(--bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* 距屏幕顶部 8px 间距 */
  padding: 8px 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 300;
  /* 两行纵向布局 */
  display: flex;
  flex-direction: column;
}

/* 第1行：下载按钮行，左右分布 */
.nav-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: 0;
}

/* APP 下载按钮 */
.nav-download-btn {
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.nav-download-btn:active { opacity: 0.75; }

/* 第2行：nav pills 居中 */
.nav-pills-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 0;
  width: 100%;
}
.nav-pills-scroll::-webkit-scrollbar { display: none; }

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-pill:active { background: rgba(0, 0, 0, 0.04); }
.nav-pill.active {
  background: #F0EBE5;
  color: #2E2B29;
  font-weight: 600;
}

.chevron {
  font-size: 9px;
  color: inherit;
  opacity: 0.5;
  transition: transform 0.2s ease;
}
.nav-pill.active .chevron { opacity: 0.7; }
.nav-pill.open .chevron { transform: rotate(180deg); }

/* ══════════════════════════════════════════
   NAV DROPDOWN PANEL
   top = sticky 导航高度（约 52px）
══════════════════════════════════════════ */
.nav-dropdown-panel {
  position: fixed;
  top: 96px;  /* 8px顶部 + ~40px按钮行 + 8px间距 + ~40px pills行 */
  left: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 310;
  display: none;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
  max-height: 70vh;
  overflow: hidden;
}
.nav-dropdown-panel.open { display: flex; }

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.15s ease;
}
.nav-dropdown-item:last-child { border-bottom: none; }
.nav-dropdown-item:active { background: rgba(0, 0, 0, 0.03); }
.nav-dropdown-item.active {
  background: rgba(0, 0, 0, 0.04);
  font-weight: 600;
}
.nav-dropdown-item.active .nav-dropdown-title { color: var(--text); }

.nav-dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  flex-shrink: 0;
}
.nav-dropdown-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.nav-dropdown-desc  { font-size: 12px; color: var(--text-sub); line-height: 1.4; }

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 290;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.nav-backdrop.open { display: block; }

/* 左侧更多按钮及其悬浮胶囊菜单 */
.nav-more-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-more-btn {
  background: transparent;
  border: none;
  padding: 6px;
  margin-left: -6px; /* 抵消 padding 保持对齐 */
  cursor: pointer;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 330;
  transition: opacity 0.2s;
}
.nav-more-btn:active {
  opacity: 0.7;
}

/* 导航图标默认朝左（左展开） */
.nav-more-btn svg {
  transform: rotate(180deg);
}

/* 按钮点击后 SVG 图标瞬间旋转（变为右展开），不要动画 */
.nav-more-dropdown.open ~ .nav-more-btn svg,
.nav-more-wrapper:has(.nav-more-dropdown.open) .nav-more-btn svg {
  transform: rotate(0deg);
}

/* 胶囊菜单容器：透明无背景，靠 flex 间距排列 */
.nav-more-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px; /* 胶囊之间的间距 */
  min-width: 130px;
  opacity: 0;
  pointer-events: none;
  z-index: 320;
  transition: opacity 0.2s ease;
}
.nav-more-dropdown.open {
  opacity: 1;
  pointer-events: auto;
}

/* 子元素胶囊动画分发，带有先后延迟 */
.nav-more-dropdown.open .capsule-item {
  animation: bounceInLeftElastic 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.nav-more-dropdown.open .capsule-item:nth-child(1) { animation-delay: 0s; }
.nav-more-dropdown.open .capsule-item:nth-child(2) { animation-delay: 0.05s; }
.nav-more-dropdown.open .capsule-item:nth-child(3) { animation-delay: 0.10s; }
.nav-more-dropdown.open .capsule-item:nth-child(4) { animation-delay: 0.15s; }
.nav-more-dropdown.open .capsule-item:nth-child(5) { animation-delay: 0.20s; }
.nav-more-dropdown.open .capsule-item:nth-child(6) { animation-delay: 0.25s; }
.nav-more-dropdown.open .capsule-item:nth-child(7) { animation-delay: 0.30s; }

.lang-opt.active {
  background: rgba(0, 0, 0, 0.05);
  color: var(--accent) !important;
}

@keyframes bounceInLeftElastic {
  0% {
    opacity: 0;
    transform: translateX(-50px) scale(0.9);
  }
  45% {
    opacity: 1;
    transform: translateX(16px) scale(1.02);
  }
  70% {
    transform: translateX(-6px) scale(0.99);
  }
  85% {
    transform: translateX(2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* 独立的悬浮胶囊按钮样式 */
.more-dropdown-item.capsule-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px; /* 胶囊圆角 */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 10px 18px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
  align-self: flex-start; /* 适应内容宽度 */
  opacity: 0; /* 默认隐藏，由动画接管 */
}
.more-dropdown-item.capsule-item:active {
  background: #f5f5f5;
  transform: scale(0.97);
}


/* --- _table.css --- */
/* ══════════════════════════════════════════
   TABLE / LIST
══════════════════════════════════════════ */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.table-wrap { width: 100%; overflow-x: hidden; }

table { width: 100%; border-collapse: collapse; text-align: left; }

thead { border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.01); }
th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sort-arrows { color: var(--text-muted); margin-left: 4px; font-size: 9px; }
#th-score { text-align: right; }

tbody tr {
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.14s ease;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:active { background: rgba(0,0,0,0.02); }

td { padding: 13px 16px; vertical-align: middle; }

/* 排名列 */
.td-rank {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  width: 68px;
  white-space: nowrap;
}
.td-rank-inner { display: flex; align-items: center; gap: 8px; }
.td-rank-chevron { color: var(--text-muted); font-weight: 400; font-size: 12px; }
.rank-number { font-family: var(--font-mono); font-size: 13px; }

/* 前三名特殊样式 */
tr.rank-1 td:first-child .rank-number { color: #d97706; }
tr.rank-2 td:first-child .rank-number { color: #52525b; }
tr.rank-3 td:first-child .rank-number { color: #b45309; }

/* 模型列 */
.td-model { width: auto; }
.model-cell-inner { display: flex; align-items: center; gap: 10px; }

/* org 色块 */
.org-dot {
  display: block !important;
  width: 3px;
  height: 36px;
  border-radius: 2px;
  flex-shrink: 0;
  opacity: 0.85;
}

.model-logo { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.model-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.model-name {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.model-org { font-size: 11px; color: var(--text-sub); font-family: var(--font-sans); }

/* 得分列 */
.td-score {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
  width: 110px;
}
.score-main { font-size: 14px; }
.score-ci-inline { font-size: 10px; color: var(--text-muted); margin-left: 3px; }
.score-bar-wrap { display: none !important; }

/* 隐藏不需要展示的列 —— 只保留排名、模型、得分三列 */
.td-votes, .td-price, .td-extra, .td-precise,
.td-overall-rank, .rank-spread,
.td-variance, .td-license { display: none !important; }

/* 三列布局 */
table { table-layout: fixed; width: 100%; }

th[data-col="rank"], .td-rank  { width: 64px; }
th[data-col="model_name"], .td-model { width: auto; overflow: hidden; }
th[data-col="rating"], .td-score { width: 88px; text-align: right; white-space: nowrap; }

/* 模型名自动截断 */
.model-name {
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 得分完整展示 */
.score-main { font-size: 13px; }
.score-ci-inline { font-size: 10px; color: var(--text-muted); margin-left: 1px; }

/* H5 隐藏 logo 节省空间 */
.model-logo { display: none !important; }

/* 行展开详情 */
.tr-expanded .td-rank-chevron {
  transform: rotate(90deg);
  display: inline-block;
  transition: transform 0.2s ease;
}
.td-rank-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  cursor: pointer;
}
tbody tr { cursor: pointer; }

.tr-detail {
  background: rgba(0,0,0,0.015);
}
.tr-detail td {
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.tr-detail-inner {
  padding: 12px 16px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px 16px;
}
.tr-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tr-detail-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.tr-detail-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-mono);
}

/* ══════════════════════════════════════════
   PODIUM (前三名)
══════════════════════════════════════════ */
#podium {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.podium-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color 0.2s ease;
}
.podium-card.rank-1 { border-color: rgba(245,158,11,0.3); background: linear-gradient(135deg, rgba(245,158,11,0.04), var(--bg-card)); }
.podium-card.rank-2 { border-color: rgba(161,161,170,0.3); }
.podium-card.rank-3 { border-color: rgba(180,83,9,0.2); }

.podium-medal { font-size: 20px; }
.podium-rank  { font-size: 11px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.podium-model { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-org   { font-size: 12px; color: var(--text-sub); display: flex; align-items: center; gap: 6px; }
.podium-score { font-family: var(--font-mono); font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.podium-meta  { font-size: 11px; color: var(--text-muted); }



/* --- _components.css --- */
/* ══════════════════════════════════════════
   TOOLBAR
══════════════════════════════════════════ */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mobile-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  cursor: pointer;
  padding: 6px 0;
  font-family: inherit;
  transition: color 0.15s ease;
  letter-spacing: -0.01em;
}
.mobile-filter-btn:active { color: var(--text); }
.mobile-filter-btn svg { color: var(--text-sub); }

.toolbar-right { display: flex; align-items: center; gap: 8px; }

/* 分隔线 */
.toolbar-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 2px;
  flex-shrink: 0;
}

/* 模型/厂商 切换：去除外边框，改为纯文字风格 */
.view-toggle {
  display: flex;
  align-items: center;
  gap: 0;
}
.view-btn {
  background: transparent;
  border: none;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.view-btn.active {
  background: #F4F0EB;
  color: var(--text);
  font-weight: 600;
}

/* 裸都搜索图标按鈕 */
.search-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all 0.15s ease;
  padding: 0;
}
.search-icon-btn:hover { background: rgba(0,0,0,0.05); color: var(--text); }
.search-icon-btn:active { background: rgba(0,0,0,0.08); }

/* 全宽搜索格（替换 toolbar）*/
.toolbar-search {
  display: none;
}
.search-full-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  height: 40px;
}
.search-full-icon {
  color: var(--text-sub);
  flex-shrink: 0;
}
.search-full-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  min-width: 0;
}
.search-full-input::placeholder { color: var(--text-sub); opacity: 0.7; }
.search-full-close {
  background: transparent;
  border: none;
  color: var(--text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.search-full-close:hover { background: rgba(0,0,0,0.06); color: var(--text); }
  outline: none;
  transition: border-color 0.18s ease;
}
#search-input::placeholder { color: var(--text-muted); }
#search-input:focus { border-color: var(--accent); }

/* ══════════════════════════════════════════
   BOTTOM SHEET (分类选择弹窗)
══════════════════════════════════════════ */
.sidebar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: auto;
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 1000;
  padding: 0;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  height: 88vh;
  height: 88dvh;
  max-height: 760px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sheet);
  visibility: hidden;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.sidebar.show { transform: translateY(0); visibility: visible; }

.tabs-wrapper { display: flex; flex-direction: column; min-height: 0; height: 100%; }

.modal-sheet-header {
  padding: 14px 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(0,0,0,0.1);
  margin-bottom: 14px;
}

.modal-sheet-header h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tabs-scroll {
  flex: 1;
  min-height: 1px;
  height: 0;
  padding: 8px 0 max(24px, env(safe-area-inset-bottom));
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
}

/* 分组标签 */
.tab-group-sep {
  display: block;
  padding: 16px 20px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-card);
}
.tab-group-sep:first-child { padding-top: 8px; }

/* Tab 按钮 */
.tab-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-sub);
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  transition: all 0.14s ease;
  letter-spacing: -0.01em;
}
.tab-btn:hover { background: rgba(0,0,0,0.02); color: var(--text); }

.tab-btn.active {
  background: rgba(79,70,229,0.06);
  color: var(--accent);
}
.tab-btn.active::after {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  flex: 0 0 auto;
  opacity: 0.8;
}

/* 开源过滤 Radio */
.license-filter-group {
  padding: 12px 0 max(24px, env(safe-area-inset-bottom));
}
.license-filter-group .filter-title { color: var(--text-muted) !important; }
.license-filter-group label {
  min-height: 44px;
  color: var(--text-sub) !important;
}

/* ══════════════════════════════════════════
   BACKDROP
══════════════════════════════════════════ */
.modal-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  /* 修复 iOS Safari click 事件不触发问题 */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.modal-backdrop.show { opacity: 1; pointer-events: auto; }

/* ══════════════════════════════════════════
   EMPTY STATE & FOOTER
══════════════════════════════════════════ */
.no-result {
  display: none;
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 14px;
}
.no-result.show { display: block; }
.no-result p::before { content: '🔍  '; }

.footer {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.8;
}
.footer a { color: var(--text-sub); text-decoration: underline; }

/* ══════════════════════════════════════════
   날짜 네비게이션 (DATE NAV)
══════════════════════════════════════════ */
.date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.date-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-sub);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
}
.date-nav-btn:hover { border-color: var(--accent); color: var(--accent); }
.date-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-mono);
  cursor: pointer;
  outline: none;
}
.date-badge {
  font-size: 11px;
  color: var(--accent);
  background: rgba(79,70,229,0.08);
  border: 1px solid rgba(79,70,229,0.15);
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
}

/* ══════════════════════════════════════════
   HIDDEN UTILITY
══════════════════════════════════════════ */
.hidden { display: none !important; }


