:root {
    --primary-color: #1a56db;
    --secondary-color: #2563eb;
    --light-bg: #f8fafc;
    --dark-bg: #0f172a;
    --text-color: #1e293b;
    --light-text: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    --content-width: 800px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f1f5f9;
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 66px; /* 为底部固定工具栏留空间 */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 10px;
}

/* 头部样式 - 合并版本 */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content{
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    margin-right: 30px;
    text-decoration: none;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-left: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo i {
    font-size: 2.2rem;
    color: #ffd43b;
}

.logo img {
    width: 45%;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* 搜索区域样式 */
.search-section {
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--card-shadow);
    width: 90%;
}
.search-count {
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--card-shadow);
}

.search-container {
    position: relative;
    width: 100%;
}

.search-form {
    display: flex;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    font-size: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
}

.search-input:focus {
    background: white;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-button {
    padding: 0 24px;
    background: #ff6b6b;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: #ff5252;
}

.search-button .button-text {
    display: none;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    overflow: hidden;
    z-index: 1000;
    max-height: 320px;
    overflow-y: auto;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.search-result-item:hover {
    background-color: #f0f7ff;
}

.search-result-item i {
    margin-right: 12px;
    color: #6b7280;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item .category {
    font-size: 12px;
    color: #6b7280;
    margin-left: 8px;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.search-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    display: flex;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 0 20px;
    font-size: 1rem;
    background: var(--light-bg);
}

.search-box input:focus {
    outline: none;
    background: white;
}

.search-box button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s;
}

.search-box button:hover {
    background: var(--secondary-color);
}

.filter-options {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 左侧分类导航 */
.sidebar {
    flex: 0 0 260px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    height: fit-content;
    transition: all 0.3s ease;
}

.sidebar h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.categories {
    list-style: none;
}

.categories li {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.categories a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
}

.categories a:hover, .categories a.active {
    background-color: var(--light-bg);
    color: var(--primary-color);
    transform: translateX(5px);
}

.categories i {
    width: 24px;
    text-align: center;
    color: var(--light-text);
}

/* 书籍信息 */
.book-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
}

.book-info img {
    width: 120px;
    height: 160px;
    border-radius: 6px;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.book-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.book-info .author {
    color: var(--light-text);
    font-size: 0.9rem;
}

.chapters {
    list-style: none;
}

.chapters li {
    margin-bottom: 5px;
}

.chapters a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    padding: 5px 5px;
    border-radius: 5px;
    background: var(--light-bg);
}

.chapters a:hover, .chapters a.active {
    background-color: #dbeafe;
    color: var(--primary-color);
    transform: translateX(5px);
}

#bookCataBg {
    background: #dbeafe;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.chapters i {
    width: 20px;
    text-align: center;
    color: var(--light-text);
}

.progress {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--light-text);
}

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 45%;
    background: var(--primary-color);
    border-radius: 4px;
}

