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

/* 统计数据大盘 */
.txt-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; margin-bottom: 24px; }
.txt-stat-card { background: #f8fafc; border: 1px solid var(--p-border); border-radius: 12px; padding: 16px; text-align: center; transition: 0.3s; }
.txt-stat-value { font-size: 2rem; font-weight: 700; color: var(--p-primary); font-family: monospace; line-height: 1.2; }
.txt-stat-label { font-size: 0.85rem; color: #64748b; font-weight: 500; margin-top: 4px; }

.txt-textarea { width: 100%; height: 350px; padding: 16px; background: #f8fafc; border: 2px solid var(--p-border); color: var(--p-text); border-radius: 12px; outline: none; resize: vertical; transition: 0.2s; font-family: inherit; font-size: 1rem; line-height: 1.6; }
.txt-textarea:focus { border-color: var(--p-primary); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1); background: #ffffff; }

.txt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.txt-btn { padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; transition: 0.2s; display: flex; align-items: center; gap: 8px; }
.txt-btn-primary { background: var(--p-primary); color: white; box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2); }
.txt-btn-primary:hover { transform: translateY(-1px); filter: brightness(1.1); }
.txt-btn-secondary { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.txt-btn-secondary:hover { background: #e2e8f0; border-color: #94a3b8; }

/* 黑夜模式强力覆盖 */
[data-theme="dark"] .txt-tool-wrapper { background: #1e293b !important; border-color: #334155 !important; }
[data-theme="dark"] .txt-stat-card { background: #0f172a !important; border-color: #475569 !important; }
[data-theme="dark"] .txt-textarea { background: #0f172a !important; border-color: #475569 !important; color: #f8fafc; }
[data-theme="dark"] .txt-textarea:focus { background: #1e293b !important; }
[data-theme="dark"] .txt-btn-secondary { background: #0f172a; border-color: #475569; color: #cbd5e1; }
[data-theme="dark"] .txt-btn-secondary:hover { background: #334155; }
[data-theme="dark"] .txt-header { color: #f8fafc; }