.seo-tool-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #f43f5e; --p-text: #0f172a; width: 100%; max-width: 1000px; margin: 0 auto; background: var(--p-bg); border-radius: 24px; padding: 32px; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); border: 1px solid var(--p-border); }
.seo-header { font-size: 1.5rem; font-weight: 600; color: var(--p-text); margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.seo-badge { background: #ffe4e6; color: #e11d48; padding: 4px 12px; border-radius: 30px; font-size: 0.8rem; font-weight: 500; }
.seo-subtitle { color: #64748b; font-size: 0.95rem; padding-bottom: 16px; border-bottom: 1px solid #f1f5f9; margin-bottom: 24px; }

/* 仪表盘统计卡片 */
.seo-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; margin-bottom: 24px; }
.seo-stat-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; text-align: center; }
.seo-stat-value { font-size: 1.8rem; font-weight: 700; color: var(--p-primary); margin-bottom: 4px; line-height: 1.2; }
.seo-stat-label { font-size: 0.85rem; color: #64748b; font-weight: 500; }

/* 主体布局 */
.seo-main-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
@media (max-width: 768px) { .seo-main-layout { grid-template-columns: 1fr; } }

.seo-textarea { width: 100%; height: 350px; padding: 16px; border: 2px solid #cbd5e1; border-radius: 12px; font-size: 1rem; line-height: 1.6; outline: none; transition: 0.2s; resize: none; background: #fafafa; color: var(--p-text); }
.seo-textarea:focus { border-color: var(--p-primary); background: #ffffff; box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1); }

/* 关键词侧边栏 */
.seo-keywords-panel { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; max-height: 350px; }
.seo-panel-title { font-weight: 600; color: #334155; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; font-size: 0.95rem; }
.seo-kw-list { flex: 1; overflow-y: auto; padding-right: 4px; }
.seo-kw-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed #e2e8f0; font-size: 0.9rem; }
.seo-kw-item:last-child { border-bottom: none; }
.seo-kw-word { font-weight: 500; color: #0f172a; }
.seo-kw-count { background: #e2e8f0; color: #475569; padding: 2px 8px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }
.seo-empty-state { text-align: center; color: #94a3b8; font-size: 0.85rem; margin-top: 40px; }

/* 黑夜模式强力覆盖 */
[data-theme="dark"] .seo-tool-wrapper { background: #1e293b !important; border-color: #334155 !important; }
[data-theme="dark"] .seo-subtitle { border-bottom-color: #334155; }
[data-theme="dark"] .seo-stat-card { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .seo-textarea { background: #0f172a !important; border-color: #475569 !important; color: #f8fafc; }
[data-theme="dark"] .seo-textarea:focus { background: #1e293b !important; }
[data-theme="dark"] .seo-keywords-panel { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .seo-panel-title { color: #cbd5e1; border-bottom-color: #334155; }
[data-theme="dark"] .seo-kw-item { border-bottom-color: #334155; }
[data-theme="dark"] .seo-kw-word { color: #f8fafc; }
[data-theme="dark"] .seo-kw-count { background: #1e293b; color: #94a3b8; }
[data-theme="dark"] .seo-btn { background: #0f172a !important; color: #cbd5e1 !important; border: 1px solid #475569 !important; }
[data-theme="dark"] .seo-btn:hover { background: #334155 !important; }