.bt-tool-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #8b5cf6; --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; }
.bt-header-main { font-size: 1.6rem; font-weight: 800; color: var(--p-text); margin-bottom: 8px; text-align: center; }
.bt-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; }

.bt-layout { display: flex; flex-direction: column; gap: 24px; }
.bt-workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media(max-width: 850px) { .bt-workspace { grid-template-columns: 1fr; } }

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

/* 顶部语种设置栏 */
.bt-settings-bar { padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: #f8fafc; }
.bt-label { font-weight: 700; color: #475569; font-size: 0.95rem; }
.bt-select { padding: 10px 14px; border-radius: 8px; border: 1px solid #cbd5e1; background: #ffffff; color: var(--p-text); font-size: 0.95rem; outline: none; transition: 0.2s; font-weight: 600; cursor: pointer; min-width: 200px; }
.bt-select:focus { border-color: var(--p-primary); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15); }
.bt-hint-text { font-size: 0.85rem; color: #8b5cf6; margin-left: auto; font-weight: 600; }
@media(max-width: 700px) { .bt-hint-text { margin-left: 0; width: 100%; } }

/* 文本输入框 */
.bt-textarea { width: 100%; min-height: 350px; height: 100%; padding: 20px; font-size: 1.05rem; line-height: 1.6; color: var(--p-text); background: #ffffff; border: none; outline: none; resize: vertical; box-sizing: border-box; font-family: inherit; }
.bt-textarea:focus { box-shadow: inset 0 0 0 2px rgba(139, 92, 246, 0.2); }
.bt-animal-textarea { background: #fdf4ff; color: #7e22ce; font-weight: 600; letter-spacing: 1px; }
.bt-animal-textarea:focus { box-shadow: inset 0 0 0 2px rgba(168, 85, 247, 0.3); }

/* 动作按钮 */
.bt-actions { display: flex; gap: 10px; }
.bt-action-btn { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 6px; width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; font-size: 0.9rem; }
.bt-action-btn:hover { background: #e2e8f0; border-color: #94a3b8; }
.bt-action-danger { color: #ef4444; }
.bt-action-danger:hover { background: #fee2e2; border-color: #fca5a5; }

/* 核心转换按钮 */
.bt-btn-primary, .bt-btn-secondary { width: 100%; padding: 14px 20px; border-radius: 12px; font-weight: 800; font-size: 1.05rem; cursor: pointer; transition: 0.2s; border: none; display: flex; align-items: center; justify-content: center; gap: 8px; }
.bt-btn-primary { background: var(--p-primary); color: white; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }
.bt-btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); }
.bt-btn-secondary { background: #f3e8ff; color: #7e22ce; border: 1px solid #d8b4fe; }
.bt-btn-secondary:hover { background: #e9d5ff; transform: translateY(-2px); }


/* ================= 黑夜模式适配 ================= */
[data-theme="dark"] .bt-tool-wrapper { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .bt-header-main, [data-theme="dark"] .bt-panel-title { color: #f8fafc; }
[data-theme="dark"] .bt-panel { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .bt-panel-title, [data-theme="dark"] .bt-settings-bar { background: #1e293b; border-bottom-color: #475569; }
[data-theme="dark"] .bt-panel-footer { background: #0f172a; border-top-color: #475569; }
[data-theme="dark"] .bt-label { color: #cbd5e1; }
[data-theme="dark"] .bt-select { background: #020617; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .bt-hint-text { color: #a78bfa; }
[data-theme="dark"] .bt-textarea { background: #020617; color: #f8fafc; }
[data-theme="dark"] .bt-animal-textarea { background: rgba(126, 34, 206, 0.1); color: #d8b4fe; }
[data-theme="dark"] .bt-action-btn { background: #334155; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .bt-action-btn:hover { background: #475569; border-color: #64748b; }
[data-theme="dark"] .bt-action-danger:hover { background: rgba(239, 68, 68, 0.2); }
[data-theme="dark"] .bt-btn-secondary { background: rgba(126, 34, 206, 0.2); border-color: #7e22ce; color: #d8b4fe; }
[data-theme="dark"] .bt-btn-secondary:hover { background: rgba(126, 34, 206, 0.4); }