/* ============================================
   Interview Guard - 现代化UI样式
   ============================================ */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 防止页面刷新闪烁 */
html {
    visibility: hidden;
}

html.loaded {
    visibility: visible;
}

* {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    height: 100%;
    color: #fff;
}

body {
    background:
        linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.65)),
        url("../bg.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
}

@media (max-width: 820px) {
    body {
        background-attachment: scroll;
    }
}

/* ============================================
   顶部导航栏
   ============================================ */
.top-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 12px 0;
    backdrop-filter: blur(12px);
    background: linear-gradient(180deg, rgba(0,0,0,.58), rgba(0,0,0,.26));
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    min-height: 56px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}

.navbar-logo {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    object-fit: cover;
    flex: 0 0 auto;
    overflow: hidden;
}

.navbar-title {
    font-weight: 950;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.navbar-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-login-btn {
    background: #fff;
    color: #000;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform .15s ease;
}

.navbar-login-btn:active {
    transform: scale(.98);
}

.navbar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.2);
    cursor: pointer;
}

.navbar-username {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar-logout {
    font-size: 11px;
    color: rgba(255,255,255,.6);
    cursor: pointer;
    text-decoration: underline;
}

.navbar-logout:hover {
    color: rgba(255,255,255,.9);
}

/* ============================================
   主内容区域
   ============================================ */
.main-content {
    padding-top: 0;
    min-height: 100vh;
    padding-bottom: 0;
}

/* 第一页：创建房间和加入房间 */
.page1 {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 40px;
}

.wrap {
    padding: 0 20px;
    max-width: 420px;
    width: 100%;
}

.page1 h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.2;
    color: #fff;
}

@media (max-width: 480px) {
    .page1 h1 {
        font-size: 30px;
    }
}

.page1 h1 span {
    color: #FFD24D;
}

.page1 p {
    margin: 18px 0 36px;
    font-size: 15px;
    line-height: 1.7;
    opacity: .9;
    color: rgba(255,255,255,.9);
}

@media (max-width: 480px) {
    .page1 p {
        font-size: 14px;
        margin: 16px 0 28px;
    }
}

.page1 .btn {
    display: block;
    width: 100%;
    padding: 16px 0;
    margin-bottom: 16px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform .15s ease;
}

.page1 .btn:active {
    transform: scale(.98);
}

.page1 .btn.primary {
    background: #fff;
    color: #000;
}

.page1 .btn.secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.6);
}

.page1 .hint {
    margin-top: 28px;
    font-size: 13px;
    opacity: .65;
    line-height: 1.6;
    color: rgba(255,255,255,.65);
}

/* 第二页：让远程考核更可靠 */
.page2 {
    min-height: 100vh;
    padding: 60px 20px 40px;
    max-width: 1020px;
    margin: 0 auto;
}

.sectionTitle {
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.2px;
    margin: 0 0 12px;
    text-align: center;
    color: #fff;
}

@media (max-width: 480px) {
    .sectionTitle {
        font-size: 24px;
    }
}

.sectionDesc {
    margin: 0 auto 32px;
    color: rgba(255,255,255,.85);
    font-size: 15px;
    line-height: 1.75;
    max-width: 720px;
    text-align: center;
}

@media (max-width: 480px) {
    .sectionDesc {
        font-size: 14px;
    }
}

/* 预览图网格 */
.previewGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

@media (max-width: 900px) {
    .previewGrid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.previewCard {
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0,0,0,.3);
    overflow: hidden;
}

.previewHeader {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.previewHeader .name {
    font-weight: 950;
    font-size: 15px;
    letter-spacing: .2px;
    color: #fff;
}

.previewHeader .hint {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,.6);
    font-weight: 800;
}

.previewBody {
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.previewImg {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.1);
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    object-fit: contain;
}

/* 手机图片：竖屏比例 */
.previewCard:first-child .previewImg {
    width: 90%;
    max-width: 360px;
    height: auto;
    min-width: 260px;
}

/* 电脑图片：横屏比例 */
.previewCard:last-child .previewImg {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 520px;
}

@media (max-width: 900px) {
    .previewCard:first-child .previewImg {
        width: 85%;
        max-width: 300px;
        min-width: 220px;
    }
    .previewCard:last-child .previewImg {
        max-height: 450px;
    }
}

@media (max-width: 480px) {
    .previewCard:first-child .previewImg {
        width: 80%;
        max-width: 260px;
        min-width: 200px;
    }
    .previewCard:last-child .previewImg {
        max-height: 360px;
    }
}

