* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
    user-select: none;
}

body {
    width: 100%;
    height: 100vh;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    width: 100%;
    height: 100%;
    background-image: url('小黑板.jpeg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    position: relative;
}

#question-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#question {
    color: white;
    font-size: 72px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    user-select: none;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.bottom-bar {
    display: flex;
    justify-content: flex-end;
    padding: 10px 0;
    gap: 10px;
}

#sound-btn, #settings-btn {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 15px;
    padding: 10px 20px;
    font-size: 16px;
    color: black;
    cursor: pointer;
    transition: background-color 0.3s;
    outline: none;
}

#sound-btn:hover, #settings-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

#sound-btn:focus, #settings-btn:focus {
    outline: none;
}

#sound-btn.muted {
    background-color: rgba(200, 200, 200, 0.7);
    color: #666;
}

/* 设置对话框样式 */
.dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.dialog-content {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dialog h2 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.category-list {
    margin-bottom: 20px;
}

.category-item {
    padding: 10px;
    margin: 5px 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.category-item:hover {
    background-color: #E3F2FD;
}

.category-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.category-item label {
    font-size: 16px;
    cursor: pointer;
}

#confirm-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s;
}

#confirm-btn:hover {
    background-color: #45a049;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #question {
        font-size: 48px;
    }
    
    .dialog-content {
        width: 95%;
        padding: 15px;
    }
}

@media (min-width: 1200px) {
    #question {
        font-size: 96px;
    }
} 