/* 阅读 App 样式 - 黑白风格 */

.reader-app {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.reader-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 底部导航栏 */
.reader-bottom-nav {
    display: flex;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.reader-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.reader-nav-item.active {
    color: #000000;
}

.reader-nav-item svg {
    stroke: currentColor;
}

.reader-nav-item span {
    font-size: 12px;
}

/* 头部 */
.reader-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: calc(24px + var(--top-safe-area, 0px) + env(safe-area-inset-top, 0px));
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 16px;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.reader-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #000000;
}

.reader-search,
.reader-refresh {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.reader-search:active,
.reader-refresh:active {
    background: #e0e0e0;
}

.reader-header-actions {
    display: flex;
    gap: 8px;
}

.reader-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.reader-icon-btn:active {
    background: #e0e0e0;
}

/* 返回按钮 */
.reader-back-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 20px;
    color: #000000;
    margin-top: 8px;
}

.reader-back-btn:active {
    background: #e0e0e0;
}

/* 标签页容器 */
.reader-tabs-container {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    /* 显示滚动条 */
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
    position: relative;
    /* 确保在移动端和PC端都能滚动 */
    scroll-behavior: smooth;
    /* 确保容器不会被内容撑开 */
    max-width: 100%;
}

/* 自定义滚动条样式 */
.reader-tabs-container::-webkit-scrollbar {
    height: 6px;
}

.reader-tabs-container::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.reader-tabs-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.reader-tabs-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 标签包装器 */
.reader-tabs-wrapper {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 8px;
    /* 关键：让内容可以超出容器宽度 */
    width: max-content;
    min-width: 100%;
}

/* 标签页 */
.reader-tabs {
    display: flex;
    background: #ffffff;
    padding: 0 20px;
    gap: 32px;
}

.reader-tab {
    padding: 12px 16px;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    border-radius: 20px;
    background: transparent;
    white-space: nowrap;
}

.reader-tab.active {
    color: #ffffff;
    font-weight: 500;
    background: #000000;
}

/* 模块标签 */
.reader-module-tag {
    padding: 8px 16px;
    background: #f0f0f0;
    color: #666;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border: 1px solid transparent;
}

.reader-module-tag:hover {
    background: #e0e0e0;
}

.reader-module-tag:active {
    transform: scale(0.95);
}

/* 添加模块按钮 */
.reader-module-add {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #07c160;
    transition: all 0.2s;
    border-radius: 50%;
}

.reader-module-add:hover {
    background: rgba(7, 193, 96, 0.1);
}

.reader-module-add:active {
    transform: scale(0.9);
}

/* 首页内容 */
.reader-home {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.reader-home-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    background: #fafafa;
    scrollbar-width: none; /* Firefox - 隐藏滚动条 */
    -ms-overflow-style: none; /* IE and Edge - 隐藏滚动条 */
}

.reader-home-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera - 隐藏滚动条 */
}

/* 书籍列表 */
.reader-book-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reader-book-card {
    display: flex;
    gap: 12px;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.reader-book-card .reader-book-info {
    background: #ffffff;
}

.reader-book-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.reader-book-cover {
    width: 80px;
    height: 110px;
    background: #ffffff;
    border-radius: 8px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.reader-book-cover-placeholder {
    font-size: 32px;
}

.reader-book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.reader-book-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
}

.reader-book-author {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.reader-book-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

/* 空状态 */
.reader-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #999;
}

.reader-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.reader-empty p {
    margin: 0 0 20px 0;
    font-size: 15px;
}

/* 按钮 */
.reader-btn-primary {
    padding: 10px 24px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.reader-btn-primary:active {
    background: #333333;
}


/* 书架 */
.reader-bookshelf {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.reader-shelf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px;
    background: #fafafa;
}

.reader-shelf-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    width: 100%;
}

.reader-shelf-cover {
    width: 100%;
    aspect-ratio: 3/4;
    background: #ffffff;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e0e0e0;
}

.reader-shelf-item:active .reader-shelf-cover {
    transform: scale(0.96);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.reader-progress-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.85);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.reader-shelf-item h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    min-height: 36px;
}

