/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --light-accent: #ff6b9d;
    --text-color: #ffffff;
    --text-secondary: #b8b8b8;
    --bg-color: #0f0f1e;
    --card-bg: #1f1f3a;
    --hover-color: #2a2a4a;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 导航栏样式 */
.header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-color);
}

.logo-icon {
    font-size: 36px;
    animation: rotate 3s ease-in-out infinite;
}

@keyframes rotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

.brand-text {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
}

.nav-menu a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.search-box {
    display: flex;
    gap: 5px;
}

.search-box input {
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    outline: none;
    width: 200px;
    transition: all 0.3s ease;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-box input:focus {
    width: 250px;
    background: rgba(255, 255, 255, 0.2);
}

.search-box button {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: var(--accent-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.search-box button:hover {
    background: var(--light-accent);
    transform: scale(1.05);
}

/* 轮播背景样式 */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 80%;
}

.slide-content h1,
.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease;
}

.slide-content p {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1.2s ease;
}

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

.cta-button {
    padding: 15px 40px;
    font-size: 18px;
    border: none;
    border-radius: 30px;
    background: var(--gradient-2);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1.4s ease;
    font-weight: bold;
}

.cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.5);
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: var(--accent-color);
    width: 40px;
    border-radius: 10px;
}

/* 通用区块样式 */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 15px;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

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

.movie-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.movie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.movie-card:hover::before {
    opacity: 1;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(233, 69, 96, 0.4);
}

.movie-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.card-info {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.card-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.card-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.rating,
.badge-new,
.episode {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.rating {
    background: var(--gradient-1);
}

.badge-new {
    background: var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.episode {
    background: var(--gradient-3);
}

/* 文章列表样式 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.article-item {
    display: flex;
    gap: 30px;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    padding: 25px;
    transition: all 0.3s ease;
}

.article-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.article-item img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

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

.article-content {
    flex: 1;
}

.article-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.article-item:hover .article-content h3 {
    color: var(--accent-color);
}

.article-meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.article-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: justify;
}

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

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

.app-info {
    flex: 1;
}

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

.app-slogan {
    font-size: 24px;
    color: var(--light-accent);
    margin-bottom: 30px;
}

.app-features {
    list-style: none;
    margin-bottom: 30px;
}

.app-features li {
    font-size: 18px;
    padding: 12px 0;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.app-features li:hover {
    color: var(--text-color);
    padding-left: 10px;
}

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

.btn-download {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    border: 2px solid var(--text-color);
    border-radius: 12px;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.btn-download .icon {
    font-size: 32px;
}

.btn-download div {
    text-align: left;
}

.btn-download small {
    display: block;
    font-size: 12px;
}

.btn-download strong {
    display: block;
    font-size: 18px;
}

.qr-code {
    text-align: center;
    margin-top: 20px;
}

.qr-code img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 3px solid var(--accent-color);
}

.qr-code p {
    font-size: 14px;
    color: var(--text-secondary);
}

.app-preview {
    display: flex;
    gap: 20px;
    align-items: center;
}

.phone-screen {
    width: 200px;
    height: 400px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.phone-screen:nth-child(2) {
    transform: scale(1.1);
}

.phone-screen:hover {
    transform: scale(1.15);
}

/* 用户评价样式 */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
}

.user-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-color);
}

.rating {
    font-size: 18px;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(to bottom, var(--primary-color), var(--bg-color));
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info li {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    font-size: 28px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2) rotate(10deg);
}

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

.footer-links h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

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

.footer-bottom p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.disclaimer {
    font-size: 12px;
    margin-top: 20px;
    opacity: 0.7;
    line-height: 1.6;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.5);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

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

/* 响应式设计 */
@media (max-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .app-content {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .navbar .container {
        flex-direction: column;
    }
    
    .nav-menu {
        justify-content: center;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .slide-content h1,
    .slide-content h2 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 18px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-preview {
        justify-content: center;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-item img {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .movie-card img {
        height: 280px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .hero-slider {
        height: 300px;
    }
    
    .slide-content h1,
    .slide-content h2 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .nav-menu {
        gap: 15px;
        font-size: 14px;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .search-box input:focus {
        width: 180px;
    }
    
    .app-info h2 {
        font-size: 32px;
    }
    
    .app-slogan {
        font-size: 18px;
    }
    
    .app-features li {
        font-size: 16px;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .phone-screen {
        width: 150px;
        height: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .movie-card img {
        height: 220px;
    }
    
    .card-info {
        padding: 15px;
    }
    
    .card-info h3 {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .section-header p {
        font-size: 14px;
    }
    
    .article-content h3 {
        font-size: 18px;
    }
    
    .article-text {
        font-size: 14px;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .app-preview {
        gap: 10px;
    }
    
    .phone-screen {
        width: 100px;
        height: 200px;
    }
}
