.prompt-tool-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #8b5cf6; --p-text: #0f172a; width: 100%; max-width: 1100px; margin: 0 auto; background: var(--p-bg); border-radius: 20px; padding: 24px; border: 1px solid var(--p-border); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); }
.prompt-header-main { font-size: 1.5rem; font-weight: 800; color: var(--p-text); margin-bottom: 8px; text-align: center; }
.prompt-subtitle { color: #64748b; font-size: 0.95rem; padding-bottom: 20px; border-bottom: 1px solid var(--p-border); margin-bottom: 24px; text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* 场景选项卡 */
.prompt-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; background: #f8fafc; padding: 16px 20px; border-bottom: 1px solid var(--p-border); }
.prompt-tab-btn { flex: 1; min-width: 100px; border: none; background: transparent; padding: 12px 4px; font-size: 1rem; font-weight: 700; color: #475569; border-radius: 8px; cursor: pointer; transition: 0.2s; white-space: nowrap; text-align: center; }
.prompt-tab-btn:hover { color: var(--p-primary); background: #f1f5f9; }
.prompt-tab-btn.active { background: #ffffff; color: var(--p-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; }

/* 上下结构布局 */
.prompt-layout { display: flex; flex-direction: column; gap: 24px; }

/* 面板通用样式 */
.prompt-panel { display: flex; flex-direction: column; background: #ffffff; border: 1px solid var(--p-border); border-radius: 16px; overflow: hidden; }
.prompt-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: #f8fafc; border-bottom: 1px solid var(--p-border); }
.prompt-panel-title { font-size: 1rem; font-weight: 700; color: #334155; }
.prompt-panel-footer { padding: 20px; background: #f8fafc; border-top: 1px solid var(--p-border); display: flex; gap: 12px; }
.prompt-config-body { padding: 20px 20px 0 20px; }

/* 输入区样式 */
.prompt-form-group { margin-bottom: 20px; }
.prompt-label { display: block; font-size: 1rem; font-weight: 700; color: var(--p-text); margin-bottom: 10px; }
.prompt-topic-input { width: 100%; min-height: 80px; padding: 14px; border-radius: 10px; border: 2px solid #cbd5e1; font-size: 1rem; outline: none; transition: 0.2s; resize: vertical; font-family: inherit; }
.prompt-topic-input:focus { border-color: var(--p-primary); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1); }

.prompt-divider { height: 1px; background: #e2e8f0; margin: 24px 0; }

/* 标签组样式 */
.prompt-tab-pane { padding-bottom: 20px; }
.prompt-group-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; color: #334155; }
.prompt-tags-grid { display: flex; flex-direction: column; gap: 20px; }

.prompt-tag-label { font-size: 0.85rem; font-weight: 600; color: #64748b; margin-bottom: 10px; }
.prompt-tag-group { display: flex; flex-wrap: wrap; gap: 10px; }

.prompt-tag { padding: 8px 16px; font-size: 0.9rem; background: #f1f5f9; color: #475569; border-radius: 20px; border: 1px solid #e2e8f0; cursor: pointer; transition: 0.2s; user-select: none; }
.prompt-tag:hover { background: #e2e8f0; }
/* 单选激活状态 */
.prompt-tag-group[data-type="single"] .prompt-tag.active { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; font-weight: 600; }
/* 多选激活状态 */
.prompt-tag-group[data-type="multi"] .prompt-tag.active { background: #fdf4ff; color: #c026d3; border-color: #f5d0fe; font-weight: 600; }

/* 输出框 */
.prompt-textarea { width: 100%; min-height: 250px; padding: 20px; border: none; font-size: 1.05rem; line-height: 1.7; color: #1e293b; outline: none; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; background: #ffffff; }

/* 按钮 */
.prompt-btn { border: none; padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.prompt-btn-sm { padding: 8px 16px; font-size: 0.9rem; border-radius: 8px; }
.prompt-btn-primary { background: linear-gradient(135deg, #8b5cf6, #6366f1); color: white; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.prompt-btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4); }
.prompt-btn-success { background: #10b981; color: white; box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2); }
.prompt-btn-success:hover { background: #059669; }

/* ================= 黑夜模式 ================= */
[data-theme="dark"] .prompt-tool-wrapper { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .prompt-header-main { color: #f8fafc; }
[data-theme="dark"] .prompt-panel { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .prompt-panel-header, [data-theme="dark"] .prompt-panel-footer { background: #1e293b; border-color: #475569; }
[data-theme="dark"] .prompt-panel-title, [data-theme="dark"] .prompt-group-title { color: #cbd5e1; }
[data-theme="dark"] .prompt-tabs { background: #1e293b; border-color: #475569; }
[data-theme="dark"] .prompt-tab-btn { color: #94a3b8; }
[data-theme="dark"] .prompt-tab-btn:hover { background: #334155; }
[data-theme="dark"] .prompt-tab-btn.active { background: #0f172a; color: var(--p-primary); border-color: #475569; }
[data-theme="dark"] .prompt-topic-input { background: #020617; border-color: #334155; color: #f8fafc; }
[data-theme="dark"] .prompt-divider { background: #475569; }
[data-theme="dark"] .prompt-tag { background: #1e293b; border-color: #334155; color: #94a3b8; }
[data-theme="dark"] .prompt-tag:hover { background: #334155; }
[data-theme="dark"] .prompt-tag-group[data-type="single"] .prompt-tag.active { background: rgba(59,130,246,0.1); color: #60a5fa; border-color: #3b82f6; }
[data-theme="dark"] .prompt-tag-group[data-type="multi"] .prompt-tag.active { background: rgba(192,38,211,0.1); color: #e879f9; border-color: #d946ef; }
[data-theme="dark"] .prompt-textarea { background: #020617; color: #e2e8f0; }
[data-theme="dark"] .prompt-panel-header[style*="background: #e0f2fe"] { background: rgba(14, 165, 233, 0.1) !important; border-bottom-color: #0284c7 !important; }
[data-theme="dark"] .prompt-panel-title[style*="color: #0284c7"] { color: #38bdf8 !important; }