* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑";
    font-weight: bold;
    background-color: #1a1a1a;
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
    user-select: none;
}

.hidden {
    display: none !important;
}

/* 设置页面 */
.settings-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.settings-container {
    background: #2a2a2a;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.settings-container h1 {
    margin-bottom: 30px;
    font-size: 28px;
    color: #fff;
}

.setting-item {
    margin-bottom: 25px;
    text-align: left;
}

.setting-item label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: #ccc;
}

.setting-item input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #444;
    border-radius: 4px;
    outline: none;
}

.setting-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #4a9eff;
    border-radius: 50%;
    cursor: pointer;
}

.setting-item input[type="file"] {
    width: 100%;
    padding: 10px;
    background: #333;
    border: 1px dashed #555;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
}

.hint {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
}

.font-preview {
    margin-top: 15px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 6px;
    color: #fff;
    font-size: 32px;
    text-align: center;
    word-break: break-word;
}

.start-btn {
    background: #4a9eff;
    color: #fff;
    border: none;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.start-btn:hover {
    background: #3a8eef;
}

/* 提词页面 */
.teleprompter-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    cursor: pointer;
}

.prompter-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    position: relative;
}

.current-panel {
    background: #1a1a1a;
}

.next-panel {
    background: #252525;
}

.panel-label {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.panel-content {
    flex: 1;
    line-height: 1.6;
    padding: 20px;
    overflow-y: auto;
    text-align: justify;
}

.divider {
    width: 2px;
    background: #333;
}

/* 特殊标记样式 */
.tag-next {
    color: #ff4444;
    font-weight: bold;
}

.tag-wait {
    color: #ff4444;
    font-weight: bold;
}

/* 控制按钮 */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 8px 15px;
    background: #111;
    border-top: 1px solid #333;
}

.control-btn {
    background: #333;
    color: #aaa;
    border: none;
    padding: 6px 16px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.control-btn:hover {
    background: #444;
    color: #fff;
}

.page-indicator {
    font-size: 12px;
    color: #666;
    min-width: 60px;
    text-align: center;
}

/* 结束提示 */
.end-text {
    color: #666;
    font-style: italic;
}

/* 响应式 */
@media (max-width: 768px) {
    .prompter-container {
        flex-direction: column;
    }

    .divider {
        width: 100%;
        height: 2px;
    }

    .panel {
        padding: 10px 15px;
    }
}
