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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #2C3E50;
    background-color: #F4F4F4;
}

.hidden {
    display: none !important;
}

/* 加载屏幕 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #C0392B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

/* 主应用容器 */
.main-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* 导航栏 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav-title {
    font-size: 20px;
    font-weight: bold;
    color: #2C3E50;
}

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

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #34495E;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item:hover {
    background-color: #f8f9fa;
    color: #C0392B;
}

.nav-item.active {
    color: #C0392B;
    background-color: #fff5f5;
}

.nav-item i {
    font-size: 20px;
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
}

.nav-user {
    display: flex;
    align-items: center;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: #f8f9fa;
    border-color: #C0392B;
    color: #C0392B;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    overflow-y: auto;
    background-color: #F4F4F4;
    position: relative;
}

.screen {
    display: none;
    height: 100%;
}

.screen.active {
    display: block;
}

.screen-header {
    background-color: #fff;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

.screen-header h1 {
    font-size: 24px;
    font-weight: bold;
    color: #2C3E50;
    margin: 0;
    flex: 1;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: #f8f9fa;
    border-color: #C0392B;
    color: #C0392B;
}

.reader-controls {
    display: flex;
    gap: 12px;
}

.reader-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #C0392B;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.reader-btn:hover {
    background-color: #A93226;
}

.reader-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.content-area {
    padding: 30px;
    min-height: calc(100vh - 140px);
    max-width: 1200px;
    margin: 0 auto;
}

/* 加载占位符 */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #666;
}

.loading-placeholder i {
    font-size: 24px;
    margin-bottom: 12px;
}

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #666;
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ccc;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #2C3E50;
}

.empty-state p {
    font-size: 14px;
    color: #666;
}

/* 书籍网格 */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 400px));
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 20px auto 0;
}

.book-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    height: 200px;
    max-width: 400px;
    width: 100%;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.book-cover {
    width: 100px;
    height: 200px;
    object-fit: cover;
    background-color: #e0e0e0;
    flex-shrink: 0;
}

.book-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.book-title {
    font-size: 16px;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
    word-break: break-word;
    hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.book-author {
    font-size: 14px;
    color: #34495E;
    margin-bottom: 8px;
    line-height: 1.2;
}

.book-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    margin-bottom: 10px;
    flex-grow: 1;
}

.book-progress {
    font-size: 13px;
    color: #C0392B;
    margin-bottom: 8px;
}

.book-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.book-category {
    font-size: 11px;
    color: #C0392B;
    background-color: #fff5f5;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #fdd;
}

.book-chapters {
    font-size: 11px;
    color: #666;
}

.book-price {
    font-size: 12px;
    color: #D4AF37;
    font-weight: bold;
}

/* 分类网格 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    background: linear-gradient(135deg, #C0392B, #E74C3C);
    color: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.category-card:hover::before {
    transform: scale(1);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(192, 57, 43, 0.3);
}

.category-card i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
    opacity: 0.9;
}

/* Categories页面header中的分类选择器样式 */
.category-selector-header {
    width: 100%;
    display: flex;
    align-items: center;
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    flex: 1;
}

.category-tabs::-webkit-scrollbar {
    height: 4px;
}

.category-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background: #C0392B;
    border-radius: 2px;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 20px;
    background-color: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
}

.category-tab:hover {
    border-color: #C0392B;
    color: #C0392B;
}

.category-tab.active {
    background-color: #C0392B;
    border-color: #C0392B;
    color: white;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.3);
}

.category-tab i {
    font-size: 14px;
}

/* Categories页面内容区域样式 */
.category-books-container {
    min-height: 400px;
}

/* 登录页面 */
.auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F4F4F4 0%, #E5E5E5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.auth-container {
    background-color: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(44, 62, 80, 0.15);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    margin: 20px;
    border: 1px solid #E5E5E5;
}

.auth-header {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: white;
    padding: 0px 30px;
    text-align: center;
    border-bottom: 2px solid #34495E;
}

