/* ===============================
   电脑端页面样式 - index.html
   电视占 2/3 · 右侧二维码面板 · 固定一屏
   =============================== */

/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
}

body.pc-page {
    background: var(--retro-darker);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(155, 188, 15, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(106, 76, 147, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--retro-darker) 0%, var(--retro-dark) 100%);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
}

/* ===== 网格背景 ===== */
body.pc-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(155, 188, 15, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 188, 15, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* ===== 顶部导航 ===== */
.pc-nav {
    flex-shrink: 0;
    height: 44px;
    background: rgba(13, 13, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(155, 188, 15, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 50;
}

.nav-logo {
    font-family: var(--pixel-font);
    font-size: 13px;
    color: var(--retro-light-green);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo .logo-icon {
    width: 26px;
    height: 26px;
    background: var(--retro-light-green);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--retro-dark-green);
    font-size: 14px;
    box-shadow: 0 0 8px var(--retro-light-green);
}

.nav-title {
    font-family: var(--pixel-font);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.nav-status .status-dot {
    width: 8px;
    height: 8px;
    background: var(--retro-red);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--retro-red);
    animation: blink 1.5s infinite;
}

/* ===== 主内容区（两栏布局：电视 2/3 + 二维码面板 1/3） ===== */
.pc-main {
    flex: 1;
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 12px 20px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ===== 电视机区域（占 2/3） ===== */
.tv-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 0;
}

/* ===== 天线 ===== */
.tv-antenna {
    position: absolute;
    top: 0;
    width: 3px;
    height: 55px;
    transform-origin: bottom center;
    z-index: 2;
}

.tv-antenna.left-antenna {
    left: 28%;
    transform: rotate(-25deg);
}

.tv-antenna.right-antenna {
    right: 28%;
    transform: rotate(25deg);
}

.antenna-stick {
    width: 4px;
    height: 100%;
    background: linear-gradient(to right, #555, #999, #555);
    border-radius: 2px;
    box-shadow: 1px 0 2px rgba(0, 0, 0, 0.3);
}

.antenna-tip {
    position: absolute;
    top: -6px;
    left: -5px;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #bbb, #666);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ===== 电视机机身 ===== */
.tv-body {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: linear-gradient(145deg, #e8dcc8 0%, #d4c4a8 50%, #c0b095 100%);
    border-radius: 20px 20px 12px 12px;
    padding: 22px 20px 20px;
    display: flex;
    gap: 16px;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -4px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid #b0a085;
}

/* 机身木纹纹理 */
.tv-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(90deg,
            transparent 0px, transparent 3px,
            rgba(139, 115, 85, 0.04) 3px, rgba(139, 115, 85, 0.04) 6px);
    border-radius: 18px 18px 10px 10px;
    pointer-events: none;
}

/* ===== 屏幕外框（黑色边框） ===== */
.tv-screen-bezel {
    flex: 1;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 14px;
    padding: 16px;
    box-shadow:
        inset 0 3px 6px rgba(0, 0, 0, 0.6),
        inset 0 -1px 2px rgba(255, 255, 255, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

/* ===== 屏幕（统一单屏，无分隔） ===== */
.tv-screen {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f380f;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

/* ===== 雪花屏 ===== */
.tv-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg,
            rgba(255, 255, 255, 0.06) 0px, rgba(255, 255, 255, 0.06) 1px,
            transparent 1px, transparent 2px);
    opacity: 0.4;
    animation: static-noise 0.15s infinite;
    z-index: 1;
}

.tv-static::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(155,188,15,0.05) 0%, transparent 50%);
    animation: static-glow 0.3s infinite alternate;
}

@keyframes static-noise {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-2px, 1px); }
    50% { transform: translate(1px, -1px); }
    75% { transform: translate(-1px, 2px); }
    100% { transform: translate(2px, 0); }
}

@keyframes static-glow {
    from { opacity: 0.3; }
    to { opacity: 0.6; }
}

/* ===== 待机画面 ===== */
.tv-standby {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.tv-standby-icon {
    font-size: 48px;
    margin-bottom: 14px;
    opacity: 0.4;
    animation: blink 2s infinite;
}

.tv-standby-text {
    font-family: var(--pixel-font);
    font-size: 20px;
    color: rgba(255, 255, 255, 0.35);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.tv-standby-hint {
    font-family: var(--pixel-font);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
}

/* ===== 连接中 ===== */
.tv-connecting {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

/* ===== 信号丢失 ===== */
.tv-lost {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.tv-connect-text {
    font-family: var(--pixel-font);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
    z-index: 4;
    animation: blink 1s infinite;
    letter-spacing: 2px;
}

/* ===== 玩家状态指示（左上角） ===== */
.tv-player-indicators {
    position: absolute;
    top: 8px;
    left: 10px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.player-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--pixel-font);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    opacity: 0.25;
    transition: all 0.3s;
}

.player-indicator.active {
    opacity: 1;
}

.p1-indicator {
    background: rgba(155, 188, 15, 0.85);
    color: #0f380f;
}

.p1-indicator.active {
    box-shadow: 0 0 8px rgba(155, 188, 15, 0.5);
}

.p2-indicator {
    background: rgba(255, 107, 53, 0.85);
    color: #fff;
}

.p2-indicator.active {
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.5);
}

.pi-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}

.player-indicator.active .pi-dot {
    opacity: 1;
    animation: live-pulse 1s infinite;
}

/* ===== LIVE 徽章（右上角） ===== */
.tv-live-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(230, 57, 70, 0.85);
    padding: 3px 9px;
    border-radius: 4px;
    font-family: var(--pixel-font);
    font-size: 10px;
    color: #fff;
    z-index: 10;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: live-pulse 1s infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===== 镜像内容（全屏） ===== */
.tv-mirror-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    color: var(--retro-light-green);
    font-family: var(--pixel-font);
}

.tv-mirror-screen .game-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

/* 全屏模式字体更大 */
.tv-mirror-screen .screen-gamelist { padding: 10px; }
.tv-mirror-screen .gamelist-header { font-size: 13px; margin-bottom: 8px; }
.tv-mirror-screen .game-item { padding: 8px 12px; gap: 10px; }
.tv-mirror-screen .game-item-cover { width: 44px; height: 44px; font-size: 22px; }
.tv-mirror-screen .game-item-name { font-size: 12px; }
.tv-mirror-screen .game-item-type { font-size: 9px; }
.tv-mirror-screen .screen-playing .playing-header { font-size: 12px; padding: 5px 10px; }
.tv-mirror-screen .screen-playing .playing-placeholder .ph-icon { font-size: 40px; }
.tv-mirror-screen .screen-playing .playing-placeholder .ph-text { font-size: 11px; }
.tv-mirror-screen .screen-boot .boot-logo { font-size: 22px; margin-bottom: 14px; }
.tv-mirror-screen .screen-boot .boot-text { font-size: 11px; }
.tv-mirror-screen .screen-boot .boot-bar { width: 160px; height: 6px; }

/* ===== CRT 扫描线效果 ===== */
.tv-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 0, 0, 0.15) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 5;
    opacity: 0.4;
}