.previewCaption {
    margin-top: 14px;
    padding: 0 4px;
    color: rgba(255,255,255,.65);
    font-size: 13px;
    line-height: 1.6;
}

/* 底部信息 */
.infoBox {
    margin-top: 40px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.28);
    backdrop-filter: blur(10px);
    text-align: center;
    color: rgba(255,255,255,.75);
    font-size: 14px;
    line-height: 1.7;
}

.infoBox strong {
    color: rgba(255,255,255,.95);
    font-weight: 900;
}

.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    color: rgba(255,255,255,.5);
    font-size: 12px;
}

.footer a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,.3);
}

/* ============================================
   卡片样式
   ============================================ */
.glass-card {
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.15);
}

.card-header {
    padding: 24px 24px 0;
    text-align: center;
}

.card-body {
    padding: 24px;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.card-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,.7);
}

/* ============================================
   按钮样式
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid rgba(255,255,255,.6);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.8);
}

/* 在弹窗中的按钮样式 */
.modal-content .btn-primary {
    background: #fff;
    color: #000;
}

.modal-content .btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.6);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* ============================================
   输入框样式
   ============================================ */
.input-field {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font-size: 15px;
    width: 100%;
    transition: all 0.2s ease;
}

.input-field::placeholder {
    color: rgba(255,255,255,.5);
}

.input-field:focus {
    outline: none;
    border-color: rgba(255,255,255,.4);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
    background: rgba(255,255,255,.15);
}

.input-prefix {
    background: #f1f5f9;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 12px;
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

/* ============================================
   时间选择器 - 优化样式
   ============================================ */
.time-selector-section {
    background: rgba(0,0,0,.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,.1);
}

.time-selector-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.time-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.time-option {
    background: rgba(255,255,255,.1);
    border: 2px solid rgba(255,255,255,.2);
    border-radius: 12px;
    padding: 12px 18px;
    color: rgba(255,255,255,.9);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    text-align: center;
}

.time-option:hover {
    border-color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.15);
}

.time-option.selected {
    background: #fff;
    border-color: #fff;
    color: #000;
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

.custom-time-input {
    margin-top: 12px;
}

.custom-time-input .input-field {
    text-align: center;
    font-weight: 600;
}

/* ============================================
   屏幕切换动画
   ============================================ */
.screen {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.screen.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 锁屏界面特殊处理：确保全屏显示 */
#lockScreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    min-height: -webkit-fill-available; /* iOS Safari 兼容 */
    z-index: 99998 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f0f1a 100%) !important;
}

#lockScreen.active {
    display: block !important;
}

/* ============================================
   登录弹窗
   ============================================ */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.login-modal.active {
    display: flex;
}

.login-modal-content {
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 24px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,.3);
    animation: modalSlideIn 0.3s ease;
    color: #fff;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-modal-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.login-modal-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.login-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-align: center;
    flex: 1;
}

.login-modal-logo-spacer {
    width: 48px;
    flex-shrink: 0;
}

.login-modal-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,.7);
    text-align: center;
}

.form-footer-link {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.form-footer-link:hover {
    color: var(--primary-dark);
}

.login-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,.2);
    margin-bottom: 24px;
}

.login-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: rgba(255,255,255,.6);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
}

.login-tab.active {
    color: #fff;
    border-bottom-color: #fff;
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    margin-bottom: 8px;
}

/* 登录弹窗中的输入框样式 */
.login-modal-content .input-field {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font-size: 15px;
    width: 100%;
    transition: all 0.2s ease;
}

.login-modal-content .input-field::placeholder {
    color: rgba(255,255,255,.5);
}

.login-modal-content .input-field:focus {
    outline: none;
    border-color: rgba(255,255,255,.4);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
    background: rgba(255,255,255,.15);
}

/* 登录弹窗中的输入前缀样式 */
.login-modal-content .input-prefix {
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    padding: 14px 12px;
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

/* 登录弹窗中的按钮样式 */
.login-modal-content .btn-primary {
    background: #fff;
    color: #000;
}

.login-modal-content .btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.6);
}

.login-modal-content .btn-secondary:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.8);
}

.form-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.form-footer {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255,255,255,.6);
    text-align: center;
}

.login-modal-content .form-footer {
    color: rgba(255,255,255,.6);
}

.login-modal-content .form-footer-link {
    color: rgba(255,255,255,.8);
    text-decoration: underline;
}

.login-modal-content .form-footer-link:hover {
    color: #fff;
}

.close-modal-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    cursor: pointer;
    display: flex;
    color: rgba(255,255,255,.8);
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.close-modal-btn:hover {
    background: rgba(255,255,255,.2);
    color: #fff;
    border-color: rgba(255,255,255,.3);
}

