/* 全局样式 */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #5f27cd;
    --text-color: #333;
    --light-text: #777;
    --bg-color: #fff;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

section {
    padding: 60px 0;
}

section:nth-child(even) {
    background-color: var(--light-bg);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.btn.primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn.secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn.watch {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* 头部样式 */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover:after {
    width: 100%;
}

/* Banner样式 */
.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('') center/cover;
    color: white;
    text-align: center;
    padding: 120px 0;
}

.banner h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.banner .subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 剧情简介样式 */
.intro-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.intro-image {
    flex: 0 0 40%;
}

.intro-text {
    flex: 1;
}

/* 剧集列表样式 */
.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.episode-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.episode-thumb {
    height: 180px;
    overflow: hidden;
}

.episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.episode-card:hover .episode-thumb img {
    transform: scale(1.05);
}

.episode-info {
    padding: 20px;
}

.episode-info h3 {
    margin-bottom: 10px;
}

.episode-info p {
    margin-bottom: 15px;
    color: var(--light-text);
    font-size: 0.95rem;
}

.more-episodes {
    text-align: center;
    margin-top: 20px;
}

/* 角色介绍样式 */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.character-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.character-image {
    height: 300px;
    overflow: hidden;
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.character-card:hover .character-image img {
    transform: scale(1.05);
}

.character-info {
    padding: 20px;
}

.character-info .actor {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

/* 观众评价样式 */
.rating {
    text-align: center;
    margin-bottom: 40px;
}

.stars {
    font-size: 2rem;
    color: #ffc107;
    margin-bottom: 10px;
}

.star {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 30px;
}

.star:before {
    content: '★';
    position: absolute;
    top: 0;
    left: 0;
}

.star.empty:before {
    content: '☆';
}

.star.half:before {
    content: '★';
    width: 50%;
    overflow: hidden;
}

.score {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.source {
    color: var(--light-text);
}

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

.review-card {
    background-color: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

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

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.name {
    font-weight: 600;
}

.review-rating {
    margin-top: 15px;
    font-size: 1rem;
}

.review-rating .star {
    width: 20px;
    height: 20px;
}

/* 相关推荐样式 */
.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.recommend-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.recommend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.recommend-image {
    height: 200px;
    overflow: hidden;
}

.recommend-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.recommend-card:hover .recommend-image img {
    transform: scale(1.05);
}

.recommend-info {
    padding: 20px;
    text-align: center;
}

.recommend-info p {
    margin-bottom: 20px;
    color: var(--light-text);
}

/* 下载观看样式 */
.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.download-card {
    background-color: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.download-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.download-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.download-card h3 {
    margin-bottom: 15px;
}

.download-card p {
    margin-bottom: 25px;
    color: var(--light-text);
}

/* 文章样式 */
.article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.article-item {
    background-color: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.article-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* 页脚样式 */
footer {
    background-color: #2d3436;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 0 0 100%;
    margin-bottom: 30px;
}

.footer-logo h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.link-group {
    flex: 0 0 30%;
    margin-bottom: 30px;
}

.link-group h4 {
    color: white;
    margin-bottom: 20px;
    position: relative;
}

.link-group h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.link-group ul {
    list-style: none;
}

.link-group ul li {
    margin-bottom: 10px;
}

.link-group ul li a {
    color: #dfe6e9;
    transition: var(--transition);
}

.link-group ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #b2bec3;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-bottom a {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .intro-content {
        flex-direction: column;
    }
    
    .link-group {
        flex: 0 0 45%;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .banner {
        padding: 80px 0;
    }
    
    .banner h1 {
        font-size: 2rem;
    }
    
    .banner .subtitle {
        font-size: 1.1rem;
    }
    
    .banner-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .link-group {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
    
    .download-options,
    .recommend-grid,
    .character-grid,
    .review-list,
    .episode-grid {
        grid-template-columns: 1fr;
    }
}