* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
}
a{
    text-decoration:none;
    color:#434242;
}
body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* 左侧主内容区 */
.main-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-left: 50px;
    margin-right: 70px;
}

/* 顶部导航区 */
.header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.login-link {
    color: #e74c3c;
    text-decoration: none;
    float: right;
    font-size: 14px;
}

.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.breadcrumb a {
    color: #4a90e2;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 章节信息区 */
.chapter-info {
    margin-bottom: 30px;
}

.chapter-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.discussion-hot {
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 5px 10px;
    background-color: #fff5f5;
    border-radius: 4px;
    display: inline-block;
}

.novel-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.novel-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.author, .word-count, .date {
    color: #888;
}

/* 正文内容区 */
.content {
    font-size: 16px;
    line-height: 1.8;
}

.content p {
    margin-bottom: 20px;
    /*text-indent: 2em;*/
    line-height:40px;
}

/* 右侧功能栏 */
.sidebar {
    position: fixed;
    right: calc((100% - 1200px) / 2 + 20px);
    bottom:50px;
    width:60px;
    /* background-color: #f5f5f5; */
    /* padding: 20px 0; */
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:10px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
    z-index: 1000;
}

.sidebar-button {
    width: 62px;
    height: 66px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #e8e8e8;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
}

.icon {
    width: 22px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.icon svg {
    width: 100%;
    height: 100%;
}

.label {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    line-height: 1;
}

/* 图标样式 */
.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-line {
    width: 12px;
    height: 1px;
    background-color: #333;
}

.book-icon {
    position: relative;
    width: 12px;
    height: 12px;
}

.book-cover {
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: 1px solid #333;
    border-radius: 1px;
}

.book-spine {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 2px;
    height: 8px;
    background-color: #333;
}

.bookshelf-icon {
    position: relative;
    width: 14px;
    height: 12px;
}

.books {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid #333;
    border-radius: 1px;
}

.book-1 {
    left: 0;
    top: 0;
}

.book-2 {
    right: 0;
    top: 2px;
}

.plus-sign {
    position: absolute;
    width: 6px;
    height: 6px;
    right: 0;
    bottom: 0;
}

.plus-line {
    position: absolute;
    background-color: #333;
}

.plus-vertical {
    width: 1px;
    height: 6px;
    left: 2.5px;
}

.plus-horizontal {
    width: 6px;
    height: 1px;
    top: 2.5px;
}

.vote-icon {
    width: 12px;
    height: 12px;
    position: relative;
}

.vote-board {
    width: 10px;
    height: 8px;
    border: 1px solid #333;
    border-top: none;
    position: absolute;
    bottom: 0;
    left: 1px;
}

.vote-line {
    position: absolute;
    width: 1px;
    height: 4px;
    background-color: #333;
}

.vote-1 {
    left: 2px;
    bottom: 0;
}

.vote-2 {
    left: 5px;
    bottom: 0;
}

.vote-3 {
    right: 2px;
    bottom: 0;
}

.moon-icon {
    width: 12px;
    height: 12px;
}

.moon {
    width: 100%;
    height: 100%;
    border: 1px solid #333;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.moon-crescent {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #f5f5f5;
    border-radius: 50%;
    right: 1px;
    top: 2px;
}

.settings-icon {
    width: 12px;
    height: 12px;
    position: relative;
}

.gear {
    width: 10px;
    height: 10px;
    border: 1px solid #333;
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 1px;
}

.gear-notch {
    position: absolute;
    background-color: #333;
}

.notch-1 {
    width: 1px;
    height: 4px;
    top: -1px;
    left: 4.5px;
}

.notch-2 {
    width: 4px;
    height: 1px;
    top: 4.5px;
    right: -1px;
}

.notch-3 {
    width: 1px;
    height: 4px;
    bottom: -1px;
    left: 4.5px;
}

.notch-4 {
    width: 4px;
    height: 1px;
    top: 4.5px;
    left: -1px;
}

.slider {
    position: absolute;
    width: 6px;
    height: 1px;
    background-color: #333;
    bottom: 0;
    right: 0;
}

.phone-icon {
    width: 10px;
    height: 12px;
    position: relative;
}

.phone-body {
    width: 100%;
    height: 100%;
    border: 1px solid #333;
    border-radius: 1px;
    position: relative;
}

.screen {
    position: absolute;
    width: 6px;
    height: 4px;
    border: 1px solid #333;
    border-radius: 1px;
    top: 2px;
    left: 2px;
}

.home-button {
    position: absolute;
    width: 2px;
    height: 1px;
    background-color: #333;
    bottom: 2px;
    left: 4px;
}

/* 添加一些间距调整 */
.sidebar-button:nth-child(4) {
    margin-top: 4px;
}

/* 左侧反馈区域 */
.feedback-section {
    position: fixed;
    left: calc((100% - 1200px) / 2 + 20px);
    top: 200px;
    width: 40px;
    background: transparent;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 1000;
}

.feedback-button {
    width: 35px;
    height: 70px;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-left: none;
    border-radius: 0 6px 6px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.feedback-button:hover {
    background-color: white;
    transform: translateX(2px);
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.08);
}

.feedback-button.active {
    background-color: #fff5f5;
    border-color: #ffcccc;
}

.feedback-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 13px;
    color: #666;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 5px 0;
    text-align: center;
}

/* 按钮状态指示器 */
.button-indicator {
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background-color: transparent;
    border-radius: 1.5px;
    transition: background-color 0.3s ease;
}

.feedback-button:hover .button-indicator {
    background-color: #4a90e2;
}

.feedback-button.active .button-indicator {
    background-color: #e74c3c;
}

/* 悬浮提示样式 */
.tooltip {
    position: absolute;
    left: 45px;
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    white-space: nowrap;
    z-index: 1001;
    pointer-events: none;
}

.tooltip::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-right: 4px solid #333;
}

