/* 全局样式 */
:root {
    --primary-color: #ff6644;
    --secondary-color: #ff9966;
    --dark-color: #333333;
    --light-color: #f8f8f8;
    --gray-color: #666666;
    --light-gray: #eeeeee;
    --text-color: #333333;
    --link-color: #ff6644;
    --link-hover-color: #ff9966;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #ff6644 0%, #ff9966 100%);
    --border-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);
    line-height: 1.6;
    background-color: var(--light-color);
}

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

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

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

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

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

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

.btn-secondary {
    background-color: var(--light-gray);
    color: var(--dark-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
}

.section-header .more {
    font-size: 14px;
    color: var(--gray-color);
}

section {
    padding: 40px 0;
}

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

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

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

.logo a {
    display: flex;
    align-items: center;
    color: var(--dark-color);
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
}

.main-nav ul {
    display: flex;
}

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

.main-nav a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 10px 5px;
    position: relative;
}

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

.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::after {
    width: 100%;
}

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

.user-actions .btn {
    margin-left: 10px;
    padding: 8px 15px;
    font-size: 14px;
}

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

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

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

/* 轮播图样式 */
.banner {
    background-color: var(--dark-color);
    padding: 0;
}

.slider {
    position: relative;
    overflow: hidden;
    height: 500px;
    border-radius: var(--border-radius);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

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

.slide-content {
    position: absolute;
    left: 50px;
    bottom: 50px;
    max-width: 500px;
    color: white;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: var(--border-radius);
}

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

.slide-content p {
    margin-bottom: 20px;
}

.slide-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 2;
    transform: translateY(-50%);
}

.slide-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    margin: 0 20px;
    transition: var(--transition);
}

.slide-controls button:hover {
    background-color: rgba(255, 102, 68, 0.8);
}

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 2;
}

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

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

/* 卡片样式 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

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

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.card-image {
    position: relative;
    height: 0;
    padding-top: 150%; /* 2:3 比例 */
    overflow: hidden;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

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

.card-content {
    padding: 15px;
}

.card-content h3 {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-content p {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.actors {
    font-size: 12px;
    color: var(--gray-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* APP下载模块样式 */
.app-download {
    background: var(--gradient-primary);
    color: white;
}

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

.app-info {
    flex: 1;
    padding-right: 30px;
}

.app-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.app-features {
    margin: 20px 0;
}

.app-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.icon-check::before {
    content: '✓';
    margin-right: 10px;
    font-weight: bold;
}

.download-buttons {
    display: flex;
    margin-bottom: 20px;
}

.download-buttons .btn {
    margin-right: 15px;
    display: flex;
    align-items: center;
    background-color: white;
    color: var(--primary-color);
}

.download-buttons .btn:hover {
    background-color: var(--light-gray);
}

.icon-android::before {
    content: '📱';
    margin-right: 5px;
}

.icon-apple::before {
    content: '🍎';
    margin-right: 5px;
}

.qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qrcode-img {
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 5px;
    margin-bottom: 10px;
    position: relative;
}

.qrcode-img::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: repeating-conic-gradient(#000 0% 25%, #fff 0% 50%) 50% / 10px 10px;
    border-radius: 5px;
}

.app-image {
    flex: 1;
    max-width: 300px;
}

.app-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.article-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

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

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

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

.article-content {
    padding: 20px;
}

.article-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-meta {
    font-size: 12px;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.article-excerpt {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
}

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

.footer-content {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-logo h3 {
    font-size: 20px;
    margin: 10px 0;
}

.footer-links {
    flex: 3;
    display: flex;
    flex-wrap: wrap;
}

.footer-links-column {
    flex: 1;
    min-width: 150px;
    margin-bottom: 20px;
}

.footer-links-column h4 {
    font-size: 16px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links-column ul li {
    margin-bottom: 10px;
}

.footer-links-column a {
    color: #ccc;
    font-size: 14px;
}

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

.social-links {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    margin-bottom: 10px;
    color: white;
    font-size: 0;
}

.social-icon::before {
    font-size: 16px;
}

.social-icon.weibo::before {
    content: '微';
}

.social-icon.wechat::before {
    content: '微';
}

.social-icon.douyin::before {
    content: '抖';
}

.social-icon.bilibili::before {
    content: 'B';
}

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

.qrcode-small {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qrcode-img-small {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 5px;
    margin-bottom: 5px;
    position: relative;
}

.qrcode-img-small::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: repeating-conic-gradient(#000 0% 25%, #fff 0% 50%) 50% / 8px 8px;
    border-radius: 3px;
}

.qrcode-small p {
    font-size: 12px;
    color: #ccc;
}

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

.copyright {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
}

.friendly-links {
    margin-top: 20px;
}

.friendly-links h4 {
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
}

.friendly-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.friendly-links ul li {
    margin: 5px 10px;
}

.friendly-links a {
    color: #999;
    font-size: 12px;
}

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

/* 响应式设计 */
@media (max-width: 1024px) {
    .slider {
        height: 400px;
    }
    
    .slide-content {
        left: 30px;
        bottom: 30px;
        max-width: 400px;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav {
        width: 100%;
        overflow-x: auto;
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        width: max-content;
    }
    
    .slider {
        height: 300px;
    }
    
    .slide-content {
        left: 20px;
        bottom: 20px;
        max-width: 300px;
        padding: 15px;
    }
    
    .slide-content h2 {
        font-size: 22px;
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-info {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .app-image {
        max-width: 200px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .footer-links {
        justify-content: space-between;
    }
    
    .footer-links-column {
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .slider {
        height: 250px;
    }
    
    .slide-content {
        left: 15px;
        bottom: 15px;
        max-width: 250px;
        padding: 10px;
    }
    
    .slide-content h2 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .slide-content p {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .slide-controls button {
        width: 30px;
        height: 30px;
        font-size: 14px;
        margin: 0 10px;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .card-content h3 {
        font-size: 14px;
    }
    
    .card-content p {
        font-size: 12px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .download-buttons .btn {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .footer-links {
        flex-direction: column;
    }
    
    .footer-links-column {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .article-card {
    animation: fadeIn 0.5s ease forwards;
}

.card:nth-child(2) {
    animation-delay: 0.1s;
}

.card:nth-child(3) {
    animation-delay: 0.2s;
}

.card:nth-child(4) {
    animation-delay: 0.3s;
}

.card:nth-child(5) {
    animation-delay: 0.4s;
}

.card:nth-child(6) {
    animation-delay: 0.5s;
}

/* 透明轮播背景 */
.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 500px;
    background: url('../picture/b8.jpg') center/cover no-repeat fixed;
    opacity: 0.1;
    z-index: -1;
}

.hot-recommend::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../picture/d24.jpg') center/cover no-repeat fixed;
    opacity: 0.05;
    z-index: -1;
}

.tv-series::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../picture/d25.jpg') center/cover no-repeat fixed;
    opacity: 0.05;
    z-index: -1;
}

.articles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../picture/d26.jpg') center/cover no-repeat fixed;
    opacity: 0.05;
    z-index: -1;
}

/* 菜单按钮 */
.menu-toggle {
    display: none;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
}

.menu-toggle.active {
    background-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        margin-top: 15px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    .main-nav li {
        margin: 5px 0;
    }
    
    .main-nav a {
        display: block;
        padding: 10px;
        background-color: var(--light-gray);
        border-radius: var(--border-radius);
    }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

