/* ===== HEADER（首页固定使用竞猜暗色样式） ===== */
.home-header-v3 {
    position: sticky; top: 0; z-index: 200;
    background: rgba(15,15,25,0.96);
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 8px 12px;
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.5s ease, border-color 0.5s ease;
}
body.tab-guess .home-header-v3,
body.tab-live .home-header-v3 {
    background: rgba(15,15,25,0.96);
    border-bottom-color: rgba(255,255,255,0.06);
}
/* Tab Switcher（暗色） */
.mini-tabs {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 3px; position: relative; flex-shrink: 0;
    height: 40px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.25);
    transition: background 0.4s, box-shadow 0.4s;
}
body.tab-guess .mini-tabs,
body.tab-live .mini-tabs {
    background: rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.25);
}
.mini-tab {
    position: relative; z-index: 2;
    padding: 0 16px; height: 34px;
    border-radius: 20px;
    font-size: 14px; font-weight: 700;
    color: rgba(255,255,255,0.35); cursor: pointer;
    transition: color 0.3s ease;
    user-select: none; -webkit-user-select: none;
    white-space: nowrap; text-align: center;
    display: flex; align-items: center; gap: 5px;
    line-height: 1; letter-spacing: 0.3px;
}
.mini-tab.active { color: #fff; }
body.tab-guess .mini-tab { color: rgba(255,255,255,0.35); }
body.tab-guess .mini-tab.active { color: #fff; }
body.tab-live .mini-tab { color: rgba(255,255,255,0.35); }
body.tab-live .mini-tab.active { color: #fff; }
.mini-tab .tab-emoji { font-size: 15px; }
.mini-tab-slider {
    position: absolute; top: 3px; left: 3px;
    height: 34px;
    width: calc(50% - 3px);
    background: linear-gradient(135deg, #FFD700, #F7971E);
    border-radius: 20px;
    box-shadow: 0 2px 14px rgba(255,215,0,0.4);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s, box-shadow 0.4s;
    z-index: 1;
}
.mini-tab-slider.pos-1 { transform: translateX(100%); }
body.tab-guess .mini-tab-slider,
body.tab-live .mini-tab-slider {
    background: linear-gradient(135deg, #FFD700, #F7971E);
    box-shadow: 0 2px 14px rgba(255,215,0,0.4);
}
.hv3-spacer { flex: 1; }
.hv3-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.hv3-action {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: rgba(255,255,255,0.6); font-size: 16px;
    cursor: pointer; transition: all 0.2s ease; position: relative;
    background: rgba(255,255,255,0.08);
}
.hv3-action:active { background: rgba(255,255,255,0.15); transform: scale(0.9); }
body.tab-guess .hv3-action { color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.08); }
body.tab-guess .hv3-action:active { background: rgba(255,255,255,0.15); }
body.tab-live .hv3-action { color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.08); }
body.tab-live .hv3-action:active { background: rgba(255,255,255,0.15); }
.hv3-action .notif-dot {
    position: absolute; top: 2px; right: 2px; width: 8px; height: 8px;
    background: #FF3D00; border-radius: 50%; border: 2px solid #0f0f19;
    box-shadow: 0 0 4px rgba(255,61,0,0.4);
}
body.tab-guess .hv3-action .notif-dot,
body.tab-live .hv3-action .notif-dot { border-color: #0f0f19; }

/* ==============================
   猜趣商城 FEED STYLE MALL
============================== */
#pageMall {
    background: #F5EFE6;
}

/* ==============================
   CASINO / BETTING THEME (竞猜页)
============================== */
#pageGuess {
    background: linear-gradient(180deg, #0f0f19 0%, #1a1a2e 40%, #0d1b2a 100%);
    color: #e0e0e0; min-height: 100vh;
    position: relative;
}
/* ===== 首页骨架屏（API 加载前） ===== */
.home-skeleton {
    position: absolute; top: 0; left: 0; right: 0; z-index: 8;
    background: linear-gradient(180deg, #0f0f19 0%, #1a1a2e 40%, #0d1b2a 100%);
    padding: 0 var(--space-4) var(--space-8);
    padding-top: var(--space-2);
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.home-skeleton.is-hidden {
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}
.home-skeleton .sk-breaking {
    height: 40px; border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    background: rgba(255,255,255,0.06);
    background-image: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 100%);
    background-size: 200% 100%;
    animation: skShimmer 1.8s ease-in-out infinite;
}
.home-skeleton .sk-hero { margin-bottom: var(--space-3); }
.home-skeleton .sk-hero-img {
    width: 100%; border-radius: var(--radius-xl);
    aspect-ratio: 2/1;
    background: rgba(255,255,255,0.06);
    background-image: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 100%);
    background-size: 200% 100%;
    animation: skShimmer 1.8s ease-in-out infinite;
}
.home-skeleton .sk-hero-lines {
    display: flex; flex-direction: column; gap: 8px; margin-top: 10px;
}
.home-skeleton .sk-hero-lines span {
    height: 12px; border-radius: 6px;
    background: rgba(255,255,255,0.06);
    background-image: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 100%);
    background-size: 200% 100%;
    animation: skShimmer 1.8s ease-in-out infinite;
}
.home-skeleton .sk-hero-lines span:nth-child(1) { width: 70%; }
.home-skeleton .sk-hero-lines span:nth-child(2) { width: 50%; }
.home-skeleton .sk-hero-lines span:nth-child(3) { width: 40%; }
.home-skeleton .sk-pk {
    margin-bottom: var(--space-3); padding: 10px 12px;
    background: rgba(255,255,255,0.04); border-radius: var(--radius-lg);
}
.home-skeleton .sk-pk-avatars {
    display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
}
.home-skeleton .sk-pk-avatars span {
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    background-image: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0.08) 100%);
    background-size: 200% 100%;
    animation: skShimmer 1.8s ease-in-out infinite;
}
.home-skeleton .sk-pk-avatars span:nth-child(2) { width: 20px; height: 20px; }
.home-skeleton .sk-pk-text { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.home-skeleton .sk-pk-text span {
    height: 10px; border-radius: 5px;
    background: rgba(255,255,255,0.06);
    background-image: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 100%);
    background-size: 200% 100%;
    animation: skShimmer 1.8s ease-in-out infinite;
}
.home-skeleton .sk-pk-text span:first-child { width: 60%; }
.home-skeleton .sk-pk-bar {
    height: 14px; border-radius: 7px; margin-bottom: 8px;
    background: rgba(255,255,255,0.06);
    background-image: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 100%);
    background-size: 200% 100%;
    animation: skShimmer 1.8s ease-in-out infinite;
}
.home-skeleton .sk-pk-btn {
    height: 24px; width: 70px; border-radius: 20px;
    background: rgba(255,215,0,0.15);
    background-image: linear-gradient(90deg, rgba(255,215,0,0.15) 0%, rgba(255,215,0,0.25) 50%, rgba(255,215,0,0.15) 100%);
    background-size: 200% 100%;
    animation: skShimmer 1.8s ease-in-out infinite;
}
.home-skeleton .sk-cats {
    display: flex; gap: 8px; margin-bottom: var(--space-4); flex-wrap: wrap;
}
.home-skeleton .sk-cats span {
    height: 32px; width: 72px; border-radius: 16px;
    background: rgba(255,255,255,0.06);
    background-image: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 100%);
    background-size: 200% 100%;
    animation: skShimmer 1.8s ease-in-out infinite;
}
.home-skeleton .sk-section { margin-bottom: var(--space-4); }
.home-skeleton .sk-section-head {
    display: flex; align-items: center; gap: 8px; margin-bottom: var(--space-2);
}
.home-skeleton .sk-section-head span {
    height: 16px; border-radius: 8px;
    background: rgba(255,255,255,0.06);
    background-image: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 100%);
    background-size: 200% 100%;
    animation: skShimmer 1.8s ease-in-out infinite;
}
.home-skeleton .sk-section-head span:first-child { width: 100px; }
.home-skeleton .sk-section-head span:last-child { width: 80px; }
.home-skeleton .sk-list { display: flex; flex-direction: column; gap: 0; }
.home-skeleton .sk-card {
    display: flex; gap: var(--space-3); padding: var(--space-4); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.home-skeleton .sk-card-img {
    width: 110px; height: 82px; border-radius: var(--radius-lg); flex-shrink: 0;
    background: rgba(255,255,255,0.06);
    background-image: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 100%);
    background-size: 200% 100%;
    animation: skShimmer 1.8s ease-in-out infinite;
}
.home-skeleton .sk-card-info { flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.home-skeleton .sk-card-info span {
    height: 12px; border-radius: 6px;
    background: rgba(255,255,255,0.06);
    background-image: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 100%);
    background-size: 200% 100%;
    animation: skShimmer 1.8s ease-in-out infinite;
}
.home-skeleton .sk-card-info span:nth-child(1) { width: 95%; }
.home-skeleton .sk-card-info span:nth-child(2) { width: 60%; }
.home-skeleton .sk-card-info span:nth-child(3) { width: 40%; }
.home-skeleton .sk-results { padding: 0; }
.home-skeleton .sk-result {
    display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.home-skeleton .sk-result span:first-child {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
    background-image: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 100%);
    background-size: 200% 100%;
    animation: skShimmer 1.8s ease-in-out infinite;
}
.home-skeleton .sk-result span:last-child {
    flex: 1; height: 14px; border-radius: 7px;
    background: rgba(255,255,255,0.06);
    background-image: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 100%);
    background-size: 200% 100%;
    animation: skShimmer 1.8s ease-in-out infinite;
}
.home-skeleton .sk-ranks { padding: 0; }
.home-skeleton .sk-rank {
    display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) 0;
}
.home-skeleton .sk-rank span:first-child {
    width: 24px; height: 20px; border-radius: 4px;
    background: rgba(255,255,255,0.06);
    background-image: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 100%);
    background-size: 200% 100%;
    animation: skShimmer 1.8s ease-in-out infinite;
}
.home-skeleton .sk-rank span:nth-child(2) {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
    background-image: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 100%);
    background-size: 200% 100%;
    animation: skShimmer 1.8s ease-in-out infinite;
}
.home-skeleton .sk-rank span:last-child {
    flex: 1; height: 14px; border-radius: 7px;
    background: rgba(255,255,255,0.06);
    background-image: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 100%);
    background-size: 200% 100%;
    animation: skShimmer 1.8s ease-in-out infinite;
}
@keyframes skShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== 直播竞猜页 (与竞猜页同深色主题) ===== */
#pageLive {
    background: linear-gradient(180deg, #0f0f19 0%, #1a1a2e 40%, #0d1b2a 100%);
    color: #e0e0e0; min-height: 100vh;
}
/* 直播页横滑标签栏 */
.lv-cat-bar {
    display: flex; gap: 6px; padding: 10px 14px;
    overflow-x: auto; scrollbar-width: none;
}
.lv-cat-bar::-webkit-scrollbar { display: none; }
.lv-cat-chip {
    flex-shrink: 0; padding: 5px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 600; cursor: pointer;
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s; white-space: nowrap;
}
.lv-cat-chip:active { transform: scale(0.95); }
.lv-cat-chip.active {
    background: linear-gradient(135deg, rgba(255,68,68,0.2), rgba(255,107,53,0.2));
    color: #FF6B35; border-color: rgba(255,107,53,0.3);
    box-shadow: 0 0 12px rgba(255,107,53,0.15);
}
/* Feed 流直播卡片 */
.lv-feed { padding: 0 12px 80px; }
.lv-card {
    background: rgba(255,255,255,0.04); border-radius: 14px;
    overflow: hidden; margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.15s;
}
.lv-card:active { transform: scale(0.99); }
.lv-card-host {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
}
.lv-card-av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.1); }
.lv-card-hname { font-size: 13px; font-weight: 700; color: #eee; }
.lv-card-hstat { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 1px; }
.lv-card-live-tag {
    margin-left: auto; padding: 3px 10px; border-radius: 14px;
    font-size: 10px; font-weight: 700; color: #fff;
}
.lv-card-live-tag.st-live { background: #F44336; animation: lvPulse 2s ease infinite; }
.lv-card-live-tag.st-upcoming { background: #2196F3; }
.lv-card-live-tag.st-replay { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.6); }
@keyframes lvPulse { 0%,100%{ opacity:1; } 50%{ opacity:0.7; } }
.lv-card-cover {
    position: relative; width: 100%; aspect-ratio: 16/9;
    background: #111; overflow: hidden; cursor: pointer;
    display: block; text-decoration: none;
}
.lv-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lv-card-viewers {
    position: absolute; top: 8px; right: 8px;
    background: rgba(0,0,0,0.55); padding: 2px 8px; border-radius: 10px;
    font-size: 10px; color: #fff; backdrop-filter: blur(4px);
}
.lv-card-title-bar {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 20px 12px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.lv-card-title { font-size: 14px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.lv-pk {
    margin: 0 12px 12px; padding: 10px 12px;
    background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(255,107,53,0.08));
    border: 1px solid rgba(255,215,0,0.12); border-radius: 10px;
}
.lv-pk-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.lv-pk-icon { font-size: 11px; color: #FFD700; }
.lv-pk-label { font-size: 11px; font-weight: 700; color: #FFD700; letter-spacing: 0.5px; }
.lv-pk-hot { margin-left: auto; font-size: 10px; color: rgba(255,255,255,0.4); display: flex; align-items: center; gap: 3px; }
.lv-pk-hot i { font-size: 9px; color: #F44336; }
.lv-pk-bar { display: flex; align-items: center; gap: 8px; }
.lv-pk-opt { flex: 1; text-align: center; padding: 6px 0; font-size: 12px; font-weight: 700; }
.lv-pk-opt.opt-a { color: #FF5252; }
.lv-pk-opt.opt-b { color: #448AFF; }
.lv-pk-vs { font-size: 10px; font-weight: 900; color: rgba(255,255,255,0.25); flex-shrink: 0; }
.lv-pk-progress { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin-top: 6px; background: rgba(255,255,255,0.06); }
.lv-pk-fill-a { height: 100%; background: linear-gradient(90deg, #FF5252, #FF8A80); border-radius: 3px 0 0 3px; transition: width 0.6s; }
.lv-pk-fill-b { height: 100%; background: linear-gradient(90deg, #82B1FF, #448AFF); border-radius: 0 3px 3px 0; transition: width 0.6s; }
.lv-pk-pct { display: flex; justify-content: space-between; margin-top: 4px; font-size: 10px; font-weight: 700; }
.lv-pk-pct .pct-a { color: #FF5252; }
.lv-pk-pct .pct-b { color: #448AFF; }
.lv-pk-cta { display: flex; justify-content: center; margin-top: 8px; }
.lv-pk-btn {
    padding: 5px 20px; border-radius: 14px; border: none;
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #1a1a2e; font-size: 11px; font-weight: 800;
    cursor: pointer; transition: all 0.15s;
}
.lv-pk-btn:active { transform: scale(0.95); filter: brightness(0.9); }

/* Neon glow utilities */
.neon-gold { color: #FFD700; text-shadow: 0 0 8px rgba(255,215,0,0.4); }
.neon-green { color: #00E676; text-shadow: 0 0 6px rgba(0,230,118,0.3); }
.neon-red { color: #FF3D00; text-shadow: 0 0 6px rgba(255,61,0,0.3); }

/* Breaking news ticker handled above in .guess-breaking-bar */

/* ===== 竞猜分类标签栏 (紧凑胶囊横滑) ===== */
.guess-cat-bar {
    padding: 6px 0 2px;
    overflow: hidden;
}
.guess-cat-scroll {
    display: flex; gap: 8px;
    padding: 4px 12px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.guess-cat-scroll::-webkit-scrollbar { display: none; }

/* ---- 胶囊标签 ---- */
.gc-chip {
    flex-shrink: 0; display: flex; align-items: center; gap: 5px;
    height: 32px; padding: 0 12px 0 8px;
    border-radius: 16px; cursor: pointer;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    position: relative; overflow: hidden;
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
    -webkit-tap-highlight-color: transparent;
    user-select: none; -webkit-user-select: none;
}
.gc-chip:active { transform: scale(0.95); }
/* 图标圆 */
.gc-chip .gc-ico {
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; position: relative;
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.gc-chip .gc-ico i {
    font-size: 11px; position: relative; z-index: 2;
    transition: all 0.35s ease;
}
/* 图标圆内光环 */
.gc-chip .gc-ico::after {
    content: ''; position: absolute; inset: -3px;
    border-radius: 50%; opacity: 0; z-index: 0;
    transition: opacity 0.35s;
}
/* 文字 */
.gc-chip .gc-txt {
    font-size: 12px; font-weight: 500; line-height: 1;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
    transition: all 0.3s ease;
}
/* 胶囊内底层光带 */
.gc-chip::before {
    content: ''; position: absolute; inset: 0;
    border-radius: 16px; opacity: 0;
    transition: opacity 0.35s;
    z-index: 0; pointer-events: none;
}
/* idle呼吸 */
.gc-chip:not(.active) .gc-ico i {
    animation: gcIdle 3s ease-in-out infinite;
}
@keyframes gcIdle {
    0%,100% { opacity: 0.5; }
    50%     { opacity: 0.75; }
}

/* ====== 激活态通用 ====== */
.gc-chip.active {
    border-color: transparent;
    padding: 0 14px 0 7px;
}
.gc-chip.active::before { opacity: 1; }
.gc-chip.active .gc-ico { transform: scale(1.1); }
.gc-chip.active .gc-ico::after { opacity: 1; }
.gc-chip.active .gc-ico i {
    opacity: 1 !important;
    filter: drop-shadow(0 0 4px currentColor);
}
.gc-chip.active .gc-txt { font-weight: 700; }

/* ====== 拖拽排序态 ====== */
.gc-chip.gc-dragging {
    opacity: 0.8; z-index: 100;
    transform: scale(1.08) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,215,0,0.3);
}
.gc-chip.gc-drag-over {
    border-color: rgba(255,215,0,0.6) !important;
    box-shadow: 0 0 0 2px rgba(255,215,0,0.2);
}
/* 编辑模式抖动 */
.guess-cat-scroll.gc-sort-mode .gc-chip {
    animation: gcWobble 0.35s ease-in-out infinite alternate;
}
.guess-cat-scroll.gc-sort-mode .gc-chip:nth-child(even) { animation-delay: 0.12s; }
@keyframes gcWobble {
    0%   { transform: rotate(-0.8deg); }
    100% { transform: rotate(0.8deg); }
}
.guess-cat-scroll.gc-sort-mode .gc-chip.gc-dragging { animation: none; }

/* ============================================================
   9套分类配色 (胶囊版: 更小的图标圆 + 渐变底光带)
============================================================ */
/* 🔥 今日热点 */
.gc-hot .gc-ico { background: rgba(255,107,53,0.15); }
.gc-hot .gc-ico i { color: #FF6B35; }
.gc-hot.active { background: linear-gradient(135deg, rgba(255,61,0,0.18), rgba(255,107,53,0.08)); box-shadow: 0 2px 12px rgba(255,61,0,0.2); }
.gc-hot.active::before { background: linear-gradient(90deg, rgba(255,61,0,0.12), transparent); }
.gc-hot.active .gc-ico { background: linear-gradient(135deg, #FF6B35, #FF3D00); box-shadow: 0 2px 8px rgba(255,61,0,0.4); }
.gc-hot.active .gc-ico::after { background: radial-gradient(circle, rgba(255,107,53,0.3), transparent); }
.gc-hot.active .gc-ico i { color: #fff; animation: gcFlame 0.5s ease infinite alternate; }
.gc-hot.active .gc-txt { color: #FF8A65; }
@keyframes gcFlame { 0%{transform:scale(1) translateY(0)} 100%{transform:scale(1.1) translateY(-1px)} }

/* ⭐ 娱乐明星 */
.gc-star .gc-ico { background: rgba(224,64,251,0.12); }
.gc-star .gc-ico i { color: #E040FB; }
.gc-star.active { background: linear-gradient(135deg, rgba(213,0,249,0.15), rgba(224,64,251,0.06)); box-shadow: 0 2px 12px rgba(213,0,249,0.2); }
.gc-star.active::before { background: linear-gradient(90deg, rgba(213,0,249,0.1), transparent); }
.gc-star.active .gc-ico { background: linear-gradient(135deg, #E040FB, #AA00FF); box-shadow: 0 2px 8px rgba(213,0,249,0.4); }
.gc-star.active .gc-ico::after { background: radial-gradient(circle, rgba(224,64,251,0.3), transparent); }
.gc-star.active .gc-ico i { color: #fff; animation: gcTwinkle 1.2s ease infinite; }
.gc-star.active .gc-txt { color: #EA80FC; }
@keyframes gcTwinkle { 0%,100%{transform:scale(1) rotate(0)} 50%{transform:scale(1.2) rotate(15deg); filter:drop-shadow(0 0 6px #FF80AB)} }

/* 🎬 影视综艺 */
.gc-movie .gc-ico { background: rgba(255,152,0,0.12); }
.gc-movie .gc-ico i { color: #FFB74D; }
.gc-movie.active { background: linear-gradient(135deg, rgba(255,152,0,0.15), rgba(255,152,0,0.05)); box-shadow: 0 2px 12px rgba(255,152,0,0.2); }
.gc-movie.active::before { background: linear-gradient(90deg, rgba(255,152,0,0.1), transparent); }
.gc-movie.active .gc-ico { background: linear-gradient(135deg, #FF9800, #E65100); box-shadow: 0 2px 8px rgba(255,152,0,0.4); }
.gc-movie.active .gc-ico::after { background: radial-gradient(circle, rgba(255,152,0,0.3), transparent); }
.gc-movie.active .gc-ico i { color: #fff; animation: gcFlash 2s ease infinite; }
.gc-movie.active .gc-txt { color: #FFB74D; }
@keyframes gcFlash { 0%,100%{transform:scale(1)} 8%{transform:scale(1.15);filter:brightness(1.4)} 16%{transform:scale(1)} }

/* ⚽ 体育赛事 */
.gc-sport .gc-ico { background: rgba(76,175,80,0.12); }
.gc-sport .gc-ico i { color: #66BB6A; }
.gc-sport.active { background: linear-gradient(135deg, rgba(46,125,50,0.18), rgba(76,175,80,0.06)); box-shadow: 0 2px 12px rgba(46,125,50,0.2); }
.gc-sport.active::before { background: linear-gradient(90deg, rgba(46,125,50,0.1), transparent); }
.gc-sport.active .gc-ico { background: linear-gradient(135deg, #43A047, #1B5E20); box-shadow: 0 2px 8px rgba(46,125,50,0.4); }
.gc-sport.active .gc-ico::after { background: radial-gradient(circle, rgba(76,175,80,0.3), transparent); }
.gc-sport.active .gc-ico i { color: #fff; animation: gcBounce 0.4s cubic-bezier(0.36,0.07,0.19,0.97) infinite alternate; }
.gc-sport.active .gc-txt { color: #81C784; }
@keyframes gcBounce { 0%{transform:translateY(0)} 100%{transform:translateY(-2px)} }

/* 📈 财经股市 */
.gc-finance .gc-ico { background: rgba(255,215,0,0.12); }
.gc-finance .gc-ico i { color: #FFD740; }
.gc-finance.active { background: linear-gradient(135deg, rgba(255,215,0,0.18), rgba(255,193,7,0.06)); box-shadow: 0 2px 12px rgba(255,215,0,0.25); }
.gc-finance.active::before { background: linear-gradient(90deg, rgba(255,215,0,0.12), transparent); }
.gc-finance.active .gc-ico { background: linear-gradient(135deg, #FFD700, #FF8F00); box-shadow: 0 2px 8px rgba(255,215,0,0.45); }
.gc-finance.active .gc-ico::after { background: radial-gradient(circle, rgba(255,215,0,0.35), transparent); }
.gc-finance.active .gc-ico i { color: #5D4037; animation: gcRise 1.2s ease infinite; }
.gc-finance.active .gc-txt { color: #FFD740; }
@keyframes gcRise { 0%,100%{transform:scale(1)} 40%{transform:scale(1.1) translateY(-1px)} }

/* 💻 科技数码 */
.gc-tech .gc-ico { background: rgba(66,165,245,0.12); }
.gc-tech .gc-ico i { color: #42A5F5; }
.gc-tech.active { background: linear-gradient(135deg, rgba(21,101,192,0.2), rgba(0,229,255,0.06)); box-shadow: 0 2px 12px rgba(21,101,192,0.25), 0 0 0 1px rgba(0,229,255,0.1); }
.gc-tech.active::before { background: linear-gradient(90deg, rgba(0,229,255,0.08), transparent); }
.gc-tech.active .gc-ico { background: linear-gradient(135deg, #1565C0, #0A2463); box-shadow: 0 2px 8px rgba(21,101,192,0.5); }
.gc-tech.active .gc-ico::after { background: radial-gradient(circle, rgba(0,229,255,0.3), transparent); }
.gc-tech.active .gc-ico i { color: #00E5FF; animation: gcGlitch 3s steps(1) infinite; }
.gc-tech.active .gc-txt { color: #64B5F6; }
@keyframes gcGlitch { 0%,100%{transform:scale(1); filter:drop-shadow(0 0 4px #00E5FF)} 7%{transform:translate(1px,-1px); filter:drop-shadow(2px 0 #FF4081) drop-shadow(-2px 0 #00E5FF)} 9%{transform:scale(1); filter:drop-shadow(0 0 4px #00E5FF)} }

/* 🎮 游戏电竞 */
.gc-game .gc-ico { background: rgba(179,136,255,0.12); }
.gc-game .gc-ico i { color: #B388FF; }
.gc-game.active { background: linear-gradient(135deg, rgba(123,31,162,0.2), rgba(179,136,255,0.06)); box-shadow: 0 2px 12px rgba(123,31,162,0.25), 0 0 0 1px rgba(179,136,255,0.1); }
.gc-game.active::before { background: linear-gradient(90deg, rgba(179,136,255,0.08), transparent); }
.gc-game.active .gc-ico { background: linear-gradient(135deg, #7B1FA2, #4A148C); box-shadow: 0 2px 8px rgba(123,31,162,0.5); }
.gc-game.active .gc-ico::after { background: radial-gradient(circle, rgba(179,136,255,0.3), transparent); }
.gc-game.active .gc-ico i { color: #E0E0E0; animation: gcJoy 0.6s ease infinite; }
.gc-game.active .gc-txt { color: #CE93D8; }
@keyframes gcJoy { 0%,100%{transform:rotate(0)} 20%{transform:rotate(-10deg)} 60%{transform:rotate(10deg)} }

/* 📰 社会事件 */
.gc-society .gc-ico { background: rgba(239,83,80,0.12); }
.gc-society .gc-ico i { color: #EF5350; }
.gc-society.active { background: linear-gradient(135deg, rgba(229,57,53,0.18), rgba(239,83,80,0.06)); box-shadow: 0 2px 12px rgba(229,57,53,0.2); }
.gc-society.active::before { background: linear-gradient(90deg, rgba(229,57,53,0.1), transparent); }
.gc-society.active .gc-ico { background: linear-gradient(135deg, #E53935, #B71C1C); box-shadow: 0 2px 8px rgba(229,57,53,0.45); }
.gc-society.active .gc-ico::after { background: radial-gradient(circle, rgba(239,83,80,0.3), transparent); }
.gc-society.active .gc-ico i { color: #fff; animation: gcAlert 0.8s ease infinite; }
.gc-society.active .gc-txt { color: #EF9A9A; }
@keyframes gcAlert { 0%,100%{transform:scale(1)} 15%{transform:scale(1.2)} 30%{transform:scale(1)} }

/* ☀️ 天气出行 */
.gc-weather .gc-ico { background: rgba(79,195,247,0.12); }
.gc-weather .gc-ico i { color: #4FC3F7; }
.gc-weather.active { background: linear-gradient(135deg, rgba(3,155,229,0.18), rgba(79,195,247,0.06)); box-shadow: 0 2px 12px rgba(3,155,229,0.2); }
.gc-weather.active::before { background: linear-gradient(90deg, rgba(3,155,229,0.1), transparent); }
.gc-weather.active .gc-ico { background: linear-gradient(135deg, #039BE5, #0277BD); box-shadow: 0 2px 8px rgba(3,155,229,0.45); }
.gc-weather.active .gc-ico::after { background: radial-gradient(circle, rgba(79,195,247,0.3), transparent); }
.gc-weather.active .gc-ico i { color: #FFF176; animation: gcSun 3s ease-in-out infinite; }
.gc-weather.active .gc-txt { color: #81D4FA; }
@keyframes gcSun { 0%,100%{transform:rotate(0); filter:drop-shadow(0 0 3px #FFF176)} 50%{transform:rotate(20deg); filter:drop-shadow(0 0 8px #FFEE58)} }

/* ===== 玩法入口滚动条 (section-header右侧) ===== */
.gp-mode-roller {
    position: relative; flex: 1; min-width: 0;
    margin-left: 10px;
}
.gp-mode-viewport {
    height: 42px; overflow: hidden;
    border-radius: 10px;
}
.gp-mode-track {
    display: flex; flex-direction: column;
    transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
.gp-mode-item {
    height: 42px; display: flex; align-items: center; gap: 6px;
    padding: 0 10px;
    border-radius: 10px; cursor: pointer;
    white-space: nowrap; flex-shrink: 0;
    position: relative; overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.gp-mode-item:active { opacity: 0.8; transform: scale(0.98); }
/* 文字遮罩层：左侧深色渐变保证文字可读 */
.gp-mode-item::before {
    content: ''; position: absolute; inset: 0;
    border-radius: 10px; z-index: 1;
    pointer-events: none;
}
/* 顶部微光 + 边框内发光 */
.gp-mode-item::after {
    content: ''; position: absolute; inset: 0;
    border-radius: 10px; z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 35%);
}
.gp-m-emoji { font-size: 15px; line-height: 1; position: relative; z-index: 3;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
.gp-m-name {
    font-size: 12px; font-weight: 800;
    line-height: 1; letter-spacing: 0.4px;
    position: relative; z-index: 3;
}
.gp-m-sub {
    font-size: 9px; font-weight: 500; opacity: 0.7;
    position: relative; z-index: 3;
}
.gp-m-arr {
    font-size: 9px; opacity: 0.7; margin-left: auto;
    position: relative; z-index: 3;
}

/* 🏆 冠军之路 — 金色奖杯海报 */
.gp-m-champion {
    background-image: url('/images/poster-champion.jpg');
    border: 1px solid rgba(255,215,0,0.45);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,215,0,0.15);
}
.gp-m-champion::before {
    background: linear-gradient(90deg, rgba(15,10,2,0.85) 0%, rgba(30,20,5,0.6) 40%, rgba(60,40,10,0.25) 70%, transparent 100%);
}
.gp-m-champion .gp-m-name { color: #FFD700; text-shadow: 0 0 10px rgba(255,215,0,0.5), 0 1px 3px rgba(0,0,0,0.8); }
.gp-m-champion .gp-m-sub { color: #FFECB3; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.gp-m-champion .gp-m-arr { color: #FFD700; filter: drop-shadow(0 0 4px rgba(255,215,0,0.4)); }

/* ⛩️ 闯三关 — 紫色魔法门海报 */
.gp-m-triple {
    background-image: url('/images/poster-triple.jpg');
    border: 1px solid rgba(179,136,255,0.45);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(179,136,255,0.15);
}
.gp-m-triple::before {
    background: linear-gradient(90deg, rgba(8,3,20,0.85) 0%, rgba(20,8,50,0.6) 40%, rgba(50,20,100,0.25) 70%, transparent 100%);
}
.gp-m-triple .gp-m-name { color: #D4BBFF; text-shadow: 0 0 10px rgba(179,136,255,0.5), 0 1px 3px rgba(0,0,0,0.8); }
.gp-m-triple .gp-m-sub { color: #E1D5FF; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.gp-m-triple .gp-m-arr { color: #D4BBFF; filter: drop-shadow(0 0 4px rgba(179,136,255,0.4)); }

/* 🎁 盲盒竞猜 — 青色神秘礼盒海报 */
.gp-m-blind {
    background-image: url('/images/poster-blind.jpg');
    border: 1px solid rgba(38,198,218,0.45);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(38,198,218,0.15);
}
.gp-m-blind::before {
    background: linear-gradient(90deg, rgba(3,12,12,0.85) 0%, rgba(6,25,25,0.6) 40%, rgba(15,50,50,0.25) 70%, transparent 100%);
}
.gp-m-blind .gp-m-name { color: #67E8F9; text-shadow: 0 0 10px rgba(77,208,225,0.5), 0 1px 3px rgba(0,0,0,0.8); }
.gp-m-blind .gp-m-sub { color: #B2EBF2; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.gp-m-blind .gp-m-arr { color: #67E8F9; filter: drop-shadow(0 0 4px rgba(77,208,225,0.4)); }

/* Casino hero swiper */
.hero-swiper {
    position: relative; margin: var(--space-3) 0;
    overflow: hidden;
}
.hero-swiper-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding: 0 var(--space-4); gap: 10px;
}
.hero-swiper-track::-webkit-scrollbar { display: none; }
.hero-swiper-slide {
    scroll-snap-align: center; flex-shrink: 0;
    width: calc(100% - 32px);
    border-radius: var(--radius-xl); overflow: hidden;
    position: relative; cursor: pointer;
}
.hero-swiper-slide:active { transform: scale(0.99); transition: transform 0.15s; }
.hero-swiper-slide img { width: 100%; aspect-ratio: 2/1; object-fit: cover; display: block; }
.hero-swiper-slide .ghc-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(transparent 20%, rgba(15,15,25,0.92));
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: var(--space-4); color: white;
}
.hero-swiper-slide .ghc-rank {
    position: absolute; top: 10px; right: 10px;
    background: linear-gradient(135deg, #FFD700, #F7971E);
    color: #1a1a2e; font-size: 10px; font-weight: 800;
    padding: 3px 10px; border-radius: 20px;
    box-shadow: 0 2px 8px rgba(255,215,0,0.4);
    letter-spacing: 0.5px;
}
.hero-swiper-slide .ghc-badge { display: inline-flex; align-items: center; gap: 4px; margin-bottom: var(--space-2); }
.hero-swiper-slide .ghc-title { font-size: var(--text-xl); font-weight: var(--font-bold); line-height: 1.3; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.hero-swiper-slide .ghc-meta { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-2); font-size: var(--text-sm); opacity: 0.85; }
/* Gold border glow on hero slides */
#pageGuess .hero-swiper-slide {
    border: 1px solid rgba(255,215,0,0.2);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 30px rgba(255,215,0,0.06);
}
/* Hero dots (casino style) */
.hero-dots {
    display: flex; justify-content: center; gap: 6px;
    margin-top: 10px; padding-bottom: 2px;
}
.hero-dots .h-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: all 0.35s ease;
}
.hero-dots .h-dot.active {
    width: 20px; border-radius: 3px;
    background: linear-gradient(90deg, #FFD700, #F7971E);
    box-shadow: 0 0 8px rgba(255,215,0,0.4);
}

/* Casino PK mini banner */
#pageGuess .pk-mini-banner {
    background: linear-gradient(135deg, #1a0a2e, #0d1b3a);
    border-color: rgba(255,215,0,0.12);
}

/* Casino section headers */
#pageGuess .section-header .section-title { color: #FFD700; }
#pageGuess .section-header .section-subtitle { color: rgba(255,255,255,0.4); }
#pageGuess .section-header .section-more { color: rgba(255,255,255,0.4); }

/* Casino guess list card */
#pageGuess .guess-list-card {
    border-bottom-color: rgba(255,255,255,0.06);
    transition: background 0.15s;
}
#pageGuess .guess-list-card:active { background: rgba(255,255,255,0.03); }
#pageGuess .guess-list-card .glc-img-wrap {
    border: 1px solid rgba(255,215,0,0.1);
}
#pageGuess .guess-list-card .glc-status.hot {
    background: linear-gradient(135deg, #FF3D00, #FF6D00);
    box-shadow: 0 0 8px rgba(255,61,0,0.3);
}
#pageGuess .guess-list-card .glc-status.ending {
    background: linear-gradient(135deg, #FFD700, #F7971E);
    color: #1a1a2e;
}
#pageGuess .guess-list-card .glc-status.new {
    background: linear-gradient(135deg, #00E676, #00C853);
    color: #1a1a2e;
}
#pageGuess .guess-list-card .glc-title { color: #f0f0f0; }
#pageGuess .guess-list-card .glc-odd {
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.08);
}
#pageGuess .guess-list-card .glc-odd.up { color: #FF3D00; background: rgba(255,61,0,0.1); border-color: rgba(255,61,0,0.15); }
#pageGuess .guess-list-card .glc-odd.down { color: #00E676; background: rgba(0,230,118,0.1); border-color: rgba(0,230,118,0.15); }
#pageGuess .guess-list-card .glc-meta-text { color: rgba(255,255,255,0.35); }
#pageGuess .guess-list-card .glc-join-btn {
    background: linear-gradient(135deg, #FFD700, #F7971E);
    color: #1a1a2e; font-weight: 700;
    box-shadow: 0 2px 8px rgba(255,215,0,0.25);
}
#pageGuess .guess-list-card .glc-join-btn:active { box-shadow: 0 0 4px rgba(255,215,0,0.4); }
#pageGuess .guess-list-card .glc-pk-row .glc-join-btn {
    background: linear-gradient(135deg, #FFD700, #F7971E);
    color: #1a1a2e;
}

/* Casino sort buttons */
#pageGuess .btn-ghost {
    color: rgba(255,255,255,0.5) !important;
    background: rgba(255,255,255,0.06) !important;
}
#pageGuess .btn-ghost[style*="font-weight:600"],
#pageGuess .btn-ghost[style*="font-weight: 600"] {
    background: rgba(255,215,0,0.12) !important;
    color: #FFD700 !important;
}

/* Casino result items */
#pageGuess .result-item { border-bottom-color: rgba(255,255,255,0.06); }
#pageGuess .result-item .ri-title { color: #f0f0f0; }
#pageGuess .result-item .ri-detail { color: rgba(255,255,255,0.35); }
#pageGuess .result-item .ri-icon.won { background: rgba(0,230,118,0.1); }
#pageGuess .result-item .ri-icon.lost { background: rgba(255,61,0,0.1); }
#pageGuess .result-item .ri-amount.won { color: #00E676; }
#pageGuess .result-item .ri-amount.lost { color: #FF3D00; }

/* Casino divider */
#pageGuess .divider-thick { background: rgba(255,255,255,0.04); }

/* Casino ranking */
#pageGuess .guess-rank-row .gr-rank { color: rgba(255,255,255,0.3); }
#pageGuess .guess-rank-row .gr-rank.top { color: #FFD700; }
#pageGuess .guess-rank-row .gr-name { color: rgba(255,255,255,0.7); }
#pageGuess .guess-rank-row .gr-rate { color: #FFD700; }

/* Casino vote bar glow */
#pageGuess .pk-duel-bar { background: rgba(255,255,255,0.06); }
#pageGuess .pk-duel-labels .pdl-left { color: #FFD700; }
#pageGuess .pk-duel-labels .pdl-right { color: #26C6DA; }
#pageGuess .pk-duel-labels .pdl-center { color: rgba(255,255,255,0.25); }
#pageGuess .pk-duel-labels-multi span { color: rgba(255,255,255,0.5); }

/* ===== SWIPE CONTAINER ===== */
.swipe-container { overflow: hidden; position: relative; }
.swipe-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.swipe-track.dragging { transition: none; }
.swipe-page {
    min-width: 100%; width: 100%; flex-shrink: 0;
    position: relative;
    transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
    will-change: opacity, transform, filter;
}
.swipe-track.dragging .swipe-page { transition: none; }
/* Active page is fully visible, inactive page is dimmed */
.swipe-page.page-leaving {
    opacity: 0.45;
    transform: scale(0.92);
    filter: blur(2px);
}
.swipe-page.page-entering {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}
/* Transition glow overlays */
.swipe-page::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    opacity: 0; transition: opacity 0.45s ease; z-index: 10;
}
#pageGuess.page-entering::after {
    background: radial-gradient(ellipse at center top, rgba(255,215,0,0.08) 0%, transparent 70%);
    opacity: 1;
    animation: guessGlow 0.6s ease-out forwards;
}
#pageMall.page-entering::after {
    background: radial-gradient(ellipse at center top, rgba(232,48,91,0.08) 0%, transparent 70%);
    opacity: 1;
    animation: mallGlow 0.6s ease-out forwards;
}
@keyframes guessGlow {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.2); }
}
@keyframes mallGlow {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.2); }
}

/* ===== MALL PAGE (kept for fallback) ===== */

/* ===== GUESS PARK (竞猜乐园) ===== */
/* (hero card styles replaced by hero-swiper above) */

/* Countdown inline */
.cd-inline { display: inline-flex; align-items: center; gap: 3px; }
.cd-inline .cd-n { background: rgba(255,255,255,0.25); backdrop-filter: blur(4px); padding: 2px 5px; border-radius: 4px; font-weight: var(--font-bold); font-size: var(--text-sm); min-width: 24px; text-align: center; }
.cd-inline .cd-s { font-weight: var(--font-bold); }

/* Guess list card (enhanced) */
.guess-list-card { display: flex; gap: var(--space-3); padding: var(--space-4); border-bottom: 1px solid var(--color-gray-100); cursor: pointer; transition: background 0.15s; }
.guess-list-card:active { background: var(--color-gray-50); }
.guess-list-card .glc-img-wrap { width: 110px; height: 82px; border-radius: var(--radius-lg); overflow: hidden; flex-shrink: 0; position: relative; }
.guess-list-card .glc-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.guess-list-card .glc-status { position: absolute; top: 6px; left: 6px; font-size: 9px; font-weight: var(--font-bold); color: white; padding: 2px 6px; border-radius: 4px; }
.guess-list-card .glc-status.hot { background: #F44336; }
.guess-list-card .glc-status.new { background: var(--color-primary); }
.guess-list-card .glc-status.ending { background: #FF9800; }
.guess-list-card .glc-countdown {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 3px 6px 4px; display: flex; align-items: center; justify-content: center; gap: 2px;
}
.guess-list-card .glc-countdown .glc-cd-n {
    background: rgba(255,255,255,0.2); backdrop-filter: blur(4px);
    padding: 1px 3px; border-radius: 2px; font-weight: 700;
    font-size: 9px; color: #fff; min-width: 16px; text-align: center;
    font-variant-numeric: tabular-nums;
}
.guess-list-card .glc-countdown .glc-cd-s {
    font-size: 8px; font-weight: 700; color: rgba(255,255,255,0.6);
}
.guess-list-card .glc-countdown .glc-cd-days {
    font-size: 9px; font-weight: 700; color: #fff; white-space: nowrap;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(4px);
    padding: 1px 6px; border-radius: 2px;
}
/* 加载更多 */
.guess-load-more-wrap {
    padding: var(--space-3) var(--space-4) var(--space-4);
    display: flex; justify-content: center;
}
.guess-load-more-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 28px;
    background: transparent;
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-full);
    font-size: var(--text-sm); color: var(--color-gray-500);
    cursor: pointer; transition: all 0.18s;
    -webkit-tap-highlight-color: transparent;
}
.guess-load-more-btn:active { opacity: 0.6; transform: scale(0.97); }
.guess-load-more-btn.loading { color: var(--color-gray-400); pointer-events: none; }
.guess-load-more-btn .lm-spin {
    display: inline-block; width: 13px; height: 13px;
    border: 2px solid var(--color-gray-300); border-top-color: var(--color-primary, #7c3aed);
    border-radius: 50%; animation: glc-spin 0.7s linear infinite;
}
@keyframes glc-spin { to { transform: rotate(360deg); } }
.guess-no-more {
    text-align: center;
    padding: var(--space-4) var(--space-4) var(--space-5);
    font-size: var(--text-xs);
    color: var(--color-gray-400);
    letter-spacing: 0.05em;
}
.guess-list-card .glc-countdown.glc-cd-urgent .glc-cd-n {
    background: rgba(255,61,0,0.6); animation: pulse 1s infinite;
}
.guess-list-card .glc-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.guess-list-card .glc-title { font-size: var(--text-base); font-weight: var(--font-semibold); color: var(--color-gray-900); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guess-list-card .glc-odds-row { display: flex; gap: var(--space-1); margin-top: var(--space-1); flex-wrap: wrap; }
.guess-list-card .glc-odd { font-size: 10px; padding: 1px 6px; background: var(--color-gray-100); border-radius: var(--radius-full); color: var(--color-gray-600); white-space: nowrap; }
.guess-list-card .glc-odd.up { color: #F44336; background: rgba(244,67,54,0.08); }
.guess-list-card .glc-odd.down { color: #4CAF50; background: rgba(76,175,80,0.08); }
.guess-list-card .glc-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-1); }
.guess-list-card .glc-meta-text { font-size: var(--text-xs); color: var(--color-gray-500); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guess-list-card .glc-join-btn { padding: 4px 14px; border-radius: var(--radius-full); background: var(--color-primary); color: white; font-size: var(--text-xs); font-weight: var(--font-semibold); white-space: nowrap; border: none; cursor: pointer; flex-shrink: 0; }
.guess-list-card .glc-join-btn:active { transform: scale(0.95); }
/* PK bar + join btn in one row */
.guess-list-card .glc-pk-row {
    display: flex; align-items: flex-end; gap: 8px; margin-top: var(--space-1);
}
.guess-list-card .glc-pk-row .pk-duel { flex: 1; min-width: 0; margin-top: 0; }
.guess-list-card .glc-pk-row .glc-join-btn {
    padding: 3px 10px; font-size: 10px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 11px; flex-shrink: 0;
}

/* Vote progress */
/* ===== PK Duel Bar (双方对撞) ===== */
.pk-duel {
    margin-top: var(--space-2); position: relative;
}
/* Top labels row: option names + pcts on each side */
.pk-duel-labels {
    display: flex; justify-content: space-between; align-items: flex-end;
    font-size: 9px; font-weight: 700; margin-bottom: 3px; gap: 4px;
}
.pk-duel-labels .pdl-left { color: #FFD700; text-align: left; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-duel-labels .pdl-right { color: #26C6DA; text-align: right; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-duel-labels .pdl-center { flex-shrink: 0; font-size: 7px; color: rgba(255,255,255,0.3); letter-spacing: 1px; }
/* When 3+ options: show all labels in a row */
.pk-duel-labels-multi {
    display: flex; justify-content: space-between; align-items: flex-end;
    font-size: 8px; font-weight: 600; margin-bottom: 3px; gap: 2px;
}
.pk-duel-labels-multi span {
    flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    text-align: center;
}
.pk-duel-labels-multi span:first-child { text-align: left; }
.pk-duel-labels-multi span:last-child { text-align: right; }
/* The bar itself */
.pk-duel-bar {
    display: flex; height: 20px; border-radius: 10px; overflow: hidden;
    position: relative; background: rgba(255,255,255,0.06);
}
.pk-duel-bar .pds {
    height: 100%; transition: width 0.6s ease; display: flex; align-items: center;
    justify-content: center; font-size: 9px; font-weight: 800; min-width: 0;
    white-space: nowrap; overflow: hidden;
}
/* 2-option duel: left gold ← → right cyan */
.pk-duel-bar .pds-0 { background: linear-gradient(90deg, #FFD700, #F7C948); color: #1a1a2e; justify-content: flex-start; padding-left: 8px; }
.pk-duel-bar .pds-1 { background: linear-gradient(90deg, #26C6DA, #00BCD4); color: #0a1929; justify-content: flex-end; padding-right: 8px; }
/* 3+ options colors */
.pk-duel-bar .pds-2 { background: linear-gradient(90deg, #E040FB, #CE93D8); color: #1a0a2e; justify-content: center; }
.pk-duel-bar .pds-3 { background: linear-gradient(90deg, #FF6D00, #FF9100); color: #1a1008; justify-content: center; }
.pk-duel-bar .pds-4 { background: linear-gradient(90deg, #00E676, #69F0AE); color: #0a2916; justify-content: center; }
/* VS spark at collision boundary */
.pk-duel-bar .pds + .pds { border-left: 2px solid rgba(255,255,255,0.7); }
/* Compact variant */
.pk-duel.pk-duel-sm .pk-duel-bar { height: 14px; border-radius: 7px; }
.pk-duel.pk-duel-sm .pk-duel-bar .pds { font-size: 7px; padding-left: 5px; padding-right: 5px; }
.pk-duel.pk-duel-sm .pk-duel-labels, .pk-duel.pk-duel-sm .pk-duel-labels-multi { font-size: 8px; margin-bottom: 2px; }
/* Hero overlay variant */
.pk-duel.pk-duel-hero .pk-duel-bar { height: 16px; border-radius: 8px; }
.pk-duel.pk-duel-hero .pk-duel-bar .pds { font-size: 8px; }
.pk-duel.pk-duel-hero .pk-duel-bar .pds-0 { background: linear-gradient(90deg, rgba(255,215,0,0.8), rgba(247,201,72,0.75)); }
.pk-duel.pk-duel-hero .pk-duel-bar .pds-1 { background: linear-gradient(90deg, rgba(38,198,218,0.75), rgba(0,188,212,0.7)); }
.pk-duel.pk-duel-hero .pk-duel-bar .pds-2 { background: linear-gradient(90deg, rgba(224,64,251,0.65), rgba(206,147,216,0.6)); }
.pk-duel.pk-duel-hero .pk-duel-bar .pds-3 { background: linear-gradient(90deg, rgba(255,109,0,0.7), rgba(255,145,0,0.65)); }
.pk-duel.pk-duel-hero .pk-duel-bar .pds-4 { background: linear-gradient(90deg, rgba(0,230,118,0.65), rgba(105,240,174,0.6)); }
.pk-duel.pk-duel-hero .pk-duel-labels .pdl-left { text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.pk-duel.pk-duel-hero .pk-duel-labels .pdl-right { text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.pk-duel.pk-duel-hero .pk-duel-bar .pds + .pds { border-left-color: rgba(255,255,255,0.45); }

/* PK Battle - compact inline banner */
.pk-mini-banner {
    margin: var(--space-2) var(--space-4); padding: 8px 12px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: var(--radius-lg); color: white;
    display: flex; align-items: center; gap: 10px;
    position: relative; overflow: hidden; cursor: pointer;
    transition: transform 0.15s;
}
.pk-mini-banner:active { transform: scale(0.98); }
.pk-mini-banner::before {
    content: ''; position: absolute; top: -15px; right: -15px;
    width: 60px; height: 60px;
    background: radial-gradient(circle, rgba(255,215,0,0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.pk-mini-banner .pmb-live {
    font-size: 8px; padding: 2px 6px;
    background: #F44336; border-radius: 20px;
    font-weight: 700; animation: pulse 1.5s infinite;
    flex-shrink: 0; letter-spacing: 0.5px;
}
.pk-mini-banner .pmb-players {
    display: flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.pk-mini-banner .pmb-players img {
    width: 24px; height: 24px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.25);
}
.pk-mini-banner .pmb-vs {
    width: 20px; height: 20px; border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #F7971E);
    display: flex; align-items: center; justify-content: center;
    font-size: 8px; font-weight: 800; color: #1a1a2e; flex-shrink: 0;
    box-shadow: 0 0 8px rgba(255,215,0,0.35);
}
.pk-mini-banner .pmb-info { flex: 1; min-width: 0; }
.pk-mini-banner .pmb-title {
    font-size: 11px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pk-mini-banner .pmb-sub {
    font-size: 9px; opacity: 0.5; margin-top: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pk-mini-banner .pmb-btn {
    flex-shrink: 0; padding: 4px 12px; border-radius: 20px;
    background: linear-gradient(135deg, #FFD700, #F7971E);
    color: #1a1a2e; font-size: 10px; font-weight: 700;
    border: none; cursor: pointer;
    box-shadow: 0 2px 8px rgba(255,215,0,0.25);
}
.pk-mini-banner .pmb-btn:active { transform: scale(0.95); }
/* Casino overrides */
#pageGuess .pk-mini-banner {
    border: 1px solid rgba(255,215,0,0.1);
}
/* 暂时隐藏好友 PK 入口 */
#pageGuess .pk-mini-banner,
.home-skeleton .sk-pk {
    display: none !important;
}

/* Result history */
.result-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-gray-100); }
.result-item .ri-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.result-item .ri-icon.won { background: var(--color-success-bg); }
.result-item .ri-icon.lost { background: var(--color-warning-bg); }
.result-item .ri-info { flex: 1; }
.result-item .ri-title { font-size: var(--text-sm); font-weight: var(--font-semibold); }
.result-item .ri-detail { font-size: var(--text-xs); color: var(--color-gray-500); margin-top: 1px; }
.result-item .ri-amount { font-size: var(--text-sm); font-weight: var(--font-bold); }
.result-item .ri-amount.won { color: var(--color-success); }
.result-item .ri-amount.lost { color: var(--color-warning); }

/* Quick guess modal */
.quick-guess-sheet { position: fixed; inset: 0; z-index: 500; display: none; }
.quick-guess-sheet.show { display: flex; flex-direction: column; justify-content: flex-end; }
.quick-guess-sheet .qg-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); animation: fadeIn 0.2s; }
.quick-guess-sheet .qg-panel { position: relative; z-index: 1; max-width: var(--max-width); width: 100%; margin: 0 auto; background: white; border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: var(--space-4); padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); animation: slideUp 0.3s ease; max-height: 80vh; overflow-y: auto; }
.qg-product-row { display: flex; gap: var(--space-3); padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-gray-100); margin-bottom: var(--space-4); }
.qg-product-row img { width: 72px; height: 72px; border-radius: var(--radius-lg); object-fit: cover; }
.qg-product-row .qg-name { font-size: var(--text-base); font-weight: var(--font-semibold); }
.qg-product-row .qg-price { font-size: var(--text-lg); font-weight: var(--font-bold); color: var(--color-primary); margin-top: 4px; }
.qg-option { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); margin-bottom: var(--space-2); border: 2px solid var(--color-gray-200); border-radius: var(--radius-xl); cursor: pointer; transition: all 0.2s; }
.qg-option:active { transform: scale(0.98); }
.qg-option.selected { border-color: var(--color-primary); background: var(--color-primary-bg); }
.qg-option .qg-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--color-gray-300); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.qg-option.selected .qg-radio { border-color: var(--color-primary); background: var(--color-primary); }
.qg-option.selected .qg-radio::after { content: '✓'; color: white; font-size: 11px; font-weight: bold; }
.qg-option .qg-opt-info { flex: 1; }
.qg-option .qg-opt-name { font-size: var(--text-sm); font-weight: var(--font-medium); }
.qg-option .qg-opt-pct { font-size: 10px; color: var(--color-gray-500); }
.qg-option .qg-opt-bar {
    height: 14px; background: var(--color-gray-100); border-radius: 7px;
    margin-top: 4px; overflow: hidden; position: relative;
}
.qg-option .qg-opt-bar-fill {
    height: 100%; border-radius: 7px; transition: width 0.6s;
    display: flex; align-items: center; justify-content: flex-end;
    padding-right: 6px;
    font-size: 8px; font-weight: 700; color: rgba(255,255,255,0.9);
}
.qg-option:nth-child(1) .qg-opt-bar-fill { background: linear-gradient(90deg, #FFD700, #F7C948); color: #1a1a2e; }
.qg-option:nth-child(2) .qg-opt-bar-fill { background: linear-gradient(90deg, #00BCD4, #26C6DA); color: #0a1929; }
.qg-option:nth-child(3) .qg-opt-bar-fill { background: linear-gradient(90deg, #E040FB, #CE93D8); color: #1a0a2e; }
.qg-option:nth-child(4) .qg-opt-bar-fill { background: linear-gradient(90deg, #FF6D00, #FF9100); color: #1a1008; }
.qg-option:nth-child(5) .qg-opt-bar-fill { background: linear-gradient(90deg, #00E676, #69F0AE); color: #0a2916; }
.qg-option .qg-opt-odds { font-weight: var(--font-bold); color: var(--color-primary); font-size: var(--text-base); text-align: right; }
.qg-option .qg-opt-trend { font-size: 9px; display: block; margin-top: 1px; }
.qg-option .qg-opt-trend.up { color: #F44336; }
.qg-option .qg-opt-trend.down { color: #4CAF50; }
.qg-option .qg-opt-trend.stable { color: var(--color-gray-400); }

/* Opening animation */
.opening-overlay { position: fixed; inset: 0; z-index: 600; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; }
.opening-overlay.show { display: flex; }
.opening-box { width: 300px; text-align: center; padding: var(--space-8) var(--space-6); background: white; border-radius: var(--radius-2xl); animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.opening-box .ob-icon { font-size: 64px; margin-bottom: var(--space-3); }
.opening-box .ob-title { font-size: var(--text-xl); font-weight: var(--font-bold); }
.opening-box .ob-desc { font-size: var(--text-sm); color: var(--color-gray-500); margin-top: var(--space-2); line-height: 1.6; }
.opening-box .ob-reward { margin-top: var(--space-4); padding: var(--space-3); background: var(--color-gray-50); border-radius: var(--radius-lg); font-size: var(--text-md); font-weight: var(--font-bold); }
.opening-box .ob-detail { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--color-gray-400); }

/* 竞猜区缺省状态（Hero、列表等，深色主题） */
.guess-empty {
    padding: var(--space-6) var(--space-4);
    text-align: center;
    background: rgba(255,215,0,0.05);
    border: 1px dashed rgba(255,215,0,0.2);
    border-radius: var(--radius-xl);
    margin: 0 var(--space-4);
}
.guess-empty .ge-icon {
    font-size: 44px;
    margin-bottom: var(--space-2);
    opacity: 0.9;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(255,215,0,0.2));
}
.guess-empty .ge-text {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 4px;
}
.guess-empty .ge-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin-bottom: var(--space-3);
    line-height: 1.5;
}
.guess-empty .ge-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    background: linear-gradient(135deg, #FFD700, #F7971E);
    border-radius: var(--radius-lg);
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(255,215,0,0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}
.guess-empty .ge-link:active {
    transform: scale(0.97);
    box-shadow: 0 1px 8px rgba(255,215,0,0.25);
}
.guess-empty.guess-empty-sm { padding: var(--space-4) var(--space-3); }
.guess-empty.guess-empty-sm .ge-icon { font-size: 36px; }

/* 分类切换加载中 */
.guess-loading {
    padding: var(--space-8) var(--space-4);
    text-align: center;
}
.guess-loading .gl-spinner {
    width: 32px; height: 32px;
    margin: 0 auto var(--space-3);
    border: 3px solid rgba(255,215,0,0.2);
    border-top-color: #FFD700;
    border-radius: 50%;
    animation: gl-spin 0.8s linear infinite;
}
.guess-loading .gl-text {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}
@keyframes gl-spin { to { transform: rotate(360deg); } }

/* Guess ranking mini */
.guess-rank-empty {
    padding: var(--space-6) var(--space-4);
    text-align: center;
    background: rgba(255,215,0,0.05);
    border: 1px dashed rgba(255,215,0,0.2);
    border-radius: var(--radius-xl);
    margin: 0;
}
.guess-rank-empty .gr-empty-icon {
    font-size: 40px;
    margin-bottom: var(--space-2);
    opacity: 0.9;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(255,215,0,0.2));
}
.guess-rank-empty .gr-empty-text {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin-bottom: 4px;
}
.guess-rank-empty .gr-empty-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin-bottom: var(--space-3);
    line-height: 1.5;
}
.guess-rank-empty .gr-empty-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    background: linear-gradient(135deg, #FFD700, #F7971E);
    border-radius: var(--radius-lg);
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(255,215,0,0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}
.guess-rank-empty .gr-empty-link:active {
    transform: scale(0.97);
    box-shadow: 0 1px 8px rgba(255,215,0,0.25);
}
.guess-rank-empty .gr-empty-link i {
    font-size: 10px;
}

.guess-rank-row { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) 0; }
.guess-rank-row .gr-rank { width: 20px; font-size: var(--text-sm); font-weight: var(--font-bold); color: var(--color-gray-400); text-align: center; }
.guess-rank-row .gr-rank.top { color: var(--color-primary); }
.guess-rank-row .gr-name { flex: 1; font-size: var(--text-sm); }
.guess-rank-row .gr-rate { font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--color-primary); }

/* ===== SHARED STYLES ===== */
.guess-card { background: var(--color-white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-gray-100); transition: transform 0.15s; cursor: pointer; }
.guess-card:active { transform: scale(0.98); }
.guess-card .gc-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--color-gray-100); }
.guess-card .gc-body { padding: var(--space-3); }
.guess-card .gc-badge-row { display: flex; gap: var(--space-1); margin-bottom: var(--space-2); flex-wrap: wrap; }
.guess-card .gc-title { font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--color-gray-900); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guess-card .gc-meta { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-2); font-size: var(--text-xs); color: var(--color-gray-500); }
.guess-card .gc-pool { color: var(--color-gray-500); font-weight: var(--font-semibold); font-size: var(--text-xs); }
.guess-card .gc-creator { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--color-gray-100); }
.guess-card .gc-creator img { width: 20px; height: 20px; border-radius: 50%; }
.guess-card .gc-creator span { font-size: var(--text-xs); color: var(--color-gray-600); }

/* pk-entry removed — using warm-pk-entry */

.section-divider { margin: var(--space-3) var(--space-4); }
.section-divider .divider-line { display: flex; align-items: center; gap: var(--space-3); }
.section-divider .divider-line::before, .section-divider .divider-line::after { content: ''; flex: 1; height: 1px; background: var(--color-gray-200); }
.section-divider .divider-label { font-size: var(--text-xs); color: var(--color-gray-400); font-weight: var(--font-medium); white-space: nowrap; }

/* (vote-colors removed — PK bars use segment gradients) */

/* === 竞猜大厅事件飘屏 (深色金色主题) === */
.guess-breaking-bar {
    margin: var(--space-2) var(--space-4);
    background: rgba(255,215,0,0.06);
    border: 1px solid rgba(255,215,0,0.12);
    border-radius: var(--radius-lg);
    padding: 7px 12px;
    display: flex; align-items: center; gap: 8px;
    overflow: hidden;
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    transition: transform 0.15s, border-color 0.3s;
    position: relative;
}
.guess-breaking-bar::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.04), transparent);
    background-size: 200% 100%;
    animation: tickerShimmer 4s ease infinite;
    pointer-events: none;
}
@keyframes tickerShimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.guess-breaking-bar:active { transform: scale(0.99); }

/* 标签 — 动态切换 */
.guess-breaking-bar .gbb-tag {
    flex-shrink: 0; padding: 2px 8px; border-radius: 4px;
    font-size: 10px; font-weight: 800;
    letter-spacing: 0.5px;
    transition: all 0.4s;
}
.guess-breaking-bar .gbb-tag.tag-breaking {
    background: rgba(255,61,0,0.8); color: #fff;
    animation: flashTag 2s infinite;
}
.guess-breaking-bar .gbb-tag.tag-bet {
    background: rgba(255,215,0,0.2); color: #FFD700;
}
.guess-breaking-bar .gbb-tag.tag-result {
    background: rgba(0,230,118,0.15); color: #00E676;
}
.guess-breaking-bar .gbb-tag.tag-hot {
    background: rgba(255,152,0,0.2); color: #FF9800;
}
@keyframes flashTag {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 脉冲点 */
.guess-breaking-bar .gbb-dot {
    width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
    background: #FFD700;
    box-shadow: 0 0 6px rgba(255,215,0,0.5);
    animation: breakDot 1.2s ease-in-out infinite;
}
@keyframes breakDot {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px rgba(255,215,0,0.5); }
    50% { opacity: 0.4; transform: scale(0.6); box-shadow: 0 0 2px rgba(255,215,0,0.2); }
}

/* 滚动区域 */
.guess-breaking-bar .gbb-scroll {
    flex: 1; overflow: hidden; white-space: nowrap;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.guess-breaking-bar .gbb-scroll-inner {
    display: inline-block;
    font-size: 11px; font-weight: 600;
    /* JS controls animation */
}
.guess-breaking-bar .gbb-scroll-inner .gbb-evt {
    display: inline;
}
.guess-breaking-bar .gbb-scroll-inner .gbb-evt .gbb-hl {
    color: #FFD700; font-weight: 700;
}
.guess-breaking-bar .gbb-scroll-inner .gbb-evt .gbb-green {
    color: #00E676; font-weight: 700;
}
.guess-breaking-bar .gbb-scroll-inner .gbb-evt .gbb-red {
    color: #FF3D00; font-weight: 700;
}
.guess-breaking-bar .gbb-scroll-inner .gbb-sep {
    display: inline; opacity: 0.25; margin: 0 10px;
}

/* Confetti */
@keyframes confettiFall { 0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(720deg); opacity: 0; } }
.confetti { position: fixed; width: 10px; height: 10px; z-index: 601; pointer-events: none; border-radius: 2px; }

/* ===== TAB BAR：仅首页暗色，其他页面保持 components.css 默认浅色 ===== */
/* 仅当 body 带 .tab-guess（首页）时底部栏为暗色；用 !important 覆盖 components.css 默认 */
body.tab-guess .tab-bar,
body.tab-guess nav.tab-bar.tabbar {
    background: rgba(15,15,25,0.97) !important;
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    transition: background 0.5s ease, border-color 0.5s ease;
}
body.tab-guess .tab-bar .tab-item,
body.tab-guess .tab-bar .tabbar-item {
    color: rgba(255,255,255,0.35) !important;
}
body.tab-guess .tab-bar .tab-item.active,
body.tab-guess .tab-bar .tabbar-item.active {
    color: #FFD700 !important;
}
body.tab-guess .tab-bar .tab-item .tab-badge {
    background: #FFD700 !important;
    color: #1a1a2e !important;
}
body.tab-guess .tab-bar .tab-item.tab-center .tab-center-btn {
    background: linear-gradient(135deg, #FFD700, #F7971E) !important;
    box-shadow: 0 4px 16px rgba(255,215,0,0.4) !important;
}
body.tab-guess .tab-bar .tab-item.tab-center:active .tab-center-btn {
    box-shadow: 0 2px 8px rgba(255,215,0,0.3) !important;
}
/* 以下 tab-mall 为历史保留，当前首页无商城 Tab，其他页面不加载 home.css 故不受影响 */
body.tab-mall .tab-bar {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-top-color: rgba(0,0,0,0.06);
    transition: background 0.5s ease, border-color 0.5s ease;
}
body.tab-mall .tab-bar .tab-item {
    color: #999;
}
body.tab-mall .tab-bar .tab-item.active {
    color: #FF6B00;
}

/* ======================================
   猜趣商城 V5 — 品鉴风格 (全新重设计)
====================================== */

/* --- 顶部导航(44px) --- */
.m-nav {
    display: flex; align-items: center; gap: 10px;
    height: 48px; padding: 0 16px;
    background: #fff;
    position: sticky; top: 48px; z-index: 100;
}
.m-logo {
    font-size: 26px; font-weight: 900; color: #E8511A;
    flex-shrink: 0; letter-spacing: -1px;
    font-family: 'Inter', -apple-system, sans-serif;
    background: linear-gradient(135deg, #FF6B35, #E8511A);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.m-search {
    flex: 1; display: flex; align-items: center; gap: 8px;
    height: 36px; padding: 0 14px;
    background: #F5F5F5; border-radius: 18px;
    cursor: pointer; transition: background 0.15s;
}
.m-search:active { background: #EFEFEF; }
.m-search i { font-size: 13px; color: #B0B0B0; }
.m-search span { font-size: 13px; color: #B0B0B0; }
.m-icons { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.m-ico {
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    color: #333; font-size: 19px; cursor: pointer; position: relative;
    border-radius: 50%; transition: background 0.15s;
}
.m-ico:active { background: #F0F0F0; }
.m-ico-badge {
    position: absolute; top: 1px; right: -1px;
    min-width: 16px; height: 16px; border-radius: 8px;
    background: #FF3B30; color: #fff;
    font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px; border: 1.5px solid #fff;
}

/* --- Tab栏(44px) --- */
.m-tabs {
    display: flex; align-items: center;
    height: 44px; padding: 0 8px;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    position: sticky; top: 96px; z-index: 99;
    gap: 0;
}
.m-tab {
    flex: 1; display: flex; align-items: center; justify-content: center;
    height: 44px; font-size: 15px; font-weight: 500; color: #999;
    cursor: pointer; position: relative;
    transition: color 0.25s, font-weight 0.25s;
}
.m-tab.on { color: #1A1A1A; font-weight: 800; font-size: 16px; }
.m-tab.on::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 22px; height: 3px; border-radius: 1.5px;
    background: linear-gradient(90deg, #FF6B35, #E8511A);
}

/* --- 英雄大卡片(品鉴风 V5) --- */
.m-hero {
    margin: 12px 12px 0; border-radius: 16px;
    background: #fff; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.15s;
}
.m-hero:active { transform: scale(0.99); }
.m-hero-img {
    position: relative; width: 100%; height: 300px;
    background: linear-gradient(135deg, #FDF0E0 0%, #F5E6D5 100%);
    overflow: hidden;
}
.m-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.m-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.5) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 20px 16px 16px;
}
.m-hero-collab {
    font-size: 20px; font-weight: 900; color: #fff;
    text-transform: uppercase; letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.m-hero-brand-logo {
    display: inline-block; margin-top: 4px;
    height: 20px; opacity: 0.9;
}
.m-hero-promo {
    display: flex; align-items: baseline; gap: 4px;
    margin-top: 6px; flex-wrap: wrap;
}
.m-hero-promo-text { font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.95); }
.m-hero-promo-price { font-size: 26px; font-weight: 900; color: #FFD54F; letter-spacing: -0.5px; }
.m-hero-promo-price small { font-size: 14px; font-weight: 700; }
.m-hero-cta {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 10px; padding: 9px 22px;
    background: linear-gradient(135deg, #FF6B35, #E8511A);
    color: #fff; border-radius: 20px; border: none;
    font-size: 14px; font-weight: 700;
    cursor: pointer; align-self: flex-start;
    box-shadow: 0 4px 14px rgba(232,81,26,0.4);
    transition: all 0.15s;
}
.m-hero-cta:active { filter: brightness(0.9); transform: scale(0.96); }

/* 下半: 商品信息 */
.m-hero-info { padding: 14px 16px; }
.m-hero-brand-row { display: flex; align-items: center; gap: 8px; }
.m-hero-brand-av {
    width: 36px; height: 36px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0; border: 2px solid #F0F0F0;
}
.m-hero-brand-text { flex: 1; }
.m-hero-brand-name { font-size: 15px; font-weight: 700; color: #1A1A1A; }
.m-hero-brand-sub { font-size: 12px; color: #888; margin-top: 2px; }
.m-hero-details {
    margin-top: 10px; font-size: 12px; color: #666; line-height: 1.7;
}
.m-hero-details .dicon { color: #E8511A; font-size: 11px; margin-right: 4px; }
.m-hero-progress {
    margin-top: 12px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 11px; color: #999;
}
.m-hero-bar {
    flex: 1; height: 6px; border-radius: 3px;
    background: #EEEEEE; overflow: hidden;
    margin: 0 10px;
}
.m-hero-bar-fill {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, #FFAB76, #E8511A);
    transition: width 0.6s ease;
}
.m-hero-people {
    display: flex; align-items: center; gap: 8px;
    margin-top: 12px; padding-top: 12px; border-top: 1px solid #F5F5F5;
}
.m-hero-avatars { display: flex; }
.m-hero-avatars img {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid #fff; margin-left: -5px;
    object-fit: cover;
}
.m-hero-avatars img:first-child { margin-left: 0; }
.m-hero-people-text { font-size: 11px; color: #BBB; }

/* --- 双列商品网格 --- */
.m-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px; padding: 10px 12px 0;
}
.m-card {
    background: #fff; border-radius: 14px;
    overflow: hidden; display: block;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
}
.m-card:active { transform: scale(0.97); box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.m-card-img {
    position: relative; width: 100%; height: 170px;
    background: #F8F8FA; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.m-card-img img {
    max-width: 90%; max-height: 90%; object-fit: contain;
    transition: transform 0.3s;
}
.m-card:active .m-card-img img { transform: scale(1.03); }
.m-card-tag {
    position: absolute; top: 8px; left: 8px;
    padding: 3px 8px; border-radius: 6px;
    font-size: 10px; font-weight: 700; color: #fff;
    z-index: 2;
}
.m-card-tag.tag-new { background: linear-gradient(135deg, #FF6B35, #E8511A); }
.m-card-tag.tag-hot { background: linear-gradient(135deg, #FF4757, #FF3B30); }
.m-card-tag.tag-sale { background: linear-gradient(135deg, #26D0A3, #00A66E); }
.m-card-tag.tag-guess { background: linear-gradient(135deg, #FF8534, #E8511A); }
.m-card-tag.tag-limit { background: linear-gradient(135deg, #A855F7, #7C3AED); }
.m-card-heart {
    position: absolute; top: 8px; right: 8px;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,0.85); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: #CCC; cursor: pointer;
    transition: all 0.2s; z-index: 2;
}
.m-card-heart:active { transform: scale(0.85); }
.m-card-heart.liked { color: #FF3B30; }
.m-card-body { padding: 10px 10px 12px; }
.m-card-title {
    font-size: 13px; font-weight: 600; color: #1A1A1A;
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 36px;
}
.m-card-price-row {
    display: flex; align-items: baseline; gap: 5px;
    margin-top: 8px;
}
.m-card-price {
    font-size: 18px; font-weight: 900; color: #E8511A;
    letter-spacing: -0.5px;
}
.m-card-price small { font-size: 11px; font-weight: 700; }
.m-card-orig {
    font-size: 11px; color: #CCC; text-decoration: line-through;
}
.m-card-bottom {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 8px;
}
.m-card-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.m-card-mini-tag {
    font-size: 9px; font-weight: 700;
    padding: 2px 6px; border-radius: 4px;
}
.m-card-mini-tag.mt-hot { color: #E8511A; background: #FFF3EC; }
.m-card-mini-tag.mt-new { color: #E8511A; background: #FFF3EC; }
.m-card-mini-tag.mt-sale { color: #00875A; background: #E8F5E9; }
.m-card-mini-tag.mt-guess { color: #E8511A; background: #FFF3EC; border: 1px solid #FFE0CC; }
.m-card-mini-tag.mt-limit { color: #7C3AED; background: #F3E8FF; }
.m-card-buy {
    display: inline-flex; align-items: center; gap: 2px;
    font-size: 11px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #FF6B35, #E8511A);
    padding: 4px 10px; border-radius: 12px;
    cursor: pointer; white-space: nowrap;
    transition: all 0.15s; border: none;
}
.m-card-buy:active { filter: brightness(0.9); transform: scale(0.95); }
.m-card-sales {
    font-size: 10px; color: #BBB; margin-top: 6px;
}
.m-card-sales span { color: #FFB300; }

/* --- 底部横幅 --- */
.m-banner {
    margin: 16px 12px 0; border-radius: 16px;
    background: #fff; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    cursor: pointer; position: relative;
}
.m-banner:active { transform: scale(0.99); }
.m-banner-img {
    width: 100%; height: 160px; object-fit: cover;
    background: linear-gradient(135deg, #F0EAE2, #E8DDD2);
}
.m-banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: center;
    padding: 20px 16px;
}
.m-banner-collab {
    font-size: 20px; font-weight: 900; color: #fff;
    text-transform: uppercase; letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.m-banner-sub { font-size: 14px; color: rgba(255,255,255,0.9); margin-top: 6px; }
.m-banner-cta {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 10px; padding: 7px 16px;
    background: rgba(255,255,255,0.9); color: #1A1A1A;
    border-radius: 16px; border: none;
    font-size: 12px; font-weight: 700;
    cursor: pointer; align-self: flex-start;
    backdrop-filter: blur(4px);
}
.m-banner-cta:active { background: #fff; }

/* --- 热门竞猜横幅 --- */
.m-hot-banner {
    margin: 16px 12px 0; padding: 16px;
    background: linear-gradient(135deg, #FF6B35, #E8511A, #D4440A);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(232,81,26,0.25);
}
.m-hot-title {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; color: #fff;
}
.m-hot-title span:first-child { font-size: 15px; font-weight: 800; }
.m-hot-title span:last-child { font-size: 12px; opacity: 0.85; cursor: pointer; }
.m-hot-scroll {
    display: flex; gap: 10px; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding-bottom: 2px;
}
.m-hot-scroll::-webkit-scrollbar { display: none; }
.m-hot-item {
    flex-shrink: 0; width: 130px;
    background: rgba(255,255,255,0.95); border-radius: 12px;
    overflow: hidden; cursor: pointer;
    transition: transform 0.15s;
    text-decoration: none; color: inherit;
}
.m-hot-item:active { transform: scale(0.97); }
.m-hot-item-img {
    width: 100%; height: 90px; background: #F8F8FA;
    overflow: hidden; position: relative;
}
.m-hot-item-img img { width: 100%; height: 100%; object-fit: cover; }
.m-hot-item-rank {
    position: absolute; top: 6px; left: 6px;
    background: rgba(0,0,0,0.6); color: #FFD54F;
    font-size: 9px; font-weight: 800;
    padding: 2px 6px; border-radius: 6px;
    backdrop-filter: blur(4px);
}
.m-hot-item-body { padding: 8px; }
.m-hot-item-pool { font-size: 13px; font-weight: 800; color: #E8511A; }
.m-hot-item-price { font-size: 10px; color: #888; margin-top: 2px; }
.m-hot-item-meta {
    display: flex; align-items: center; gap: 4px;
    margin-top: 4px; font-size: 9px; color: #BBB;
}
.m-hot-item-timer { color: #FF3B30; font-weight: 700; font-variant-numeric: tabular-nums; }
.m-hot-item-btn {
    display: block; margin: 6px 8px 8px;
    background: linear-gradient(135deg, #FF6B35, #E8511A);
    color: #fff; border: none; border-radius: 8px;
    padding: 5px 0; width: calc(100% - 16px); font-size: 11px; font-weight: 700;
    cursor: pointer; text-align: center;
}
.m-hot-item-btn:active { filter: brightness(0.9); }

/* --- 加载更多 --- */
.m-load-more {
    text-align: center; padding: 24px 0 16px;
    font-size: 13px; color: #E8511A; font-weight: 600;
    cursor: pointer;
}
.m-load-more:active { opacity: 0.6; }

/* --- 卡片入场动画 --- */
.mfc-enter {
    opacity: 0; transform: translateY(20px);
    animation: mcSlideUp 0.4s ease-out forwards;
}
@keyframes mcSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- 商城Tab时隐藏全局Header --- */
body.tab-mall .home-header-v3 { display: none !important; }
body.tab-mall .m-nav { top: 0; }
body.tab-mall .m-tabs { top: 48px; }

/* --- 旧兼容(隐藏) --- */
.mall-waterfall, .wf-card, .wf-img-wrap, .wf-body, .wf-title,
.wf-price, .wf-bottom, .mall-hot-banner, .mc-feature,
.mc-feat-img, .mc-feat-info, .mall-load-more { display: none !important; }