/* ============================================
   主界面
   ============================================ */
.main-screen-content {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
}

.welcome-section {
    text-align: center;
    padding: 40px 0 32px;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.welcome-icon i {
    font-size: 36px;
    color: white;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 320px;
    margin: 0 auto;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.action-buttons .btn-primary,
.action-buttons .btn-secondary {
    width: 100%;
}

/* ============================================
   房间ID显示
   ============================================ */
.room-id-container {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.room-id-label {
    font-size: 13px;
    color: rgba(255,255,255,.7);
    font-weight: 600;
    margin-bottom: 8px;
}

.room-id-display {
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 6px;
    color: #fff;
}

/* ============================================
   参与者卡片
   ============================================ */
.participant-card {
    background: var(--bg-color);
    border-radius: 14px;
    padding: 16px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    text-align: center;
}

.participant-card.online {
    border-color: var(--success-color);
    background: #f0fdf4;
}

.participant-card.offline {
    border-color: var(--danger-color);
    background: #fef2f2;
    opacity: 0.85;
}

.participant-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
}

.participant-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-status {
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.participant-status.online {
    color: var(--success-color);
}

.participant-status.offline {
    color: var(--danger-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--success-color);
    box-shadow: 0 0 8px var(--success-color);
}

.status-dot.offline {
    background: var(--danger-color);
    box-shadow: 0 0 8px var(--danger-color);
}

/* ============================================
   头像
   ============================================ */
.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
}

/* ============================================
   锁屏界面 - 手机锁屏风格（深灰微亮）
   ============================================ */
.lock-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    min-height: -webkit-fill-available;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f0f1a 100%) !important;
    background-color: #1a1a2e !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    padding: 20px !important;
    padding-top: 100px !important;
    margin: 0 !important;
    overflow: auto !important;
    box-sizing: border-box !important;
}

.lock-time-display {
    font-size: 80px;
    font-weight: 200;
    letter-spacing: -2px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.lock-date-display {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    font-weight: 300;
}

.lock-status-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px 40px;
    text-align: center;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
}

.lock-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lock-icon i {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.9);
}

.lock-message {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-weight: 500;
}

.lock-submessage {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.lock-room-info {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 40px;
}

.lock-room-info span {
    font-family: 'SF Mono', monospace;
    color: rgba(255, 255, 255, 0.6);
}

.lock-warning {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 32px;
    max-width: 320px;
    width: 100%;
    box-sizing: border-box;
}

.lock-warning-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lock-warning-text i {
    color: #fbbf24;
    font-size: 16px;
}

/* 一键拍照按钮 */
.snapshot-btn {
    position: relative !important;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none !important;
    color: white !important;
    padding: 16px 32px !important;
    border-radius: 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5) !important;
    z-index: 10 !important;
    margin-bottom: 24px !important;
    min-width: 160px !important;
}

.snapshot-btn:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6) !important;
}

.snapshot-btn:active {
    transform: scale(0.98) !important;
}

.snapshot-btn:disabled {
    background: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.snapshot-btn i {
    font-size: 20px !important;
}

.lock-exit-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
}

.lock-exit-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   倒计时显示
   ============================================ */
.countdown-display {
    font-size: 48px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}

.countdown-display.large {
    font-size: 64px;
}

/* ============================================
   警告横幅
   ============================================ */
.warning-banner {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.warning-banner i {
    font-size: 18px;
    color: #d97706;
}

/* ============================================
   离开提醒卡片
   ============================================ */
.left-alert {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 0.3s ease;
}

.left-alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.left-alert-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.left-alert-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(239, 68, 68, 0.4);
}

.left-alert-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 9px;
}

.left-alert-info {
    flex: 1;
    min-width: 0;
}

.left-alert-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.left-alert-message {
    font-size: 12px;
    color: #fca5a5;
    font-weight: 500;
}

.left-alert-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#alertContainer {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

#alertContainer::-webkit-scrollbar {
    width: 4px;
}

#alertContainer::-webkit-scrollbar-track {
    background: transparent;
}

#alertContainer::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

/* ============================================
   弹窗样式
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    padding: 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,.3);
    animation: modalSlideIn 0.3s ease;
    color: #fff;
}

.modal-title {
    font-size: 18px;
    font-weight: 950;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 0.2px;
}

/* ============================================
   Toast 提示
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    z-index: 10001;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    animation: toastSlideUp 0.3s ease;
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ============================================
   监控界面
   ============================================ */
