/* 全局样式 */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #292F36;
    --text-color: #333333;
    --light-text: #FFFFFF;
    --bg-color: #F7F7F7;
    --card-bg: #FFFFFF;
    --border-color: #EEEEEE;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

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

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;
    background: none;
    font-family: inherit;
}

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

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-color);
    position: relative;
    padding-left: 15px;
}

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

.more-link {
    color: var(--secondary-color);
    font-weight: 500;
}

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

/* 渐变背景 */
.gradient-1 { background: linear-gradient(135deg, #FF9A8B, #FF6A88); }
.gradient-2 { background: linear-gradient(135deg, #FCCF31, #F55555); }
.gradient-3 { background: linear-gradient(135deg, #A8EDEA, #FED6E3); }
.gradient-4 { background: linear-gradient(135deg, #5EE7DF, #B490CA); }
.gradient-5 { background: linear-gradient(135deg, #D4FC79, #96E6A1); }
.gradient-6 { background: linear-gradient(135deg, #E2B0FF, #9F44D3); }
.gradient-7 { background: linear-gradient(135deg, #F97794, #623AA2); }
.gradient-8 { background: linear-gradient(135deg, #F761A1, #8C1BAB); }
.gradient-9 { background: linear-gradient(135deg, #43CBFF, #9708CC); }
.gradient-10 { background: linear-gradient(135deg, #FF512F, #DD2476); }
.gradient-11 { background: linear-gradient(135deg, #FFC371, #FF5F6D); }
.gradient-12 { background: linear-gradient(135deg, #C2E59C, #64B3F4); }
.gradient-13 { background: linear-gradient(135deg, #7F7FD5, #86A8E7, #91EAE4); }
.gradient-14 { background: linear-gradient(135deg, #FFD26F, #3677FF); }
.gradient-15 { background: linear-gradient(135deg, #A1C4FD, #C2E9FB); }
.gradient-16 { background: linear-gradient(135deg, #764BA2, #667EEA); }
.gradient-17 { background: linear-gradient(135deg, #FF9A9E, #FECFEF); }
.gradient-18 { background: linear-gradient(135deg, #F6D365, #FDA085); }
.gradient-19 { background: linear-gradient(135deg, #96FBC4, #F9F586); }
.gradient-20 { background: linear-gradient(135deg, #FFAFBD, #FFC3A0); }
.gradient-21 { background: linear-gradient(135deg, #2AF598, #009EFD); }
.gradient-22 { background: linear-gradient(135deg, #FFDDE1, #EE9CA7); }
.gradient-23 { background: linear-gradient(135deg, #CFECD0, #A0CEA7); }
.gradient-24 { background: linear-gradient(135deg, #EA8D8D, #A890FE); }
.gradient-25 { background: linear-gradient(135deg, #D8B5FF, #1EAE98); }
.gradient-26 { background: linear-gradient(135deg, #FFB88C, #DE6262); }
.gradient-27 { background: linear-gradient(135deg, #69FF97, #00E4FF); }
.gradient-28 { background: linear-gradient(135deg, #FFF720, #3CD500); }
.gradient-29 { background: linear-gradient(135deg, #FF6FD8, #3813C2); }

/* 头部导航 */
.header {
    background-color: var(--accent-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo a {
    display: flex;
    align-items: center;
    color: var(--light-text);
    font-size: 24px;
    font-weight: 700;
}

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

.main-nav ul {
    display: flex;
}

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

.main-nav a {
    color: var(--light-text);
    font-weight: 500;
    padding: 8px 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::after {
    width: 100%;
}

.search-box {
    display: flex;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.search-box input {
    background: transparent;
    border: none;
    padding: 8px 15px;
    color: var(--light-text);
    width: 200px;
}

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

.search-box button {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 8px 15px;
    font-weight: 500;
}

/* 横幅 */
.banner {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.banner-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.8;
    z-index: -1;
}

.banner-content {
    color: var(--light-text);
    max-width: 600px;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner p {
    font-size: 18px;
    margin-bottom: 30px;
}

.banner-buttons {
    display: flex;
}

.btn {
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    margin-right: 15px;
    transition: var(--transition);
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--light-text);
    border: 2px solid var(--light-text);
}

.btn-secondary:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 最新更新 */
.latest-section {
    padding: 60px 0;
}

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

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

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

.anime-cover {
    height: 250px;
    position: relative;
}

.anime-info {
    padding: 15px;
}

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

.anime-info p {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    background-color: var(--secondary-color);
    color: var(--light-text);
    border-radius: 10px;
    font-size: 12px;
    margin-right: 5px;
}

/* 热门推荐 */
.popular-section {
    padding: 60px 0;
    background-color: #f0f0f0;
}

.anime-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.anime-slider::-webkit-scrollbar {
    height: 6px;
}

.anime-slider::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 3px;
}

.anime-card.large {
    min-width: 300px;
    flex: 0 0 auto;
}

.anime-card.large .anime-cover {
    height: 350px;
}

.rating {
    margin: 8px 0;
}

.stars {
    color: #FFD700;
}

.score {
    font-weight: 700;
    margin-left: 5px;
}

/* 动漫分类 */
.category-section {
    padding: 60px 0;
}

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

.category-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.category-item h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.category-item p {
    font-size: 12px;
    color: #888;
}

/* 新番时间表 */
.schedule-section {
    padding: 60px 0;
    background-color: #f0f0f0;
}

.schedule-tabs {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tab-header {
    display: flex;
    background-color: var(--accent-color);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    color: var(--light-text);
    font-weight: 500;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.tab-btn.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 20px;
}

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

.schedule-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    width: 80px;
    font-weight: 700;
    color: var(--primary-color);
}

.schedule-anime {
    display: flex;
    align-items: center;
    flex: 1;
}

.anime-cover-small {
    width: 60px;
    height: 80px;
    border-radius: 5px;
    margin-right: 15px;
}

/* APP下载 */
.download-section {
    padding: 60px 0;
    background-color: var(--accent-color);
    color: var(--light-text);
}

.download-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.download-info {
    flex: 1;
}

.download-info h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.download-info p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.feature-list {
    margin-bottom: 30px;
}

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

.icon-check {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.icon-check::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border-bottom: 2px solid var(--light-text);
    border-right: 2px solid var(--light-text);
}

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

.download-btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: var(--light-text);
    color: var(--accent-color);
    border-radius: 10px;
    font-weight: 600;
}

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

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

.qrcode {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
    background-color: var(--light-text);
    border-radius: 10px;
}

.app-preview {
    flex: 1;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
}

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

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

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

.article-cover {
    height: 200px;
}

.article-content {
    padding: 20px;
}

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

.article-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

.article-content p {
    font-size: 14px;
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

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

.read-more:hover {
    text-decoration: underline;
}

/* 关于我们 */
.about-section {
    padding: 60px 0;
    background-color: #f0f0f0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
}

.contact-info {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-item i {
    margin-right: 10px;
    color: var(--primary-color);
}

.about-image {
    flex: 1;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

/* 页脚 */
.footer {
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 60px 0 30px;
}

.footer-top {
    display: flex;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-right: 60px;
}

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

.footer-nav {
    display: flex;
    flex: 1;
    justify-content: space-between;
}

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

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

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

.footer-nav-column ul li a {
    opacity: 0.8;
}

.footer-nav-column ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
}

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

.social-link {
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: var(--transition);
}

.social-link:hover {
    opacity: 1;
}

.social-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 8px;
}

.social-icon.weibo {
    background: linear-gradient(135deg, #FF9A8B, #FF6A88);
}

.social-icon.wechat {
    background: linear-gradient(135deg, #A8EDEA, #FED6E3);
}

.social-icon.bilibili {
    background: linear-gradient(135deg, #5EE7DF, #B490CA);
}

.footer-middle {
    margin-bottom: 40px;
}

.footer-middle h4 {
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

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

.footer-middle ul li a, .footer-middle ul a {
    opacity: 0.8;
    font-size: 14px;
}

.footer-middle ul li a:hover, .footer-middle ul a:hover {
    opacity: 1;
    color: var(--primary-color);
}

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

.footer-bottom p {
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header .container {
        flex-wrap: wrap;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
    
    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .banner h1 {
        font-size: 36px;
    }
    
    .download-content, .about-content {
        flex-direction: column;
    }
    
    .app-preview, .about-image {
        width: 100%;
        height: 300px;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 30px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
    }
    
    .footer-nav-column {
        width: 50%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-nav-column {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .banner {
        height: 400px;
    }
    
    .banner h1 {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .anime-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-buttons {
        flex-direction: column;
    }
}
