/* === 全局重置 + 全宽固定布局 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f2f6ff;
    color: #1e2b3f;
    font-size: 9px;
    line-height: 1.2;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

#dynamicLines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    pointer-events: none;
    opacity: 1;
    background: #eaf0fd;
}

.bg-layers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.4) 0%, rgba(235, 242, 255, 0.2) 90%);
    z-index: 1;
    pointer-events: none;
}

/* 顶栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px) saturate(200%);
    -webkit-backdrop-filter: blur(16px) saturate(200%);
    border-bottom: 1px solid rgba(180, 200, 230, 0.7);
    box-shadow: 0 8px 22px -10px rgba(0, 20, 50, 0.2);
    display: flex;
    align-items: center;
    padding: 0 10px;
    z-index: 100;
}

.navbar-title {
    font-size: 11px;
    font-weight: 610;
    color: #1f344b;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-right: 3px;
    flex-shrink: 0;
}

.navbar-title i { font-size: 12px !important; color: #3b5f9e; }
.games-count {
    background: rgba(210, 225, 250, 0.9);
    border-radius: 20px;
    padding: 1px 6px;
    font-size: 8px;
    font-weight: 600;
    color: #1f3a6b;
    border: 1px solid rgba(110, 150, 220, 0.5);
    backdrop-filter: blur(4px);
    line-height: 1.1;
}

.nav-buttons { display: flex; align-items: center; gap: 4px; margin-right: 4px; flex-shrink: 0; }
.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: rgba(230, 240, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(150, 180, 230, 0.7);
    border-radius: 20px;
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 580;
    color: #1e3c72;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 30, 70, 0.08);
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1;
}
.nav-btn i { font-size: 10px; color: #2f5496; }
.nav-btn:hover {
    background: rgba(240, 246, 255, 0.95);
    border-color: #7ca2e0;
    box-shadow: 0 4px 12px rgba(60, 110, 180, 0.2);
    transform: scale(1.02);
}

.search-wrapper { flex: 1; display: flex; justify-content: flex-end; position: relative; min-width: 30px; }
.search-box { position: relative; width: 140px; transition: width 0.25s ease; max-width: 100%; }
.search-box:focus-within { width: 170px; }
.search-input {
    width: 100%;
    height: 26px;
    padding: 0 8px 0 26px;
    font-size: 9px;
    background: rgba(245, 250, 255, 0.9);
    border: 1.5px solid #d0dded;
    border-radius: 22px;
    color: #1f2e4a;
    outline: none;
    transition: all 0.2s;
}
.search-input::placeholder { color: #8699bb; font-size: 8.5px; }
.search-input:focus { border-color: #7ca2e0; background: #ffffff; box-shadow: 0 4px 14px rgba(100, 150, 240, 0.15); }
.search-icon { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: #6783b3; font-size: 10px; z-index: 2; }
.search-voice { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: #8fa3cd; font-size: 10px; opacity: 0.7; cursor: pointer; z-index: 2; }

/* 会员按钮 */
.member-bar {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: transparent;
    z-index: 20;
    margin-top: 4px;
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
    padding: 0 10px;
}
.member-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 600px;
    background: #e8e8e8;
    border: 1.5px solid rgba(180, 180, 180, 0.8);
    border-radius: 40px;
    padding: 10px 18px;
    box-shadow: 0 10px 20px -6px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    text-decoration: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    cursor: pointer;
}
.member-link:hover {
    transform: scale(1.01);
    box-shadow: 0 14px 26px -8px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(200, 200, 200, 0.8) inset;
    background: #dddddd;
}
.member-link i { font-size: 16px; color: #555555; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.member-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #333333;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}
.member-badge {
    background: #aaaaaa;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 30px;
    margin-left: 4px;
    box-shadow: inset 0 1px 3px #ffffff, 0 2px 4px rgba(0,0,0,0.1);
    border: 0.5px solid #cccccc;
}

/* ===== 视频播放器容器 ===== */
.fullwidth-png-banner {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: transparent;
    z-index: 15;
    margin-top: 2px;      
    margin-bottom: 6px;    
}

.video-banner-card {
    width: 100%;
    background-color: transparent;
    border: 1px solid rgba(150, 180, 220, 0.7);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px -6px rgba(30, 60, 130, 0.25);
    background-color: #f5f9ff;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    line-height: 0;
    min-height: 200px;
}

.fullwidth-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    background: #000;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullwidth-video.loaded {
    opacity: 1;
}

