/* ========================================
   大纲设计 - iOS 玻璃拟态风格
   ======================================== */

/* 大纲设计面板 */
.outline-design-panel {
    max-width: 900px;
    margin: 0 auto;
}

/* 步骤指示器 */
.outline-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: transparent;
    border-radius: 16px;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.step-item.active .step-number {
    background: var(--bg-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    transform: scale(1.1);
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.step-item.active .step-label {
    color: var(--text-primary);
    font-weight: 600;
}

.step-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(102, 126, 234, 0.3) 0%, 
        rgba(102, 126, 234, 0.1) 100%);
    margin: 0 1rem;
}

/* 大纲步骤内容 */
.outline-step {
    animation: fadeInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.outline-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.outline-step h3 i {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 信息栏 */
.outline-info-bar {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: transparent;
    border-radius: 12px;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

/* 生成控制按钮组 */
.outline-generation-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.outline-generation-controls button {
    flex: 1;
    min-width: 150px;
}

/* 进度条 */
.outline-progress {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

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

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.progress-text::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 大纲结果展示 */
.outline-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.outline-chapter-card {
    background: transparent;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    animation: slideInUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.outline-chapter-card:hover {
    background: var(--bg-hover, rgba(0, 0, 0, 0.05));
    transform: translateY(-2px);
}

.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.chapter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chapter-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    background: var(--bg-gradient);
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.chapter-actions {
    display: flex;
    gap: 0.5rem;
}

.chapter-actions .btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg, transparent);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    border-radius: 8px;
    transition: all 0.2s ease;
}

.chapter-actions .btn-icon:hover {
    background: var(--bg-hover);
    border-color: var(--border-purple);
    transform: scale(1.05);
}

.chapter-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plot-section {
    padding: 1rem;
    background: transparent;
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    border-left: 3px solid var(--primary-color);
}

.plot-section.subplot {
    border-left-color: #764ba2;
}

.plot-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plot-label i {
    color: var(--primary-color);
}

.plot-section.subplot .plot-label i {
    color: #764ba2;
}

.plot-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* 空状态 */
.outline-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.outline-empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.outline-empty-state p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .outline-steps-indicator {
        padding: 1rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-divider {
        width: 40px;
        margin: 0 0.5rem;
    }
    
    .outline-info-bar {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .outline-generation-controls {
        flex-direction: column;
    }
    
    .outline-generation-controls button {
        width: 100%;
    }
    
    .chapter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* ========================================
   主角生成样式
   ======================================== */

.protagonist-result {
    margin-top: 1.5rem;
    animation: fadeInUp 0.5s ease;
}

.protagonist-result input[type="text"],
.protagonist-result textarea,
.protagonist-result select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

.protagonist-result input[type="text"]:focus,
.protagonist-result textarea:focus,
.protagonist-result select:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1),
                0 4px 12px rgba(102, 126, 234, 0.15);
}

.protagonist-result input[type="text"]:hover,
.protagonist-result textarea:hover,
.protagonist-result select:hover {
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

.protagonist-result textarea {
    resize: vertical;
    line-height: 1.6;
}

.generation-controls {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    justify-content: center;
}

.generation-progress {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   世界观生成样式
   ======================================== */

.worldview-presets {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: transparent;
    border-radius: 12px;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
}

.worldview-presets h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preset-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.preset-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--card-bg, rgba(255, 255, 255, 0.05));
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
}

.preset-checkbox:hover {
    background: var(--bg-hover, rgba(255, 255, 255, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preset-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.preset-checkbox span {
    font-size: 0.9rem;
    color: var(--text-primary);
    user-select: none;
}

.custom-worldview-items {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: transparent;
    border-radius: 12px;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
}

.custom-worldview-items h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#customWorldviewList {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.custom-worldview-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--card-bg, rgba(255, 255, 255, 0.05));
    border-radius: 8px;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
}

.custom-worldview-item input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.custom-worldview-item input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.custom-worldview-item input:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

.custom-worldview-item button {
    padding: 0.5rem 0.75rem;
    background: rgba(var(--danger-rgb, 244, 67, 54), 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(var(--danger-rgb, 244, 67, 54), 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.custom-worldview-item button:hover {
    background: rgba(var(--danger-rgb, 244, 67, 54), 0.2);
    border-color: rgba(var(--danger-rgb, 244, 67, 54), 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(var(--danger-rgb, 244, 67, 54), 0.2);
}

.custom-worldview-item button:active {
    transform: translateY(0);
}

.worldview-results {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: transparent;
    border-radius: 12px;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    animation: fadeInUp 0.5s ease;
}

.worldview-item-result {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--card-bg, rgba(255, 255, 255, 0.05));
    border-radius: 8px;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
}

.worldview-item-result h5 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.worldview-item-result textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
    background: var(--input-bg, transparent);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

.worldview-item-result textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--input-bg, transparent);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.worldview-item-result textarea:hover {
    border-color: var(--primary-color);
    background: var(--input-bg, transparent);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ========================================
   步骤5: 保存大纲样式
   ======================================== */

.outline-summary-panel {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.outline-summary-panel h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.save-actions-panel {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.save-actions-panel h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.save-action-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.save-action-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.action-header > i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.action-header h5 {
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.action-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.save-action-item button {
    min-width: 120px;
    white-space: nowrap;
}

.vectorization-progress {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.vectorization-progress h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vectorization-progress .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .preset-items {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
    }
    
    .preset-checkbox {
        padding: 0.5rem;
    }
    
    .generation-controls {
        flex-direction: column;
    }
    
    .generation-controls button {
        width: 100%;
    }

    .save-action-item {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .save-action-item button {
        width: 100%;
    }

    .summary-info {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   夜间模式样式覆盖
   ======================================== */
:root[data-theme="dark"] .outline-info-bar,
[data-theme="dark"] .outline-info-bar {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .worldview-presets,
[data-theme="dark"] .worldview-presets {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .custom-worldview-items,
[data-theme="dark"] .custom-worldview-items {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .worldview-results,
[data-theme="dark"] .worldview-results {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .worldview-item-result,
[data-theme="dark"] .worldview-item-result {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .outline-chapter-card,
[data-theme="dark"] .outline-chapter-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .outline-chapter-card:hover,
[data-theme="dark"] .outline-chapter-card:hover {
    background: rgba(10, 10, 10, 0.6);
}

:root[data-theme="dark"] .preset-checkbox,
[data-theme="dark"] .preset-checkbox {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .preset-checkbox:hover,
[data-theme="dark"] .preset-checkbox:hover {
    background: rgba(10, 10, 10, 0.5);
}

:root[data-theme="dark"] .custom-worldview-item,
[data-theme="dark"] .custom-worldview-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .custom-worldview-item input,
[data-theme="dark"] .custom-worldview-item input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

:root[data-theme="dark"] .custom-worldview-item input:hover,
[data-theme="dark"] .custom-worldview-item input:hover {
    background: rgba(10, 10, 10, 0.6);
    border-color: rgba(124, 140, 231, 0.4);
}

:root[data-theme="dark"] .custom-worldview-item input:focus,
[data-theme="dark"] .custom-worldview-item input:focus {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(124, 140, 231, 0.6);
}

:root[data-theme="dark"] .protagonist-result input[type="text"],
:root[data-theme="dark"] .protagonist-result textarea,
:root[data-theme="dark"] .protagonist-result select,
[data-theme="dark"] .protagonist-result input[type="text"],
[data-theme="dark"] .protagonist-result textarea,
[data-theme="dark"] .protagonist-result select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

:root[data-theme="dark"] .protagonist-result input[type="text"]:hover,
:root[data-theme="dark"] .protagonist-result textarea:hover,
:root[data-theme="dark"] .protagonist-result select:hover,
[data-theme="dark"] .protagonist-result input[type="text"]:hover,
[data-theme="dark"] .protagonist-result textarea:hover,
[data-theme="dark"] .protagonist-result select:hover {
    background: rgba(10, 10, 10, 0.6);
    border-color: rgba(124, 140, 231, 0.4);
}

:root[data-theme="dark"] .protagonist-result input[type="text"]:focus,
:root[data-theme="dark"] .protagonist-result textarea:focus,
:root[data-theme="dark"] .protagonist-result select:focus,
[data-theme="dark"] .protagonist-result input[type="text"]:focus,
[data-theme="dark"] .protagonist-result textarea:focus,
[data-theme="dark"] .protagonist-result select:focus {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(124, 140, 231, 0.6);
}

:root[data-theme="dark"] .worldview-item-result textarea,
[data-theme="dark"] .worldview-item-result textarea {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

:root[data-theme="dark"] .worldview-item-result textarea:hover,
[data-theme="dark"] .worldview-item-result textarea:hover {
    background: rgba(10, 10, 10, 0.6);
    border-color: rgba(124, 140, 231, 0.4);
}

:root[data-theme="dark"] .worldview-item-result textarea:focus,
[data-theme="dark"] .worldview-item-result textarea:focus {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(124, 140, 231, 0.6);
}

:root[data-theme="dark"] .save-action-item,
[data-theme="dark"] .save-action-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .save-action-item:hover,
[data-theme="dark"] .save-action-item:hover {
    background: rgba(10, 10, 10, 0.6);
}

:root[data-theme="dark"] .outline-steps-indicator,
[data-theme="dark"] .outline-steps-indicator {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .step-number,
[data-theme="dark"] .step-number {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(124, 140, 231, 0.3);
}

:root[data-theme="dark"] .outline-progress,
[data-theme="dark"] .outline-progress {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .outline-summary-panel,
[data-theme="dark"] .outline-summary-panel {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .save-actions-panel,
[data-theme="dark"] .save-actions-panel {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] #outlineRecordsPanel,
[data-theme="dark"] #outlineRecordsPanel {
    background: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

:root[data-theme="dark"] #generateProtagonistBtn,
:root[data-theme="dark"] #regenerateProtagonistBtn,
:root[data-theme="dark"] #generateWorldviewBtn,
:root[data-theme="dark"] #regenerateWorldviewBtn,
:root[data-theme="dark"] #generateOutlineBtn,
:root[data-theme="dark"] #regenerateOutlineBtn,
:root[data-theme="dark"] #continueGenerateBtn,
:root[data-theme="dark"] #saveToBackendBtn,
:root[data-theme="dark"] #vectorizeOutlineBtn,
:root[data-theme="dark"] #exportOutlineBtn,
:root[data-theme="dark"] #finishOutlineBtn,
[data-theme="dark"] #generateProtagonistBtn,
[data-theme="dark"] #regenerateProtagonistBtn,
[data-theme="dark"] #generateWorldviewBtn,
[data-theme="dark"] #regenerateWorldviewBtn,
[data-theme="dark"] #generateOutlineBtn,
[data-theme="dark"] #regenerateOutlineBtn,
[data-theme="dark"] #continueGenerateBtn,
[data-theme="dark"] #saveToBackendBtn,
[data-theme="dark"] #vectorizeOutlineBtn,
[data-theme="dark"] #exportOutlineBtn,
[data-theme="dark"] #finishOutlineBtn {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
}

/* ========================================
   续写按钮样式
   ======================================== */

/* 世界观项目标题栏 */
.worldview-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.worldview-item-header h5 {
    margin: 0;
}

/* 小型续写按钮（世界观项目用） */
.btn-continue-sm {
    padding: 4px 10px;
    font-size: 12px;
    background: var(--primary-color, #e91e63);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-continue-sm:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
    box-shadow: 0 3px 10px rgba(233, 30, 99, 0.3);
}

.btn-continue-sm:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 剧情大纲内容区头部 */
.outline-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.outline-content-header label {
    margin: 0;
}

/* 续写按钮（剧情大纲用） */
.btn-continue {
    padding: 8px 16px;
    font-size: 13px;
    background: var(--primary-color, #e91e63);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-continue:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.35);
}

.btn-continue:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

