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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.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 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;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.logo span {
    font-size: 0.9rem;
    opacity: 0.9;
}

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

.nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

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

.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    width: 200px;
    outline: none;
}

.search-box button {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: rgba(255,255,255,0.3);
}

/* 主要内容区域 */
.main {
    min-height: calc(100vh - 200px);
}

/* 轮播图区域 */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-slider {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slide {
    display: none;
    align-items: center;
    gap: 3rem;
}

.slide.active {
    display: flex;
}

.slide-content {
    flex: 1;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 700;
}

.slide-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.read-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.slide-image {
    flex: 1;
    text-align: center;
}

.manga-cover {
    width: 200px;
    height: 280px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* 实时数据展示 */
.live-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.live-stats .stat-item {
    text-align: center;
}

.live-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.live-stats .stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* 推荐区域 */
.recommend-section {
    padding: 4rem 0;
    background: white;
}

.recommend-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

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

.manga-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    gap: 1rem;
}

.manga-item:hover {
    transform: translateY(-5px);
}

.manga-item .manga-cover {
    width: 80px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    flex-shrink: 0;
}

.manga-info {
    flex: 1;
}

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

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

.manga-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.manga-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.rating {
    color: #ffc107;
}

.views {
    color: #666;
}

.manga-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #e7f3ff;
    color: #0066cc;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
}

/* 用户评价区域 */
.reviews-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.reviews-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

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

.review-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.user-details h4 {
    margin-bottom: 0.2rem;
    color: #333;
}

.rating {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.user-tag {
    background: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #666;
}

.review-item p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

.review-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
}

.review-helpful {
    color: #28a745;
}

/* 满意度统计 */
.satisfaction-stats {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.satisfaction-stats h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.stats-overview {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
}

.overall-rating {
    text-align: center;
}

.rating-score {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    display: block;
}

.rating-stars {
    color: #ffc107;
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
}

.rating-breakdown {
    min-width: 200px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.rating-bar span:first-child {
    width: 30px;
    color: #666;
}

.rating-bar span:last-child {
    width: 30px;
    color: #666;
    text-align: right;
}

.bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: #ffc107;
    transition: width 0.3s ease;
}

/* 最新更新区域 */
.updates-section {
    padding: 4rem 0;
    background: white;
}

.updates-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

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

.update-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
    position: relative;
}

.update-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.update-cover {
    width: 60px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    flex-shrink: 0;
}

.update-info {
    flex: 1;
}

.update-info h3 {
    margin-bottom: 0.3rem;
    color: #333;
    font-size: 1rem;
}

.update-chapter {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.update-time {
    color: #999;
    font-size: 0.8rem;
}

.update-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* 特色功能区域 */
.features-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

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

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.3rem;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: #667eea;
    font-weight: bold;
}

/* 数据统计区域 */
.stats-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 实时动态 */
.live-activities {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.live-activities h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: white;
}

.activity-list {
    max-width: 600px;
    margin: 0 auto;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

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

.activity-time {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    min-width: 80px;
}

/* 底部样式 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

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

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

/* 内页样式 */
.page-section {
    padding: 4rem 0;
    background: white;
}

.page-section h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #555;
}

/* 用户中心样式 */
.user-center {
    padding: 4rem 0;
    background: white;
}

.user-dashboard {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 2rem;
}

.user-profile {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.avatar-large {
    width: 100px;
    height: 100px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.user-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.user-stats .stat {
    text-align: center;
}

.user-stats .number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .slide {
        flex-direction: column;
        text-align: center;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .live-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .manga-item {
        flex-direction: column;
        text-align: center;
    }
    
    .manga-item .manga-cover {
        width: 120px;
        height: 160px;
        margin: 0 auto;
    }
    
    .stats-overview {
        flex-direction: column;
        gap: 2rem;
    }
    
    .user-dashboard {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-slider {
        padding: 2rem;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .manga-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .updates-list {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}