/* ══════════════════════════════════════════════════════════════
   v2-tokens.css — 增量视觉 tokens 与新块样式（列表页重构）
   只作用于 class 带 v2- 前缀的新增块，不覆盖 base.css 原有样式
   ════════════════════════════════════════════════════════════════ */

:root {
  --v2-elev-1: 0 2px 8px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
  --v2-elev-2: 0 8px 24px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
  --v2-glass-bg: rgba(24,28,40,0.55);
  --v2-glass-bg-solid: rgba(24,28,40,0.92);
  --v2-glass-border: rgba(255,255,255,0.08);
  --v2-grade6-glow: 0 0 20px rgba(255,80,30,0.35);
  --v2-accent-gold: #f0c050;
  --v2-accent-violet: #9b7bff;
  --v2-accent-violet-deep: #4c2a6a;
  --v2-radius-md: 10px;
  --v2-radius-lg: 14px;
  --v2-radius-xl: 20px;
}

/* 数字等宽 */
.v2-tnum { font-feature-settings: 'tnum' 1, 'lnum' 1; font-variant-numeric: tabular-nums; }

/* ══ OTC 精选块（首页，Hot Deals 下方）══ */
.v2-otc-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    linear-gradient(130deg, rgba(45,27,78,0.92) 0%, rgba(76,42,106,0.88) 60%, rgba(26,14,46,0.92) 100%);
  border: 1px solid rgba(240,192,80,0.35);
  border-top: 2px solid var(--v2-accent-gold);
  border-radius: var(--v2-radius-lg);
  padding: 18px 22px 22px;
  margin: 0 0 18px 0;
  box-shadow: var(--v2-elev-2);
  position: relative;
  overflow: hidden;
}
.v2-otc-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(240,192,80,0.08) 0%, transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(155,123,255,0.08) 0%, transparent 55%),
    repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(255,255,255,0.02) 18px, rgba(255,255,255,0.02) 36px);
  pointer-events: none;
}
.v2-otc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.v2-otc-head-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 200px;
}
.v2-otc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--v2-accent-gold);
  letter-spacing: 0.5px;
  flex-wrap: wrap;
}
.v2-otc-title .v2-otc-badge {
  background: linear-gradient(90deg, #f0c050, #d4a020);
  color: #111;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 6px rgba(240,192,80,0.35);
}
.v2-otc-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(220,200,255,0.75);
  margin-left: 4px;
}
.v2-otc-desc {
  font-size: 0.82rem;
  color: rgba(220,200,255,0.65);
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.v2-otc-desc-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.v2-otc-more {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 16px;
  border: 1px solid rgba(155,123,255,0.5);
  background: linear-gradient(90deg, rgba(155,123,255,0.2), rgba(76,42,106,0.4));
  border-radius: var(--v2-radius-md);
  transition: all 0.15s;
  white-space: nowrap;
}
.v2-otc-more:hover {
  color: #fff;
  background: linear-gradient(90deg, rgba(155,123,255,0.4), rgba(76,42,106,0.6));
  border-color: var(--v2-accent-gold);
  transform: translateY(-1px);
}
.v2-otc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
  width: 100%;
}
.v2-otc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(14,8,28,0.65);
  border: 1px solid rgba(155,123,255,0.28);
  border-radius: var(--v2-radius-lg);
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  min-height: 128px;
  position: relative;
  overflow: hidden;
}
.v2-otc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(240,192,80,0.06) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.v2-otc-card:hover {
  border-color: var(--v2-accent-gold);
  background: rgba(30,18,60,0.85);
  transform: translateY(-2px);
  color: inherit;
  box-shadow: var(--v2-elev-2);
}
.v2-otc-card:hover::after { opacity: 1; }

