/**
 * index.php write页面区域样式 - 从 index.php 内联样式抽离
 * 包含：项目列表卡片、写作统计栏、灵感生成区域等
 */

/* ========== 孤儿项目提示 ========== */
.write-project-orphan-notice {
    margin-top: 20px;
    padding: 16px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
}

.write-project-orphan-text {
    color: #92400e;
    margin-bottom: 12px;
}

.write-project-orphan-inline {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.write-project-orphan-label {
    color: #92400e;
}

.write-project-orphan-btn {
    padding: 6px 12px;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

/* ========== 项目列表网格 ========== */
.write-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.write-project-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.2s;
    position: relative;
}

.write-project-card-link {
    text-decoration: none;
    display: block;
}

.write-project-card-title {
    color: #333;
    margin-bottom: 8px;
}

.write-project-card-author {
    color: #888;
    font-size: 12px;
    margin-bottom: 4px;
}

.write-project-card-genre {
    color: #666;
    font-size: 13px;
}

.write-project-card-date {
    color: #888;
    font-size: 12px;
    margin-top: 6px;
}

.write-project-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
}

.write-project-card-edit-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
}

.write-project-card-delete-btn {
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    color: #dc2626;
}

.write-project-card-new {
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.write-project-card-new-text {
    color: #888;
    font-size: 16px;
}

/* ========== 写作统计栏 ========== */
.write-stat-bar {
    padding: 16px 24px;
    margin-bottom: 16px;
}

.write-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.write-stat-items {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.write-stat-label {
    color: #888;
    font-size: 13px;
}

.write-stat-value-name {
    font-weight: 600;
    color: #333;
}

.write-stat-value-author {
    font-weight: 600;
    color: #666;
}

.write-stat-value-genre {
    font-weight: 600;
    color: #8b5cf6;
}

.write-stat-value-chapters {
    font-weight: 600;
    color: #4f46e5;
}

.write-stat-value-words {
    font-weight: 600;
    color: #10b981;
}

.write-stat-value-default {
    font-weight: 600;
}

.write-stat-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ========== 写作主体布局 ========== */
.write-inspire-layout {
    display: flex;
    gap: 20px;
    position: relative;
}

.write-inspire-main {
    flex: 1;
    min-width: 0;
}

.write-inspire-tabs {
    margin: -10px -24px 20px;
    border-radius: 0;
}

/* ========== AI数据用途说明 ========== */
.write-inspire-data-notice {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== 警告提示 ========== */
.write-inspire-warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.write-inspire-warning-icon {
    font-size: 18px;
}

.write-inspire-warning-title {
    color: #92400e;
    font-weight: 600;
    margin-bottom: 4px;
}

.write-inspire-warning-text {
    color: #a16207;
    font-size: 13px;
    line-height: 1.6;
}

.write-inspire-warning-link {
    color: #1e40af;
    text-decoration: underline;
    margin-left: 4px;
}

/* ========== 灵感结果区域 ========== */
.write-inspire-result-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.write-inspire-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.write-inspire-result-title-green {
    font-weight: 600;
    color: #166534;
}

.write-inspire-result-title-blue {
    font-weight: 600;
    color: #1e40af;
}

.write-inspire-result-actions {
    display: flex;
    gap: 8px;
}

.write-inspire-saved-badge {
    font-size: 12px;
    color: #166534;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 4px;
}

.write-inspire-copy-btn-green {
    font-size: 12px;
    padding: 4px 10px;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 4px;
    cursor: pointer;
    color: #166534;
}

.write-inspire-copy-btn-blue {
    font-size: 12px;
    padding: 4px 10px;
    background: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 4px;
    cursor: pointer;
    color: #1e40af;
}

.write-inspire-content {
    color: #333;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    max-height: 500px;
    overflow-y: auto;
}

.write-inspire-content-short {
    color: #333;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

/* ========== 已保存内容（折叠） ========== */
.write-inspire-saved-blue {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.write-inspire-saved-green {
    background: #f0fdf4;
    border: 1px solid #86efac;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.write-inspire-saved-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.write-inspire-saved-title-blue {
    font-weight: 600;
    color: #1e40af;
}

.write-inspire-saved-title-green {
    font-weight: 600;
    color: #166534;
}

.write-inspire-collapse-arrow {
    font-size: 12px;
    color: #888;
    margin-left: 8px;
}

.write-inspire-saved-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.write-inspire-saved-date {
    font-size: 12px;
    color: #666;
}

.write-inspire-saved-content-hidden {
    color: #333;
    font-size: 14px;
    line-height: 1.8;
    margin-top: 12px;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

/* ========== 数据来源选择器（大纲选项） ========== */
.write-inspire-option-row {
    display: flex;
    gap: 12px;
}

.write-inspire-option-label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.write-inspire-radio-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.write-inspire-radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.write-inspire-option-title {
    font-weight: 600;
    font-size: 13px;
}

.write-inspire-option-desc {
    font-size: 11px;
    color: #666;
}

.write-inspire-outline-warning {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    font-size: 12px;
    color: #92400e;
}

/* ========== 模型选择器 ========== */
.write-inspire-model-row {
    display: flex;
    gap: 12px;
}

/* ========== 表单操作栏 ========== */
.write-inspire-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.write-inspire-form-actions-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.write-inspire-admin-btn {
    padding: 8px 12px;
    font-size: 13px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 6px;
    cursor: pointer;
    color: #166534;
}

.write-inspire-hint-text {
    font-size: 12px;
    color: #888;
}

.write-inspire-desc-text {
    color: #666;
    margin-bottom: 16px;
    font-size: 14px;
}

/* ========== 新生成结果区域 ========== */
.write-inspire-new-result {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
}

.write-inspire-error-text {
    color: #dc2626;
}

.write-inspire-error-box {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

.write-inspire-error-box-text {
    color: #dc2626;
    font-size: 14px;
}

/* ========== 历史记录区域 ========== */
.write-inspire-history {
    margin-top: 24px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.write-inspire-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.write-inspire-history-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.write-inspire-history-actions {
    display: flex;
    gap: 8px;
}

.write-inspire-history-btn {
    padding: 6px 12px;
    font-size: 12px;
}

.write-inspire-history-btn-danger {
    padding: 6px 12px;
    font-size: 12px;
    color: #dc2626;
    border-color: #fecaca;
}

.write-inspire-history-list {
    max-height: 400px;
    overflow-y: auto;
}

.write-inspire-history-empty {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 13px;
}

/* ========== 数据状态提示 ========== */
.write-inspire-status-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.write-inspire-status-tag {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.write-inspire-update-hint {
    color: #f59e0b;
    margin-left: 8px;
}

/* ========== 境界生成区域 ========== */
.write-inspire-realm-intro {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid #c4b5fd;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.write-inspire-realm-title {
    font-weight: 600;
    color: #6d28d9;
    margin-bottom: 8px;
}

.write-inspire-realm-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.write-inspire-realm-saved {
    background: #f5f3ff;
    border: 1px solid #c4b5fd;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.write-inspire-realm-saved-title {
    font-weight: 600;
    color: #6d28d9;
}

.write-inspire-realm-saved-content {
    color: #333;
    font-size: 14px;
    line-height: 1.8;
    margin-top: 12px;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
}

.write-inspire-realm-mode-info {
    font-weight: 600;
    margin-bottom: 4px;
}

.write-inspire-realm-extend-info {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #92400e;
}

.write-inspire-realm-custom-info {
    background: #dbeafe;
    border: 1px solid #93c5fd;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #1e40af;
}

.write-inspire-realm-world-info {
    background: #ecfdf5;
    border: 1px solid #86efac;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.write-inspire-realm-world-label {
    font-size: 13px;
    color: #166534;
    margin-bottom: 8px;
}

.write-inspire-realm-world-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.write-inspire-realm-world-tag {
    background: #dcfce7;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #166534;
}

.write-inspire-realm-world-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #059669;
}

.write-inspire-realm-hint-text {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.write-inspire-realm-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.write-inspire-realm-center-hint {
    margin-top: 12px;
    font-size: 12px;
    color: #888;
    text-align: center;
}

.write-inspire-realm-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    border-radius: 8px 8px 0 0;
}

.write-inspire-realm-result-title {
    font-weight: 600;
    color: #fff;
}

.write-inspire-realm-result-actions {
    display: flex;
    gap: 8px;
}

.write-inspire-realm-result-btn {
    font-size: 12px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
}

.write-inspire-realm-result-content {
    background: #f5f3ff;
    border: 1px solid #c4b5fd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 16px;
    max-height: 500px;
    overflow-y: auto;
}

/* ========== 角色生成区域 ========== */
.write-inspire-npc-intro {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.write-inspire-npc-title {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 8px;
}

.write-inspire-npc-desc {
    font-size: 13px;
    color: #78350f;
    line-height: 1.6;
}

.write-inspire-npc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.write-inspire-npc-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.write-inspire-npc-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.write-inspire-npc-result-title {
    font-weight: 600;
    color: #92400e;
}

.write-inspire-npc-result-actions {
    display: flex;
    gap: 8px;
}

.write-inspire-npc-add-btn {
    font-size: 12px;
    padding: 4px 12px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 4px;
    cursor: pointer;
    color: #166534;
}

.write-inspire-npc-copy-btn {
    font-size: 12px;
    padding: 4px 12px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 4px;
    cursor: pointer;
    color: #92400e;
}

.write-inspire-npc-result-content {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.8;
    max-height: 500px;
    overflow-y: auto;
}

/* ========== 设定生成器区域 ========== */
.write-inspire-setting-intro {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.write-inspire-setting-title {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 8px;
}

.write-inspire-setting-desc {
    font-size: 13px;
    color: #78350f;
    line-height: 1.6;
}

.write-inspire-setting-section {
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.write-inspire-setting-section-title {
    font-weight: 600;
    margin-bottom: 12px;
}

.write-inspire-setting-section-hint {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.write-inspire-setting-world-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.write-inspire-setting-world-title {
    color: #334155;
}

.write-inspire-setting-type-section {
    background: #eff6ff;
    border: 1px solid #93c5fd;
}

.write-inspire-setting-type-title {
    color: #1e40af;
}

.write-inspire-setting-detail-section {
    background: #f0fdf4;
    border: 1px solid #86efac;
}

.write-inspire-setting-detail-title {
    color: #166534;
}

.write-inspire-setting-source-section {
    background: #fff;
    border: 1px solid #e2e8f0;
}

.write-inspire-setting-source-title {
    color: #334155;
}

.write-inspire-setting-model-section {
    background: #fff;
    border: 1px solid #e2e8f0;
}

.write-inspire-setting-model-title {
    color: #334155;
}

.write-inspire-setting-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.write-inspire-setting-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.write-inspire-setting-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.write-inspire-setting-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 8px 8px 0 0;
}

.write-inspire-setting-result-title {
    font-weight: 600;
    color: #fff;
}

.write-inspire-setting-result-actions {
    display: flex;
    gap: 8px;
}

.write-inspire-setting-result-btn-save {
    font-size: 12px;
    padding: 4px 12px;
    background: #10b981;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
}

.write-inspire-setting-result-btn {
    font-size: 12px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
}

.write-inspire-setting-result-content {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.8;
}

.write-inspire-setting-saved-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.write-inspire-setting-saved-title {
    font-weight: 600;
    color: #334155;
}

.write-inspire-setting-saved-list {
    max-height: 500px;
    overflow-y: auto;
}

.write-inspire-setting-saved-empty {
    text-align: center;
    color: #888;
    padding: 40px;
    background: #f8fafc;
    border-radius: 8px;
}

.write-inspire-setting-saved-empty-hint {
    font-size: 12px;
}

/* ========== 封面生成区域 ========== */
.write-inspire-cover-intro {
    background: linear-gradient(135deg, #fdf4ff 0%, #f3e8ff 100%);
    border: 1px solid #c4b5fd;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.write-inspire-cover-title {
    font-weight: 600;
    color: #7c3aed;
    margin-bottom: 8px;
}

.write-inspire-cover-desc {
    font-size: 13px;
    color: #6b21a8;
    line-height: 1.6;
}

.write-inspire-cover-section {
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.write-inspire-cover-section-title {
    font-weight: 600;
    margin-bottom: 12px;
}

.write-inspire-cover-core-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.write-inspire-cover-core-title {
    color: #334155;
}

.write-inspire-cover-char-section {
    background: #fefce8;
    border: 1px solid #fde047;
}

.write-inspire-cover-char-title {
    color: #854d0e;
}

.write-inspire-cover-bg-section {
    background: #f0fdf4;
    border: 1px solid #86efac;
}

.write-inspire-cover-bg-title {
    color: #166534;
}

.write-inspire-cover-text-section {
    background: #fdf4ff;
    border: 1px solid #e879f9;
}

.write-inspire-cover-text-title {
    color: #86198f;
}

.write-inspire-cover-quality-section {
    background: #eff6ff;
    border: 1px solid #93c5fd;
}

.write-inspire-cover-quality-title {
    color: #1e40af;
}

.write-inspire-cover-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.write-inspire-cover-grid-2-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.write-inspire-cover-size-info {
    margin: 12px 0;
    padding: 10px 14px;
    background: #f0f9ff;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    font-size: 12px;
    color: #1e40af;
}

.write-inspire-cover-size-note {
    margin-top: 6px;
    font-size: 11px;
    color: #6b7280;
}

.write-inspire-cover-price-notice {
    background: #fef3c7;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #92400e;
}

.write-inspire-cover-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.write-inspire-cover-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.write-inspire-cover-result-title {
    font-weight: 600;
    color: #7c3aed;
}

.write-inspire-cover-result-actions {
    display: flex;
    gap: 8px;
}

.write-inspire-cover-result-btn {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.write-inspire-cover-result-content {
    background: #faf5ff;
    border: 1px solid #c4b5fd;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.write-inspire-cover-prompt-used {
    margin-top: 12px;
    font-size: 12px;
    color: #888;
    background: #f8fafc;
    padding: 12px;
    border-radius: 6px;
}

.write-inspire-cover-prompt-label {
    font-weight: 600;
    margin-bottom: 4px;
}

/* ========== 封面弹窗 ========== */
.write-inspire-cover-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.write-inspire-cover-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.write-inspire-cover-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.write-inspire-cover-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
}

.write-inspire-cover-history-hint {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

.write-inspire-cover-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

/* ========== 风格选择弹窗 ========== */
.write-inspire-cover-style-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.write-inspire-cover-style-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.write-inspire-cover-style-btn {
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.write-inspire-cover-style-selected {
    padding: 12px;
    background: #f0f9ff;
    border: 1px solid #93c5fd;
    border-radius: 6px;
}

.write-inspire-cover-style-selected-text {
    font-size: 13px;
    color: #1e40af;
}

.write-inspire-cover-style-actions {
    display: flex;
    gap: 12px;
}

/* ========== 收费确认弹窗 ========== */
.write-inspire-cover-charge-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.write-inspire-cover-charge-center {
    text-align: center;
    margin-bottom: 20px;
}

.write-inspire-cover-charge-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.write-inspire-cover-charge-box {
    background: #fef3c7;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.write-inspire-cover-charge-label {
    font-size: 13px;
    color: #92400e;
    margin-bottom: 4px;
}

.write-inspire-cover-charge-value {
    font-size: 28px;
    font-weight: bold;
    color: #d97706;
}

.write-inspire-cover-charge-unit {
    font-size: 12px;
    color: #92400e;
}

/* ========== 加载动画弹窗 ========== */
.write-inspire-cover-loading-content {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    width: 90%;
    max-width: 350px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* ========== 简介区域 ========== */
.write-inspire-summary-current {
    background: #f0fdf4;
    border: 1px solid #86efac;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.write-inspire-summary-empty {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #92400e;
    font-size: 14px;
}

.write-inspire-summary-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.write-inspire-summary-info-text {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.write-inspire-summary-info-list {
    margin: 8px 0 0 20px;
    padding: 0;
}

/* ========== 侧边栏 ========== */
.write-inspire-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.write-inspire-sidebar-sticky {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.write-inspire-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.write-inspire-sidebar-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #888;
}

.write-inspire-sidebar-new-btn {
    width: 100%;
    margin-bottom: 16px;
    display: block;
    text-align: center;
    text-decoration: none;
}

.write-inspire-sidebar-empty {
    text-align: center;
    color: #888;
    padding: 20px;
    font-size: 13px;
}

.write-inspire-sidebar-chapter {
    display: block;
    text-decoration: none;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.write-inspire-sidebar-chapter-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.write-inspire-sidebar-chapter-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.write-inspire-sidebar-chapter-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.write-inspire-sidebar-chapter-words {
    color: #888;
    font-size: 12px;
    margin-top: 2px;
}

.write-inspire-sidebar-progress-bar {
    margin-top: 8px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.write-inspire-sidebar-progress-fill {
    height: 100%;
}

.write-inspire-sidebar-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.write-inspire-sidebar-total {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

/* ========== 编辑/选择保存弹窗 ========== */
.write-inspire-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.write-inspire-modal-box {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.write-inspire-modal-header {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.write-inspire-modal-header-title {
    font-weight: 600;
    font-size: 16px;
}

.write-inspire-modal-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.write-inspire-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.write-inspire-modal-footer {
    padding: 16px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.write-inspire-select-save-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.write-inspire-select-save-title {
    font-weight: 600;
    font-size: 16px;
    color: #fff;
}

.write-inspire-select-save-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.write-inspire-select-save-toolbar {
    padding: 12px 20px;
    background: #fffbeb;
    border-bottom: 1px solid #fcd34d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.write-inspire-select-save-count {
    font-size: 12px;
    color: #92400e;
}

/* ========== 提示词预览弹窗（JS生成） ========== */
.write-inspire-prompt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.write-inspire-prompt-modal-box {
    background: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.write-inspire-prompt-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.write-inspire-prompt-stat-item {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.write-inspire-prompt-stat-label {
    font-size: 12px;
    color: #666;
}

.write-inspire-prompt-stat-value {
    font-size: 20px;
    font-weight: 600;
}

.write-inspire-extend-saved-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #059669;
    background: #ecfdf5;
    padding: 6px 10px;
    border-radius: 4px;
}

.write-inspire-custom-saved-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #059669;
    background: #ecfdf5;
    padding: 6px 10px;
    border-radius: 4px;
}

.write-inspire-cover-suggestion-btn {
    padding: 10px 20px;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    width: 100%;
}

.write-inspire-cover-suggestion-result {
    margin-top: 12px;
    background: #f0f9ff;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    overflow: hidden;
}

.write-inspire-cover-suggestion-header {
    font-weight: 600;
    color: #1e40af;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e0f2fe;
}

.write-inspire-cover-suggestion-toggle {
    font-size: 12px;
    color: #3b82f6;
}

.write-inspire-cover-suggestion-body {
    padding: 16px;
}

.write-inspire-cover-analysis {
    font-size: 13px;
    color: #333;
    margin-bottom: 12px;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
}

.write-inspire-cover-suggestions-grid {
    display: grid;
    gap: 10px;
}

.write-inspire-cover-prompt-preview {
    margin-bottom: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.write-inspire-cover-prompt-preview-header {
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.write-inspire-cover-prompt-preview-text {
    font-size: 12px;
    color: #64748b;
    line-height: 1.8;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
}

/* ========== 剧情建议高亮样式（JS动态生成） ========== */
.write-inspire-advice-heading {
    font-weight: 600;
    color: #4f46e5;
    margin-top: 16px;
    margin-bottom: 8px;
}

.write-inspire-advice-keyword {
    color: #7c3aed;
    font-weight: 500;
}

/* ========== 境界延伸/自定义输入 ========== */
.write-inspire-realm-extend-count {
    width: 120px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.write-inspire-realm-custom-textarea {
    min-height: 120px;
}

/* ========== NPC额外要求文本框 ========== */
.write-inspire-npc-extra-textarea {
    min-height: 60px;
}

/* ========== 设定生成器数量选择 ========== */
.write-inspire-setting-count-select {
    width: 120px;
}

/* ========== 收费确认弹窗 - 覆盖层 ========== */
.write-inspire-cover-charge-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.write-inspire-cover-charge-title {
    margin: 0 0 8px;
    font-size: 18px;
    color: #333;
}

.write-inspire-cover-charge-desc {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.write-inspire-cover-charge-actions {
    display: flex;
    gap: 12px;
}

.write-inspire-cover-charge-btn-cancel {
    flex: 1;
    padding: 12px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.write-inspire-cover-charge-btn-confirm {
    flex: 1;
    padding: 12px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

/* ========== 加载动画弹窗 - 覆盖层 ========== */
.write-inspire-cover-loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    align-items: center;
    justify-content: center;
}

.write-inspire-cover-loading-spinner-wrap {
    margin-bottom: 20px;
}

.write-inspire-cover-loading-title {
    margin: 0 0 8px;
    font-size: 16px;
    color: #333;
}

.write-inspire-cover-loading-desc {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.write-inspire-cover-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e2e8f0;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: coverSpin 1s linear infinite;
    margin: 0 auto;
}

/* ========== 深色模式适配 ========== */
body.dark-mode .write-project-card { background: #1a1a3e; border-color: #2a2a4a; }
body.dark-mode .write-project-card-link { color: inherit; }
body.dark-mode .write-project-card-title { color: #e0e0e0; }
body.dark-mode .write-project-card-author { color: #888; }
body.dark-mode .write-project-card-genre { color: #aaa; }
body.dark-mode .write-project-card-date { color: #888; }
body.dark-mode .write-project-card-edit-btn { background: #16213e; border-color: #2a2a4a; color: #ccc; }
body.dark-mode .write-project-card-delete-btn { background: #2e0a0a; border-color: #991b1b; color: #fca5a5; }
body.dark-mode .write-project-card-new { background: #16213e; border-color: #2a2a4a; }
body.dark-mode .write-project-card-new-text { color: #888; }

body.dark-mode .write-stat-label { color: #888; }
body.dark-mode .write-stat-value-name { color: #e0e0e0; }
body.dark-mode .write-stat-value-author { color: #aaa; }

body.dark-mode .write-project-orphan-notice { background: #2e1a0a; border-color: #854d0e; }
body.dark-mode .write-project-orphan-text { color: #fcd34d; }
body.dark-mode .write-project-orphan-inline { background: #2e1a0a; border-color: #854d0e; }
body.dark-mode .write-project-orphan-label { color: #fcd34d; }

body.dark-mode .write-inspire-data-notice { background: #0a1a2e; border-color: #1e40af; color: #93c5fd; }
body.dark-mode .write-inspire-warning { background: #2e1a0a; border-color: #854d0e; }
body.dark-mode .write-inspire-warning-title { color: #fcd34d; }
body.dark-mode .write-inspire-warning-text { color: #fbbf24; }

body.dark-mode .write-inspire-result-success { background: #0a2e1a; border-color: #166534; }
body.dark-mode .write-inspire-result-title-green { color: #6ee7b7; }
body.dark-mode .write-inspire-result-title-blue { color: #93c5fd; }
body.dark-mode .write-inspire-content { color: #e0e0e0; }
body.dark-mode .write-inspire-content-short { color: #e0e0e0; }
body.dark-mode .write-inspire-saved-badge { background: #0a2e1a; color: #6ee7b7; }
body.dark-mode .write-inspire-copy-btn-green { background: #0a2e1a; border-color: #166534; color: #6ee7b7; }
body.dark-mode .write-inspire-copy-btn-blue { background: #0a1a2e; border-color: #1e40af; color: #93c5fd; }

body.dark-mode .write-inspire-saved-blue { background: #0a1a2e; border-color: #1e40af; }
body.dark-mode .write-inspire-saved-green { background: #0a2e1a; border-color: #166534; }
body.dark-mode .write-inspire-saved-title-blue { color: #93c5fd; }
body.dark-mode .write-inspire-saved-title-green { color: #6ee7b7; }
body.dark-mode .write-inspire-saved-date { color: #888; }
body.dark-mode .write-inspire-saved-content-hidden { color: #e0e0e0; }

body.dark-mode .write-inspire-desc-text { color: #aaa; }
body.dark-mode .write-inspire-hint-text { color: #888; }
body.dark-mode .write-inspire-error-box { background: #2e0a0a; border-color: #991b1b; }
body.dark-mode .write-inspire-error-box-text { color: #fca5a5; }

body.dark-mode .write-inspire-history { border-top-color: #2a2a4a; }
body.dark-mode .write-inspire-history-title { color: #e0e0e0; }
body.dark-mode .write-inspire-history-empty { color: #888; }

body.dark-mode .write-inspire-realm-intro { background: linear-gradient(135deg, #1a0a2e 0%, #16213e 100%); border-color: #4c1d95; }
body.dark-mode .write-inspire-realm-title { color: #c4b5fd; }
body.dark-mode .write-inspire-realm-desc { color: #aaa; }
body.dark-mode .write-inspire-realm-saved { background: #1a0a2e; border-color: #4c1d95; }
body.dark-mode .write-inspire-realm-saved-title { color: #c4b5fd; }
body.dark-mode .write-inspire-realm-saved-content { color: #e0e0e0; }
body.dark-mode .write-inspire-realm-extend-info { background: #2e1a0a; border-color: #854d0e; color: #fcd34d; }
body.dark-mode .write-inspire-realm-custom-info { background: #0a1a2e; border-color: #1e40af; color: #93c5fd; }
body.dark-mode .write-inspire-realm-world-info { background: #0a2e1a; border-color: #166534; }
body.dark-mode .write-inspire-realm-world-label { color: #6ee7b7; }
body.dark-mode .write-inspire-realm-world-tag { background: #0a2e1a; color: #6ee7b7; }
body.dark-mode .write-inspire-realm-result-content { background: #1a0a2e; border-color: #4c1d95; }

body.dark-mode .write-inspire-npc-intro { background: linear-gradient(135deg, #2e1a0a 0%, #1a1a3e 100%); border-color: #854d0e; }
body.dark-mode .write-inspire-npc-title { color: #fcd34d; }
body.dark-mode .write-inspire-npc-desc { color: #fbbf24; }
body.dark-mode .write-inspire-npc-result-title { color: #fcd34d; }
body.dark-mode .write-inspire-npc-add-btn { background: #0a2e1a; border-color: #166534; color: #6ee7b7; }
body.dark-mode .write-inspire-npc-copy-btn { background: #2e1a0a; border-color: #854d0e; color: #fcd34d; }
body.dark-mode .write-inspire-npc-result-content { background: #2e1a0a; border-color: #854d0e; color: #e0e0e0; }

body.dark-mode .write-inspire-setting-intro { background: linear-gradient(135deg, #2e1a0a 0%, #1a1a3e 100%); border-color: #854d0e; }
body.dark-mode .write-inspire-setting-title { color: #fcd34d; }
body.dark-mode .write-inspire-setting-desc { color: #fbbf24; }
body.dark-mode .write-inspire-setting-section { background: #1a1a3e; border-color: #2a2a4a; }
body.dark-mode .write-inspire-setting-section-title { color: #e0e0e0; }
body.dark-mode .write-inspire-setting-section-hint { color: #888; }
body.dark-mode .write-inspire-setting-world-section { background: #1a1a3e; border-color: #2a2a4a; }
body.dark-mode .write-inspire-setting-world-title { color: #ccc; }
body.dark-mode .write-inspire-setting-type-section { background: #0a1a2e; border-color: #1e40af; }
body.dark-mode .write-inspire-setting-type-title { color: #93c5fd; }
body.dark-mode .write-inspire-setting-detail-section { background: #0a2e1a; border-color: #166534; }
body.dark-mode .write-inspire-setting-detail-title { color: #6ee7b7; }
body.dark-mode .write-inspire-setting-source-section { background: #16213e; border-color: #2a2a4a; }
body.dark-mode .write-inspire-setting-source-title { color: #ccc; }
body.dark-mode .write-inspire-setting-model-section { background: #16213e; border-color: #2a2a4a; }
body.dark-mode .write-inspire-setting-model-title { color: #ccc; }
body.dark-mode .write-inspire-setting-result-content { background: #2e1a0a; border-color: #854d0e; color: #e0e0e0; }
body.dark-mode .write-inspire-setting-saved-title { color: #ccc; }
body.dark-mode .write-inspire-setting-saved-empty { color: #888; background: #1a1a3e; }

body.dark-mode .write-inspire-cover-intro { background: linear-gradient(135deg, #1a0a2e 0%, #16213e 100%); border-color: #4c1d95; }
body.dark-mode .write-inspire-cover-title { color: #c4b5fd; }
body.dark-mode .write-inspire-cover-desc { color: #a78bfa; }
body.dark-mode .write-inspire-cover-section { background: #1a1a3e; border-color: #2a2a4a; }
body.dark-mode .write-inspire-cover-core-section { background: #1a1a3e; border-color: #2a2a4a; }
body.dark-mode .write-inspire-cover-core-title { color: #ccc; }
body.dark-mode .write-inspire-cover-char-section { background: #2e1a0a; border-color: #854d0e; }
body.dark-mode .write-inspire-cover-char-title { color: #fcd34d; }
body.dark-mode .write-inspire-cover-bg-section { background: #0a2e1a; border-color: #166534; }
body.dark-mode .write-inspire-cover-bg-title { color: #6ee7b7; }
body.dark-mode .write-inspire-cover-text-section { background: #1a0a2e; border-color: #7c3aed; }
body.dark-mode .write-inspire-cover-text-title { color: #c4b5fd; }
body.dark-mode .write-inspire-cover-quality-section { background: #0a1a2e; border-color: #1e40af; }
body.dark-mode .write-inspire-cover-quality-title { color: #93c5fd; }
body.dark-mode .write-inspire-cover-size-info { background: #0a1a2e; border-color: #1e40af; color: #93c5fd; }
body.dark-mode .write-inspire-cover-price-notice { background: #2e1a0a; color: #fcd34d; }
body.dark-mode .write-inspire-cover-result-title { color: #c4b5fd; }
body.dark-mode .write-inspire-cover-result-content { background: #1a0a2e; border-color: #4c1d95; }
body.dark-mode .write-inspire-cover-prompt-used { color: #888; background: #1a1a3e; }

body.dark-mode .write-inspire-cover-modal-content { background: #16213e; }
body.dark-mode .write-inspire-cover-style-modal-content { background: #16213e; }
body.dark-mode .write-inspire-cover-style-btn { background: #1a1a3e; border-color: #2a2a4a; color: #e0e0e0; }
body.dark-mode .write-inspire-cover-style-selected { background: #0a1a2e; border-color: #1e40af; }
body.dark-mode .write-inspire-cover-style-selected-text { color: #93c5fd; }
body.dark-mode .write-inspire-cover-charge-modal-content { background: #16213e; }
body.dark-mode .write-inspire-cover-charge-box { background: #2e1a0a; }
body.dark-mode .write-inspire-cover-loading-content { background: #16213e; }

body.dark-mode .write-inspire-summary-current { background: #0a2e1a; border-color: #166534; }
body.dark-mode .write-inspire-summary-empty { background: #2e1a0a; border-color: #854d0e; color: #fcd34d; }
body.dark-mode .write-inspire-summary-info { background: #1a1a3e; border-color: #2a2a4a; }
body.dark-mode .write-inspire-summary-info-text { color: #aaa; }

body.dark-mode .write-inspire-sidebar-chapter { border-color: #2a2a4a; }
body.dark-mode .write-inspire-sidebar-chapter-title { color: #e0e0e0; }
body.dark-mode .write-inspire-sidebar-chapter-words { color: #888; }
body.dark-mode .write-inspire-sidebar-progress-bar { background: #2a2a4a; }
body.dark-mode .write-inspire-sidebar-footer { border-top-color: #2a2a4a; }
body.dark-mode .write-inspire-sidebar-total { color: #aaa; }
body.dark-mode .write-inspire-sidebar-empty { color: #888; }

body.dark-mode .write-inspire-modal-box { background: #16213e; }
body.dark-mode .write-inspire-modal-header { background: #1a1a3e; border-bottom-color: #2a2a4a; }
body.dark-mode .write-inspire-modal-header-title { color: #e0e0e0; }
body.dark-mode .write-inspire-modal-close-btn { color: #aaa; }
body.dark-mode .write-inspire-modal-body { color: #e0e0e0; }
body.dark-mode .write-inspire-modal-footer { background: #1a1a3e; border-top-color: #2a2a4a; }

body.dark-mode .write-inspire-option-label { background: #1a1a3e; }
body.dark-mode .write-inspire-option-title { color: #e0e0e0; }
body.dark-mode .write-inspire-option-desc { color: #888; }
body.dark-mode .write-inspire-outline-warning { background: #2e1a0a; border-color: #854d0e; color: #fcd34d; }


/* ========== 响应式适配 ========== */
@media (max-width: 768px) {
    .write-inspire-layout {
        flex-direction: column;
    }
    .write-inspire-sidebar {
        width: 100%;
        order: -1;
    }
    .write-inspire-sidebar-sticky {
        position: static;
    }
    .write-inspire-npc-grid,
    .write-inspire-setting-grid-2,
    .write-inspire-cover-grid-2,
    .write-inspire-cover-grid-2-full {
        grid-template-columns: 1fr;
    }
    .write-inspire-setting-grid-3 {
        grid-template-columns: 1fr;
    }
    .write-inspire-cover-style-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .write-inspire-prompt-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .write-stat-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .write-stat-items {
        gap: 12px;
    }
    .write-stat-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .write-project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .write-inspire-cover-style-grid {
        grid-template-columns: 1fr;
    }
    .write-inspire-cover-history-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .write-inspire-prompt-stat-grid {
        grid-template-columns: 1fr 1fr;
    }
}
