/* 全局样式 */
:root {
    --primary-color: #ff5722;
    --secondary-color: #2196f3;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-color: #f5f5f5;
    --bg-dark: #212121;
    --bg-card: #fff;
    --border-color: #e0e0e0;
    --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: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: #e64a19;
    transform: translateY(-2px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.more-link {
    color: var(--text-light);
    font-size: 14px;
}

.more-link:hover {
    color: var(--primary-color);
}

/* 头部导航 */
.header {
    background-color: var(--bg-card);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo a {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 36px;
    height: 36px;
    margin-right: 10px;
    fill: var(--primary-color);
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    padding: 5px 0;
    position: relative;
}

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

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:hover::after {
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.search-box input {
    width: 200px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0 15px;
    font-size: 14px;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary-color);
    width: 250px;
}

.search-btn {
    background-color: var(--primary-color);
    color: white;
    height: 36px;
    padding: 0 15px;
    border-radius: var(--radius);
    margin-left: 10px;
    font-size: 14px;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: #e64a19;
}

.user-actions {
    display: flex;
    align-items: center;
}

.btn-login, .btn-register {
    margin-left: 10px;
    font-size: 14px;
}

.btn-login {
    color: var(--text-color);
}

.btn-login:hover {
    color: var(--primary-color);
}

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

.btn-register:hover {
    background-color: #e64a19;
}

/* 轮播图 */
.banner {
    padding: 20px 0;
}

.slider-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.slider {
    position: relative;
    height: 400px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

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

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.slide-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 16px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
}

.prev-btn, .next-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--primary-color);
}

.slider-dots {
    display: flex;
    margin: 0 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
}

/* 电影卡片样式 */
.movie-section, .tv-section, .anime-section, .variety-section {
    padding: 30px 0;
}

.movie-grid, .tv-grid, .anime-grid, .variety-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.movie-card, .tv-card, .anime-card, .variety-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.movie-card:hover, .tv-card:hover, .anime-card:hover, .variety-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.movie-poster, .tv-poster, .anime-poster, .variety-poster {
    position: relative;
    height: 0;
    padding-bottom: 150%;
    overflow: hidden;
}

.movie-poster img, .tv-poster img, .anime-poster img, .variety-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.movie-overlay, .tv-overlay, .anime-overlay, .variety-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.movie-card:hover .movie-overlay,
.tv-card:hover .tv-overlay,
.anime-card:hover .anime-overlay,
.variety-card:hover .variety-overlay {
    opacity: 1;
}

.btn-play {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: var(--transition);
}

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

.episode-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 3px 8px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 12px;
}

.movie-info, .tv-info, .anime-info, .variety-info {
    padding: 15px;
}

.movie-info h3, .tv-info h3, .anime-info h3, .variety-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta, .tv-meta, .anime-meta, .variety-meta {
    font-size: 12px;
    color: var(--text-lighter);
    margin-bottom: 5px;
}

.movie-rating, .tv-rating, .anime-rating, .variety-rating {
    display: flex;
    align-items: center;
    font-size: 12px;
}

.rating-score {
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 5px;
}

.rating-count {
    color: var(--text-lighter);
}

/* 资讯部分 */
.news-section {
    padding: 30px 0;
}

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

.news-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    transition: var(--transition);
}

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

.news-image {
    width: 30%;
    overflow: hidden;
}

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

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    width: 70%;
    padding: 15px;
}

.news-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-lighter);
}

/* APP下载 */
.app-download {
    padding: 30px 0;
    background-color: var(--bg-card);
    margin: 30px 0;
}

.app-content {
    display: flex;
    align-items: center;
}

.app-info {
    width: 60%;
    padding-right: 30px;
}

.app-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.app-desc {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.feature {
    display: flex;
    align-items: center;
    width: 50%;
    margin-bottom: 15px;
}

.feature-icon {
    font-size: 24px;
    margin-right: 10px;
}

.download-buttons {
    display: flex;
}

.btn-download {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--bg-dark);
    color: white;
    border-radius: var(--radius);
    margin-right: 15px;
}

.btn-download i {
    font-size: 24px;
    margin-right: 10px;
}

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

.app-image {
    width: 40%;
}

.app-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* 专题推荐 */
.special-section {
    padding: 30px 0;
}

.special-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.special-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.special-image {
    position: relative;
    height: 200px;
}

.special-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.special-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: var(--transition);
}

.special-overlay h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.special-overlay p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.btn-special {
    align-self: flex-start;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
}

.btn-special:hover {
    background-color: #e64a19;
}

/* 文章部分 */
.article-section {
    padding: 30px 0;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.article-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.article-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
    text-align: justify;
}

/* 友情链接 */
.friend-links {
    padding: 30px 0;
    background-color: var(--bg-card);
}

.links-container {
    padding: 15px;
    border-radius: var(--radius);
}

.links-container ul {
    display: flex;
    flex-wrap: wrap;
}

.links-container li {
    margin-right: 20px;
    margin-bottom: 10px;
}

.links-container a {
    color: var(--text-light);
    font-size: 14px;
}

.links-container a:hover {
    color: var(--primary-color);
}

/* 页脚 */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 50px 0 20px;
}

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

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

.footer-logo .logo-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    fill: white;
}

.footer-logo h3 {
    font-size: 20px;
    font-weight: 700;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    width: 70%;
}

.footer-nav-col {
    width: 25%;
    padding-right: 15px;
}

.footer-nav-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-nav-col ul li {
    margin-bottom: 10px;
}

.footer-nav-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-nav-col a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.social-link:hover {
    color: var(--primary-color);
}

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

.copyright {
    text-align: center;
    margin-bottom: 15px;
}

.copyright p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
}

.footer-statement {
    text-align: center;
}

.footer-statement p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .movie-grid, .tv-grid, .anime-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .movie-grid, .tv-grid, .anime-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .variety-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid, .article-grid {
        grid-template-columns: 1fr;
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-info, .app-image {
        width: 100%;
    }
    
    .app-info {
        margin-bottom: 30px;
        padding-right: 0;
    }
    
    .footer-nav-col {
        width: 50%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .main-nav li {
        margin: 5px 10px;
    }
    
    .search-box {
        margin-left: auto;
    }
    
    .movie-grid, .tv-grid, .anime-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .special-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        flex-direction: column;
    }
    
    .news-image, .news-content {
        width: 100%;
    }
    
    .news-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .movie-grid, .tv-grid, .anime-grid, .variety-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slider {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .footer-nav-col {
        width: 100%;
    }
}