.monitor-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.monitor-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.monitor-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.monitor-title i {
    color: #22c55e;
}

.monitor-countdown {
    text-align: right;
}

.monitor-countdown-label {
    font-size: 12px;
    color: rgba(255,255,255,.7);
    margin-bottom: 2px;
}

.monitor-countdown-value {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.monitor-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.monitor-left-panel {
    min-height: 400px;
}

.monitor-right-panel {
    min-height: 400px;
    position: sticky;
    top: 20px;
}

/* 参与者表格 */
.participant-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.participant-table-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
}

.monitor-stats {
    display: flex;
    gap: 8px;
}

.monitor-stat {
    background: rgba(255,255,255,.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.monitor-stat.online {
    color: #22c55e;
}

.monitor-stat.offline {
    color: #ef4444;
}

.participant-table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    margin-bottom: 16px;
}

/* 事件日志区域（游戏启动器风格） */
.event-log-panel {
    margin-top: 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    display: none; /* 默认隐藏，有日志时通过 JS 显示 */
}

.event-log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255,255,255,.1);
    user-select: none;
    transition: background 0.2s;
}

.event-log-header:hover {
    background: rgba(0, 0, 0, 0.4);
}

.event-log-title {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,.6);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.event-log-title i {
    font-size: 10px;
    opacity: 0.8;
}

.event-log-toggle-icon {
    font-size: 10px;
    color: rgba(255,255,255,.5);
    transition: transform 0.2s ease;
}

.event-log-content {
    max-height: 120px;
    overflow-y: auto;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    transition: max-height 0.3s ease, padding 0.3s ease;
    scroll-behavior: smooth;
}

.event-log-content.collapsed {
    max-height: 0;
    padding: 0 12px;
    overflow: hidden;
}

.event-log-content::-webkit-scrollbar {
    width: 4px;
}

.event-log-content::-webkit-scrollbar-track {
    background: transparent;
}

.event-log-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.2);
    border-radius: 2px;
}

.event-log-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,.3);
}

.event-log-empty {
    text-align: center;
    padding: 16px;
    color: rgba(255,255,255,.4);
    font-size: 10px;
    font-weight: 300;
    font-style: italic;
}

.event-log-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    font-size: 10px;
    font-weight: 300;
    line-height: 1.4;
    color: rgba(255,255,255,.7);
    white-space: nowrap;
    animation: fadeInLog 0.3s ease;
}

@keyframes fadeInLog {
    from {
        opacity: 0;
        transform: translateY(-2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-log-prefix {
    color: rgba(255,255,255,.5);
    font-weight: 400;
    min-width: 24px;
    text-align: right;
}

.event-log-text {
    flex: 1;
    color: rgba(255,255,255,.7);
    font-weight: 300;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-log-time {
    color: rgba(255,255,255,.5);
    font-size: 9px;
    font-weight: 300;
    margin-left: auto;
    white-space: nowrap;
    opacity: 0.8;
}

.event-log-join .event-log-prefix {
    color: rgba(34, 197, 94, 0.7);
}

.event-log-join .event-log-text {
    color: rgba(34, 197, 94, 0.9);
}

.event-log-left .event-log-prefix {
    color: rgba(239, 68, 68, 0.7);
}

.event-log-left .event-log-text {
    color: rgba(239, 68, 68, 0.9);
}

.event-log-fluctuation .event-log-prefix {
    color: rgba(245, 158, 11, 0.7);
}

.event-log-fluctuation .event-log-text {
    color: rgba(245, 158, 11, 0.9);
}

.event-log-tag {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    color: rgba(245, 158, 11, 0.9);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 300;
    margin-left: 6px;
    opacity: 0.9;
}

.participant-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.participant-table thead {
    background: rgba(255,255,255,.1);
}

.participant-table th {
    padding: 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    border-bottom: 2px solid rgba(255,255,255,.2);
    white-space: nowrap;
}

.participant-table th:first-child {
    border-top-left-radius: 12px;
}

.participant-table th:last-child {
    border-top-right-radius: 12px;
}

.participant-table td {
    padding: 16px;
    font-size: 14px;
    color: rgba(255,255,255,.9);
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.participant-table tbody tr {
    cursor: pointer;
    transition: all 0.2s ease;
}

.participant-table tbody tr:hover {
    background: rgba(255,255,255,.1);
    transform: translateX(2px);
}

.participant-table tbody tr.selected {
    background: rgba(255,255,255,.15);
    border-left: 3px solid #fff;
}

.participant-name {
    font-weight: 600;
    color: #fff;
    font-size: 15px;
}

.participant-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.participant-status.online {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.participant-status.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.participant-status.away {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.participant-last-activity {
    color: var(--text-muted);
    font-size: 13px;
    white-space: nowrap;
}

.participant-table tbody tr td[colspan] {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,.6);
    font-size: 14px;
}

/* 等候室界面样式覆盖 */
#waitingRoomScreen .text-gray-500,
#waitingRoomScreen .text-gray-400,
#waitingRoomScreen .text-gray-700 {
    color: rgba(255,255,255,.7) !important;
}

#waitingRoomScreen .text-gray-500 strong,
#waitingRoomScreen .text-gray-400 strong {
    color: #fff !important;
}

#waitingRoomScreen h3.text-gray-700 {
    color: rgba(255,255,255,.9) !important;
}

/* 参与者等待界面样式覆盖 */
#participantWaitingScreen .text-gray-900 {
    color: #fff !important;
}

#participantWaitingScreen .text-gray-500 {
    color: rgba(255,255,255,.7) !important;
}

#participantWaitingScreen .bg-gray-50 {
    background: rgba(255,255,255,.1) !important;
    border: 1px solid rgba(255,255,255,.15) !important;
}

