/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
    font-style: normal;
}

/* 暖黄配色方案 - 米黄白色系 */
:root {
    --primary-color: #E5B87D;
    --primary-light: #F0D4A8;
    --primary-dark: #C99B5F;
    --primary-bg: #FDF8E8;
    --accent-color: #F0D4A8;
    --text-primary: #4A4A4A;
    --text-secondary: #6B6B6B;
    --text-muted: #999999;
    --bg-light: #FEFDF9;
    --bg-white: #FFFFFF;
    --border-color: #F5EBD6;
    --shadow: rgba(229, 184, 125, 0.12);
}

body {
    font-size: 14px;
    background: #FDFCF9;
    color: var(--text-primary);
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
}

/* 容器 */
.globalWidth {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.notMargin {
    margin: 0 auto;
}

/* 顶部栏 */
.top-bar {
    background: linear-gradient(90deg, var(--primary-bg) 0%, var(--primary-light) 50%, var(--primary-bg) 100%);
    color: var(--primary-dark);
    height: 36px;
    display: flex;
    align-items: center;
    font-size: 13px;
}

/* 主头部 */
.main-header {
    background: var(--bg-white);
    height: 90px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px var(--shadow);
}

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

.logo .site-logo-text {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

/* 搜索框 */
.search-box form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 16px;
}

.search-input-wrap input {
    height: 44px;
    width: 320px;
    padding-left: 40px;
    padding-right: 15px;
    border: 2px solid var(--border-color);
    outline: none;
    background: var(--bg-white);
    color: var(--text-primary);
    border-radius: 22px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-input-wrap input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(95, 184, 166, 0.15);
}

.search-box button {
    width: 80px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 22px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 184, 166, 0.35);
}

/* 导航栏 */
.main-nav {
    background: linear-gradient(90deg, var(--primary-bg) 0%, var(--primary-light) 50%, var(--primary-bg) 100%);
    height: 50px;
}

.nav-list {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
}

.nav-list li a {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 15px;
    padding: 0 18px;
    height: 50px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.nav-list li a:hover {
    background: rgba(255,255,255,0.5);
    color: var(--text-primary);
}

/* 内容区域 */
.content {
    padding: 20px 0;
}

/* 区块标题 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(90deg, var(--primary-bg) 0%, var(--primary-light) 100%);
    border-radius: 8px 8px 0 0;
}

.section-header h2 {
    color: var(--primary-dark);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h2 i {
    font-size: 20px;
    color: var(--primary-color);
}

.section-header .more {
    color: var(--primary-dark);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-header .more:hover {
    color: var(--text-primary);
}

/* 热门推荐区域 */
.hot-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.hot-main {
    flex: 1;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 12px var(--shadow);
}

.hot-books {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.book-card {
    text-align: center;
}

.book-cover {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--primary-light) 100%);
}

.book-cover:hover {
    transform: translateY(-5px);
}

.book-cover .book-title {
    color: var(--primary-dark);
    font-size: 16px;
    font-weight: bold;
    text-shadow: none;
    padding: 10px;
}

.book-info h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.book-info h3 a {
    color: var(--text-primary);
    font-weight: 600;
}

.book-info h3 a:hover {
    color: var(--primary-color);
}

.book-info .meta-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 12px;
}

.book-info .meta-line .author {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.book-info .meta-line .author i {
    color: var(--primary-color);
    font-size: 12px;
}

.book-info .meta-line .hot {
    color: #E5B87D;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.book-info .meta-line .hot i {
    color: #E5B87D;
    font-size: 12px;
}

.book-info .category {
    color: var(--primary-color);
    font-size: 12px;
    background: var(--primary-bg);
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 6px;
}

.book-info .add-time {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}

/* 排行榜侧边栏 */
.rank-sidebar {
    width: 300px;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 12px var(--shadow);
}

.rank-list {
    padding: 15px 20px;
}

.rank-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

.rank-list li:last-child {
    border-bottom: none;
}

.rank-num {
    width: 24px;
    height: 24px;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    color: var(--text-secondary);
    margin-right: 12px;
    flex-shrink: 0;
}

.rank-num.top3 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.rank-list li a {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-list li a:hover {
    color: var(--primary-color);
}

.rank-list .author {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: 8px;
}

/* 分类推荐 */
.category-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.category-box {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 12px var(--shadow);
    overflow: hidden;
}

.book-list {
    padding: 15px 20px;
}

.book-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-color);
}

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

.book-cover-small {
    width: 80px;
    height: 100px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--primary-light) 100%);
}

.book-cover-small span {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    padding: 5px;
}

