/* 全局样式 */
:root {
    --primary-color: #ff6b81;
    --secondary-color: #7d5fff;
    --accent-color: #ff9ff3;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-alt: #f9f7ff;
    --border-color: #eee;
    --card-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    --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;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* 背景轮播 */
.bg-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 头部样式 */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

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

.main-nav ul {
    display: flex;
}

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

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

.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%;
}

/* 主横幅 */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
}

.search-box button {
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.search-box button:hover {
    background-color: var(--accent-color);
}

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

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

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-desc {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 50px;
}

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

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

.anime-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gradient-img {
    height: 180px;
    width: 100%;
    border-radius: 10px 10px 0 0;
    position: relative;
    overflow: hidden;
}

.anime-info {
    padding: 20px;
}

.anime-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.anime-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.anime-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 电影滑块 */
.movie-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 0 -10px;
    padding: 10px;
}

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

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.movie-info {
    padding: 20px;
}

.movie-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.movie-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.movie-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 推荐标签页 */
.recommend-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-light);
    transition: var(--transition);
    margin: 0 10px;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

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

.recommend-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.recommend-info {
    padding: 15px;
}

.recommend-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.recommend-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 社区特性 */
.community-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
}

/* 资源分类 */
.resource-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-card h3 {
    font-size: 1.3rem;
    margin: 20px 0 10px;
}

.category-card p {
    color: var(--text-light);
    padding: 0 20px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    margin: 10px 0 20px;
    transition: var(--transition);
}

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

/* 新闻文章 */
.news-articles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.news-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

.news-content {
    padding: 20px;
    flex: 1;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.news-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
}

.read-more:hover {
    color: var(--secondary-color);
}

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

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

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.article-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* APP下载区 */
.app-download {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.app-info h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.app-desc {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

.app-features li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.download-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.download-btn {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    background-color: #fff;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.download-btn svg {
    margin-right: 10px;
}

.download-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

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

.qr-code {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    margin-right: 15px;
}

.phone-mockup {
    height: 500px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* 页脚 */
.footer {
    background-color: #222;
    color: #fff;
    padding: 70px 0 30px;
}

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

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col p {
    color: #aaa;
    margin-bottom: 20px;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
}

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

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

.footer-links a {
    color: #aaa;
    transition: var(--transition);
}

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

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #aaa;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #aaa;
}

.contact-info svg {
    margin-right: 10px;
    min-width: 18px;
}

.newsletter h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #fff;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 0.9rem;
}

.newsletter-form button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #777;
    font-size: 0.9rem;
}

.footer-policy {
    display: flex;
    flex-wrap: wrap;
}

.footer-policy a {
    color: #777;
    margin-left: 20px;
    font-size: 0.9rem;
}

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

/* 响应式设计 */
@media (max-width: 1024px) {
    .app-content {
        grid-template-columns: 1fr;
    }
    
    .phone-mockup {
        height: 400px;
        max-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-policy {
        margin-top: 20px;
        justify-content: center;
    }
    
    .footer-policy a {
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        border-radius: 50px;
        margin-bottom: 10px;
    }
    
    .search-box button {
        border-radius: 50px;
    }
    
    .anime-grid, .movie-slider, .recommend-grid, .community-features, .resource-categories, .articles-grid {
        grid-template-columns: 1fr;
    }
}
