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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF6B6B;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #FF6B6B;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #FF5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    color: #fff;
}

.more-btn {
    text-align: center;
    margin-top: 30px;
}

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

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

.section-header h1,
.section-header h2 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h1::after,
.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #FF6B6B;
}

.section-header p {
    font-size: 18px;
    color: #666;
}

/* 头部导航 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #FF6B6B;
}

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

.main-nav ul {
    display: flex;
}

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

.main-nav a {
    font-size: 16px;
    font-weight: 500;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #FF6B6B;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px 0 0 20px;
    outline: none;
    width: 200px;
}

.search-box button {
    background-color: #FF6B6B;
    border: none;
    color: #fff;
    padding: 8px 15px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}

.search-icon::before {
    content: '🔍';
}

/* 轮播图 */
.banner {
    background-color: #f0f0f0;
    padding: 30px 0;
}

.slider {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 400px;
}

.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;
    position: absolute;
    top: 0;
    left: 0;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 30px;
    max-width: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin-left: 50px;
}

.slide-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

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

.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 20px;
}

.prev, .next {
    font-size: 24px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev:hover, .next:hover {
    background-color: rgba(255, 107, 107, 0.8);
}

.dots {
    display: flex;
    justify-content: center;
}

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

.dot.active {
    background-color: #FF6B6B;
}

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

.card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.card-img {
    position: relative;
    height: 280px;
}

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

.tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FF6B6B;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.card-content {
    padding: 15px;
}

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

.card-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

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

.stars {
    color: #FFD700;
}

.score {
    font-weight: bold;
    color: #FF6B6B;
}

/* 动漫资讯 */
.news-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-img {
    flex: 0 0 300px;
    height: 200px;
}

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

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

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

.news-content p {
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.read-more {
    align-self: flex-start;
    color: #FF6B6B;
    font-weight: 500;
}

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

/* 排行榜 */
.ranking-tabs {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tab-header {
    display: flex;
    background-color: #f5f5f5;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab.active {
    background-color: #FF6B6B;
    color: #fff;
}

.tab-content {
    padding: 20px;
}

.tab-pane {
    display: none;
}

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

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background-color: #f0f0f0;
}

.rank {
    font-size: 24px;
    font-weight: bold;
    color: #FF6B6B;
    width: 40px;
    text-align: center;
}

.ranking-item:nth-child(1) .rank {
    color: #FFD700;
}

.ranking-item:nth-child(2) .rank {
    color: #C0C0C0;
}

.ranking-item:nth-child(3) .rank {
    color: #CD7F32;
}

.rank-img {
    width: 80px;
    height: 120px;
    margin: 0 15px;
}

.rank-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.rank-info {
    flex: 1;
}

.rank-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.rank-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.rank-views {
    text-align: right;
    padding-right: 10px;
}

.rank-views span {
    display: block;
    color: #999;
    font-size: 14px;
}

.rank-views strong {
    color: #FF6B6B;
    font-size: 18px;
}

/* APP下载 */
.app-download {
    background-color: #f0f0f0;
}

.app-content {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.app-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

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

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

.feature-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #FF6B6B;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.feature-icon::before {
    content: '✓';
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

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

.download-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    flex: 1;
}

.download-btn.android {
    background-color: #3DDC84;
}

.download-btn.ios {
    background-color: #000;
}

.android-icon::before {
    content: '🤖';
    font-size: 24px;
    margin-right: 10px;
}

.ios-icon::before {
    content: '🍎';
    font-size: 24px;
    margin-right: 10px;
}

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

.btn-text span {
    font-weight: bold;
}

.btn-text small {
    font-size: 12px;
    opacity: 0.8;
}

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

.qrcode img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.app-preview {
    flex: 0 0 300px;
    height: 500px;
    position: relative;
}

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

/* 动漫专题 */
.topics-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.topic-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.topic-img {
    position: relative;
    height: 200px;
}

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

.topic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.topic-overlay h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.topic-overlay p {
    font-size: 14px;
    opacity: 0.8;
}

/* 文章专栏 */
.articles-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-card {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-img {
    flex: 0 0 300px;
    height: 250px;
}

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

.article-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

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

.article-content p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

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

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

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

.footer-logo span {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin-left: 10px;
}

.footer-desc p {
    color: #ccc;
    max-width: 600px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-nav-col {
    flex: 1;
    min-width: 200px;
}

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

.footer-nav-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #FF6B6B;
}

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

.footer-nav-col ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-nav-col ul li a:hover {
    color: #FF6B6B;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #FF6B6B;
    transform: translateY(-5px);
}

.social-link.weibo::before {
    content: '微';
    font-size: 14px;
}

.social-link.wechat::before {
    content: '微';
    font-size: 14px;
}

.social-link.douyin::before {
    content: '抖';
    font-size: 14px;
}

.social-link.bilibili::before {
    content: 'B';
    font-size: 14px;
}

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

.qrcode-container img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

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

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

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

.footer-links h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #FF6B6B;
}

.friend-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links ul li a {
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s ease;
}

.friend-links ul li a:hover {
    color: #FF6B6B;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.copyright {
    text-align: center;
    color: #999;
    font-size: 14px;
}

.copyright p {
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-img {
        flex: 0 0 auto;
        height: 200px;
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-preview {
        flex: 0 0 auto;
        height: 300px;
        width: 100%;
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-img {
        flex: 0 0 auto;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        padding: 10px;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 5px 10px;
    }
    
    .search-box {
        margin-top: 10px;
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .slide-content {
        max-width: 80%;
        margin-left: 20px;
    }
    
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .footer-nav {
        flex-direction: column;
    }
    
    .footer-nav-col {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .section-header h1,
    .section-header h2 {
        font-size: 24px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    .slider {
        height: 300px;
    }
    
    .slide-content {
        max-width: 90%;
        margin-left: 10px;
        padding: 15px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .card-img {
        height: 200px;
    }
    
    .ranking-item {
        flex-wrap: wrap;
    }
    
    .rank-img {
        margin: 10px 0;
    }
    
    .rank-views {
        width: 100%;
        text-align: left;
        padding: 10px 0 0 0;
    }
}