/* 右侧内容区 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 阅读控制栏 */
.reading-controls {
    background: white;
    border-radius: 12px;
    padding: 15px 25px;
    box-shadow: var(--card-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chapter-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.reading-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.action-btn:hover {
    background: #dbeafe;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.action-btn i {
    font-size: 0.9rem;
}

/* 阅读模式切换 */
.reading-modes {
    display: flex;
    gap: 5px;
    margin-left: 15px;
}

.mode-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.mode-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.mode-btn:hover {
    background: #dbeafe;
}

/* 文章内容 */
.article-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    line-height: 1.8;
}

.article-content h2 {
    color: var(--dark-bg);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.article-content p {
    margin-bottom: 10px;
    text-align: justify;
    font-size: 1.05rem;
    text-indent: 2em;
}

.article-content blockquote {
    background: #f1f5f9;
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
}

.article-content img {
    border-radius: 8px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-width: 100%;
}

/* 导航按钮 - 桌面隐藏，移动端显示 */
.article-navigation {
    display: none;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.nav-btn {
    padding: 12px 25px;
    border-radius: 6px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.nav-btn.prev {
    margin-right: auto;
}

.nav-btn.next {
    margin-left: auto;
}

/* 图书列表 */
.books-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    padding: 10px;
}

.book-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.book-cover {
    height: 280px;
    background: linear-gradient(45deg, #dbeafe, #bfdbfe);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.book-cover img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.book-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-bg);
}

.book-author {
    color: var(--light-text);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    color: var(--light-text);
    font-size: 0.9rem;
}

.book-price {
    color: #e53e3e;
    font-weight: 700;
    font-size: 1.2rem;
}

.book-rating {
    color: #f59e0b;
}

.book-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

/* 内容章节 */
.content-title {
    margin-bottom: 10px;
}

.content-title h1 {
    color: var(--dark-bg);
    padding-bottom: 5px;
    border-bottom: 2px solid var(--border-color);
    text-align: center;
    font-size: 18px;
}

.chapter-item {
    background: #dbeafb;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.chapter-title-container {
    display: flex;
    align-items: center;
}

.chapter-status {
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: #e0f2fe;
    color: #0369a1;
}

.chapter-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.chapter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.chapter-number {
    background: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 15px;
}

.chapter-meta {
    display: flex;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--light-text);
    flex-direction: row;
    align-content: stretch;
    justify-content: center;
}

.chapter-pages {
    display: flex;
    align-items: center;
    gap: 5px;
}

.chapter-actions {
    display: flex;
    gap: 10px;
}

.toggle-details {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.chapter-btn {
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.read-btn {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.read-btn:hover {
    background: #1e40af;
    border-color: #1e40af;
}

/* 新增样式 */
.article-meta {
    display: flex;
    padding: 10px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--light-text);
    font-size: 14px;
    justify-content: center;
}

.update-time {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.update-time i {
    margin-right: 6px;
    color: var(--primary-color);
}

.copyright-feedback {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.copyright-feedback i {
    margin-right: 6px;
    color: var(--primary-color);
}

.copyright-feedback a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.copyright-feedback a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 页脚 */
footer {
    background: var(--dark-bg);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
}

.book-footer {
    text-align: center;
    font-size: 14px;
    padding: 10px;
}

.cate-crumbs{
    background: white;
    border-radius: 12px;
    padding: 10px;
    font-size: 14px;
    box-shadow: var(--card-shadow);
}

.cate-crumbs a, .content-crumbs a {
    text-decoration: none;
    color: var(--text-color);
}

.content-crumbs a {
    color: #ffffff;
}

b, em, i, u, strong {
    font-weight: normal;
    text-decoration: none;
}

/* 夜间模式 */
body.dark-mode {
    background-color: #0f172a;
    color: #cbd5e1;
}

body.dark-mode .sidebar,
body.dark-mode .reading-controls,
body.dark-mode .article-content,
body.dark-mode .cate-crumbs,
body.dark-mode .search-section {
    background-color: #1e293b;
    color: #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

body.dark-mode .chapters a {
    background: #1e293b;
}

body.dark-mode .chapters a:hover,
body.dark-mode .chapters a.active {
    background: #1e3a8a;
}

body.dark-mode .article-content h2 {
    color: #dbeafe;
    border-color: #334155;
}

body.dark-mode .article-content blockquote {
    background: #1e293b;
}

body.dark-mode .nav-btn,
body.dark-mode .action-btn {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

body.dark-mode .nav-btn:hover,
body.dark-mode .action-btn:hover {
    background: var(--primary-color);
    color: white;
}

body.dark-mode .chapter-item {
    border-left-color: var(--primary-color);
}

body.dark-mode .chapter-btn.bookmark-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* 移动端分类切换按钮 */
.mobile-category-toggle, .mobile-toc-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-category-toggle:hover, .mobile-toc-toggle:hover {
    background: var(--secondary-color);
    transform: translateX(-50%) scale(1.05);
}

.mobile-toc-toggle {
    bottom: 5px;
    font-size: 0.8rem;
}

/* 分类标题上的关闭按钮 */
.close-sidebar {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--light-text);
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        flex: 0 0 auto;
        width: 100%;
        max-height: 0;
        opacity: 0;
        padding: 0 25px;
        overflow: hidden;
        margin-bottom: 0;
    }

    .sidebar.sidebar-active {
        max-height: 1000px;
        opacity: 1;
        padding: 25px;
        margin-bottom: 20px;
    }

    .books-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .article-content {
        padding: 30px;
    }

    .close-sidebar {
        display: block;
    }

    /* 移动端隐藏浮动导航 */
    .floating-nav {
        display: none;
    }
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}
/* 响应式设计 */
@media (min-width: 768px) {
    .logo span {
        display: none;
    }
}
@media (max-width: 768px) {
    .header-content, .header-container {
        flex-direction: column;
        padding: 0 15px;
    }

    .logo {
        margin-right: 0;
        margin-bottom: 15px;
        justify-content: center;
        color: white;
        font-size: 22px;
        font-weight: 600;
    }

    .logo h1 {
        font-size: 1.4rem;
        margin-left: 0;
    }

    /* 在移动端隐藏logo图片 */
    .logo img {
        display: none;
    }

    .search-section {
        width: 100%;
    }

    .search-input {
        padding: 12px 16px;
    }

    /* 移动端显示完整搜索按钮文本 */
    .search-button {
        padding: 0 20px;
        min-width: 80px;
    }

    .search-button i {
        display: none;
    }

    .search-button .button-text {
        display: block;
        font-size: 16px;
    }

    .search-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .books-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .book-cover {
        height: 220px;
    }

    .filter-options {
        gap: 10px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .reading-controls {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .reading-actions {
        width: 100%;
        justify-content: space-between;
    }

    .article-content {
        padding: 20px;
    }

    .article-content h2 {
        font-size: 1.6rem;
    }

    .article-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    /* 移动端显示文章底部导航 */
    .article-navigation {
        display: flex !important;
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .books-container {
        grid-template-columns: 1fr;
    }

    .book-cover {
        height: 200px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    nav {
        display: none;
    }

    .article-content h2 {
        font-size: 1.4rem;
    }

    .article-content p {
        font-size: 1rem;
    }

    .logo h1 {
        font-size: 20px;
    }

    .search-form {
        border-radius: 24px;
    }

    .search-input {
        font-size: 14px;
        padding: 10px 16px;
    }

    .search-button {
        min-width: 70px;
        padding: 0 15px;
    }

    .search-button .button-text {
        font-size: 14px;
    }


}
.book-title em {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: red;
    font-style: normal;
}
#count{
    color: red;
  }

/*复制开始*/
.copy {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: no-repeat 50% 90% rgba(0, 0, 0, 0.6);
    z-index: 998;
    text-align: center
}

.copy-free {
    border-radius: 10px;
    width: 300px;
    position: absolute;
    left: 50%;
    top: 40%;
    margin-left: -150px;
    margin-top: -160px;
    background-color: #fff;
}
.houhao_top{
    margin-bottom: 7px;
}
.download_fixed {
    position: absolute;
    right: 7px;
    line-height: 24px;
    overflow: visible;
    z-index: 2;
    cursor: pointer;
}

.download_fixed_fuzhi {
    background: #1da8e6;
    font-size: 15px;
    color: #fff;
    height: 37px;
    line-height: 37px;
    padding: 0 6px;
    border-radius: 4px;
    float: right;
    clear: none;
    bottom: 12px;
    position: fixed;
    width: 96px;
    right: 9px;
    text-align: center;
}
.houhao_top span {
    color: #44b549;
    font-size: 14px;
    font-weight: 700;
    height: 30px;
    margin-bottom: 5px
}

.houhao_top a {
    color: #44b549;
    font-size: 24px;
    font-weight: 700;
    height: 30px;
    margin-bottom: 5px
}

.houhao_top span:nth-child(2) {
    color: #999;
    font-size: 12px;
    margin-left: 10px
}

.houhao_search {
    display: flex;
    margin-top: 7px;
    margin-left: 22px;
    width: 83%;
    border: 1px solid #44b549;
    height: 32px;
    line-height: 32px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px
}

.houhao_search .houhao_bar {
    line-height: 30px;
    width: 78%;
    font-size: 14px;
    border: 0;
    color: #bdbdbd;
    height: 30px;
    box-sizing: border-box
}

.houhao_search .houhaoresults {
    line-height: 32px;
    width: 19%;
    background: #44b549;
    color: #fff;
    text-align: center;
    font-size: 16px;
    border: 0 none;
    cursor: pointer;
    height: 100%
}
.copy-free .copy-free-description {
    text-align: left;
    color: #3c3c3c;
    cursor: pointer;
    margin-bottom: 5px;
    padding-top: 10px
}

.paybox-bottom {
    width: 50%;
    text-align: center;
    margin: 10px auto 10px;
    cursor: pointer;
    background: #44b549;
    height: 35px;
    line-height: 35px;
    border-radius: 4px;
    font-size: 17px;
    color: #fff;
    font-weight: 600
}

.close {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANIAAAA9CAMAAADvVccnAAAApVBMVEUAAAD+/v7////+/v7+/v7////////////////////////+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7///////93d3cuje3s9P01ke78/v6Li4vy8vJ8fHxQoPDO5fvb29vi4uKUxfbr6+uYmJiGhobI4fqCu/RGmu9zs/SgoKC42PhmrPKurq6RkZH19fVcp/G7u7ve7Pumz/fQ0NDDw8OmpqZdKo2AAAAAFXRSTlMAm8OugUQ8M/J2H4lJ7pIp6OJfVBLJcKDQAAACS0lEQVRo3uzBgQAAAACAoP2pF6kCAAAAAADgcsxsSVEYjMKDC+LS2tsJGFAUUFzQdu33f7TJn9AiZLqdy1D9FUUuvqtTSQ4Jvxi7azWbVtd+pOtCx3pGzstw9EjXgF4fJVrvj7TptJ8giI+7zWZ3jSF4tjXtbaM0PW+51KYvv1cILj7L2c8gGJT1MnMV4/VJaZMZAAgSdsfmA4B9p73MLRhHHIDJ89RzgPmClfBj4OX9pk9Tt0TGhTZ4P/WBYMEq+B9A90t7K7fCmpM2lQ6AhGlsAPRynbkakdSGYgEX1QpMMVFTNgP6Sm9dYuoqxiv59kgbCgDZdZ+YTWSygMsxARylZZg1lmOZzONyTEmbSRuYM2IRUCbaRDMmiYEO6dAlVp7MNBWDmixO2khawDFvBMpEiSZMcgW6pCNXMqVM4hWOXUlobEE0gU92yzQvErEdYJFeuwqKIxMpzqSNpEF9V2SiREXnNUlnbpGJEuVEpI2kGmmuRTrULVJl4Ymn9guvWg9FJr0ewvt6WBpbD1qJB9+WeFiTEv8DcF9tHUpEmbgc94Cj9Kpmn1oqgAsjfO1ANCT9zYHoRNpQbIDvmUYCYJTrw7+Preb+gmgA8YRVWARA60vrl4uMkzaWDtevgIsYeOop7QBhJdPBE9rYu4XgDUBcWntJAGBwp73S2ku58T8fXiG4+izHv0DwVtbbW6h1qLTZDDgE8+MuSXbHGIKntqZP5zRNo62Xa9MZDVGi3/tZm7yPbtiWgxzH6vysTT016LRbVqNhtdr/r/8CuC+A5wxEEh4AAAAASUVORK5CYII=);
    background-repeat: no-repeat;
    position: absolute;
    right: -10px;
    width: 30px;
    height: 30px;
    text-indent: -9999px;
    bottom: -10px;
    cursor: pointer;
    background-position: -149px -31px
}

.jixu {
    color: #090;
    font-size: 18px;
    text-align: center;
    font-weight: 700;
    line-height: 50px;
    height: 50px;
    width: 100%;
}
.copy-free img{max-width: 100%;}
/*复制结束*/

/* ================================================
   底部固定工具栏
   ================================================ */
.bottom-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #dee7ff;
    border-top: 1px solid #e8e0d5;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    z-index: 999;
}

.toolbar-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: none;
    background: none;
    color: #4a4a4a;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 4px 0;
}
.toolbar-btn i {
    font-size: 18px;
}
.toolbar-btn:hover {
    color: var(--primary-color);
}
.toolbar-btn:active {
    background: #f0f0f0;
}

/* ================================================
   右侧浮动导航（桌面端）
   ================================================ */
.floating-nav {
    position: fixed;
    right: 20px;
    width: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
    transition: opacity 0.3s ease;
}
.floating-nav.hidden {
    opacity: 0;
    pointer-events: none;
}
.float-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0dcd5;
    border-radius: 24px;
    text-decoration: none;
    color: #555;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}
.float-nav-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.float-nav-btn i {
    font-size: 16px;
}

/* ================================================
   侧边栏 - 查看全部目录链接
   ================================================ */
.view-all-chapters {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    border-top: 1px dashed #e0dcd5;
}
.view-all-chapters:hover {
    text-decoration: underline;
}

/* 隐藏旧版复制浮层按钮 */
.download_fixed { display: none; }
.download_fixed_fuzhi { display: none; }

/* 移动端目录切换按钮 - 已废弃 */
.mobile-toc-toggle { display: none; }

/* 下载 Word 按钮 */
.toolbar-actions {
    margin-left: auto;
}
.btn-download-word {
    background: #1da8e6;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-download-word:hover {
    background: #1890c7;
}


/*图片懒加载服务*/
.pic.lazy-loading {
    background-color: #f5f5f5;
    min-height: 150px;
    position: relative;
    transition: all 0.3s ease;
}

.pic.lazy-loading:before {
    content: "🔄 自动加载中...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 14px;
    text-align: center;
    z-index: 2;
    white-space: nowrap;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.pic.loading {
    background: #e8f5e9;
}

.pic.loading:before {
    content: '🔄 加载中...';
    color: #4CAF50;
    animation: pulse 1.5s infinite;
}

.pic.loading:after {
    content: '';
    position: absolute;
    top: calc(50% + 30px);
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4CAF50, transparent);
    border-radius: 2px;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.pic.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ========== 登录页样式 ========== */
.login-wrapper {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 40px 36px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1a1a2e;
    font-size: 24px;
    font-weight: 700;
}

.login-logo img {
    width: 36px;
    height: 36px;
}

.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: none;
    font-size: 15px;
    color: #999;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    position: relative;
}

.form-group-code {
    display: flex;
    gap: 10px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background: #fafafa;
}

.form-input:focus {
    border-color: var(--primary-color);
    background: #fff;
}

.form-group-code .form-input {
    flex: 1;
}

.btn-sms {
    flex-shrink: 0;
    padding: 0 16px;
    border: 1px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-sms:hover {
    background: #eef3ff;
}

.btn-sms.disabled {
    color: #ccc;
    border-color: #ddd;
    cursor: not-allowed;
}

.btn-login {
    padding: 13px 0;
    border: none;
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}

.btn-login:hover {
    background: #1548c0;
}

.login-footer {
    margin-top: 24px;
    text-align: center;
}

.login-footer a {
    color: #999;
    font-size: 14px;
    text-decoration: none;
}

.login-footer a:hover {
    color: var(--primary-color);
}

/* ========== 用户中心样式 ========== */
.center-wrapper {
    min-height: 90vh;
    background: #f5f7fa;
    padding: 0;
}

.center-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.center-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 5px;
    background: #fff;
    border-bottom: 1px solid #eee;
    margin-bottom: 28px;
}

.center-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1a1a2e;
    font-size: 20px;
    font-weight: 700;
}

.center-logo img {
    width: 32px;
    height: 32px;
}

.center-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-back {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-back:hover {
    color: var(--primary-color);
}

.btn-logout {
    padding: 7px 16px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.center-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-left: 4px;
}

.task-list-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.task-list-empty p {
    font-size: 16px;
    color: #999;
    margin-bottom: 16px;
}

.btn-browse {
    display: inline-block;
    padding: 10px 28px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
}

.btn-browse:hover {
    background: #1548c0;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.task-table thead {
    background: #f8f9fb;
}

.task-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid #eee;
}

.task-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
}

.task-table tbody tr:hover {
    background: #fafbfc;
}

.task-book-name {
    font-weight: 500;
}

.task-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.task-status.processing {
    color: #f39c12;
}

.task-status.completed {
    color: #27ae60;
}

.task-status.failed {
    color: #e74c3c;
}

.task-type {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

.task-type.type-book {
    background: #e8f0fe;
    color: #2a6fd4;
}

.task-type.type-article {
    background: #fef3e2;
    color: #c48530;
}

.task-action-tip {
    color: #bbb;
    font-size: 13px;
}

.btn-download {
    display: inline-block;
    padding: 5px 16px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.btn-download:hover {
    background: #1548c0;
}

.btn-retry {
    display: inline-block;
    padding: 5px 16px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-retry:hover {
    background: #eef3ff;
}

/* ========== 全局登录入口 ========== */

/* --- 主站 topBar 登录入口（图书频道深色版） --- */
.topBar {
    background: linear-gradient(180deg, #1e1e30 0%, #1a1a2b 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.topBar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topBar-welcome {
    font-size: 12px;
    font-family: "Noto Serif SC", "STSong", "SimSun", serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.12em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.topBar-welcome::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #c4a97d;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.6;
}

.topBar-user {
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.topBar-user a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 5px 16px;
    border-radius: 100px;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
}

.topBar-user a:hover {
    color: #1a1a2b;
    background: linear-gradient(135deg, #d4a853 0%, #bf8f3a 100%);
    box-shadow: 0 2px 10px rgba(212, 168, 83, 0.2);
    transform: translateY(-1px);
}

.user-sep {
    color: rgba(255, 255, 255, 0.18);
}

.user-logout {
    cursor: pointer;
}

/* --- 图书频道 header-user 入口 --- */
.header-user {
    flex-shrink: 0;
    margin-left: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-user a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.header-user a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.header-user .user-sep {
    display: none;
}

.header-user .user-logout {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.55);
}

.header-user .user-logout:hover {
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.4);
}

/* --- 移动端适配 --- */
@media (max-width: 768px) {
    .topBar-welcome {
        display: none;
    }

    .topBar-inner {
        justify-content: flex-end;
        padding: 0 14px;
    }

    .header-user {
        margin-left: 8px;
    }

    .header-user a {
        padding: 5px 10px;
        font-size: 13px;
    }
}
