/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A6DE5;
    --secondary-color: #8A9EFF;
    --bg-color: rgba(255, 255, 255, 0.1);
    --glass-color: rgba(255, 255, 255, 0.15);
    --text-color: #333;
    --text-light: #666;
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
}

.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    height: calc(100vh - 40px);
    background: var(--glass-color);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* 左侧导航栏 */
.sidebar {
    width: 80px;
    background: var(--glass-color);
    backdrop-filter: blur(15px);
    padding: 40px 0;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: width 0.3s ease;
}

.sidebar:hover {
    width: 200px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.logo-icon i {
    font-size: 18px;
    color: white;
}

.logo-text {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-color);
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.sidebar:hover .logo-text {
    opacity: 1;
}

.nav-menu {
    list-style: none;
    width: 100%;
}

.nav-item {
    margin-bottom: 10px;
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 0 10px;
}

.nav-link:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    margin-right: 15px;
    text-align: center;
}

.nav-text {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .nav-text {
    opacity: 1;
}

/* 右侧内容区域 */
.content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.page {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 400;
}

/* 首页样式 */
.intro-card {
    background: var(--glass-color);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.intro-text {
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature {
    background: var(--glass-color);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--border-color);
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 20px;
    color: var(--primary-color);
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.feature-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 创作页面样式 */
.writing-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tool-btn {
    padding: 10px 16px;
    background: var(--glass-color);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tool-btn i {
    margin-right: 8px;
    font-size: 14px;
}

.writing-area {
    background: var(--glass-color);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.writing-header {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.title-input {
    width: 100%;
    font-size: 24px;
    font-weight: 700;
    border: none;
    background: transparent;
    color: var(--text-color);
    outline: none;
}

.title-input::placeholder {
    color: var(--text-light);
}

.writing-body {
    padding: 30px;
    min-height: 500px;
}

.content-input {
    width: 100%;
    min-height: 400px;
    font-size: 16px;
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
    border: none;
    background: transparent;
    color: var(--text-color);
    outline: none;
    resize: none;
}

.content-input::placeholder {
    color: var(--text-light);
}

.writing-footer {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.2);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.word-count {
    color: var(--text-light);
    font-size: 14px;
}

.action-btn {
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 漫游页面样式 */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.story-card {
    background: var(--glass-color);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.9);
}

.story-cover {
    height: 120px;
    background: linear-gradient(135deg, rgba(74, 109, 229, 0.1), rgba(138, 158, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-cover i {
    font-size: 36px;
    color: var(--primary-color);
    opacity: 0.7;
}

.story-info {
    padding: 20px;
}

.story-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.story-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 14px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(74, 109, 229, 0.1);
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--primary-color);
}

.story-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
}

.stat {
    display: flex;
    align-items: center;
}

.stat i {
    margin-right: 5px;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        height: auto;
    }
    
    .sidebar {
        width: 100%;
        flex-direction: row;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sidebar:hover {
        width: 100%;
    }
    
    .logo {
        flex-direction: row;
        margin-bottom: 0;
        margin-right: 20px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0;
        margin-right: 10px;
    }
    
    .logo-text {
        opacity: 1;
        font-size: 16px;
    }
    
    .nav-menu {
        display: flex;
        justify-content: flex-end;
        flex: 1;
    }
    
    .nav-item {
        margin-bottom: 0;
    }
    
    .nav-link {
        padding: 10px 15px;
        background: rgba(255, 255, 255, 0.2);
        margin: 0 5px;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.9);
    }
    
    .nav-link.active::before {
        width: 100%;
        height: 3px;
        top: auto;
        bottom: 0;
        left: 0;
        border-radius: 8px 8px 0 0;
    }
    
    .nav-text {
        opacity: 1;
        font-size: 14px;
    }
    
    .nav-icon {
        margin-right: 8px;
    }
    
    .content {
        padding: 30px;
    }
    
    .page-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        height: calc(100vh - 20px);
    }
    
    .content {
        padding: 20px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .explore-grid {
        grid-template-columns: 1fr;
    }
    
    .writing-toolbar {
        justify-content: center;
    }
    
    .nav-menu {
        justify-content: space-around;
    }
    
    .nav-text {
        display: none;
    }
    
    .nav-icon {
        margin-right: 0;
    }
}

/* 极简装饰元素 */
.decor-element {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
}

.element-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 5%;
    right: 5%;
}

.element-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: 10%;
    left: 5%;
}

/* 新增样式 */
.draft-notice {
    background: rgba(74, 109, 229, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--primary-color);
    margin-top: 10px;
    display: inline-block;
}

.draft-notice i {
    margin-right: 8px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.export-btn {
    background: #4CAF50;
}

.export-btn:hover {
    background: #45a049;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .action-btn {
        width: 100%;
    }
}

/* 固定侧边栏相关样式 */
.pinned-indicator {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 12px;
    display: none;
}

.nav-link.active .pinned-indicator {
    display: inline-block;
}

/* 固定状态下的侧边栏样式 */
.sidebar.pinned {
    width: 200px !important;
}

.sidebar.pinned .logo-text,
.sidebar.pinned .nav-text {
    opacity: 1 !important;
}

.sidebar.pinned:hover {
    width: 200px !important;
}

/* 响应式设计中的固定状态 */
@media (max-width: 1024px) {
    .sidebar.pinned {
        width: 100% !important;
    }
}

/* 富文本编辑器的额外样式 */
.rich-text-editor {
    min-height: 400px;
    padding: 20px;
    font-size: 16px;
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    outline: none;
    overflow-y: auto;
    border: none;
    background: transparent;
}

.rich-text-editor:focus {
    outline: none;
}

.rich-text-editor h1, 
.rich-text-editor h2, 
.rich-text-editor h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: var(--text-color);
}

.rich-text-editor h1 {
    font-size: 24px;
    font-weight: 700;
}

.rich-text-editor h2 {
    font-size: 20px;
    font-weight: 600;
}

.rich-text-editor h3 {
    font-size: 18px;
    font-weight: 600;
}

.rich-text-editor p {
    margin-bottom: 1em;
}

.rich-text-editor ul, 
.rich-text-editor ol {
    margin-left: 20px;
    margin-bottom: 1em;
}

.rich-text-editor a {
    color: var(--primary-color);
    text-decoration: underline;
}

.rich-text-editor b, 
.rich-text-editor strong {
    font-weight: 700;
}

.rich-text-editor i, 
.rich-text-editor em {
    font-style: italic;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.import-notice {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-light);
    display: none;
}

.import-notice.show {
    display: block;
}

.import-notice.success {
    color: #4CAF50;
}

.import-notice.error {
    color: #f44336;
}

/* 颜色选择器样式 */
.color-picker-wrapper {
    position: relative;
    display: inline-block;
}

.color-picker-wrapper input[type="color"] {
    position: absolute;
    left: 0;
    top: 100%;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.color-indicator {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,0.1);
}

.color-preview {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-light);
    margin-left: 10px;
}

/* 文本对齐样式 */
.text-align-btn {
    position: relative;
}

.text-align-options {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--glass-color);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    display: none;
    z-index: 1000;
    min-width: 120px;
    box-shadow: var(--shadow);
}