.feedback-button:hover .tooltip {
    opacity: 0.9;
    visibility: visible;
    left: 48px;
}

/* 段落计数 */
.paragraph-count {
    color: #888;
    font-size: 14px;
    float: right;
    margin-left: 10px;
}

/* 目录页面样式 */
.directory-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.directory-container {
    width: 90%;
    max-width: 800px;
    height: 80%;
    background: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.directory-header {
    background: #f8f8f8;
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.directory-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.directory-subtitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.directory-actions {
    display: flex;
    gap: 10px;
}

.directory-btn {
    padding: 6px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    font-size: 12px;
}

.directory-btn:hover {
    background: #f5f5f5;
}

.directory-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

.chapter-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.chapter-item:hover {
    background: #f9f9f9;
}

.chapter-item.current {
    color: #e74c3c;
    font-weight: bold;
}

.chapter-item.current .chapter-name {
    color: #e74c3c;
}

.chapter-item .chapter-name {
    font-size: 14px;
}

.close-directory {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 30px;
    height: 30px;
    background: #f52c2c;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #efefef;
}

/* 设置弹窗样式 */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.settings-container {
    width: 90%;
    max-width:540px;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.settings-header {
    background: #f8f8f8;
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.settings-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.settings-content {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.setting-item {
    margin-bottom: 20px;
}

.setting-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.setting-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-btn {
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.option-btn:hover {
    background: #e8e8e8;
}

.option-btn.active {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.font-size-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.font-size-btn {
    width: 30px;
    height: 30px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
}

.font-size-btn:hover {
    background: #e8e8e8;
}

.font-size-display {
    min-width: 40px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

.slider-container {
    width: 100%;
    padding: 10px 0;
}

.slider-bar {
    width: 100%;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    position: relative;
}

.slider-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #e74c3c;
    border-radius: 2px;
}

.slider-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #e74c3c;
    border-radius: 50%;
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.settings-footer {
    padding: 15px 20px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.footer-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.footer-btn.default {
    background: white;
    color: #666;
}

.footer-btn.default:hover {
    background: #f5f5f5;
}

.footer-btn.confirm {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.footer-btn.confirm:hover {
    background: #d63b2a;
}

.close-settings {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chapter-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;;
    background-color: #fff;
    border-top: 1px solid #e8e8e8;
    margin-top: 15px;
}

.nav-btn-chapter {
    background-color: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    color: #666;
    padding:3px 15px;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding:0px;
    }
    .content p {
        margin-bottom: 20px;
        line-height: 30px;
    }
    .main-content {
        margin-left:0px;
        margin-right:0px;
        padding:0 20px;
    }
    
    .sidebar {
        position: static;
        width: 75%;
        margin: 4px auto 4px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    
    .feedback-section {
        position: static;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        margin-top: 20px;
        left: auto;
        top: auto;
    }
    
    .feedback-button {
        width: 80px;
        height: 40px;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
    }
    
    .feedback-text {
        writing-mode: horizontal-tb;
    }
    
    .directory-container,
    .settings-container {
        width: 95%;
        height: 90%;
    }
    
    .chapters-grid {
        grid-template-columns: 1fr;
    }

    .novel-title{
        display:none;
    }

    .settings-container {
        max-width:440px;
    }
}