#participantWaitingScreen .bg-gray-50 .text-gray-400 {
    color: rgba(255,255,255,.6) !important;
}

#participantWaitingScreen .bg-gray-50 .text-gray-900 {
    color: #fff !important;
}

/* 结束界面样式覆盖 */
#endScreen .text-gray-900 {
    color: #fff !important;
}

#endScreen .text-gray-500 {
    color: rgba(255,255,255,.7) !important;
}

/* 图片展示区域 */
.snapshot-gallery-header {
    margin-bottom: 20px;
}

.snapshot-gallery-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.snapshot-gallery-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,.7);
}

.snapshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    max-height: 650px;
    overflow-y: auto;
    padding: 4px;
    min-height: 200px;
}

.snapshot-gallery::-webkit-scrollbar {
    width: 6px;
}

.snapshot-gallery::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.snapshot-gallery::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.snapshot-gallery::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.snapshot-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.snapshot-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.snapshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.snapshot-item-time {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 8px;
    font-size: 11px;
    text-align: center;
}

.snapshot-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.snapshot-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.snapshot-empty-state p {
    font-size: 14px;
}

.monitor-alert-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 640px) {
    .top-navbar {
        min-height: 56px;
        padding: 8px 0;
    }
    
    .top-navbar > div {
        padding: 0 16px !important;
    }
    
    .navbar-title {
        font-size: 16px;
    }
    
    .navbar-subtitle {
        display: none;
    }
    
    .navbar-username {
        display: none;
    }
    
    .main-content {
        padding-top: 72px;
    }
    
    .main-screen-content {
        padding: 0 16px;
    }
    
    .welcome-section {
        padding: 24px 0;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .welcome-icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }
    
    .welcome-icon i {
        font-size: 28px;
    }
    
    .time-option {
        padding: 10px 14px;
        font-size: 13px;
        min-width: 70px;
    }
    
    .glass-card {
        border-radius: 16px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .lock-time-display {
        font-size: 64px;
    }
    
    .login-modal-content {
        padding: 24px;
        border-radius: 20px;
    }
    
    .room-id-display {
        font-size: 26px;
        letter-spacing: 4px;
    }
    
    .countdown-display {
        font-size: 36px;
    }
    
    .monitor-countdown-value {
        font-size: 28px;
    }
    
    .monitor-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .monitor-left-panel,
    .monitor-right-panel {
        min-height: auto;
    }
    
    .monitor-right-panel {
        position: static;
    }
    
    .snapshot-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        max-height: 400px;
    }
    
    .participant-table th,
    .participant-table td {
        padding: 12px;
        font-size: 13px;
    }
    
    .participant-table th:first-child,
    .participant-table td:first-child {
        min-width: 80px;
    }
    
    .participant-table th:last-child,
    .participant-table td:last-child {
        min-width: 100px;
    }
}

@media (max-width: 400px) {
    .time-selector {
        gap: 8px;
    }
    
    .time-option {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 60px;
    }
    
    .lock-time-display {
        font-size: 52px;
    }
    
    .lock-status-container {
        padding: 20px 24px;
    }
}

/* ============================================
   隐藏类
   ============================================ */
.hidden {
    display: none !important;
}

/* ============================================
   动画
   ============================================ */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ============================================
   进度圆环（锁屏界面）
   ============================================ */
#progressCircle {
    stroke: rgba(99, 102, 241, 0.8);
    transition: stroke-dashoffset 1s linear;
}