.v2-otc-card-img {
  width: 96px;
  height: 96px;
  border-radius: var(--v2-radius-lg);
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(240,192,80,0.35);
  background: #0a0618;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.v2-otc-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.v2-otc-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.v2-otc-card-class {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffd480;
  letter-spacing: 0.3px;
}
.v2-otc-card-meta {
  font-size: 0.92rem;
  color: rgba(230,215,255,0.9);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.v2-otc-card-server {
  font-size: 0.75rem;
  color: rgba(220,200,255,0.85);
  background: rgba(155,123,255,0.2);
  border: 1px solid rgba(155,123,255,0.35);
  border-radius: 10px;
  padding: 2px 10px;
  white-space: nowrap;
  font-weight: 600;
}
.v2-otc-card-note {
  font-size: 0.82rem;
  color: rgba(200,190,230,0.7);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  overflow: hidden;
  margin-top: 2px;
}
.v2-otc-card-price {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-left: 8px;
}
.v2-otc-card-price-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: #b7ff8a;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(80,255,80,0.2);
}
.v2-otc-card-tag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  color: #111;
  background: linear-gradient(90deg, #f0c050, #d4a020);
  letter-spacing: 1px;
  box-shadow: 0 2px 6px rgba(240,192,80,0.3);
}

/* 空占位 CTA 卡 */
.v2-otc-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14,8,28,0.35);
  border: 1px dashed rgba(155,123,255,0.4);
  border-radius: var(--v2-radius-lg);
  padding: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(200,190,230,0.7);
  text-decoration: none;
  min-height: 128px;
}
.v2-otc-card-placeholder:hover {
  color: var(--v2-accent-gold);
  border-color: var(--v2-accent-gold);
}

/* ══ 顶部 Slim Bar（主筛选栏，重点区域放大强调）══ */
.v2-slim-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 22px 26px !important;
  margin-bottom: 20px !important;
  background: var(--v2-glass-bg) !important;
  border: 1px solid rgba(240,192,80,0.25) !important;
  border-radius: var(--v2-radius-xl) !important;
  box-shadow: var(--v2-elev-2) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: visible;
  min-height: 84px !important;
}
.v2-slim-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--v2-radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(240,192,80,0.3), transparent 40%, transparent 60%, rgba(155,123,255,0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .v2-slim-bar { background: var(--v2-glass-bg-solid); }
}

.v2-slim-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.v2-slim-sep {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.18) 30%, rgba(255,255,255,0.18) 70%, transparent);
  margin: 0 6px;
}

