﻿/* ==========================================
   AI小说页面样式
   ========================================== */

:root {
    --ai-novel-upload-width: 430px;
}

/* 占位容器在 main-wrapper 之外，需建立独立层叠上下文，避免被主内容区盖住 */
#aiNovelContent {
    position: relative;
    z-index: 100;
}

.ai-novel-content {
    width: 100vw;
    height: calc(100vh - 60px);
    overflow-y: auto;
    background: transparent; /* 璁剧疆涓洪€忔槑 */
    padding: 0;
    margin-top: 60px;
    margin-left: 0;
}

.ai-novel-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    min-height: calc(100vh - 120px);
    position: fixed;
    left: calc(var(--sidebar-width) + var(--upload-sidebar-width, calc(var(--quick-create-width, 380px) - 30px)) + 10px);
    top: 90px;
    right: 20px;
    bottom: 30px;
    overflow: hidden;
}

.ai-novel-container:hover {
    border-color: rgba(74, 222, 128, 0.3);
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.1);
}

/* 鍙充晶浣滃搧鍖哄煙 - 宸茬Щ闄わ紝鏍峰紡鍚堝苟鍒?motion-replace-container */

/* 宸︿晶涓婁紶鍖哄煙 - 鍥哄畾渚ц竟鏍?*/
.ai-novel-upload-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 20px;
    width: var(--upload-sidebar-width, calc(var(--quick-create-width, 380px) - 30px));
    height: calc(100vh - 60px);
    background: var(--sidebar-bg-light);
    border-right: 1px solid var(--border-color);
    position: fixed;
    left: var(--sidebar-width);
    top: 60px;
    z-index: 10;
    overflow-y: auto;
}

.upload-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.upload-card:hover {
    border-color: rgba(74, 222, 128, 0.3);
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.1);
}

.upload-title {
    font-size: 14px; /* 璋冩暣瀛椾綋澶у皬 */
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-title i {
    color: var(--primary-color);
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(74, 222, 128, 0.05);
}

.upload-icon {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
}

.upload-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.ai-novel-content .video-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-color);
    height: 250px;
}

.ai-novel-content .video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ai-novel-content .video-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ai-novel-content #novelSourceImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.remove-video-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-video-btn:hover {
    background: var(--danger-color);
    transform: scale(1.1);
}

/* 鏇挎崲閫夐」 */
.motion-options {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.motion-options:hover {
    border-color: rgba(74, 222, 128, 0.3);
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.1);
}

.options-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.options-title i {
    color: var(--primary-color);
}

.option-item {
    margin-bottom: 16px;
}

.option-item:last-child {
    margin-bottom: 0;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

.option-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.option-item label:not(.option-label) {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.quality-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.quality-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

/* 鎻愪氦鎸夐挳 */
.ai-novel-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px; /* 璋冩暣瀛椾綋澶у皬 */
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.ai-novel-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.5);
}

.ai-novel-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-color);
}

/* 作品区标题 + 右上角操作 */
.ai-novel-works-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 36px;
    padding-right: 108px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.ai-novel-works-header .section-title {
    margin-bottom: 0;
    min-width: 0;
    flex: 0 0 auto;
}

.ai-novel-active-work-title {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    padding: 0 8px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-novel-active-work-title:empty {
    display: none;
}

.ai-novel-works-header .ai-novel-pagination {
    margin-top: 0;
    padding-top: 0;
    flex-shrink: 0;
    display: none;
}

.ai-novel-works-header-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ai-novel-works-header-actions .ai-novel-pagination {
    display: flex;
}

/* 章节阅读区：左右分栏 */
.ai-novel-reader {
    display: flex;
    flex: 1;
    gap: 16px;
    min-height: 0;
    overflow: hidden;
}

.ai-novel-chapters-panel,
.ai-novel-chapter-content-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.ai-novel-chapters-panel {
    flex: 0 0 var(--ai-novel-synopsis-panel-width, 350px);
    max-width: var(--ai-novel-synopsis-panel-width, 350px);
}

.ai-novel-chapter-content-panel {
    flex: 1 1 0;
    min-width: 0;
}

.ai-novel-synopsis-panel {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    box-sizing: border-box;
    transition: flex 0.25s ease, max-height 0.25s ease;
}

.ai-novel-synopsis-panel:not(.is-collapsed) {
    flex: 1 1 0;
    max-height: none;
}

.ai-novel-synopsis-panel.is-collapsed {
    flex: 0 0 auto;
}

.ai-novel-synopsis-panel.is-collapsed .ai-novel-panel-header-row {
    border-bottom: none;
}

.ai-novel-panel-header-row,
.ai-novel-chapters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
    min-height: 44px;
    padding: 0 8px 0 16px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    box-sizing: border-box;
}

