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

:root {
    /* 浅色主题变量 */
    --bg-color: #f8f8f8;
    --content-bg: #ffffff;
    --sidebar-bg: #ffffff;
    --text-color: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --accent-color: #8a5cf5;
    --accent-hover: #7349d3;
    --header-bg: #ffffff;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    --sidebar-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
    --decoration-color: #8a5cf5;
    --modal-bg: #ffffff;
    
    /* 字体大小变量 */
    --base-font-size: 18px;
    --line-height: 1.8;
    
    /* 过渡效果 */
    --transition: all 0.3s ease;
    
    /* 内容宽度 */
    --content-width: 800px;
}

/* 护眼模式 */
.sepia-mode {
    --bg-color: #f8f5ee;
    --content-bg: #f8f5ee;
    --sidebar-bg: #f4f1e8;
    --text-color: #5c4b37;
    --text-secondary: #7a6a56;
    --border-color: #e0d9c8;
    --header-bg: #f8f5ee;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
    --sidebar-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
    --decoration-color: #b08f5c;
    --accent-color: #b08f5c;
    --accent-hover: #9a7b4a;
    --modal-bg: #f8f5ee;
}

/* 深色模式 */
.dark-mode {
    --bg-color: #1a1a1a;
    --content-bg: #222222;
    --sidebar-bg: #2a2a2a;
    --text-color: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #3a3a3a;
    --header-bg: #222222;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    --sidebar-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    --decoration-color: #8a5cf5;
    --modal-bg: #2a2a2a;
}

body {
    font-family: 'Noto Serif SC', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: var(--line-height);
    font-size: var(--base-font-size);
    transition: var(--transition);
}

.page-container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    padding: 30px 20px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: var(--sidebar-shadow);
    transition: var(--transition);
    z-index: 100;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 2px;
}

.divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 20px 0;
    position: relative;
}

.divider::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.book-info {
    text-align: center;
    margin-bottom: 30px;
}

.book-cover {
    width: 120px;
    height: 180px;
    margin: 0 auto 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.book-author {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.book-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 12px;
    color: var(--text-secondary);
}

.chapter-navigation {
    margin-bottom: 30px;
}

.chapter-navigation h3 {
    font-size: 16px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 15px;
}

.chapter-navigation h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.chapter-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.chapter-btn {
    padding: 8px 0;
    border-radius: 5px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.chapter-btn:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-btn:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.settings-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z'/%3E%3C/svg%3E");
}

.bookmark-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z'/%3E%3C/svg%3E");
}

.share-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z'/%3E%3C/svg%3E");
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 10px;
    transition: var(--transition);
}

.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.chapter-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.chapter-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.toggle-sidebar-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
}

.toggle-sidebar-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

.novel-content {
    max-width: var(--content-width);
    margin: 0 auto;
    background-color: var(--content-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.chapter-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.decoration-line {
    height: 1px;
    flex: 1;
    background-color: var(--border-color);
}

.decoration-icon {
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238a5cf5'%3E%3Cpath d='M12 2L9.19 8.63L2 9.24L7.46 13.97L5.82 21L12 17.27L18.18 21L16.54 13.97L22 9.24L14.81 8.63L12 2Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 15px;
}

.novel-content p {
    margin-bottom: 20px;
    text-align: justify;
    text-indent: 2em;
    transition: var(--transition);
}

.first-paragraph {
    font-weight: 500;
}

.first-paragraph::first-letter {
    font-size: 2.5em;
    float: left;
    line-height: 1;
    margin-right: 10px;
    color: var(--accent-color);
}

.novel-image {
    margin: 30px 0;
    text-align: center;
}

.novel-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.image-caption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    text-indent: 0;
}

.chapter-end-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

.end-mark-line {
    height: 1px;
    flex: 1;
    background-color: var(--border-color);
}

.end-mark-icon {
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238a5cf5'%3E%3Cpath d='M12 2L9.19 8.63L2 9.  viewBox='0 0 24 24' fill='%238a5cf5'%3E%3Cpath d='M12 2L9.19 8.63L2 9.24L7.46 13.97L5.82 21L12 17.27L18.18 21L16.54 13.97L22 9.24L14.81 8.63L12 2Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 15px;
}

.chapter-footer {
    max-width: var(--content-width);
    margin: 30px auto 0;
}

.chapter-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.nav-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--content-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
    flex: 1;
    margin: 0 10px;
}

.nav-btn:first-child {
    margin-left: 0;
}

.nav-btn:last-child {
    margin-right: 0;
}

.nav-btn:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.reading-progress {
    margin-top: 20px;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar-bg {
    flex: 1;
    height: 5px;
    background-color: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.progress-percentage {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 浮动操作按钮 */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    z-index: 90;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: none;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.floating-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.floating-icon {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    filter: brightness(0) invert(1);
}

/* 模态框样式 */
.settings-modal,
.catalog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    display: none;
}

.settings-modal.active,
.catalog-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    background-color: var(--modal-bg);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

/* 设置面板样式 */
.setting-group {
    margin-bottom: 25px;
}

.setting-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.font-size-controls,
.line-height-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.font-size-btn,
.line-height-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: var(--transition);
}

.font-size-btn:hover,
.line-height-btn:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.font-size-value,
.line-height-value,
.width-value {
    font-size: 14px;
    color: var(--text-secondary);
}

.theme-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.theme-btn {
    padding: 10px;
    border-radius: 5px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.theme-btn:hover,
.theme-btn.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.theme-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.light-icon {
    background-color: #ffffff;
}

.sepia-icon {
    background-color: #f4f1e8;
}

.dark-icon {
    background-color: #2a2a2a;
}

.width-slider {
    width: 100%;
    height: 5px;
    background-color: var(--border-color);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 10px;
}

.width-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--accent-color);
    cursor: pointer;
}