.auth-logo-slogan {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.auth-forms {
    position: relative;
    background-color: #FFFFFF;
    padding: 30px;
}

.auth-form {
    padding: 0;
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    font-size: 20px;
    margin-bottom: 24px;
    text-align: center;
    color: #2C3E50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #2C3E50;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #C0392B;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2C3E50, #34495E);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.4);
    background: linear-gradient(135deg, #34495E, #2C3E50);
}

.auth-switch {
    text-align: center;
    color: #2C3E50;
}

.auth-switch a {
    color: #C0392B;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* 小说详情页面 */
.novel-detail {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.novel-hero {
    display: flex;
    padding: 30px;
    gap: 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.novel-cover-large {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    background-color: #e0e0e0;
    flex-shrink: 0;
}

.novel-info-large {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.novel-title-large {
    font-size: 28px;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 12px;
    line-height: 1.3;
}

.novel-author-large {
    font-size: 18px;
    color: #34495E;
    margin-bottom: 16px;
}

.novel-description-large {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.novel-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.novel-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.novel-stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #C0392B;
}

.novel-stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.novel-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #C0392B, #E74C3C);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #C0392B;
    border: 2px solid #C0392B;
}

.btn-outline:hover {
    background-color: #C0392B;
    color: white;
    transform: translateY(-2px);
}

.btn:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* 章节列表 */
.chapters-section {
    padding: 30px;
}

.chapters-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2C3E50;
}

.chapters-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.chapter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.chapter-item:hover {
    background-color: #e9ecef;
    transform: translateX(4px);
}

.chapter-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.chapter-item.locked:hover {
    transform: none;
}

.chapter-title {
    font-size: 14px;
    color: #2C3E50;
    flex: 1;
}

.chapter-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

.chapter-status.free {
    background-color: #d4edda;
    color: #155724;
}

.chapter-status.paid {
    background-color: #fff3cd;
    color: #856404;
}

.chapter-status.locked {
    background-color: #f8d7da;
    color: #721c24;
}

/* 阅读器 */
.reader-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    line-height: 1.8;
    font-size: 16px;
}

.chapter-title-reader {
    font-size: 24px;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.chapter-content {
    color: #2C3E50;
    line-height: 1.8;
}

.chapter-content p {
    margin-bottom: 16px;
    text-indent: 2em;
}

/* 用户资料 */
.profile-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C0392B, #E74C3C);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: bold;
}

.profile-info h2 {
    font-size: 24px;
    color: #2C3E50;
    margin-bottom: 8px;
}

.profile-info p {
    color: #666;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.profile-stat {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.profile-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #C0392B;
    margin-bottom: 4px;
}

.profile-stat-label {
    font-size: 14px;
    color: #666;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 18px;
    color: #2C3E50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: #f8f9fa;
    color: #C0392B;
}

.modal-body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

/* 响应式设计 */
@media (min-width: 1400px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 380px));
        max-width: 1400px;
        margin: 20px auto 0;
    }
    
    .content-area {
        max-width: 1400px;
        padding: 40px;
    }
    
    .book-card {
        height: 210px;
    }
    
    .book-cover {
        width: 110px;
        height: 210px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 360px));
        max-width: 1200px;
        margin: 20px auto 0;
    }
    
    .book-card {
        height: 205px;
    }
    
    .book-cover {
        width: 105px;
        height: 205px;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 350px));
        max-width: 1000px;
        margin: 20px auto 0;
        justify-content: center;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 350px));
        max-width: 600px;
        margin: 20px auto 0;
        justify-content: center;
    }
    
    .book-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 15px;
        height: 60px;
    }
    
    .nav-title {
        font-size: 16px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-item span {
        display: none;
    }
    
    .screen-header {
        padding: 15px 20px;
    }
    
    .screen-header h1 {
        font-size: 20px;
        margin: 0;
    }
    
    .content-area {
        padding: 20px;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 450px;
        margin: 20px auto 0;
        justify-content: center;
    }
    
    .book-card {
        height: 180px;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .book-cover {
        width: 90px;
        height: 180px;
    }
    
    .book-title {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 8px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    /* Categories页面平板样式 */
    .category-tab {
        padding: 9px 14px;
        font-size: 13px;
    }
    
    .category-tab i {
        font-size: 13px;
    }
    
    .novel-hero {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .novel-cover-large {
        width: 150px;
        height: 225px;
        align-self: center;
    }
    
    .novel-title-large {
        font-size: 24px;
    }
    
    .novel-author-large {
        font-size: 16px;
    }
    
    .novel-description-large {
        font-size: 14px;
    }
    
    .novel-stats {
        justify-content: center;
    }
    
    .novel-actions {
        justify-content: center;
    }
    
    .chapters-section {
        padding: 20px;
    }
    
    .chapters-list {
        grid-template-columns: 1fr;
    }
    
    .reader-content {
        padding: 20px;
        margin: 0 10px;
    }
    
    .chapter-title-reader {
        font-size: 20px;
    }
    
    .reader-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .reader-btn {
        justify-content: center;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 15px;
    }
    
    .nav-item {
        padding: 6px 8px;
    }
    
    .nav-item i {
        font-size: 18px;
    }
    
    .logout-btn span {
        display: none;
    }
    
    .books-grid {
        max-width: 400px;
    }
    
    .book-card {
        height: 180px;
        max-width: 380px;
    }
    
    .book-cover {
        width: 80px;
        height: 180px;
    }
    
    .book-info {
        padding: 12px;
        justify-content: flex-start;
    }
    
    .book-title {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 8px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        max-height: none;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-card {
        padding: 20px 15px;
    }
    
    .category-card i {
        font-size: 24px;
    }
    
    .category-card h3 {
        font-size: 16px;
    }
    
    /* Categories页面移动端样式 */
    .category-tabs {
        gap: 6px;
    }
    
    .category-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .category-tab i {
        font-size: 12px;
    }
    
    .reader-content {
        font-size: 14px;
        padding: 15px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.slide-in {
    animation: slideIn 0.4s ease-out;
}

/* 工具提示 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 8px);
}