.ai-novel-panel-header-row .ai-novel-synopsis-title,
.ai-novel-chapters-header .ai-novel-panel-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border-bottom: none;
    background: transparent;
}

.ai-novel-synopsis-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.25s ease, padding 0.25s ease;
}

.ai-novel-synopsis-panel:not(.is-collapsed) .ai-novel-synopsis-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 10px 14px 12px;
    max-height: none;
}

.ai-novel-synopsis-input-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.ai-novel-synopsis-input {
    flex: 1 1 auto;
    width: 100%;
    min-height: 120px;
    height: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.75;
    resize: none;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-novel-synopsis-input:focus {
    border-color: rgba(74, 222, 128, 0.35);
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.1);
    color: var(--text-primary);
}

.ai-novel-synopsis-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.72;
}

.novel-generate-chapters-btn {
    flex-shrink: 0;
    align-self: flex-end;
    width: fit-content;
    max-width: 100%;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(74, 222, 128, 0.35);
    border-radius: 8px;
    background: rgba(18, 24, 32, 0.92);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.novel-generate-chapters-btn:hover:not(:disabled) {
    border-color: rgba(74, 222, 128, 0.55);
    background: rgba(74, 222, 128, 0.2);
    color: #86efac;
}

.novel-generate-chapters-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ai-novel-chapters-section {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    transition: flex 0.25s ease;
}

.ai-novel-chapters-section:not(.is-collapsed) {
    flex: 1 1 0;
}

.ai-novel-chapters-section.is-collapsed {
    flex: 0 0 auto;
}

.ai-novel-chapters-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.25s ease, padding 0.25s ease;
}

.ai-novel-chapters-section.is-collapsed .ai-novel-chapters-list {
    flex: 0 0 0;
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.ai-novel-synopsis-panel.is-collapsed .ai-novel-synopsis-body {
    flex: 0 0 0;
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.ai-novel-chapters-section:not(.is-collapsed) .ai-novel-chapters-list {
    overflow-y: auto;
    padding: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.novel-panel-collapse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    margin: 8px 0;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.novel-panel-collapse-btn:hover {
    border-color: var(--border-hi);
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.06);
}

.novel-panel-collapse-btn i {
    transition: transform 0.25s ease;
}

.novel-panel-collapse-btn[aria-expanded='false'] i {
    transform: rotate(180deg);
}

.ai-novel-synopsis-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-secondary);
    text-align: justify;
    word-break: break-word;
}

.ai-novel-synopsis-text.is-empty {
    opacity: 0.72;
}

.novel-full-book-check-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(74, 222, 128, 0.35);
    border-radius: 8px;
    background: rgba(74, 222, 128, 0.12);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.novel-full-book-check-btn:hover:not(:disabled) {
    border-color: rgba(74, 222, 128, 0.55);
    background: rgba(74, 222, 128, 0.2);
    color: #86efac;
}

.novel-full-book-check-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ai-novel-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

.ai-novel-panel-title i {
    color: var(--primary-color);
    font-size: 13px;
}

.ai-novel-content-panel-title {
    justify-content: space-between;
    gap: 12px;
}

.ai-novel-panel-title-text {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

.ai-novel-panel-title-text #novelChapterContentTitleText {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-novel-chapters-list::-webkit-scrollbar {
    width: 8px;
}

.ai-novel-chapters-list::-webkit-scrollbar-track {
    background: transparent;
}

