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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 顶部导航栏 */
.navbar {
    background: linear-gradient(135deg, #4285f4 0%, #1976d2 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(66, 133, 244, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    margin-right: 10px;
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
}
.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    min-height: calc(100vh - 250px);

}

.content-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

/* 小说列表区域 */
.novels-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-header {
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 24px;
    color: #1976d2;
    margin-bottom: 15px;
    font-weight: 600;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e3f2fd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
    transform: translateY(-1px);
}

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

.novel-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.novel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.2);
}

.novel-cover {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.novel-card:hover .novel-cover {
    transform: scale(1.05);
}

.novel-info {
    padding: 15px;
}

.novel-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.novel-author {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.novel-category {
    display: inline-block;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1976d2;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 8px;
}

.novel-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.novel-rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.novel-rating::before {
    content: '⭐';
    font-size: 12px;
}

/* 右侧下载引导区域 */
.download-sidebar {
    position: sticky;
    top: 90px;
}

.download-card {
    background: linear-gradient(135deg, #4285f4 0%, #1976d2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.3);
    margin-bottom: 20px;
}

.download-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.download-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.download-card p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.5;
}

.download-btn {
    display: inline-block;
    background: white;
    color: #4285f4;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.download-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    opacity: 0.9;
}

.feature-icon {
    font-size: 14px;
}

/* 热门排行榜 */
.hot-ranking {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.hot-ranking h4 {
    color: #1976d2;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

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

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.rank {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #4285f4, #1976d2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.ranking-item .title {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 页脚 */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
}
.footer-content {
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
}
.footer-content p {
    color: #666;
    font-size: 13px;
    margin: 5px 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .novels-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .main-content {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .novels-section {
        padding: 20px;
    }
    
    .category-filter {
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .download-sidebar {
        position: static;
        order: -1;
    }
    
    .download-card {
        padding: 20px;
    }
    
    .download-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .novels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .novel-cover {
        height: 200px;
    }
    
    .novel-info {
        padding: 12px;
    }
    
    .novel-title {
        font-size: 14px;
    }
    
    .category-filter {
        gap: 5px;
    }
    
    .filter-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 16px;
    color: #666;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4285f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #999;
}

.empty-state p {
    font-size: 14px;
}
._read_button {
    background: white;
    color: #4285f4;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: bold;
}