.text-align-options.show {
    display: block;
}

.text-align-option {
    display: block;
    width: 100%;
    padding: 8px 12px;
            background: transparent;
    border: none;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
}

.text-align-option:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 互动小说相关样式 */
.option-editor {
    background: rgba(255, 255, 255, 0.1);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.option-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.option-item input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin-right: 10px;
}

.option-item input[type="text"]::placeholder {
    color: var(--text-light);
}

.option-index {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
}

.remove-option {
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-option:hover {
    background: #d32f2f;
}

.add-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: rgba(74, 109, 229, 0.1);
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-option-btn:hover {
    background: rgba(74, 109, 229, 0.2);
    transform: translateY(-2px);
}

.add-option-btn i {
    font-size: 14px;
}

.chapter-management {
    margin-top: 20px;
    background: var(--glass-color);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.chapter-list {
    margin-top: 15px;
}

.chapter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chapter-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.chapter-item.active {
    background: rgba(74, 109, 229, 0.15);
    border-left: 3px solid var(--primary-color);
}

.chapter-title {
    font-weight: 500;
    color: var(--text-color);
}

.chapter-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: var(--text-light);
}

.chapter-actions {
    display: flex;
    gap: 8px;
}

.chapter-btn {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chapter-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

#addChapterBtn {
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#addChapterBtn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* 预览模式样式 */
.preview-mode {
    display: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    padding: 40px;
    overflow-y: auto;
}

.preview-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-color);
    backdrop-filter: blur(30px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.preview-header {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

.close-preview {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-preview:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.preview-content {
    padding: 30px;
    min-height: 400px;
    background: rgba(255, 255, 255, 0.1);
}

.preview-chapter-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
}

.preview-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.preview-option {
    padding: 12px 20px;
    background: rgba(74, 109, 229, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.preview-option:hover {
    background: rgba(74, 109, 229, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-navigation {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.preview-navigation button {
    padding: 8px 16px;
    background: var(--glass-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-navigation button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    /* ... 其他响应式样式保持不变 ... */
    
    .preview-mode {
        padding: 20px;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .preview-container {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* 章节标签 */
.chapter-label {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(74, 109, 229, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    font-size: 11px;
    color: var(--primary-color);
    margin-left: 10px;
}

/* 互动小说管理区域样式 */
.interactive-features {
    margin-top: 20px;
}

.interactive-section {
    background: var(--glass-color);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    color: var(--text-color);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .option-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .option-item input[type="text"] {
        margin-right: 0;
        width: 100%;
    }
    
    .chapter-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .chapter-meta {
        width: 100%;
        justify-content: space-between;
    }
    
    .chapter-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .preview-mode {
        padding: 20px;
    }
    
    .preview-container {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* CSS 动画 */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}