.book-detail {
    flex: 1;
    min-width: 0;
}

.book-detail h4 {
    font-size: 15px;
    margin-bottom: 8px;
}

.book-detail h4 a {
    color: var(--text-primary);
    font-weight: 600;
}

.book-detail h4 a:hover {
    color: var(--primary-color);
}

.book-detail .author {
    color: var(--primary-color);
    font-size: 13px;
    margin-bottom: 8px;
}

.book-detail .author a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color);
    transition: all 0.3s;
}

.book-detail .author a:hover {
    border-bottom: 1px solid var(--primary-color);
    background: rgba(229, 184, 125, 0.15);
    padding: 2px 6px;
    border-radius: 3px;
}

.book-detail .desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}

.book-detail .add-time {
    color: var(--text-muted);
    font-size: 12px;
}

/* 页脚 */
.footer {
    background: #3D5A56;
    color: #B8D4CF;
    padding: 30px 0;
    margin-top: 20px;
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #D5E8E4;
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-links span {
    color: #5FB8A6;
}

.copyright {
    font-size: 13px;
    line-height: 1.8;
}

/* 响应式 */
@media (max-width: 768px) {
    .globalWidth {
        padding: 0 10px;
    }
    
    .main-header {
        height: auto;
        padding: 15px 0;
    }
    
    .main-header .globalWidth {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo .site-logo-text {
        font-size: 24px;
    }
    
    .search-input-wrap input {
        width: 250px;
    }
    
    .main-nav {
        height: auto;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 0;
    }
    
    .nav-list li a {
        height: 40px;
        padding: 0 12px;
        font-size: 14px;
    }
    
    .hot-section {
        flex-direction: column;
    }
    
    .hot-books {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rank-sidebar {
        width: 100%;
    }
    
    .category-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-box {
        margin: 0 10px;
    }
    
    .book-list {
        padding: 10px 15px;
    }
    
    .book-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 12px 0;
        gap: 12px;
    }

    .book-cover-small {
        width: 75px;
        height: 100px;
        border-radius: 4px;
    }

    .book-detail {
        width: auto;
        flex: 1;
        min-width: 0;
    }

    .book-detail h4 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .book-detail .author {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .book-detail .desc {
        font-size: 12px;
        line-height: 1.5;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 4px;
    }

    .book-detail .add-time {
        font-size: 11px;
        color: var(--text-tertiary);
    }
}

/* ==================== 搜索页面样式 ==================== */
.search-filter-section {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 12px var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.current-search {
    padding: 20px;
    background: linear-gradient(90deg, var(--primary-bg) 0%, var(--primary-light) 100%);
    border-bottom: 1px solid var(--border-color);
}

.current-search h2 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.current-search .keyword {
    color: var(--primary-color);
    font-weight: bold;
}

.current-search p {
    color: var(--text-secondary);
    font-size: 14px;
}

.filter-box {
    padding: 15px 20px;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

.filter-row:last-child {
    border-bottom: none;
}

.filter-label {
    width: 60px;
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
    padding-top: 4px;
}

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

.filter-options a {
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    background: #f5f5f5;
    transition: all 0.3s;
}

.filter-options a:hover,
.filter-options a.active {
    background: var(--primary-color);
    color: #fff;
}

/* 搜索结果 */
.search-result-section {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 12px var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.book-cover-medium {
    flex-shrink: 0;
}

.cover-placeholder {
    width: 120px;
    height: 160px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.cover-placeholder span {
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.result-info h3 a {
    color: var(--text-primary);
    font-weight: 600;
}

.result-info h3 a:hover {
    color: var(--primary-color);
}

.result-info .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.result-info .meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-info .meta i {
    color: var(--primary-color);
}

.result-info .meta a {
    color: var(--primary-color);
}

.result-info .meta .author-link {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color);
    transition: all 0.3s;
}

.result-info .meta .author-link:hover {
    border-bottom: 1px solid var(--primary-color);
    background: rgba(229, 184, 125, 0.15);
    padding: 2px 6px;
    border-radius: 3px;
}

.result-info .desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.result-info .latest {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.result-info .latest a {
    color: var(--primary-color);
}

.result-info .update-time {
    color: var(--text-muted);
    margin-left: 10px;
}

.result-info .actions {
    display: flex;
    gap: 10px;
}

.btn-primary,
.btn-secondary {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 184, 166, 0.35);
    color: #fff;
}

.btn-secondary {
    background: #f5f5f5;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #e8e8e8;
    color: var(--text-primary);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.pagination a {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 4px;
    background: #f5f5f5;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.pagination a.next {
    padding: 0 16px;
}

.pagination span {
    color: var(--text-muted);
}

/* ==================== 书籍详情页样式 ==================== */
.book-detail-section {
    display: flex;
    gap: 20px;
}

.book-main {
    flex: 1;
    min-width: 0;
}

.book-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 书籍头部 */
.book-header {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 30px;
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.book-cover-large {
    flex-shrink: 0;
}

.cover-placeholder-large {
    width: 200px;
    height: 280px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    overflow: hidden;
}

.cover-placeholder-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.cover-placeholder-large span {
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}

.book-meta-large {
    flex: 1;
    min-width: 0;
}

.book-meta-large h1 {
    font-size: 28px;
    color: var(--text-primary);
    font-weight: 600;
}

.book-title-row .author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 16px;
    border-left: 1px solid var(--border-color);
}

.book-title-row .author i {
    color: var(--primary-color);
    font-size: 15px;
}

.book-title-row .author a {
    color: var(--primary-color);
    font-weight: 500;
}

.status-complete {
    color: #4CAF50;
}

.status-serial {
    color: #FF9800;
}

.book-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 10px 0 6px;
    padding: 10px 0;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

.book-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.book-stats i {
    color: var(--primary-color);
    font-size: 15px;
}

/* 移动端简介缩略 - PC端隐藏 */
.book-desc-mobile {
    display: none;
}

/* 移动端下载区域 - PC端隐藏 */
.mobile-download-wrap {
    display: none;
}

.last-update {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.last-update a {
    color: var(--primary-color);
}

.update-time {
    color: var(--text-muted);
    margin-left: 10px;
}

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

.book-actions a {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.btn-read {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-weight: 600;
}

.btn-read:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 184, 166, 0.4);
    color: #fff;
}

.btn-latest {
    background: #f5f5f5;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-latest:hover {
    background: #e8e8e8;
    color: var(--text-primary);
}

.btn-favorite,
.btn-recommend {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-favorite:hover,
.btn-recommend:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 书籍简介 */
.book-intro {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 12px var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.intro-content {
    padding: 20px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.intro-content p {
    margin-bottom: 12px;
    text-indent: 2em;
}

.intro-content p:last-child {
    margin-bottom: 0;
}

/* 书评区 */
.comment-section {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 12px var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.comment-list {
    padding: 20px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px dashed var(--border-color);
}

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

.comment-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.user-name {
    font-size: 14px;
    color: var(--text-secondary);
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.comment-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.comment-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.comment-meta span:hover {
    color: var(--primary-color);
}

/* 侧边栏 */
.sidebar-box {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 12px var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.author-books,
.recommend-books,
.read-history {
    padding: 15px 20px;
}

.author-books li,
.recommend-books li,
.read-history li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}

.author-books li:last-child,
.recommend-books li:last-child,
.read-history li:last-child {
    border-bottom: none;
}

.author-books a,
.read-history a {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-books a:hover,
.read-history a:hover {
    color: var(--primary-color);
}

.author-books .category {
    font-size: 12px;
    color: var(--primary-color);
    background: var(--primary-bg);
    padding: 2px 8px;
    border-radius: 4px;
}

.recommend-books .rank {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-right: 10px;
    flex-shrink: 0;
}

.recommend-books li:nth-child(-n+3) .rank {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.recommend-books a {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommend-books a:hover {
    color: var(--primary-color);
}

.recommend-books .author {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
}

.read-history .time {
    font-size: 12px;
    color: var(--text-muted);
}

/* 响应式 - 详情页 */
@media (max-width: 768px) {
    .book-detail-section {
        flex-direction: column;
    }
    
    .book-sidebar {
        width: 100%;
    }
    
    .book-header {
        flex-direction: row;
        padding: 12px;
        gap: 12px;
        align-items: flex-start;
        border-radius: 8px;
        margin-bottom: 12px;
    }
    
    .cover-placeholder-large {
        width: 85px;
        height: 113px;
        margin: 0;
        flex-shrink: 0;
        border-radius: 8px;
    }
    
    .cover-placeholder-large img {
        border-radius: 8px;
    }
    
    .book-meta-large {
        flex: 1;
        min-width: 0;
    }
    
    .book-meta-large h1 {
        font-size: 16px;
        line-height: 1.4;
        font-weight: 600;
        /* 允许换行，不截断 */
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    
    .book-title-row .author {
        font-size: 12px;
        color: var(--text-secondary);
        white-space: nowrap;
        padding-left: 10px;
        border-left: 1px solid var(--border-color);
    }
    
    .book-stats {
        justify-content: flex-start;
        font-size: 12px;
        padding: 4px 0;
        margin: 4px 0 2px;
        gap: 12px;
        border-top: none;
        border-bottom: none;
    }
    
    /* 移动端隐藏推荐状态标签 */
    .book-stats .rec {
        display: none;
    }
    
    /* 移动端隐藏书籍简介区块（用弹窗代替） */
    .book-intro {
        display: none;
    }
    
    /* 移动端简介缩略 */
    .book-desc-mobile {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        margin-top: 6px;
    }
    
    .book-desc-mobile .desc-text {
        font-size: 13px;
        color: var(--text-muted);
        line-height: 1.6;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        flex: 1;
        min-width: 0;
    }
    
    .book-desc-mobile .btn-expand {
        flex-shrink: 0;
        font-size: 12px;
        color: var(--primary-color);
        background: none;
        border: 1px solid var(--primary-color);
        border-radius: 12px;
        padding: 2px 12px;
        cursor: pointer;
        white-space: nowrap;
        line-height: 1.5;
        align-self: flex-start;
    }
    
    .book-actions {
        justify-content: center;
    }
    
    .chapter-items {
        grid-template-columns: 1fr;
    }
    
    .result-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 0;
    }
    
    .cover-placeholder {
        width: 75px;
        height: 100px;
        border-radius: 4px;
        margin: 0;
    }
    
    .result-info {
        flex: 1;
        min-width: 0;
    }
    
    .result-info h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .result-info .meta {
        font-size: 12px;
        margin-bottom: 5px;
        gap: 10px;
    }
    
    .result-info .desc {
        font-size: 12px;
        line-height: 1.5;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 4px;
    }
    
    .result-info .latest {
        font-size: 11px;
        color: var(--text-tertiary);
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-label {
        margin-bottom: 8px;
    }
    
    /* 移动端：隐藏PC下载按钮，显示移动端下载区域 */
    .pc-download {
        display: none !important;
    }
    
    .mobile-download-wrap {
        display: block;
        background: var(--bg-white);
        border-radius: 10px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.05);
        padding: 14px;
        margin: 0;
    }
    
    .mobile-download-wrap .book-download {
        margin-top: 0;
    }
    
    .mobile-download-wrap .btn-download {
        padding: 13px 20px;
        font-size: 15px;
        letter-spacing: 0.5px;
    }
}

/* ==================== 留言页面样式 ==================== */
/* ========================================
   求书留言页面
   ======================================== */

.message-section {
    max-width: 860px;
    margin: 0 auto;
}

/* Hero 标题区 */
.message-hero {
    text-align: center;
    padding: 50px 20px 40px;
    background: linear-gradient(135deg, #fdf7e6 0%, #faf0d2 40%, #fdf8ee 100%);
    border-radius: 16px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.message-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: rgba(229, 184, 125, 0.1);
    border-radius: 50%;
}
.message-hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: rgba(229, 184, 125, 0.07);
    border-radius: 50%;
}

.hero-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(229, 184, 125, 0.3);
}
.hero-icon i {
    font-size: 30px;
    color: #fff;
}

.message-hero h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.message-hero p {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.hero-stat-item {
    background: #fff;
    border-radius: 12px;
    padding: 14px 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-align: center;
}
.hero-stat-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}
.hero-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* 表单卡片 */
.message-form-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 0;
    margin-bottom: 24px;
    overflow: hidden;
}

.form-box-header {
    padding: 18px 28px;
    background: linear-gradient(90deg, #fffaf2 0%, #fdf3dd 100%);
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-box-header i {
    color: var(--primary-color);
    font-size: 18px;
}

.message-form {
    padding: 28px;
}

.message-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 15px;
}

.form-group .required {
    color: #e74c3c;
    font-size: 14px;
}

.form-group input {
    padding: 13px 16px;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.25s;
    background: #fafbfc;
    color: var(--text-primary);
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(95, 184, 166, 0.1);
}

.form-group input::placeholder {
    color: #bbb;
}

.form-tips {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
    background: #f8fcfb;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #5a9685;
    line-height: 1.6;
    border: 1px solid #e8f5f0;
}
.form-tips i {
    color: var(--primary-color);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.form-actions {
    text-align: center;
}

.btn-submit {
    padding: 15px 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(229, 184, 125, 0.35);
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(229, 184, 125, 0.5);
}
.btn-submit:active {
    transform: translateY(0);
}
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.btn-submit i {
    font-size: 18px;
}

/* 留言列表 */
.message-list-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 28px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f4f3;
    margin-bottom: 20px;
}

.list-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-header h2 i {
    color: var(--primary-color);
}

.list-count {
    font-size: 13px;
    color: #aaa;
    background: #f5f5f5;
    padding: 4px 14px;
    border-radius: 20px;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-item {
    padding: 20px 22px;
    background: #fffef9;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.25s;
}
.message-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 16px var(--shadow);
    background: #fff;
}

.message-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.message-time {
    font-size: 12px;
    color: #bbb;
}

.message-status {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-approved {
    background: var(--primary-bg);
    color: var(--primary-dark);
}

/* 求书内容 */
.message-body {
    margin-bottom: 8px;
}

.book-request {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.book-request i {
    color: var(--primary-color);
    font-size: 15px;
}

.book-request .book-name {
    font-size: 17px;
    font-weight: 700;
    color: #333;
}

.book-request .author {
    font-size: 12px;
    color: #888;
    background: #f3f5f7;
    padding: 3px 12px;
    border-radius: 20px;
}

/* 等待回复 */
.message-waiting {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 10px 14px;
    background: #fefaf0;
    border-radius: 8px;
    font-size: 13px;
    color: #b8953a;
    border: 1px solid #fdf0d5;
}
.message-waiting i {
    font-size: 15px;
}

/* 管理员回复 */
.message-reply {
    display: flex;
    gap: 10px;
    background: linear-gradient(135deg, #fef9ed 0%, #fdf3dc 100%);
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 12px;
    border: 1px solid var(--primary-light);
}

.reply-arrow {
    color: var(--primary-color);
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}

.reply-body {
    flex: 1;
    min-width: 0;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

.reply-header i {
    color: var(--primary-color);
    font-size: 14px;
}

.reply-header span:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
}

.reply-time {
    color: #bbb;
    margin-left: auto;
    font-size: 12px;
}

.reply-content {
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    word-break: break-word;
}

.auto-link {
    color: #409eff;
    text-decoration: underline;
    word-break: break-all;
}
.auto-link:hover {
    color: #66b1ff;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: #f0f5f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-icon i {
    font-size: 32px;
    color: #ccc;
}
.empty-title {
    font-size: 16px;
    color: #888;
    margin-bottom: 6px;
}
.empty-desc {
    font-size: 13px;
    color: #bbb;
}

/* 分页 */
.pagination-wrapper {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    background: #fafafa;
}
.page-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f8fcfb;
}
.page-btn.prev i {
    transform: rotate(180deg);
}
.page-numbers {
    display: flex;
    gap: 4px;
}
.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    background: #fafafa;
}
.page-num:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.page-num.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    cursor: default;
}

/* ========================================
   移动端响应式
   ======================================== */
@media (max-width: 768px) {
    .message-section {
        max-width: 100%;
    }

    .message-hero {
        padding: 36px 16px 28px;
        border-radius: 12px;
        margin-bottom: 16px;
    }
    .message-hero h1 {
        font-size: 22px;
    }
    .message-hero p {
        font-size: 13px;
        padding: 0 8px;
    }
    .hero-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }
    .hero-icon i {
        font-size: 24px;
    }
    .hero-stat-item {
        padding: 10px 24px;
    }
    .hero-stat-num {
        font-size: 20px;
    }

    .message-form-box {
        border-radius: 12px;
        margin-bottom: 16px;
    }
    .form-box-header {
        padding: 14px 18px;
        font-size: 15px;
    }
    .message-form {
        padding: 18px;
    }
    .message-form .form-row {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 14px;
    }
    .form-group input {
        padding: 12px 14px;
        font-size: 16px;
        border-radius: 8px;
    }
    .form-tips {
        font-size: 12px;
        padding: 12px 14px;
    }
    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 15px 24px;
        font-size: 16px;
        border-radius: 10px;
    }

    .message-list-box {
        padding: 16px;
        border-radius: 12px;
    }
    .list-header {
        padding-bottom: 12px;
        margin-bottom: 14px;
    }
    .list-header h2 {
        font-size: 16px;
    }
    .message-list {
        gap: 12px;
    }
    .message-item {
        padding: 14px 16px;
        border-radius: 10px;
    }
    .book-request .book-name {
        font-size: 16px;
    }

    .message-reply {
        padding: 12px 14px;
        flex-direction: column;
        border-radius: 8px;
    }
    .reply-arrow {
        display: none;
    }
    .reply-content {
        font-size: 13px;
        line-height: 1.7;
    }

    .empty-state {
        padding: 40px 16px;
    }

    .page-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    .page-num {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .pagination {
        gap: 2px;
    }
}