/* ===== 暗角效果 ===== */
.tv-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center,
        rgba(0, 0, 0, 0) 60%,
        rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 6;
    border-radius: 8px;
}

/* ===== 品牌标 ===== */
.tv-brand {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--pixel-font);
    font-size: 9px;
    color: #8b7355;
    letter-spacing: 2px;
    z-index: 3;
}

/* ===== 右侧控制面板 ===== */
.tv-controls-panel {
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
    flex-shrink: 0;
}

.tv-knob {
    width: 42px;
    height: 42px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.knob-inner {
    width: 36px;
    height: 36px;
    background: radial-gradient(circle at 30% 30%, #888, #555 50%, #333 100%);
    border-radius: 50%;
    border: 2px solid #777;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    position: relative;
    transition: transform 0.3s;
}

.knob-inner::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: #ddd;
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

.tv-knob-channel .knob-inner { transform: rotate(-30deg); }
.tv-knob-volume .knob-inner { transform: rotate(45deg); }

.knob-label {
    font-family: var(--pixel-font);
    font-size: 7px;
    color: #8b7355;
    margin-top: 2px;
}

/* ===== 扬声器格栅 ===== */
.tv-speaker {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 4px;
}

.speaker-row {
    width: 38px;
    height: 3px;
    background: repeating-linear-gradient(90deg,
        #555 0px, #555 2px,
        #888 2px, #888 4px);
    border-radius: 2px;
    opacity: 0.6;
}

/* ===== 声音开关 ===== */
.tv-sound-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    margin-top: 4px;
    padding: 4px 0;
    transition: all 0.2s;
}

.sound-toggle-track {
    width: 36px;
    height: 18px;
    background: linear-gradient(145deg, #333, #222);
    border-radius: 10px;
    border: 2px solid #555;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.sound-toggle-knob {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 30% 30%, var(--retro-light-green), #5a8a15);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5), 0 0 6px rgba(155,188,15,0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 开启状态：旋钮在右侧，绿色轨道 */
.tv-sound-toggle.on .sound-toggle-track {
    background: linear-gradient(145deg, #2a4a0a, #1a3a08);
    border-color: var(--retro-light-green);
}

.tv-sound-toggle.on .sound-toggle-knob {
    left: 19px;
    background: radial-gradient(circle at 30% 30%, #9bdc1e, #6a8f15);
    box-shadow: 0 1px 3px rgba(0,0,0,0.5), 0 0 10px var(--retro-light-green);
}

/* 关闭状态：旋钮在左侧，红色轨道 */
.tv-sound-toggle.off .sound-toggle-track {
    background: linear-gradient(145deg, #4a1a1a, #2a0a0a);
    border-color: var(--retro-red);
}

.tv-sound-toggle.off .sound-toggle-knob {
    left: 1px;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #cc3333);
    box-shadow: 0 1px 3px rgba(0,0,0,0.5), 0 0 8px var(--retro-red);
}

.sound-toggle-icon {
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s;
}

.tv-sound-toggle.off .sound-toggle-icon {
    opacity: 0.5;
}

.sound-toggle-label {
    font-family: var(--pixel-font);
    font-size: 6px;
    color: #8b7355;
    letter-spacing: 1px;
}

/* ===== 电源指示灯 ===== */
.tv-power-led {
    width: 9px;
    height: 9px;
    background: var(--retro-red);
    border-radius: 50%;
    margin-top: 6px;
    box-shadow: 0 0 6px var(--retro-red);
    animation: led-pulse 2s infinite;
}

@keyframes led-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== TV 底座 ===== */
.tv-stand {
    width: 40%;
    height: 20px;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    margin-top: -2px;
    position: relative;
    z-index: -1;
}

.tv-stand-leg {
    width: 36px;
    height: 20px;
    background: linear-gradient(145deg, #c0b095, #a09075);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================
   右侧二维码面板（占 1/3）
   ============================================ */
.qr-panel {
    flex: 1;
    min-width: 0;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(155, 188, 15, 0.15);
    border-radius: 16px;
    overflow-y: auto;
    overflow-x: hidden;
}

.qr-panel::-webkit-scrollbar {
    width: 4px;
}

/* ===== 面板标题 ===== */
.qr-panel-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(155, 188, 15, 0.1);
}

.qr-panel-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.qr-panel-title {
    font-family: var(--pixel-font);
    font-size: 13px;
    color: var(--retro-light-green);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.qr-panel-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}

/* ===== 二维码卡片 ===== */
.qr-card {
    background: rgba(13, 13, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.qr-card-p1 {
    border-color: rgba(155, 188, 15, 0.2);
    box-shadow: 0 0 12px rgba(155, 188, 15, 0.05);
}

.qr-card-p1:hover {
    border-color: rgba(155, 188, 15, 0.4);
    box-shadow: 0 0 20px rgba(155, 188, 15, 0.12);
}

.qr-card-p2 {
    border-color: rgba(255, 107, 53, 0.2);
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.05);
}

.qr-card-p2:hover {
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.12);
}

/* ===== 卡片顶部（标签 + 状态） ===== */
.qr-card-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qr-card-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--pixel-font);
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.qr-card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 9px;
    font-weight: bold;
}

.p1-label {
    background: rgba(155, 188, 15, 0.15);
    border: 1px solid rgba(155, 188, 15, 0.3);
    color: var(--retro-light-green);
}

.p1-label .qr-card-num {
    background: var(--retro-light-green);
    color: var(--retro-dark-green);
}

.p2-label {
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: var(--retro-orange);
}

.p2-label .qr-card-num {
    background: var(--retro-orange);
    color: #fff;
}

/* ===== 卡片状态 ===== */
.qr-card-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--pixel-font);
    font-size: 8px;
    color: rgba(255, 255, 255, 0.4);
}

.status-led {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.qr-card-p1 .status-led.connected {
    background: var(--retro-light-green);
    box-shadow: 0 0 6px var(--retro-light-green);
    animation: live-pulse 1.5s infinite;
}

.qr-card-p2 .status-led.connected {
    background: var(--retro-orange);
    box-shadow: 0 0 6px var(--retro-orange);
    animation: live-pulse 1.5s infinite;
}

.qr-card-p1 .qr-card-status.connected {
    color: var(--retro-light-green);
}

.qr-card-p2 .qr-card-status.connected {
    color: var(--retro-orange);
}

/* ===== 二维码框 ===== */
.qr-frame {
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.qr-card-p1 .qr-frame {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 12px rgba(155, 188, 15, 0.1);
}

.qr-card-p2 .qr-frame {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 12px rgba(255, 107, 53, 0.1);
}

.qr-frame #qrcode-p1,
.qr-frame #qrcode-p2 {
    width: 120px;
    height: 120px;
}

.qr-frame #qrcode-p1 img,
.qr-frame #qrcode-p1 canvas,
.qr-frame #qrcode-p2 img,
.qr-frame #qrcode-p2 canvas {
    border-radius: 6px;
}

/* ===== 二维码角标 ===== */
.qr-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    z-index: 1;
}

.qr-card-p1 .qr-corner { border: 3px solid var(--retro-light-green); }
.qr-card-p2 .qr-corner { border: 3px solid var(--retro-orange); }

.qr-corner.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.qr-corner.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; border-radius: 0 6px 0 0; }
.qr-corner.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; border-radius: 0 0 0 6px; }
.qr-corner.br { bottom: -2px; right: -2px; border-left: none; border-top: none; border-radius: 0 0 6px 0; }

/* ===== "已进入" 遮罩 ===== */
.qr-entered-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 26, 0.85);
    backdrop-filter: blur(2px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.qr-entered-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.qr-entered-text {
    font-family: var(--pixel-font);
    font-size: 18px;
    letter-spacing: 2px;
    padding: 8px 16px;
    border-radius: 8px;
    animation: entered-pulse 1.5s infinite;
}

.qr-card-p1 .qr-entered-text {
    color: var(--retro-light-green);
    border: 2px solid var(--retro-light-green);
    text-shadow: 0 0 10px var(--retro-light-green);
    box-shadow: 0 0 16px rgba(155, 188, 15, 0.3);
}

.qr-card-p2 .qr-entered-text {
    color: var(--retro-orange);
    border: 2px solid var(--retro-orange);
    text-shadow: 0 0 10px var(--retro-orange);
    box-shadow: 0 0 16px rgba(255, 107, 53, 0.3);
}

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

/* ===== 卡片底部 ===== */
.qr-card-footer {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qr-card-hint {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
}

/* ===== 分隔线 ===== */
.qr-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.qr-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.qr-divider-text {
    font-family: var(--pixel-font);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
}

/* ===== 面板底部信息 ===== */
.qr-panel-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(155, 188, 15, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.info-icon {
    font-size: 16px;
}

.info-label {
    color: rgba(255, 255, 255, 0.4);
}

.info-value {
    font-family: var(--pixel-font);
    font-size: 13px;
    color: var(--retro-yellow);
}

.btn-retro-sm {
    flex: 1;
    font-family: var(--pixel-font);
    font-size: 8px;
    padding: 5px 8px;
    background: rgba(155, 188, 15, 0.1);
    border: 1px solid rgba(155, 188, 15, 0.25);
    color: var(--retro-light-green);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
    text-align: center;
}

.btn-retro-sm:hover {
    background: rgba(155, 188, 15, 0.25);
    box-shadow: 0 0 8px rgba(155, 188, 15, 0.2);
}

.btn-retro-sm:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.btn-refresh-sm {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
}

.btn-refresh-sm:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

/* ===== 底部状态栏 ===== */
.pc-footer {
    flex-shrink: 0;
    height: 32px;
    background: rgba(13, 13, 26, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(155, 188, 15, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    z-index: 50;
}

.footer-left, .footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-player {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
}

.footer-dot.p1-dot.connected {
    background: var(--retro-light-green);
    box-shadow: 0 0 6px var(--retro-light-green);
}

.footer-dot.p2-dot.connected {
    background: var(--retro-orange);
    box-shadow: 0 0 6px var(--retro-orange);
}

.footer-sep {
    color: rgba(255, 255, 255, 0.15);
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .pc-main { gap: 12px; padding: 10px 16px; }
    .qr-panel { max-width: 300px; padding: 12px; gap: 10px; }
    .qr-frame { width: 120px; height: 120px; }
    .qr-frame #qrcode-p1, .qr-frame #qrcode-p2 { width: 102px; height: 102px; }
    .nav-title { display: none; }
}

@media (max-width: 900px) {
    .pc-main { gap: 8px; padding: 8px 12px; }
    .qr-panel { max-width: 240px; padding: 10px; gap: 8px; }
    .qr-panel-header { padding-bottom: 6px; }
    .qr-panel-icon { font-size: 22px; }
    .qr-panel-title { font-size: 11px; }
    .qr-panel-sub { font-size: 9px; }
    .qr-card { padding: 8px; gap: 6px; }
    .qr-card-label { font-size: 8px; padding: 3px 6px; }
    .qr-card-num { width: 14px; height: 14px; font-size: 7px; }
    .qr-frame { width: 96px; height: 96px; }
    .qr-frame #qrcode-p1, .qr-frame #qrcode-p2 { width: 80px; height: 80px; }
    .qr-corner { width: 12px; height: 12px; }
    .qr-card-hint { font-size: 8px; }
    .qr-card-status { font-size: 7px; }
    .btn-retro-sm { font-size: 7px; padding: 3px 6px; }
    .info-item { font-size: 10px; }
    .info-value { font-size: 11px; }
    .tv-body { padding: 16px 14px 14px; gap: 10px; }
    .tv-screen-bezel { padding: 10px; }
    .tv-controls-panel { width: 48px; gap: 8px; }
    .tv-knob { width: 34px; height: 34px; }
    .knob-inner { width: 28px; height: 28px; }
    .speaker-row { width: 30px; }
    .sound-toggle-track { width: 28px; height: 14px; }
    .sound-toggle-knob { width: 10px; height: 10px; }
    .tv-sound-toggle.on .sound-toggle-knob { left: 15px; }
    .sound-toggle-icon { font-size: 12px; }
    .sound-toggle-label { font-size: 5px; }
    .tv-standby-icon { font-size: 36px; }
    .tv-standby-text { font-size: 16px; }
    .tv-standby-hint { font-size: 9px; }
    .footer-right span:last-child { display: none; }
}

@media (max-width: 700px) {
    .pc-main { flex-direction: column; gap: 6px; padding: 6px 8px; }
    .tv-section { flex: none; }
    .qr-panel {
        flex-direction: row;
        max-width: 100%;
        padding: 8px;
        gap: 8px;
        overflow-x: auto;
    }
    .qr-panel-header { display: none; }
    .qr-panel-info { display: none; }
    .qr-divider { flex-direction: column; }
    .qr-divider-line { width: 1px; height: 100%; min-height: 40px; }
    .qr-card { min-width: 140px; }
    .qr-frame { width: 100px; height: 100px; }
    .qr-frame #qrcode-p1, .qr-frame #qrcode-p2 { width: 84px; height: 84px; }
    .pc-nav { padding: 0 12px; }
    .nav-logo span { display: none; }
    .pc-footer { font-size: 9px; padding: 0 8px; }
}
