.lc-tool-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #10b981; --p-text: #0f172a; width: 100%; max-width: 1200px; 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); box-sizing: border-box; }
.lc-header-main { font-size: 1.6rem; font-weight: 800; color: var(--p-text); margin-bottom: 8px; text-align: center; }
.lc-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; }

.lc-layout { display: flex; flex-direction: column; gap: 24px; }
.lc-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media(max-width: 850px) { .lc-grid-2col { grid-template-columns: 1fr; } }

/* 面板通用 */
.lc-panel { display: flex; flex-direction: column; background: #f8fafc; border: 1px solid var(--p-border); border-radius: 16px; overflow: hidden; box-sizing: border-box; }
.lc-panel-title { font-size: 1.05rem; font-weight: 700; color: #334155; padding: 16px 20px; border-bottom: 1px solid var(--p-border); background: #ffffff; margin: 0; }
.lc-panel-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

/* 核心数据仪表盘 */
.lc-dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.lc-dash-card { background: #f8fafc; border: 1px solid var(--p-border); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: 0.3s; }
.lc-dash-card:hover { transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); }
.lc-primary-card { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #ffffff; border: none; box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2); }
.lc-dash-val { font-size: 2.2rem; font-weight: 800; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.2; color: var(--p-text); }
.lc-primary-card .lc-dash-val { color: #ffffff; }
.lc-dash-label { font-size: 0.85rem; font-weight: 600; color: #64748b; margin-top: 4px; }
.lc-primary-card .lc-dash-label { color: #d1fae5; }

/* 动作按钮 */
.lc-actions { display: flex; gap: 12px; }
.lc-action-btn { padding: 6px 14px; font-size: 0.85rem; font-weight: 600; color: #475569; background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 6px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 6px; }
.lc-action-btn:hover { background: #e2e8f0; color: #0f172a; }
.lc-action-danger { color: #ef4444; border-color: #fca5a5; background: #fef2f2; }
.lc-action-danger:hover { background: #fee2e2; color: #dc2626; border-color: #f87171; }

/* 文本输入框 */
.lc-textarea { width: 100%; min-height: 350px; padding: 24px; font-size: 1rem; line-height: 1.6; color: var(--p-text); background: #ffffff; border: none; outline: none; resize: vertical; box-sizing: border-box; font-family: inherit; }
.lc-textarea:focus { box-shadow: inset 0 0 0 2px rgba(16, 185, 129, 0.2); }

/* 时间预估区 */
.lc-time-body { display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.lc-time-item { display: flex; align-items: center; gap: 16px; background: #ffffff; border: 1px solid var(--p-border); padding: 16px 20px; border-radius: 12px; }
.lc-time-icon { font-size: 2rem; }
.lc-time-info { display: flex; flex-direction: column; }
.lc-time-label { font-size: 0.85rem; font-weight: 600; color: #64748b; }
.lc-time-val { font-size: 1.25rem; font-weight: 800; color: var(--p-text); font-family: monospace; }
.lc-time-note { font-size: 0.8rem; color: #94a3b8; text-align: center; margin-top: auto; }

/* 关键词表格 */
.lc-table-wrapper { width: 100%; overflow-x: auto; height: 100%; max-height: 250px; }
.lc-table { width: 100%; border-collapse: collapse; text-align: left; }
.lc-table th { position: sticky; top: 0; background: #f8fafc; padding: 12px 16px; font-size: 0.85rem; font-weight: 700; color: #475569; border-bottom: 1px solid var(--p-border); }
.lc-table td { padding: 10px 16px; font-size: 0.95rem; color: var(--p-text); border-bottom: 1px solid var(--p-border); }
.lc-table tr:last-child td { border-bottom: none; }
.lc-table tr:hover td { background: #f1f5f9; }
.lc-tag { background: #d1fae5; color: #047857; padding: 2px 8px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; }


/* 黑夜模式 */
[data-theme="dark"] .lc-tool-wrapper { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .lc-header-main, [data-theme="dark"] .lc-panel-title { color: #f8fafc; }
[data-theme="dark"] .lc-panel { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .lc-panel-title { background: #1e293b; border-bottom-color: #475569; }
[data-theme="dark"] .lc-dash-card { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .lc-dash-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3); }
[data-theme="dark"] .lc-primary-card { background: linear-gradient(135deg, #059669 0%, #047857 100%); border-color: transparent; }
[data-theme="dark"] .lc-dash-val { color: #f8fafc; }
[data-theme="dark"] .lc-dash-label { color: #94a3b8; }
[data-theme="dark"] .lc-textarea { background: #020617; color: #f8fafc; }
[data-theme="dark"] .lc-action-btn { background: #334155; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .lc-action-btn:hover { background: #475569; }
[data-theme="dark"] .lc-action-danger { background: rgba(239, 68, 68, 0.1); border-color: #991b1b; color: #f87171; }
[data-theme="dark"] .lc-action-danger:hover { background: rgba(239, 68, 68, 0.2); }
[data-theme="dark"] .lc-time-item { background: #020617; border-color: #475569; }
[data-theme="dark"] .lc-time-val { color: #f8fafc; }
[data-theme="dark"] .lc-table th { background: #1e293b; border-color: #475569; color: #cbd5e1; }
[data-theme="dark"] .lc-table td { border-color: #334155; color: #cbd5e1; }
[data-theme="dark"] .lc-table tr:hover td { background: #1e293b; }
[data-theme="dark"] .lc-tag { background: rgba(16, 185, 129, 0.2); color: #34d399; }