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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow: hidden;
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.screen {
    display: none;
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.screen.active {
    display: block;
}

/* 欢迎界面 */
.welcome-content {
    text-align: center;
}

.welcome-content h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.features {
    margin: 30px 0;
    text-align: left;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.feature-item {
    padding: 10px 0;
    color: #555;
    font-size: 15px;
    border-bottom: 1px solid #eee;
}

.feature-item:last-child {
    border-bottom: none;
}

/* 按钮样式 */
.btn {
    width: 100%;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn:active {
    transform: scale(0.98);
}

.btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn.secondary {
    background: #6c757d;
    color: white;
}

.btn.warning {
    background: #ffc107;
    color: #333;
}

.btn.danger {
    background: #dc3545;
    color: white;
}

/* 倒计时界面 */
.countdown-content {
    text-align: center;
}

.countdown-content h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
}

.countdown-number {
    font-size: 120px;
    font-weight: bold;
    color: #667eea;
    line-height: 1;
    margin: 20px 0;
}

.hint {
    font-size: 16px;
    color: #888;
}

/* 听写界面 */
.dictation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dictation-header h2 {
    font-size: 22px;
    color: #333;
}

.progress {
    font-size: 18px;
    color: #667eea;
    font-weight: 600;
}

.current-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 30px;
}

.item-type {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.item-content {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    word-break: break-all;
}

.play-status {
    font-size: 14px;
    color: #888;
}

.controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.controls .btn:nth-child(3) {
    grid-column: 1 / -1;
}

/* 结果界面 */
.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-header h2 {
    font-size: 26px;
    color: #28a745;
    margin-bottom: 10px;
}

.result-subtitle {
    font-size: 16px;
    color: #666;
}

.results-container {
    margin-bottom: 30px;
}

.section {
    margin-bottom: 25px;
}

.section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.results-list {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.result-item {
    padding: 10px 0;
    font-size: 16px;
    color: #555;
    border-bottom: 1px solid #eee;
}

.result-item:last-child {
    border-bottom: none;
}

.result-number {
    color: #667eea;
    font-weight: 600;
    margin-right: 10px;
}

.final-controls {
    display: flex;
    gap: 10px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

/* 响应式调整 */
@media (max-width: 400px) {
    .container {
        padding: 10px;
    }
    
    .screen {
        padding: 20px 15px;
    }
    
    .welcome-content h1 {
        font-size: 24px;
    }
    
    .countdown-number {
        font-size: 100px;
    }
}