/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

header p {
    font-size: 1.2rem;
    color: #666;
}

.header-content {
    margin-bottom: 1.5rem;
}

.global-controls {
    text-align: center;
}

.global-play-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.2s ease;
}

.global-play-button:hover {
    background-color: #2980b9;
}

.global-play-button.playing {
    background-color: #e74c3c;
}

/* 对话部分样式 */
.dialogue-section {
    margin-bottom: 3rem;
}

.dialogue-pair {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    position: relative;
}

.dialogue-pair:hover {
    transform: translateY(-2px);
}

.dialogue-english {
    margin-bottom: 1rem;
    position: relative;
    cursor: pointer;
}

.play-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #3498db;
    cursor: pointer;
    padding: 5px;
    margin-right: 10px;
    transition: transform 0.2s ease;
    position: absolute;
    right: 0;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-button.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dialogue-english strong {
    color: #2980b9;
}

.dialogue-chinese {
    color: #666;
    margin-bottom: 1rem;
}

.dialogue-chinese strong {
    color: #16a085;
}

.dialogue-analysis {
    font-size: 0.9rem;
    color: #777;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

/* 音频控件样式 */
audio {
    width: 100%;
    margin: 0.5rem 0;
}

/* 学习要点部分样式 */
.learning-summary {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.learning-summary h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.learning-summary h4 {
    color: #34495e;
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.learning-summary ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.learning-summary li {
    margin-bottom: 0.8rem;
    color: #555;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .dialogue-pair {
        padding: 1rem;
    }

    .learning-summary {
        padding: 1.5rem;
    }
}