/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
}

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

/* 返回首页按钮样式 */
.back-to-home {
    display: inline-block;
    background: #111111;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border: 1px solid #333;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* 返回剧集列表按钮样式 */
.back-to-episodes {
    display: inline-block;
    background: #111111;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border: 1px solid #333;
    border-radius: 4px;
    margin-bottom: 20px;
    margin-left: 10px;
}

header {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 30px;
    background: #111111;
    border-bottom: 1px solid #333;
    border-radius: 8px;
}

h1 {
    color: #ffffff;
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #ddd;
    font-size: 1.1rem;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.series-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.info-item {
    background: #111111;
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 季度内容样式 */
.season-content {
    margin-bottom: 40px;
}

.season-header {
    background: #111111;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #333;
    border-radius: 8px;
}

.season-header h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.season-info {
    color: #ddd;
    font-size: 1rem;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.episode-card {
    background: #111111;
    padding: 25px;
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.episode-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.episode-number {
    background: #333;
    color: #ffffff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.episode-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.episode-description {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 200px;
    overflow: hidden;
}

.footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
    color: #aaa;
    border-top: 1px solid #333;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
}

/* 响应式样式 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .episodes-grid {
        grid-template-columns: 1fr;
    }
    
    .season-header {
        padding: 20px;
    }
    
    .episode-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }
    
    .season-info {
        flex-direction: column;
        gap: 10px;
    }
}

/* 季度统计样式 */
.season-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    background: #222;
    padding: 5px 10px;
    border-radius: 4px;
}

/* 剧集卡片交互样式 */
.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    border-left: 4px solid #333;
}

/* 筛选控件样式 */
.season-controls {
    margin-bottom: 20px;
}

.episode-filter {
    padding: 8px 12px;
    background: #222;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
    transition: all 0.3s ease;
}

.episode-count {
    font-size: 14px;
    color: #ddd;
    background: #222;
    padding: 8px 12px;
    border-radius: 4px;
}

/* 剧集列表按钮样式 */
.episodes-list {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.episode-btn {
    background: #111111;
    color: #ddd;
    border: 1px solid #333;
    padding: 15px 25px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.episode-btn:hover {
    background: #222;
    color: #fff;
    border-color: #444;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.episode-btn.active {
    background: #333;
    color: #fff;
    border-color: #555;
}

.episode-btn i {
    font-size: 1.5rem;
}