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

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #c44569;
    --accent-color: #ffa502;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --border-color: #e1e8ed;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --gradient-primary: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    --gradient-secondary: linear-gradient(135deg, #ffa502 0%, #ff6348 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

/* 导航栏样式 */
.header {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.logo-icon {
    font-size: 32px;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.brand-text {
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: block;
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slider-item.active {
    opacity: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.85) 0%, rgba(196, 69, 105, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

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

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-primary, .btn-secondary {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

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

/* 主内容区 */
.main-content {
    padding: 60px 0;
}

.section {
    margin-bottom: 80px;
}

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

.section-title {
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 20px;
}

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

.anime-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.anime-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: var(--shadow-sm);
}

.card-badge.new {
    background: var(--gradient-secondary);
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.rating {
    color: var(--accent-color);
    font-weight: bold;
}

.views, .episode {
    color: var(--text-secondary);
}

/* 电影展示区 */
.movie-showcase {
    display: grid;
    gap: 30px;
}

.movie-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.movie-card:hover {
    box-shadow: var(--shadow-lg);
}

.movie-card.large {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
}

.movie-image {
    position: relative;
    overflow: hidden;
}

.movie-card.large .movie-image {
    height: 100%;
}

.movie-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.movie-info {
    padding: 30px;
}

.movie-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-primary);
}

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

.movie-meta {
    display: flex;
    gap: 25px;
    align-items: center;
    font-size: 15px;
}

.movie-meta .rating {
    font-size: 18px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.movie-grid .movie-card .movie-image {
    height: 280px;
}

.movie-grid .movie-info {
    padding: 20px;
}

.movie-grid .movie-title {
    font-size: 18px;
}

.movie-grid .movie-desc {
    font-size: 14px;
}

/* 文章列表 */
.article-list {
    display: grid;
    gap: 40px;
}

.article-item {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    transition: all 0.3s ease;
}

.article-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

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

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.article-content {
    padding: 30px 30px 30px 0;
}

.article-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-primary);
    line-height: 1.4;
}

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

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

/* APP下载模块 */
.app-container {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 50px;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
}

.app-preview img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.app-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-version {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.app-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.feature-text p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

.download-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.download-btn.android {
    background: linear-gradient(135deg, #3ddc84 0%, #2ca05a 100%);
    color: white;
}

.download-btn.ios {
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
    color: white;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-label {
    font-size: 16px;
    font-weight: bold;
}

.btn-desc {
    font-size: 12px;
    opacity: 0.9;
}

.app-qrcode {
    text-align: center;
}

.app-qrcode img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
}

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

/* 排行榜模块 */
.ranking-container {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 40px;
}

.ranking-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    padding: 12px 30px;
    border: none;
    background: var(--bg-color);
    color: var(--text-secondary);
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
    transform: translateY(-2px);
}

.ranking-list {
    display: grid;
    gap: 15px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 50px 80px 1fr 100px;
    gap: 20px;
    align-items: center;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: #fff;
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.rank-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-secondary);
    text-align: center;
}

.ranking-item.top1 .rank-number {
    color: #ffd700;
    font-size: 32px;
}

.ranking-item.top2 .rank-number {
    color: #c0c0c0;
    font-size: 28px;
}

.ranking-item.top3 .rank-number {
    color: #cd7f32;
    font-size: 28px;
}

.rank-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.rank-info {
    flex: 1;
}

.rank-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.rank-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.rank-score {
    text-align: center;
}

.score-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
}

.score-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer-section {
    
}

.footer-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

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

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

.footer-links-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

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

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

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

.footer-info p {
    margin-bottom: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.divider {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-warning {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 15px;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .movie-card.large {
        grid-template-columns: 350px 1fr;
    }
    
    .app-container {
        grid-template-columns: 350px 1fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .movie-card.large {
        grid-template-columns: 1fr;
    }
    
    .movie-card.large .movie-image {
        height: 400px;
    }
    
    .article-item {
        grid-template-columns: 1fr;
    }
    
    .article-image {
        height: 250px;
    }
    
    .article-content {
        padding: 30px;
    }
    
    .app-container {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    
    .app-features {
        grid-template-columns: 1fr;
    }
    
    .ranking-item {
        grid-template-columns: 40px 70px 1fr 80px;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 450px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .card-image {
        height: 260px;
    }
    
    .movie-grid {
        grid-template-columns: 1fr;
    }
    
    .app-container {
        padding: 30px 20px;
    }
    
    .app-download-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .ranking-item {
        grid-template-columns: 35px 1fr 70px;
        gap: 10px;
    }
    
    .rank-thumb {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-slider {
        height: 350px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .app-title {
        font-size: 24px;
    }
}
