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

body {
    background-color: #0b0f19;
    color: #e2e8f0;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hidden {
    display: none !important;
}

/* ====================== 科技感按钮样式 ====================== */
.btn {
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-block {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
}

.btn-primary {
    background-color: #0ea5e9;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    background-color: #38bdf8;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.4);
}

.btn-success {
    background-color: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background-color: #34d399;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(52, 211, 153, 0.4);
}

.btn-warning {
    background-color: #f59e0b;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    background-color: #fbbf24;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.4);
}

.btn-danger {
    background-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background-color: #f87171;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(248, 113, 113, 0.4);
}

.btn-info {
    background-color: #06b6d4;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-info:hover {
    background-color: #22d3ee;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 211, 238, 0.4);
}

.btn-secondary {
    background-color: #8b5cf6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-secondary:hover {
    background-color: #a78bfa;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(167, 139, 250, 0.4);
}

.btn-play {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 15px;
    padding: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-play:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(52, 211, 153, 0.5);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ====================== 编辑器容器（暗色极客风格） ====================== */
.editor-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: #090d16;
}

/* ====================== 侧边栏（磨砂玻璃卡片） ====================== */
.sidebar {
    width: 290px;
    min-width: 290px;
    background-color: rgba(15, 23, 42, 0.85);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    z-index: 10;
    backdrop-filter: blur(20px);
}

.sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-header h3 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #f8fafc;
    letter-spacing: 0.5px;
}

.add-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.add-buttons .btn {
    flex: 1;
    min-width: 80px;
    font-size: 11px;
    padding: 8px 6px;
    border-radius: 5px;
}

/* ====================== 页面列表（卡片化与过渡） ====================== */
.page-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    list-style: none;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.page-item {
    padding: 12px 14px;
    margin-bottom: 8px;
    background-color: rgba(30, 41, 59, 0.45);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-item:hover {
    background-color: rgba(51, 65, 85, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.page-item.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(56, 189, 248, 0.1) 100%);
    border-color: #0ea5e9;
    border-left: 4px solid #38bdf8;
    padding-left: 10px; /* 补偿左边框的宽度 */
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.15);
}

.page-item.dragging {
    opacity: 0.4;
    border: 1px dashed #38bdf8;
    background-color: rgba(15, 23, 42, 0.8);
}

.page-item .page-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    overflow: hidden;
}

.page-item .page-type {
    font-size: 14px;
    width: 22px;
    height: 22px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.page-item.active .page-type {
    color: #38bdf8;
    background-color: rgba(14, 165, 233, 0.15);
}

.page-item .page-name {
    font-size: 13px;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-item.active .page-name {
    color: #ffffff;
    font-weight: 500;
}

.page-item .delete-btn {
    color: #94a3b8;
    padding: 4px;
    border-radius: 4px;
    opacity: 0;
    font-size: 12px;
    transition: all 0.2s ease;
}

.page-item:hover .delete-btn {
    opacity: 0.8;
}

.page-item .delete-btn:hover {
    opacity: 1;
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background-color: rgba(15, 23, 42, 0.4);
}

.switch-time-setting {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch-time-setting label {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
}

.switch-time-setting input {
    flex: 1;
    padding: 8px 10px;
    background-color: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 13px;
    color: #f1f5f9;
    outline: none;
    transition: all 0.2s ease;
}

.switch-time-setting input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* ====================== 服务器配置管理板块 ====================== */
.server-config-section {
    margin-bottom: 14px;
    padding: 12px;
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: none; /* 默认隐藏，在检测到后端 API 时才显示 */
}

.config-select {
    width: 100%;
    padding: 8px 10px;
    background-color: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 12px;
    color: #f1f5f9;
    outline: none;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.config-select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.config-select option {
    background-color: #1e293b;
    color: #f1f5f9;
}

/* ====================== 预览区（科技感大屏舞台） ====================== */
.preview-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #090d16;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    min-width: 0;
    position: relative;
}

.preview-header {
    margin-bottom: 16px;
    flex-shrink: 0;
}

.preview-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #f8fafc;
    letter-spacing: 0.5px;
}

.preview-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #030712;
}

/* ====================== 电视机壳 Mockup ====================== */
.tv-screen {
    width: 1920px;
    height: 1080px;
    background-color: #000000;
    position: relative;
    overflow: hidden;
    /* 强烈的金属超窄框投影，营造逼真电视效果 */
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 
                0 0 0 12px #1e293b, 
                0 0 0 13px #334155, 
                0 0 50px rgba(0, 0, 0, 0.8) inset;
    transform-origin: center center;
    flex-shrink: 0;
    border-radius: 4px;
}

/* 电源呼吸灯效果 */
.tv-screen::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 4px;
    border-radius: 4px 4px 0 0;
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: tv-power-breath 3s infinite ease-in-out;
    z-index: 1000;
}

