/* ========================================
   摸鱼模式 - 专属样式
   ======================================== */

/* ---------- 场景选择页 ---------- */
.scene-selector {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 0;
}

.selector-header {
    text-align: center;
    margin-bottom: 2rem;
}

.selector-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary, #e4e4e7);
    margin-bottom: 0.5rem;
}

.selector-header h2 i {
    margin-right: 0.5rem;
    color: var(--accent, #646cff);
}

.selector-header p {
    color: var(--text-secondary, #a1a1aa);
    font-size: 0.95rem;
}

.selector-header kbd {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
    font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace;
    background: var(--bg-tertiary, #27272a);
    border: 1px solid var(--border-color, #3f3f46);
    border-radius: 4px;
    color: var(--text-secondary, #a1a1aa);
}

.scene-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.scene-card {
    flex: 0 0 auto;
    width: 150px;
    background: var(--bg-secondary, #18181b);
    border: 1px solid var(--border-color, #3f3f46);
    border-radius: 10px;
    padding: 0.75rem 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.scene-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    transition: opacity 0.25s ease;
}

.scene-card:hover {
    border-color: var(--accent, #646cff);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(100, 100, 255, 0.12);
}

.scene-card:hover::before {
    opacity: 0.08;
}

.scene-card .card-icon {
    font-size: 1.6rem;
    margin-bottom: 0.35rem;
}

.scene-card h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary, #e4e4e7);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.scene-card p {
    font-size: 0.7rem;
    color: var(--text-secondary, #a1a1aa);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scene-card .card-hint {
    margin-top: 0.4rem;
    font-size: 0.65rem;
    color: var(--text-tertiary, #71717a);
}

/* ---------- 场景舞台（全屏） ---------- */
.scene-stage {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    overflow: hidden;
}

.scene-stage.hidden {
    display: none;
}

.scene-stage:fullscreen {
    cursor: none;
}

.scene-stage:-webkit-full-screen {
    cursor: none;
}

.scene-content {
    width: 100%;
    height: 100%;
    background: transparent;
    position: relative;
}

/* ==========================================
   场景 1: macOS 系统升级 (仿真实安装界面)
   ========================================== */
.scene-macos-upgrade {
    position: absolute;
    inset: 0;
    background: #1d1d1f;
    color: #f5f5f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    text-align: center;
}

.scene-macos-upgrade .macos-body {
    text-align: center;
}

.scene-macos-upgrade .macos-body .apple-logo {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.scene-macos-upgrade .macos-body .apple-logo svg {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.05));
}

.scene-macos-upgrade .macos-body h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #f5f5f7;
    letter-spacing: -0.02em;
}

.scene-macos-upgrade .macos-body .macos-version {
    font-size: 0.95rem;
    color: #86868b;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.scene-macos-upgrade .macos-body .progress-bar-container {
    width: 240px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0 auto 0.8rem;
    overflow: hidden;
}

.scene-macos-upgrade .macos-body .progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f5f5f7, #a1a1aa);
    border-radius: 2px;
    transition: width 0.8s ease;
}

.scene-macos-upgrade .macos-body .progress-text {
    font-size: 0.8rem;
    color: #86868b;
    margin-bottom: 0.3rem;
    font-weight: 400;
}

.scene-macos-upgrade .macos-body .macos-footnote {
    font-size: 0.7rem;
    color: #636366;
    margin-top: 2.5rem;
}

/* ==========================================
   场景 2: Windows 10 系统更新
   ========================================== */
.scene-win10-update {
    position: absolute;
    inset: 0;
    background: #0078d7;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    text-align: center;
}

.scene-win10-update .win10-logo {
    font-size: 56px;
    margin-bottom: 1.8rem;
    color: #fff;
    opacity: 0.9;
}

.scene-win10-update h2 {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}

.scene-win10-update .win10-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
}

.scene-win10-update .win10-percent {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.8rem;
}

.scene-win10-update .win10-spinner {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 2rem;
}

.scene-win10-update .win10-spinner .dot {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    animation: win10DotPulse 1.6s ease-in-out infinite;
}

.scene-win10-update .win10-spinner .dot:nth-child(2) { animation-delay: 0.25s; }
.scene-win10-update .win10-spinner .dot:nth-child(3) { animation-delay: 0.5s; }

@keyframes win10DotPulse {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

.scene-win10-update .win10-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
}

/* ==========================================
   场景 3: Windows 11 系统更新
   ========================================== */
.scene-win11-update {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #1b1b1f 0%, #121216 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI Variable', 'Segoe UI', 'Microsoft YaHei', sans-serif;
    text-align: center;
}

.scene-win11-update .win11-logo {
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.scene-win11-update .win11-logo svg {
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.05));
}

.scene-win11-update h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.scene-win11-update .win11-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

.scene-win11-update .win11-percent {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.2rem;
    font-variant-numeric: tabular-nums;
}

.scene-win11-update .win11-ring {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.scene-win11-update .win11-ring .ring-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #fff;
    border-radius: 50%;
    animation: win11RingSpin 1s linear infinite;
}

@keyframes win11RingSpin {
    to { transform: rotate(360deg); }
}

.scene-win11-update .win11-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1rem;
}

/* ==========================================
   场景 4: Windows 10 蓝屏崩溃 (BSOD)
   ========================================== */
.scene-win10-bsod {
    position: absolute;
    inset: 0;
    background: #1167b1;
    color: #fff;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    padding: 60px 80px;
    align-items: flex-start;
    justify-content: flex-start;
}

.scene-win10-bsod .bsod-sad {
    font-size: 72px;
    margin-bottom: 1.2rem;
    line-height: 1;
    font-weight: 700;
}

.scene-win10-bsod .bsod-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.scene-win10-bsod .bsod-body {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.scene-win10-bsod .bsod-body .bsod-error-code {
    display: block;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
}

.scene-win10-bsod .bsod-body .bsod-err-name {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.scene-win10-bsod .bsod-progress {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.scene-win10-bsod .bsod-progress i {
    margin-right: 6px;
}

.scene-win10-bsod .bsod-qr {
    position: absolute;
    bottom: 50px;
    right: 80px;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
}

.scene-win10-bsod .bsod-qr .qr-placeholder {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 auto 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* ==========================================
   场景 5: Windows 11 绿屏崩溃 (GSOD)
   ========================================== */
.scene-win11-bsod {
    position: absolute;
    inset: 0;
    background: #007a5e;
    color: #fff;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI Variable', 'Segoe UI', 'Microsoft YaHei', sans-serif;
    padding: 60px 80px;
    align-items: flex-start;
    justify-content: flex-start;
}

.scene-win11-bsod .bsod-sad {
    font-size: 64px;
    margin-bottom: 1rem;
    line-height: 1;
    font-weight: 600;
}

.scene-win11-bsod .bsod-title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
}

.scene-win11-bsod .bsod-body {
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.scene-win11-bsod .bsod-body .bsod-error-code {
    display: block;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.scene-win11-bsod .bsod-body .bsod-err-name {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

.scene-win11-bsod .bsod-progress {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.scene-win11-bsod .bsod-progress i {
    margin-right: 6px;
}

.scene-win11-bsod .bsod-qr {
    position: absolute;
    bottom: 50px;
    right: 80px;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
}

.scene-win11-bsod .bsod-qr .qr-placeholder {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 auto 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* ==========================================
   场景 6: macOS Kernel Panic
   ========================================== */
.scene-kernel-panic {
    position: absolute;
    inset: 0;
    background: #000;
    color: #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    text-align: center;
}

.scene-kernel-panic .panic-top {
    font-size: 60px;
    color: #666;
    margin-bottom: 1.5rem;
}

.scene-kernel-panic .panic-lang {
    font-size: 1rem;
    line-height: 2;
    color: #999;
    max-width: 600px;
    margin: 0 auto;
}

.scene-kernel-panic .panic-lang .lang-en {
    color: #ccc;
}

.scene-kernel-panic .panic-lang .lang-zh {
    color: #aaa;
    font-size: 0.95rem;
}

.scene-kernel-panic .panic-lang .lang-jp {
    color: #888;
    font-size: 0.9rem;
}

.scene-kernel-panic .panic-bottom {
    position: absolute;
    bottom: 80px;
    font-size: 0.8rem;
    color: #555;
}

/* ==========================================
   场景 7: 系统扫描检测
   ========================================== */
.scene-system-scan {
    position: absolute;
    inset: 0;
    background: #0a0a0a;
    color: #00ff41;
    display: flex;
    flex-direction: column;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    align-items: flex-start;
    padding: 40px 48px;
    justify-content: flex-start;
}

.scene-system-scan .scan-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.15);
    font-size: 0.8rem;
    color: rgba(0, 255, 65, 0.6);
}

.scene-system-scan .scan-terminal {
    width: 100%;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.scene-system-scan .scan-terminal .scan-log {
    font-size: 0.8rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-all;
}

.scene-system-scan .scan-terminal .scan-log .line-ok {
    color: #00ff41;
}

.scene-system-scan .scan-terminal .scan-log .line-warn {
    color: #ffaa00;
}

.scene-system-scan .scan-terminal .scan-log .line-err {
    color: #ff3333;
}

.scene-system-scan .scan-terminal .scan-blinking-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #00ff41;
    animation: scanBlink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes scanBlink {
    50% { opacity: 0; }
}

/* ---------- 退出提示 ---------- */
.scene-exit-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: -apple-system, 'SF Pro Display', 'Microsoft YaHei', sans-serif;
}

.scene-exit-hint.show {
    opacity: 1;
}

.scene-exit-hint kbd {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace;
    color: rgba(255, 255, 255, 0.8);
}

.scene-exit-hint i {
    margin-right: 4px;
}

/* ---------- 退出确认对话框 ---------- */
.scene-exit-dialog {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-family: -apple-system, 'SF Pro Display', 'Microsoft YaHei', sans-serif;
}

.scene-exit-dialog.hidden {
    display: none;
}

.scene-exit-dialog .dialog-box {
    background: var(--bg-secondary, #18181b);
    border: 1px solid var(--border-color, #3f3f46);
    border-radius: 14px;
    padding: 1.75rem 2rem;
    text-align: center;
    max-width: 360px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.scene-exit-dialog .dialog-box h3 {
    font-size: 1.1rem;
    color: var(--text-primary, #e4e4e7);
    margin-bottom: 0.5rem;
}

.scene-exit-dialog .dialog-box p {
    font-size: 0.85rem;
    color: var(--text-secondary, #a1a1aa);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.scene-exit-dialog .dialog-box .dialog-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.scene-exit-dialog .dialog-box .dialog-actions button {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color, #3f3f46);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-tertiary, #27272a);
    color: var(--text-primary, #e4e4e7);
}

.scene-exit-dialog .dialog-box .dialog-actions button:hover {
    background: var(--bg-hover, #3f3f46);
}

.scene-exit-dialog .dialog-box .dialog-actions button.btn-confirm {
    background: var(--accent, #646cff);
    border-color: var(--accent, #646cff);
    color: #fff;
}

.scene-exit-dialog .dialog-box .dialog-actions button.btn-confirm:hover {
    background: #5555e0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .scene-grid {
        gap: 0.5rem;
    }

    .scene-card {
        width: 120px;
        padding: 0.6rem 0.4rem;
    }

    .scene-card .card-icon {
        font-size: 1.3rem;
    }

    .scene-win10-bsod,
    .scene-win11-bsod {
        padding: 30px 24px;
    }

    .scene-win10-bsod .bsod-sad,
    .scene-win11-bsod .bsod-sad {
        font-size: 48px;
    }

    .scene-win10-bsod .bsod-title,
    .scene-win11-bsod .bsod-title {
        font-size: 1.1rem;
    }

    .scene-win10-bsod .bsod-body,
    .scene-win11-bsod .bsod-body {
        font-size: 0.85rem;
    }

    .scene-win10-bsod .bsod-qr,
    .scene-win11-bsod .bsod-qr {
        display: none;
    }

    .scene-system-scan {
        padding: 20px 16px;
    }

    .scene-system-scan .scan-terminal .scan-log {
        font-size: 0.7rem;
    }

    .scene-kernel-panic .panic-lang {
        font-size: 0.85rem;
        padding: 0 20px;
    }

    .scene-macos-upgrade .macos-body .apple-logo svg {
        width: 56px;
        height: 56px;
    }

    .scene-win10-update h2 {
        font-size: 1.5rem;
    }

    .scene-win11-update h2 {
        font-size: 1.4rem;
    }

    .selector-header h2 {
        font-size: 1.4rem;
    }
}
