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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

/* 头部导航 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-brand h1 a {
    color: white;
    text-decoration: none;
    font-size: 2.2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-left: 10px;
    color: #e8f4fd;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nav-menu a:hover::before {
    left: 100%;
}

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

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-btn, .login-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-btn:hover, .login-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* 搜索区域 */
.search-section {
    background: white;
    padding: 3rem 0;
    border-bottom: 1px solid #eee;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-radius: 30px;
    overflow: hidden;
    background: white;
}

.search-input {
    flex: 1;
    padding: 1.2rem 2rem;
    border: none;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
}

.search-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-submit:hover {
    transform: scale(1.05);
}

.hot-keywords {
    text-align: center;
    color: #666;
}

.hot-keywords a {
    color: #667eea;
    text-decoration: none;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #f0f2ff 0%, #e8f4fd 100%);
    transition: all 0.3s ease;
    display: inline-block;
}

.hot-keywords a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

/* 轮播区域 */
.banner-section {
    padding: 3rem 0;
}

.banner-slider {
    position: relative;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.banner-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

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

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

.banner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 4rem 3rem 3rem;
}

.banner-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-info p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.read-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255,107,107,0.4);
}

.read-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,107,107,0.6);
}

/* 统计数据 */
.stats-section {
    background: white;
    padding: 4rem 0;
    margin: 3rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateX(-50%);
    border-radius: 2px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 1.2rem;
    font-weight: 500;
}

/* 热门漫画 */
.hot-manga-section {
    padding: 4rem 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.more-link {
    color: #667eea;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    background: linear-gradient(135deg, #f0f2ff 0%, #e8f4fd 100%);
    transition: all 0.3s ease;
}

.more-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

.manga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.manga-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
}

.manga-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.manga-cover {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.manga-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.manga-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(255,107,107,0.4);
}

.manga-info {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.manga-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.manga-author {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.manga-rating {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.stars {
    color: #ffd700;
    font-size: 1.1rem;
}

.score {
    color: #667eea;
    font-weight: bold;
    font-size: 1.1rem;
}

.manga-desc {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.manga-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #888;
}

/* 用户评价 */
.reviews-section {
    background: white;
    padding: 4rem 0;
    margin: 3rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.review-stats {
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 500;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.review-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid #667eea;
    transition: all 0.3s ease;
}

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

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: white;
}

.user-info {
    flex: 1;
}

.username {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.user-level {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 500;
}

.review-rating {
    color: #ffd700;
    font-size: 1.2rem;
}

.review-content {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

.review-actions {
    display: flex;
    gap: 1rem;
}

.review-actions button {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

.review-actions button:hover {
    color: #764ba2;
    background: rgba(102,126,234,0.1);
}

/* 最新更新 */
.latest-updates {
    padding: 4rem 0;
}

.update-time {
    color: #666;
    font-size: 1rem;
    background: linear-gradient(135deg, #f0f2ff 0%, #e8f4fd 100%);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.updates-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.update-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

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

.update-cover {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

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

.update-info h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.update-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.update-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* 底部 */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

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

.footer-section h3, .footer-section h4 {
    margin-bottom: 1.5rem;
    color: #ecf0f1;
    font-size: 1.3rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
}

.footer-section a:hover {
    color: #667eea;
    padding-left: 10px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    background: #34495e;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    display: inline-block;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #667eea;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    text-align: center;
    color: #95a5a6;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .manga-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-info h3 {
        font-size: 1.8rem;
    }
    
    .banner-info p {
        font-size: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .updates-list {
        grid-template-columns: 1fr;
    }
}