@keyframes tv-power-breath {
    0%, 100% { 
        background-color: #059669; 
        box-shadow: 0 0 4px #059669; 
    }
    50% { 
        background-color: #34d399; 
        box-shadow: 0 0 12px #34d399, 0 0 4px #34d399; 
    }
}

/* ====================== 电视大屏内容区 ====================== */
/* 电视顶部栏（磨砂玻璃顶栏） */
.tv-header {
    height: 90px;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    color: #ffffff;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo-section:hover {
    opacity: 0.85;
}

.logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.logo-image {
    height: 54px !important;
    width: auto !important;
    max-width: 220px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo-text {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.time-display {
    font-size: 32px;
    font-weight: 600;
    font-family: monospace, sans-serif;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 内容区 */
.tv-content {
    height: calc(100% - 90px);
    position: relative;
    background-color: #020617;
}

/* 标签导航（悬浮磨砂圆角） */
.tabs-nav {
    height: 64px;
    background-color: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    padding: 0 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 5;
    gap: 15px;
}

.tab-item {
    padding: 6px 20px;
    height: 38px;
    display: flex;
    align-items: center;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-item.active {
    color: #38bdf8;
    background-color: rgba(14, 165, 233, 0.15);
    border-color: rgba(56, 189, 248, 0.25);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* 页面内容容器 */
.page-content {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 图文页样式 */
.image-page {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #020617;
}

.page-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    left: 0;
    top: 0;
}

/* 文字元素大屏阴影与防干扰 */
.page-title,
.page-content-text,
.registration-box,
.text-title,
.text-subtitle,
.text-content,
.video-title {
    position: absolute;
    text-align: center;
    transform: translate(-50%, -50%);
    z-index: 2;
    white-space: pre-line;
}

.page-title {
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.5) !important;
    letter-spacing: 1px;
}

.page-content-text {
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    max-width: 80%;
    line-height: 1.5;
}

/* ====================== 活动报名模块（科技舱风格） ====================== */
.registration-box {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(12px);
    padding: 24px 36px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.registration-box .reg-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #f8fafc;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.registration-box .reg-numbers {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.registration-box .number-item {
    text-align: center;
}

.registration-box .number {
    font-size: 56px;
    font-weight: 800;
    /* 亮丽的渐变数字效果 */
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none !important;
    line-height: 1.1;
}

.registration-box .number-item:first-child .number {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.registration-box .label {
    font-size: 16px;
    color: #94a3b8;
    margin-top: 8px;
    font-weight: 500;
}

/* 文字页样式 */
.text-page {
    width: 100%;
    height: 100%;
    position: relative;
}

.text-title {
    font-size: 76px;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
}

.text-subtitle {
    font-size: 44px;
    font-weight: 600;
    opacity: 0.9;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.text-content {
    font-size: 34px;
    line-height: 1.8;
    max-width: 1400px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* 视频页样式 */
.video-page {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-page video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    background-color: #000;
    position: absolute;
    left: 0;
    top: 0;
}

.video-title {
    font-size: 52px;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

/* ====================== 属性面板（磨砂卡片） ====================== */
.properties-panel {
    width: 330px;
    min-width: 330px;
    background-color: rgba(15, 23, 42, 0.85);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    z-index: 10;
    backdrop-filter: blur(20px);
}

.panel-header {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #f8fafc;
    letter-spacing: 0.5px;
}

.properties-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
}

.empty-state {
    text-align: center;
    color: #64748b;
    padding: 60px 0;
    font-size: 13px;
}

.property-group {
    margin-bottom: 24px;
    background-color: rgba(30, 41, 59, 0.2);
    border-radius: 8px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.property-group h4 {
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 10px;
}

.property-item {
    margin-bottom: 14px;
}

.property-item label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.property-item input[type="text"],
.property-item input[type="number"],
.property-item input[type="color"],
.property-item select,
.property-item textarea {
    width: 100%;
    padding: 8px 12px;
    background-color: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 13px;
    color: #f1f5f9;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-item input[type="text"]:focus,
.property-item input[type="number"]:focus,
.property-item select:focus,
.property-item textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.property-item textarea {
    resize: vertical;
    min-height: 80px;
}

.property-item input[type="color"] {
    height: 38px;
    padding: 3px;
    cursor: pointer;
    background-color: rgba(30, 41, 59, 0.7);
}

.property-row {
    display: flex;
    gap: 10px;
}

.property-row .property-item {
    flex: 1;
    margin-bottom: 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    margin-top: 16px;
}

.checkbox-item label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 13px;
    color: #e2e8f0;
}

.checkbox-item input {
    width: 16px !important;
    height: 16px !important;
    cursor: pointer;
    accent-color: #0ea5e9;
}

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

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

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

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

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

@keyframes zoomIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.animate-fadeIn { animation: fadeIn 0.8s ease forwards; }
.animate-slideUp { animation: slideUp 0.8s ease forwards; }
.animate-slideDown { animation: slideDown 0.8s ease forwards; }
.animate-slideLeft { animation: slideLeft 0.8s ease forwards; }
.animate-slideRight { animation: slideRight 0.8s ease forwards; }
.animate-zoomIn { animation: zoomIn 0.8s ease forwards; }

/* ====================== 全屏播放模式 ====================== */
.player-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
}

.player-container .tv-screen {
    width: 100vw !important;
    height: 100vh !important;
    transform: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.player-container .tv-screen::after {
    display: none !important; /* 全屏播放时不需要物理电视呼吸灯 */
}

/* ====================== 弹窗样式（退出密钥弹窗） ====================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(6px);
}

.modal-content {
    position: relative;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 12px;
    width: 360px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #f8fafc;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 16px;
    color: #ffffff;
    text-align: center;
    letter-spacing: 2px;
    outline: none;
}

.modal-content input:focus {
    border-color: #38bdf8;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-buttons .btn {
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 500;
}

.error-message {
    color: #ef4444;
    margin-top: 15px;
    font-size: 13px;
}

/* ====================== 电视图形密码退出样式 ====================== */
.tv-exit-icons {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 35px;
    z-index: 10001;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    padding: 22px 36px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    /* 弹出反弹动画 */
    animation: exit-panel-bounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes exit-panel-bounce {
    from { 
        transform: translateX(-50%) translateY(30px) scale(0.9); 
        opacity: 0; 
    }
    to { 
        transform: translateX(-50%) translateY(0) scale(1); 
        opacity: 1; 
    }
}

.exit-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.exit-icon:hover {
    transform: scale(1.15) translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: #38bdf8;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2), 0 0 20px rgba(56, 189, 248, 0.4);
}

.exit-icon:active {
    transform: scale(0.95) translateY(0);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.6);
}

.exit-icon:nth-child(1) { color: #f87171 !important; border-color: rgba(239, 68, 68, 0.2); }
.exit-icon:nth-child(2) { color: #34d399 !important; border-color: rgba(16, 185, 129, 0.2); }
.exit-icon:nth-child(3) { color: #fbbf24 !important; border-color: rgba(245, 158, 11, 0.2); }
.exit-icon:nth-child(4) { color: #a78bfa !important; border-color: rgba(139, 92, 246, 0.2); }

.exit-icon:nth-child(1):hover { border-color: #ef4444; box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2), 0 0 20px rgba(239, 68, 68, 0.4); }
.exit-icon:nth-child(2):hover { border-color: #10b981; box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2), 0 0 20px rgba(16, 185, 129, 0.4); }
.exit-icon:nth-child(3):hover { border-color: #f59e0b; box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2), 0 0 20px rgba(245, 158, 11, 0.4); }
.exit-icon:nth-child(4):hover { border-color: #8b5cf6; box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2), 0 0 20px rgba(139, 92, 246, 0.4); }

.exit-hint {
    position: fixed;
    bottom: 170px;
    left: 50%;
    transform: translateX(-50%);
    color: #f1f5f9;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 8px;
    display: none;
    z-index: 10001;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.2s ease;
}

/* ====================== 背景音乐模块的高级滑动条 ====================== */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    margin: 8px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0ea5e9;
    cursor: pointer;
    transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}