/* 状态 Pills（重点放大）*/
.v2-slim-bar .v2-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 16px 28px !important;
  font-size: 1.18rem !important;
  font-weight: 700 !important;
  color: #e0e4f0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px !important;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  line-height: 1 !important;
  letter-spacing: 0.3px;
}
.v2-pill:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.v2-slim-bar .v2-pill .v2-pill-count {
  display: inline-block !important;
  font-size: 1rem !important;
  padding: 4px 12px !important;
  border-radius: 16px !important;
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.78);
  min-width: 38px !important;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700 !important;
}
.v2-pill.is-active {
  color: #111;
  background: linear-gradient(90deg, #f0c050, #d4a020);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(240,192,80,0.35);
}
.v2-pill.is-active .v2-pill-count {
  background: rgba(0,0,0,0.35);
  color: #ffe8a0;
}
.v2-pill.is-active-sale  {
  background: linear-gradient(90deg, #ff6040, #e03010);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,80,30,0.4);
  border-color: transparent;
}
.v2-pill.is-active-sold  {
  background: linear-gradient(90deg, #30c060, #18a048);
  color: #fff;
  box-shadow: 0 4px 14px rgba(48,192,96,0.4);
  border-color: transparent;
}
.v2-pill.is-active-delisted {
  background: linear-gradient(90deg, #808080, #505050);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  border-color: transparent;
}
.v2-pill.is-active-sale .v2-pill-count,
.v2-pill.is-active-sold .v2-pill-count,
.v2-pill.is-active-delisted .v2-pill-count {
  background: rgba(0,0,0,0.3);
  color: rgba(255,255,255,0.92);
}

/* Chip（快筛按钮，加大）*/
.v2-slim-bar .v2-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 12px 18px !important;
  font-size: 1.08rem !important;
  font-weight: 600 !important;
  color: #c2c9d6;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--v2-radius-lg) !important;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1.2;
  text-decoration: none !important;
}
.v2-chip:hover {
  color: #fff;
  background: rgba(255,255,255,0.09);
  transform: translateY(-1px);
  text-decoration: none;
}
.v2-chip.is-on {
  color: #fff;
  background: linear-gradient(90deg, rgba(155,123,255,0.35), rgba(155,123,255,0.2));
  border-color: rgba(155,123,255,0.6);
  box-shadow: 0 2px 8px rgba(155,123,255,0.25);
}

/* Slim bar 搜索框（放大）*/
.v2-slim-bar .v2-slim-search {
  flex: 1 !important;
  min-width: 280px !important;
  position: relative;
}
.v2-slim-bar .v2-slim-search input {
  width: 100% !important;
  padding: 16px 20px 16px 52px !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: var(--v2-radius-lg) !important;
  color: #e8eaf0 !important;
  font-size: 1.15rem !important;
  transition: all 0.15s;
}
.v2-slim-bar .v2-slim-search input::placeholder {
  color: rgba(255,255,255,0.45);
  font-size: 1.08rem;
}
.v2-slim-bar .v2-slim-search input:focus {
  outline: none !important;
  border-color: var(--v2-accent-gold) !important;
  background: rgba(255,255,255,0.1) !important;
  box-shadow: 0 0 0 3px rgba(240,192,80,0.14) !important;
}
.v2-slim-bar .v2-slim-search::before {
  content: '🔍';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  opacity: 0.8;
  pointer-events: none;
}

/* Slim bar 排序下拉（放大）*/
.v2-slim-bar .v2-slim-sort {
  padding: 15px 18px !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: var(--v2-radius-lg) !important;
  color: #e8eaf0 !important;
  font-size: 1.12rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  min-width: 210px !important;
  transition: all 0.15s;
  height: 56px;
}
.v2-slim-bar .v2-slim-sort:hover {
  background: rgba(255,255,255,0.1) !important;
}
.v2-slim-bar .v2-slim-sort:focus {
  outline: none;
  border-color: var(--v2-accent-gold) !important;
}

/* 高级筛选按钮：醒目橙金强调 + 脉动光晕 */
@keyframes v2-adv-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(240,192,80,0.45), 0 0 0 0 rgba(240,192,80,0.4); }
  50%      { box-shadow: 0 6px 20px rgba(240,192,80,0.65), 0 0 0 8px rgba(240,192,80,0); }
}
.v2-slim-bar .v2-adv-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 16px 28px !important;
  background: linear-gradient(90deg, #ff9a30, #f0c050) !important;
  border: 2px solid rgba(255,210,100,0.85) !important;
  border-radius: var(--v2-radius-lg) !important;
  color: #1a0e00 !important;
  font-size: 1.22rem !important;
  font-weight: 800 !important;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  letter-spacing: 0.5px;
  animation: v2-adv-pulse 2.4s ease-in-out infinite;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}
.v2-slim-bar .v2-adv-toggle:hover {
  background: linear-gradient(90deg, #ffa840, #f8d070) !important;
  color: #1a0e00 !important;
  transform: translateY(-2px);
  animation: none;
}
.v2-slim-bar .v2-adv-toggle.is-open {
  background: linear-gradient(90deg, #6a4bb0, #4c2a6a) !important;
  color: #fff !important;
  border-color: rgba(200,170,255,0.6) !important;
  box-shadow: 0 4px 14px rgba(76,42,106,0.5) !important;
  animation: none;
  text-shadow: none;
}
.v2-slim-bar .v2-adv-toggle-badge {
  display: inline-block !important;
  font-size: 0.95rem !important;
  padding: 3px 11px !important;
  border-radius: 14px !important;
  background: linear-gradient(90deg, #e02020, #b01010) !important;
  color: #fff !important;
  font-weight: 800 !important;
  min-width: 30px !important;
  text-align: center !important;
  box-shadow: 0 2px 6px rgba(200,20,20,0.5);
  text-shadow: none;
}
.v2-slim-bar .v2-adv-toggle.is-open .v2-adv-toggle-badge {
  background: rgba(255,255,255,0.2) !important;
  color: #fff !important;
}

/* ══ 高级筛选抽屉（桌面就地展开；移动端 bottom sheet）══ */
.v2-adv-wrap {
  display: none;
  animation: v2-fade-in 0.2s ease;
}
.v2-adv-wrap.is-open { display: block; }

@keyframes v2-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 桌面：就地展开，复用原 filter-panel 样式 */
@media (max-width: 768px) {
  .v2-adv-wrap.is-open {
    position: fixed;
    inset: auto 0 0 0;
    top: 10vh;
    z-index: 9999;
    background: var(--v2-glass-bg-solid);
    border-top: 2px solid var(--v2-accent-gold);
    border-radius: var(--v2-radius-xl) var(--v2-radius-xl) 0 0;
    padding: 12px 10px 16px;
    overflow-y: auto;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.6);
    animation: v2-slide-up 0.25s ease;
  }
  .v2-adv-wrap.is-open::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.3);
    margin: 0 auto 10px;
  }
  .v2-adv-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
  }
  .v2-adv-overlay.is-open { display: block; }
}
@keyframes v2-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* ══ NFT 卡片微调：品级光晕 + 数字等宽（增量不覆盖） ══ */
.nft-card.grade-6 {
  box-shadow: var(--v2-elev-2), var(--v2-grade6-glow);
}
.nft-card .nft-ps,
.nft-card .nft-lv,
.nft-card .nft-price span,
.hot-deal-ps,
.hot-deal-usd {
  font-variant-numeric: tabular-nums;
}

