/* 全局样式 */
:root {
    --primary-color: #8e44ad;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-text: #fff;
    --dark-bg: #2c3e50;
    --light-bg: #f5f5f5;
    --border-color: #ddd;
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

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: 4px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.bg-light {
    background-color: var(--light-bg);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

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

/* 头部样式 */
.site-header {
    background-color: var(--dark-bg);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    color: var(--light-text);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
}

.main-nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 英雄区域样式 */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--light-text);
    padding: 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-section .subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.hero-buttons .btn {
    margin: 0 10px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 最新剧集样式 */
.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

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

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

.episode-img {
    height: 200px;
    overflow: hidden;
}

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

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

.episode-info {
    padding: 20px;
}

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

.episode-info p {
    margin-bottom: 15px;
    color: #666;
}

.watch-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
}

.watch-btn:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

/* 热门推荐样式 */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

.popular-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

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

.popular-img {
    height: 200px;
    overflow: hidden;
}

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

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

.popular-info {
    padding: 20px;
}

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

.popular-info p {
    margin-bottom: 15px;
    color: #666;
}

.rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stars {
    color: #f39c12;
}

.score {
    font-weight: 700;
    color: var(--accent-color);
}

/* 剧情简介样式 */
.intro-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.intro-img img {
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.intro-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 演员阵容样式 */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.cast-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

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

.cast-img {
    height: 300px;
    overflow: hidden;
}

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

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

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

.cast-info h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.cast-info p {
    color: #666;
    margin-bottom: 10px;
}

.cast-info .cast-desc {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 观众评价样式 */
.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

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

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

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

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-user h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.review-content {
    line-height: 1.8;
    color: #666;
}

/* 相关剧集样式 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

.related-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

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

.related-img {
    height: 180px;
    overflow: hidden;
}

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

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

.related-info {
    padding: 20px;
}

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

.related-info p {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 下载专区样式 */
.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.download-info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.download-info p {
    margin-bottom: 30px;
    line-height: 1.8;
}

.download-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
}

.feature i {
    width: 40px;
    height: 40px;
    background-color: rgba(142, 68, 173, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: var(--primary-color);
}

.download-table {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 15px;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.table-row:last-child {
    border-bottom: none;
}

.download-btn {
    padding: 8px 15px;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}

.download-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* 文章样式 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--card-shadow);
}

.article-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.article-card p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover::after {
    margin-left: 10px;
}

/* 页脚样式 */
.site-footer {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.link-group h4 {
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

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

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

.link-group ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.link-group ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
    color: #fff;
}

/* 图标样式 */
.icon-hd, .icon-speed, .icon-safe, .icon-free {
    position: relative;
}

.icon-hd::before {
    content: 'HD';
    font-weight: bold;
}

.icon-speed::before {
    content: '⚡';
}

.icon-safe::before {
    content: '🔒';
}

.icon-free::before {
    content: '💰';
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
    }
    
    .download-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .subtitle {
        font-size: 1.2rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .reviews-slider, .article-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
    
    .episode-grid, .popular-grid, .cast-grid, .related-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
}