.width-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--accent-color);
    cursor: pointer;
    border: none;
}

.slider-values {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

/* 目录样式 */
.catalog-search {
    margin-bottom: 20px;
}

.catalog-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--bg-color);
    color: var(--text-color);
}

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

.chapter-item {
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.chapter-item:hover {
    background-color: var(--bg-color);
    border-color: var(--border-color);
}

.chapter-item.current {
    background-color: var(--accent-color);
    color: white;
}

.chapter-number {
    font-weight: 500;
    margin-right: 10px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    :root {
        --content-width: 700px;
    }
}

@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        box-shadow: none;
        padding: 20px;
        display: none;
    }

    .sidebar.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 10px;
    }

    .toggle-sidebar-btn {
        display: block;
    }

    .novel-content {
        padding: 30px 20px;
    }

    :root {
        --content-width: 100%;
        --base-font-size: 16px;
    }

    .chapter-title {
        font-size: 20px;
    }
    
    .floating-actions {
        display: block;
    }
}

@media (max-width: 480px) {
    .novel-content {
        padding: 20px 15px;
    }

    .chapter-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .nav-btn {
        margin: 0;
    }

    .chapter-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.novel-content {
    animation: fadeIn 0.5s ease;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}





.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
	margin-top: 15px;
    margin-bottom: 5px;
    padding-bottom: 0px;
    border-bottom: 0px solid var(--border-color);
}


/* 阅读进度条 - 固定在底部 */
.reading-progress {
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 95;
    transition: opacity 0.3s ease;
}

.dark-mode .reading-progress {
    background-color: rgba(42, 42, 42, 0.8);
}

.sepia-mode .reading-progress {
    background-color: rgba(244, 241, 232, 0.8);
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar-bg {
    flex: 1;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-percentage {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: right;
}

/* 在小屏幕上调整进度条样式 */
@media (max-width: 768px) {
    .reading-progress {
        width: 85%;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .reading-progress {
        width: 90%;
        padding: 5px 10px;
    }
}

/* 添加悬停效果 */
.reading-progress:hover {
    opacity: 1;
}

/* 当不滚动时稍微降低不透明度 */
.reading-progress.idle {
    opacity: 0.7;
}


.floating-btn {
    width: 40px;
    height: 40px;
}
.floating-actions {
    bottom: 8%;
    right: 15px;
}

.chapter-navigation {
    margin-bottom: 40px;
}

@media (max-width: 480px) {
    .chapter-navigation {
        gap: 5px;
    }
}

/* 固定顶部导航栏 */
.fixed-header {
    position:relative;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode .fixed-header {
    background-color: #222222;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.sepia-mode .fixed-header {
    background-color: #f8f5ee;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-button {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    text-align: center;
    flex: 1;
}

.header-spacer {
    width: 40px; /* 与 back-button 宽度相同，保持标题居中 */
}

/* 调整页面容器，为固定头部留出空间 */
.page-container {
    padding-top: 0px; /* 与固定头部高度相同 */
}

/* 调整侧边栏位置 */
.sidebar {
    top: 50px; /* 与固定头部高度相同 */
    height: calc(100vh - 50px); /* 减去固定头部高度 */
}

/* 在小屏幕上调整样式 */
@media (max-width: 768px) {
    .fixed-header {
        height: 50px;
    }
    
    .header-title {
        font-size: 18px;
		font-weight:600;
    }
    
    .page-container {
        padding-top: 0px;
    }
    
    .sidebar {
        top: 45px;
        height: calc(100vh - 45px);
    }
}

.chapter-footer {
    margin: 10px auto 0;
}

.chapter-decoration {
    margin-bottom: 10px;
}

/* 浮动操作按钮样式更新 */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 90;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: none;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.floating-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.floating-icon {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    filter: brightness(0) invert(1);
}

/* 新增图标样式 */
.scroll-top-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 4l-8 8h5v8h6v-8h5l-8-8z'/%3E%3C/svg%3E");
}

.scroll-bottom-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 20l8-8h-5V4h-6v8H4l8 8z'/%3E%3C/svg%3E");
}

/* 在小屏幕上调整浮动按钮样式 */
@media (max-width: 768px) {
    .floating-actions {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
    }
    
    .floating-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .floating-actions {
        bottom: 45px;
        right: 15px;
    }
    
    .floating-btn {
        width: 40px;
        height: 40px;
    }
}

/* 确保在桌面版上显示浮动按钮 */
@media (min-width: 769px) {
    .floating-actions {
        display: flex;
    }
}

.chapter-end-mark {
   display:none;
}