.ai-novel-chapters-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.ai-novel-chapters-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ai-novel-chapters-list::-webkit-scrollbar-corner {
    background: transparent;
}

.ai-novel-chapter-content-body::-webkit-scrollbar {
    width: 6px;
}

.ai-novel-chapter-content-body::-webkit-scrollbar-track {
    background: transparent;
}

.ai-novel-chapter-content-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.novel-chapter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 4px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.novel-chapter-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.novel-chapter-item.active {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.25);
    color: var(--primary-color);
}

.novel-chapter-item .chapter-index {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
}

.novel-chapter-item.active .chapter-index {
    background: rgba(74, 222, 128, 0.2);
    color: var(--primary-color);
}

.novel-chapter-item .chapter-title {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: text;
    padding: 2px 4px;
    border-radius: 6px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.novel-chapter-item .chapter-title.is-editing {
    outline: none;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.35);
    color: var(--text-primary);
}

.novel-chapter-item .chapter-title-input {
    flex: 1 1 0;
    min-width: 0;
    padding: 4px 8px;
    border: 1px solid rgba(74, 222, 128, 0.45);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12);
}

.novel-chapter-item .chapter-status {
    flex: 0 0 auto;
    font-size: 11px;
    opacity: 0.7;
}

.ai-novel-chapter-content-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 20px 24px;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.9;
    word-break: break-word;
    box-sizing: border-box;
}

.ai-novel-chapter-content-body .empty-state {
    flex: 1 1 auto;
    min-height: 200px;
}

.ai-novel-chapter-content-body .chapter-content-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
}

.ai-novel-chapter-content-body .chapter-content-text {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    box-sizing: border-box;
    overflow-y: auto;
    border: 1px solid transparent;
    border-radius: 10px;
    white-space: pre-wrap;
    word-break: break-word;
    cursor: text;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.ai-novel-chapter-content-body .chapter-content-text::-webkit-scrollbar {
    width: 8px;
}

.ai-novel-chapter-content-body .chapter-content-text::-webkit-scrollbar-track {
    background: transparent;
}

.ai-novel-chapter-content-body .chapter-content-text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.ai-novel-chapter-content-body .chapter-content-text::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ai-novel-chapter-content-body .chapter-content-text::-webkit-scrollbar-corner {
    background: transparent;
}

.ai-novel-chapter-content-body .chapter-content-text:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.ai-novel-chapter-content-body .chapter-content-text:focus,
.ai-novel-chapter-content-body .chapter-content-text.is-editing {
    border-color: rgba(74, 222, 128, 0.35);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.ai-novel-chapter-content-body .chapter-content-meta-info {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-novel-chapter-content-body .chapter-content-word-count {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.ai-novel-chapter-title-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.novel-chapter-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 5px 10px;
    border: 1px solid rgba(74, 222, 128, 0.35);
    border-radius: 8px;
    background: rgba(74, 222, 128, 0.12);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.novel-chapter-action-btn i {
    font-size: 11px;
}

.novel-chapter-action-btn:hover {
    border-color: rgba(74, 222, 128, 0.55);
    background: rgba(74, 222, 128, 0.2);
    color: #86efac;
}

.novel-chapter-action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ai-novel-chapter-content-body .chapter-content-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--text-secondary);
    text-align: center;
    gap: 8px;
}

.ai-novel-chapter-content-body .chapter-content-status i {
    font-size: 32px;
    opacity: 0.5;
}

.ai-novel-chapters-list .empty-state,
.ai-novel-chapter-content-body .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    color: var(--text-secondary);
    grid-column: unset;
}

.ai-novel-works-grid {
    --novel-work-card-min-width: 188px;
    display: grid;
    /* auto-fill 淇濈暀绌哄垪杞ㄩ亾锛岄伩鍏嶄綔鍝佹暟閲忓皯鏃?auto-fit 鎶樺彔鍒楀鑷村崟鍗¤鎷夋弧鏁磋锛堣棰戣儗鏅?鍔ㄤ綔鏇挎崲绛夐〉闈竴鑷达級 */
    grid-template-columns: repeat(auto-fill, minmax(var(--novel-work-card-min-width), 1fr));
    gap: 20px;
    justify-content: start;
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    padding: 10px 10px 10px 0;
    margin: -10px 0;
}

.ai-novel-works-grid::-webkit-scrollbar {
    width: 8px;
}

.ai-novel-works-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.ai-novel-works-grid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.ai-novel-works-grid::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* 绌虹姸鎬?*/
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
    color: var(--text-secondary);
}

.empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* 浣滃搧鍗＄墖 */
.ai-novel-work-card {
    background: var(--card-bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    height: 220px;
}

.ai-novel-work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 222, 128, 0.2);
    border-color: rgba(74, 222, 128, 0.3);
}

/* 鍏ㄥ睆瑙嗛瀹瑰櫒 */
.work-video-full {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
}

.work-video-full .video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 鎾斁鎸夐挳瑕嗙洊灞?*/
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.ai-novel-work-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: #4ade80;
}

.play-icon {
    font-size: 24px;
    color: white;
    margin-left: 3px;
}

/* 瑙嗛鏃堕棿鏄剧ず */
.ai-novel-work-card .video-time {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    background: none !important;
    color: white !important;
    font-size: 11px !important;
    z-index: 3 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 5px rgba(0, 0, 0, 0.5) !important;
    font-weight: 500 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
}

/* 澶勭悊涓拰澶辫触鐘舵€佺殑瑕嗙洊灞?*/
.processing-overlay,
.failed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    gap: 12px;
}

.processing-icon {
    font-size: 48px;
    color: var(--primary-color);
}

.processing-text {
    font-size: 16px;
    color: var(--text-primary);
}

.failed-icon {
    font-size: 48px;
    color: var(--danger-color);
}

.failed-text {
    font-size: 16px;
    color: var(--danger-color);
    font-weight: 600;
}

.failed-reason {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    padding: 0 20px;
}

/* 鏃ф牱寮忎繚鐣欑敤浜庡吋瀹?*/
.work-video {
    width: 100%;
    height: 180px;
    background: #000;
}

.work-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-info {
    padding: 12px;
}

.work-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.work-quality {
    display: flex;
    align-items: center;
    gap: 6px;
}

.work-actions {
    display: flex;
    gap: 8px;
}

.work-action-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 14px;
}

.work-action-btn:hover {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--primary-color);
}

.download-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.delete-btn:hover {
    color: var(--danger-color);
    border-color: var(--danger-color);
    background: rgba(248, 81, 73, 0.1);
}

/* 鍒嗛〉 */
.ai-novel-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 14px;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 小说风格选择 */
.novel-style-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.novel-style-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.novel-style-header .form-label {
    margin-bottom: 0 !important;
}

.novel-style-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(38px, auto));
    gap: 10px;
    min-height: calc(38px * 2 + 10px);
    align-content: start;
}