.reader-shelf-item p {
    margin: 0;
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 书架编辑模式 */
.reader-shelf-grid.edit-mode .reader-shelf-item {
    position: relative;
}

.reader-shelf-delete-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #ff4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(255, 68, 68, 0.4);
    transition: all 0.2s;
}

.reader-shelf-delete-btn:active {
    transform: scale(0.9);
    background: #cc0000;
}

.reader-shelf-delete-btn svg {
    stroke: #ffffff;
}

.reader-shelf-grid.edit-mode .reader-shelf-cover {
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-2deg);
    }
    75% {
        transform: rotate(2deg);
    }
}

/* 个人中心 */
.reader-profile {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.reader-profile-content {
    flex: 1;
    overflow-y: auto;
    background: #fafafa;
}

.reader-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 20px;
    background: #ffffff;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.reader-profile-header:active {
    background: #f5f5f5;
}

.reader-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #333333 0%, #666666 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.reader-profile-info {
    flex: 1;
    min-width: 0;
}

.reader-profile-info h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.reader-profile-info p {
    margin: 0;
    font-size: 13px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reader-edit-icon {
    color: #999;
    flex-shrink: 0;
}

/* 统计 */
.reader-stats {
    display: flex;
    padding: 20px;
    background: #ffffff;
    margin-bottom: 12px;
}

.reader-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.reader-stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
}

.reader-stat-label {
    font-size: 13px;
    color: #999;
}

/* 菜单列表 */
.reader-menu-list {
    background: #ffffff;
    padding: 0 20px;
}

.reader-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
}

.reader-menu-item:last-child {
    border-bottom: none;
}

.reader-menu-item:active {
    background: #f5f5f5;
}

.reader-menu-item span {
    flex: 1;
    font-size: 15px;
    color: #000000;
}

.reader-menu-item .reader-arrow {
    color: #ccc;
}

/* 个人中心头像区域 */
.reader-profile-header-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 20px;
    background: #ffffff;
}

.reader-avatar-wrapper {
    position: relative;
    cursor: pointer;
}

.reader-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

.reader-avatar-edit svg {
    stroke: #ffffff;
}

.reader-profile-info-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reader-profile-name-row,
.reader-profile-bio-row {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.reader-profile-name-row:active,
.reader-profile-bio-row:active {
    opacity: 0.6;
}

.reader-profile-name-row h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    flex: 1;
}

.reader-profile-bio-row p {
    margin: 0;
    font-size: 13px;
    color: #666;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 页面内容 */
.reader-page-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    background: #fafafa;
}

.reader-works-page,
.reader-earnings-page {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 模态框 */
.reader-modal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.reader-modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 85%;
    max-width: 400px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    animation: scaleIn 0.3s;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.reader-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.reader-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.reader-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.reader-modal-close:active {
    background: #e0e0e0;
}

.reader-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.reader-modal-body::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* 作品列表 */
.reader-works-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reader-work-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 12px;
    align-items: center;
}

.reader-work-info {
    flex: 1;
    min-width: 0;
}

.reader-work-info h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

.reader-work-info p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reader-work-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.reader-btn-small {
    padding: 6px 16px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.reader-btn-small:active {
    background: #333333;
}

/* 收益 */
.reader-earnings-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #333333 0%, #666666 100%);
    border-radius: 12px;
    margin-bottom: 20px;
}

.reader-earnings-total {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reader-earnings-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.reader-earnings-amount {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
}

.reader-earnings-list h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

.reader-earning-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 12px;
    margin-bottom: 12px;
}

.reader-earning-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reader-earning-source {
    font-size: 15px;
    font-weight: 500;
    color: #000000;
}

.reader-earning-time {
    font-size: 12px;
    color: #999;
}

.reader-earning-amount {
    font-size: 18px;
    font-weight: 600;
}

.reader-earning-amount.positive {
    color: #00aa00;
}

.reader-earning-amount.negative {
    color: #ff4444;
}

/* 头像选项按钮 */
.reader-avatar-option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 12px;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 12px;
    font-size: 15px;
    color: #000000;
}

.reader-avatar-option-btn:active {
    background: #e0e0e0;
}

.reader-avatar-option-btn svg {
    flex-shrink: 0;
}