/* 加载动画 */
.video-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 25;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.video-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-container {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-pulse {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 150, 255, 0.8) 0%, rgba(60, 100, 200, 0.4) 70%);
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.loader-pulse:nth-child(2) {
    animation-delay: 0.5s;
    background: radial-gradient(circle, rgba(80, 130, 240, 0.7) 0%, rgba(50, 90, 180, 0.3) 70%);
}

.loader-pulse:nth-child(3) {
    animation-delay: 1s;
    background: radial-gradient(circle, rgba(70, 120, 220, 0.6) 0%, rgba(40, 80, 160, 0.2) 70%);
}

.loader-icon {
    position: relative;
    z-index: 2;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b6cb0 0%, #2a4f8a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(59, 108, 176, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.loader-icon i {
    color: white;
    font-size: 18px;
    animation: icon-pulse 1.5s ease-in-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.loader-text {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #6ea8fe, #a8c8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 2s ease-in-out infinite;
}

.loader-progress {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 15px;
    overflow: hidden;
    position: relative;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b6cb0, #6ea8fe, #3b6cb0);
    background-size: 200% 100%;
    border-radius: 2px;
    animation: loading-progress 2.5s ease-in-out infinite, gradient-move 2s linear infinite;
    box-shadow: 0 0 10px rgba(59, 108, 176, 0.5);
}

@keyframes loading-progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes gradient-move {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes text-shimmer {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* 左右切换箭头 */
.video-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: rgba(30, 40, 60, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 20;
    opacity: 0.7;
}

.video-nav-arrow:hover {
    background: rgba(50, 70, 100, 0.8);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.arrow-left { left: 8px; }
.arrow-right { right: 8px; }

/* 视频序号指示器 */
.video-index-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 500;
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    z-index: 20;
}

/* ===== 视频画面内左上角灰色公告标题 (新位置) ===== */
.video-announcement {
    position: absolute;
    top: 12px;          /* 左上角 */
    left: 12px;
    bottom: auto;        /* 重置bottom */
    background: rgba(100, 100, 100, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    border-left: 4px solid #ffd700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 20;
    max-width: calc(100% - 60px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    pointer-events: none;
}

.video-announcement i {
    margin-right: 6px;
    color: #ffd700;
    font-size: 11px;
}

.video-announcement .announcement-text {
    font-weight: 600;
}

.video-announcement .announcement-divider {
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.4);
}

.video-announcement .announcement-sub {
    font-weight: 400;
    opacity: 0.95;
}

/* 自定义控制栏 */
.video-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #c0d2ec;
    color: #1e3c72;
    font-size: 11px;
}

.control-btn {
    background: none;
    border: none;
    color: #1e3c72;
    font-size: 16px;
    width: 28px;
    height: 28px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(210, 225, 250, 0.5);
    cursor: pointer;
    transition: all 0.15s;
    border: 0.5px solid #a5bbdf;
}

.control-btn:hover {
    background: #d9e5ff;
    border-color: #7ca2e0;
    transform: scale(1.02);
}

.progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.time-current, .time-duration {
    font-size: 9px;
    font-weight: 500;
    color: #2f4a7a;
    min-width: 30px;
}

.progress-bar-wrapper {
    flex: 1;
    height: 5px;
    background: #cfdff2;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #3b6cb0;
    border-radius: 20px;
    pointer-events: none;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 4px;
}

.volume-slider {
    width: 60px;
    height: 4px;
    background: #cfdff2;
    border-radius: 10px;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #2f5496;
    border-radius: 50%;
    border: 1px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* 论坛按钮样式 */
.forum-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #2f5496 0%, #1e3c72 100%);
    border: 1px solid #7ca2e0;
    border-radius: 20px;
    padding: 4px 12px;
    color: white;
    font-size: 9px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    box-shadow: 0 2px 8px rgba(46, 91, 175, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.forum-btn i {
    color: #ffd700;
    font-size: 10px;
}

.forum-btn:hover {
    background: linear-gradient(135deg, #3b6cb0 0%, #2a4f8a 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(46, 91, 175, 0.4);
}

/* 浅灰色轮播公告栏 */
.ticker-news {
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    position: relative;
    background: rgba(220, 220, 220, 0.85);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-top: 1px solid rgba(160, 160, 160, 0.7);
    border-bottom: 1px solid rgba(160, 160, 160, 0.7);
    padding: 5px 0;
    margin-bottom: 8px;         
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    z-index: 14;
    overflow: hidden;
    height: 30px;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerMove 22s linear infinite;
    padding-left: 10px;
    gap: 30px;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 500;
    color: #3a3a3a;
    background: rgba(200, 200, 200, 0.9);
    padding: 3px 16px 3px 12px;
    border-radius: 30px;
    border: 0.5px solid rgba(150, 150, 150, 0.7);
    backdrop-filter: blur(4px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1), inset 0 1px 2px rgba(255,255,255,0.3);
    letter-spacing: 0.3px;
}

.ticker-item i { color: #666666; font-size: 10px; }
.ticker-item.important { background: #b0b0b0; border-color: #999999; color: #2a2a2a; }
.ticker-item.important i { color: #555555; }

@keyframes tickerMove { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

/* 可滚动内容区域 */
.scroll-area {
    position: fixed;
    top: 40px;               
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    z-index: 10;
    padding: 0;
    background: transparent;
}

.pull-refresh-container { width: 100%; margin: 0; z-index: 15; pointer-events: none; display: flex; justify-content: center; }
.refresh-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 0;
    background: transparent;
    color: #2a405e;
    overflow: hidden;
    transition: height 0.1s ease;
    pointer-events: none;
}

.refresh-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 44px;
    padding: 5px 20px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 15px 30px -8px rgba(50, 80, 140, 0.2), 0 0 0 1px rgba(255,255,255,0.5) inset;
    margin-bottom: 8px;
    opacity: 0.98;
}

.refresh-spinner {
    width: 24px; height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-top-color: #2e5aaf;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 3px;
    filter: drop-shadow(0 2px 6px rgba(0,20,70,0.15));
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.3) inset;
}

.refresh-text { font-size: 9px; font-weight: 600; color: #1e3b6b; letter-spacing: 0.3px; text-shadow: 0 1px 4px rgba(255,255,255,0.8); }

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

.games-container { position: relative; z-index: 10; max-width: 100%; margin: 0 auto; padding: 0 8px 10px 8px; }
.games-grid { display: grid; gap: 6px; grid-template-columns: repeat(3, 1fr); }

@media (min-width: 600px) { 
    .games-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } 
}

@media (min-width: 1000px) { 
    .games-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; } 
}

.game-card {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #d0ddf0;
    transition: transform 0.18s ease, box-shadow 0.25s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 4px 10px -6px rgba(0, 25, 60, 0.2);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.22s, transform 0.28s;
    width: 100%;
}

.game-card.visible { opacity: 1; transform: translateY(0); }
.game-card:hover { transform: translateY(-2px); border-color: #a5c0f0; box-shadow: 0 12px 20px -12px rgba(40, 80, 160, 0.25); }
.game-icon { width: 100%; height: 0; padding-bottom: 72%; background-color: #eef2fa; background-size: cover; background-position: center; position: relative; border-bottom: 1px solid #d0ddf0; }
.game-info { padding: 3px 2px 2px 2px; background: #ffffff; }
.game-title { font-size: 9px; font-weight: 630; color: #14273e; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta-row { display: flex; align-items: center; justify-content: space-between; }
.game-tags { display: flex; flex-wrap: wrap; gap: 1.5px; flex: 1; }
.game-tag { background: #e0e9fa; color: #2f4a7a; font-size: 4.8px; padding: 1px 2.5px; border-radius: 2px; border: 0.5px solid #9cb2d6; font-weight: 500; text-transform: uppercase; }
.game-developer { display: flex; align-items: center; gap: 1px; font-size: 5px; color: #4e6b96; background: #f2f7ff; padding: 1px 4px; border-radius: 14px; border: 0.5px solid #b0c8f0; white-space: nowrap; margin-left: 2px; flex-shrink: 0; }
.no-results { text-align: center; padding: 28px 14px; color: #5b739b; font-size: 11px; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(14px); border-radius: 32px; border: 1px solid #dae3f5; margin-top: 30px; }