.novel-style-btn {
    min-height: 38px;
    box-sizing: border-box;
    padding: 10px 8px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.novel-style-btn:hover {
    border-color: var(--border-hi);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.novel-style-btn.active {
    border-color: var(--border-go, rgba(74, 222, 128, 0.35));
    background: rgba(74, 222, 128, 0.12);
    color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.15);
}

.novel-style-btn-placeholder {
    visibility: hidden;
    pointer-events: none;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.novel-config-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.ai-novel-upload-section .novel-config-dual-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.ai-novel-upload-section .novel-config-dual-row .novel-config-item {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ai-novel-upload-section .novel-config-dual-row .form-label {
    display: block;
    margin-bottom: 0 !important;
    white-space: nowrap;
}

.ai-novel-upload-section .novel-config-dual-row .form-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-novel-upload-section .novel-config-dual-row .form-input:focus {
    outline: none;
    border-color: var(--border-go, rgba(74, 222, 128, 0.35));
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.ai-novel-upload-section .novel-config-dual-row .form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.ai-novel-upload-section .novel-config-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.ai-novel-upload-section .novel-config-row .form-label {
    display: block;
    flex: 0 0 auto;
    width: auto;
    margin-bottom: 0 !important;
    white-space: nowrap;
}

.ai-novel-upload-section .novel-config-row .form-input {
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-novel-upload-section .novel-config-row .form-input:focus {
    outline: none;
    border-color: var(--border-go, rgba(74, 222, 128, 0.35));
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.ai-novel-upload-section .novel-config-row .form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.ai-novel-upload-section .novel-name-row .form-input {
    flex: 1 1 0;
    min-width: 0;
}

.ai-novel-upload-section .novel-ai-generate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(74, 222, 128, 0.35);
    border-radius: 8px;
    background: rgba(74, 222, 128, 0.12);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.ai-novel-upload-section .novel-ai-generate-btn i {
    font-size: 11px;
}

.ai-novel-upload-section .novel-ai-generate-btn:hover:not(:disabled) {
    border-color: rgba(74, 222, 128, 0.55);
    background: rgba(74, 222, 128, 0.2);
    color: #86efac;
}

.ai-novel-upload-section .novel-ai-generate-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ai-novel-upload-section .novel-gender-row .novel-gender-options {
    display: flex;
    flex: 1 1 0;
    gap: 10px;
    min-width: 0;
}

.ai-novel-upload-section .novel-gender-btn {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.ai-novel-upload-section .novel-gender-btn:hover {
    border-color: var(--border-hi);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.ai-novel-upload-section .novel-gender-btn.active {
    border-color: var(--border-go, rgba(74, 222, 128, 0.35));
    background: rgba(74, 222, 128, 0.12);
    color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.15);
}

.ai-novel-upload-section .novel-chapter-count-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.ai-novel-upload-section .novel-chapter-count-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ai-novel-upload-section .novel-chapter-count-header .form-label {
    margin-bottom: 0 !important;
}

.ai-novel-upload-section .novel-chapter-count-estimate {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.ai-novel-upload-section .novel-chapter-count-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-novel-upload-section .novel-chapter-count-input:focus {
    border-color: rgba(74, 222, 128, 0.45);
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.12);
}

.ai-novel-upload-section .novel-chapter-count-input::-webkit-outer-spin-button,
.ai-novel-upload-section .novel-chapter-count-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ai-novel-upload-section .novel-chapter-count-input[type='number'] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.ai-novel-upload-section .novel-chapter-count-hint {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ai-novel-upload-section .novel-setting-memo-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.ai-novel-upload-section .novel-setting-memo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.ai-novel-upload-section .novel-setting-memo-header .form-label {
    margin-bottom: 0 !important;
}

.ai-novel-upload-section .novel-setting-page-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ai-novel-upload-section .novel-setting-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.ai-novel-upload-section .novel-setting-page-btn:hover:not(:disabled) {
    border-color: var(--border-hi);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.ai-novel-upload-section .novel-setting-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.ai-novel-upload-section .novel-setting-page-info {
    min-width: 56px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    white-space: nowrap;
}

.ai-novel-upload-section .novel-setting-memo-block .form-label {
    margin-bottom: 0 !important;
}

.ai-novel-upload-section .novel-setting-memo-wrap {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-novel-upload-section .novel-setting-memo-wrap:focus-within {
    border-color: var(--border-go, rgba(74, 222, 128, 0.35));
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.ai-novel-upload-section .novel-setting-memo {
    display: block;
    width: 100%;
    min-height: 210px;
    height: 210px;
    padding: 12px 14px;
    margin: 0;
    box-sizing: border-box;
    resize: none;
    overflow-y: auto;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    outline: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.ai-novel-upload-section .novel-setting-memo::-webkit-scrollbar {
    width: 8px;
}

.ai-novel-upload-section .novel-setting-memo::-webkit-scrollbar-track {
    background: transparent;
}

.ai-novel-upload-section .novel-setting-memo::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.ai-novel-upload-section .novel-setting-memo::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ai-novel-upload-section .novel-setting-memo::-webkit-scrollbar-corner {
    background: transparent;
}

.ai-novel-upload-section .novel-setting-memo:focus {
    outline: none;
}

.ai-novel-upload-section .novel-setting-memo::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* 全书检查模态框（须高于 .unified-header 的 z-index: 2000） */
.novel-check-modal {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: none;
    align-items: stretch;
    justify-content: center;
    padding: calc(60px + 20px) 24px 24px;
    box-sizing: border-box;
}

.novel-check-modal.active {
    display: flex;
}

.novel-check-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.novel-check-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, calc(100vw - 48px));
    max-height: calc(100vh - 60px - 44px);
    height: calc(100vh - 60px - 44px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: var(--card-bg, #161b22);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.novel-check-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg, #161b22);
}

.novel-check-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.novel-check-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.novel-check-modal-close:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.novel-check-modal-close:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.novel-check-modal-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.novel-check-modal-body {
    padding: 20px 24px 12px;
}

.novel-check-modal-actions {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    padding: 14px 24px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg, #161b22);
}

.novel-check-score-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    padding: 16px 12px;
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: 14px;
    background: rgba(74, 222, 128, 0.06);
}

.novel-check-score-value {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    color: #86efac;
}

.novel-check-score-value.is-high {
    color: #86efac;
}

.novel-check-score-value.is-medium {
    color: #fcd34d;
}

.novel-check-score-value.is-low {
    color: #f87171;
}

.novel-check-score-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.novel-check-step-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.novel-check-step-score {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
}

.novel-check-progress-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.novel-check-progress-bar {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.novel-check-progress-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.85), rgba(34, 197, 94, 0.95));
    transition: width 0.35s ease;
}

.novel-check-progress-text {
    flex: 0 0 auto;
    min-width: 42px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

.novel-check-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.novel-check-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.novel-check-step.is-running {
    border-color: rgba(74, 222, 128, 0.35);
    background: rgba(74, 222, 128, 0.08);
}

.novel-check-step.is-success {
    border-color: rgba(74, 222, 128, 0.25);
}

.novel-check-step.is-warning {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
}

.novel-check-step.is-error {
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.08);
}

.novel-check-step-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    font-size: 14px;
    color: var(--text-secondary);
}

.novel-check-step.is-running .novel-check-step-icon {
    color: var(--primary-color);
}

.novel-check-step.is-success .novel-check-step-icon {
    color: #4ade80;
}

.novel-check-step.is-warning .novel-check-step-icon {
    color: #fbbf24;
}

.novel-check-step.is-error .novel-check-step-icon {
    color: #f87171;
}

.novel-check-step-content {
    flex: 1;
    min-width: 0;
}

.novel-check-step-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
}

.novel-check-step-detail {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: none;
}

.novel-check-modal-footer {
    padding: 8px 24px 24px;
}

.novel-check-result-summary {
    margin: 0;
    padding: 16px 18px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.novel-check-result-summary.is-success {
    color: #86efac;
}

.novel-check-result-summary.is-warning {
    color: #fcd34d;
}

.novel-check-modal-done-btn {
    padding: 10px 22px;
    border: 1px solid rgba(74, 222, 128, 0.35);
    border-radius: 10px;
    background: rgba(74, 222, 128, 0.12);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.novel-check-modal-done-btn:hover {
    border-color: rgba(74, 222, 128, 0.55);
    background: rgba(74, 222, 128, 0.2);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .ai-novel-container {
        grid-template-columns: 1fr;
    }

    .ai-novel-reader {
        flex-direction: column;
    }

    .ai-novel-chapters-panel {
        flex: 0 0 auto;
        max-width: none;
        max-height: 240px;
    }
}

@media (max-width: 768px) {
    .ai-novel-content {
        padding: 15px;
    }

    .ai-novel-chapters-panel {
        max-height: 200px;
    }

    .upload-card,
    .motion-options {
        padding: 16px;
    }

    .novel-check-modal {
        padding: calc(60px + 12px) 12px 12px;
    }

    .novel-check-modal-dialog {
        width: 100%;
        max-height: calc(100vh - 60px - 24px);
        height: calc(100vh - 60px - 24px);
    }
}