/* 移动端细节 */
@media (max-width: 768px) {
  .v2-otc-bar { padding: 14px 14px 16px; }
  .v2-otc-grid { grid-template-columns: 1fr; gap: 10px; }
  .v2-otc-card { padding: 12px; gap: 12px; min-height: 108px; }
  .v2-otc-card-img { width: 80px; height: 80px; }
  .v2-otc-card-class { font-size: 0.95rem; }
  .v2-otc-card-meta { font-size: 0.85rem; }
  .v2-otc-card-price-value { font-size: 1.25rem; }
  .v2-otc-title { font-size: 1.02rem; }
  .v2-otc-desc { font-size: 0.76rem; gap: 6px 14px; }
}
@media (max-width: 600px) {
  .v2-slim-bar { padding: 14px 14px; gap: 10px; border-radius: var(--v2-radius-lg); min-height: 0; }
  .v2-slim-search { min-width: 100%; flex-basis: 100%; order: 5; }
  .v2-slim-search input { padding: 12px 16px 12px 42px; font-size: 1rem; }
  .v2-slim-sep { display: none; }
  .v2-pill { padding: 10px 16px; font-size: 1rem; }
  .v2-pill .v2-pill-count { font-size: 0.82rem; min-width: 28px; }
  .v2-chip { padding: 8px 13px; font-size: 0.92rem; }
  .v2-slim-sort { min-width: 150px; font-size: 0.95rem; padding: 10px 12px; }
  .v2-adv-toggle { padding: 10px 16px; font-size: 1rem; }
  .v2-otc-card-img { width: 72px; height: 72px; }
  .v2-otc-card-price { padding-left: 0; }
  .v2-otc-card-price-value { font-size: 1.15rem; }
}