.reader-avatar-option-btn span {
    flex: 1;
    text-align: left;
}

/* 评论通知 */
.reader-comments-page {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.reader-comments-page .reader-page-content {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.reader-comments-page .reader-page-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.reader-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reader-comment-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.reader-comment-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #333333 0%, #666666 100%);
    border-radius: 50%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.reader-comment-content {
    flex: 1;
    min-width: 0;
}

.reader-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reader-comment-user {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.reader-comment-time {
    font-size: 12px;
    color: #999;
}

.reader-comment-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
}

.reader-comment-work {
    font-size: 12px;
    color: #999;
    padding: 6px 10px;
    background: #f5f5f5;
    border-radius: 6px;
    display: inline-block;
}

.reader-reward-item {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5cc 100%);
    border-color: #ffe699;
}

.reader-reward-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #ff8800;
    font-weight: 600;
    margin-bottom: 8px;
}

.reader-reward-info svg {
    stroke: #ff8800;
}

/* 徽章 */
.reader-badge {
    background: #ff4444;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    margin-right: 8px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

/* 设置页面 */
.reader-settings-page {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.reader-menu-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reader-menu-hint {
    font-size: 13px;
    color: #999;
}

/* API设置 */
.reader-api-status {
    padding: 16px;
    background: #f5f5f5;
    border-radius: 12px;
    margin-bottom: 20px;
}

.reader-api-status p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333;
}

.reader-api-status p:last-child {
    margin-bottom: 0;
}

.reader-api-hint {
    font-size: 13px;
    color: #999;
}

.reader-form-group {
    margin-bottom: 20px;
}

.reader-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.reader-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.reader-input:focus {
    outline: none;
    border-color: #000000;
}

.reader-api-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.reader-btn-secondary {
    padding: 10px 24px;
    background: #f5f5f5;
    color: #000000;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.reader-btn-secondary:active {
    background: #e0e0e0;
}

/* 模型输入组 */
.reader-model-input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.reader-model-input-group .reader-input {
    flex: 1;
}

.reader-btn-fetch-models {
    padding: 12px 16px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reader-btn-fetch-models:active {
    background: #333333;
}

.reader-btn-fetch-models:disabled {
    background: #999999;
    cursor: not-allowed;
}

.reader-btn-fetch-models svg {
    flex-shrink: 0;
}

.reader-btn-fetch-models svg.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 书籍详情页 */
.reader-book-detail {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow: hidden;
}

.reader-book-detail-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    background: #ffffff;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reader-book-detail-content::-webkit-scrollbar {
    display: none;
}

/* 催更相关样式 */
.reader-range-input {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.reader-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #000000;
    cursor: pointer;
}

.reader-range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #000000;
    cursor: pointer;
    border: none;
}

.reader-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: border-color 0.3s;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.reader-textarea:focus {
    outline: none;
    border-color: #000000;
}

.reader-urge-cost {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5cc 100%);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    text-align: center;
}

.reader-urge-cost-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.reader-urge-cost-amount {
    font-size: 32px;
    font-weight: 600;
    color: #ff8800;
    margin-bottom: 8px;
}

.reader-urge-cost-hint {
    font-size: 12px;
    color: #999;
}

.reader-book-detail-info {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.reader-book-detail-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.reader-book-detail-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.reader-book-detail-section-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

.reader-book-detail-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.reader-chapter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reader-chapter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.reader-chapter-item:active {
    background: #e0e0e0;
    transform: scale(0.98);
}

.reader-chapter-item-title {
    font-size: 15px;
    color: #000000;
    font-weight: 500;
}

.reader-chapter-item-time {
    font-size: 12px;
    color: #999;
}

.reader-empty-chapters {
    text-align: center;
    padding: 40px 20px;
}

.reader-book-detail-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.reader-book-detail-actions button {
    flex: 1;
}

/* 赞赏功能样式 */
.reader-reward-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.reader-reward-btn {
    padding: 16px 8px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff5cc 100%);
    border: 2px solid #ffe699;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.reader-reward-btn:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, #fff5cc 0%, #ffeb99 100%);
}

.reader-reward-amount {
    font-size: 16px;
    font-weight: 600;
    color: #ff8800;
}
