/* ========================================
   繁简转换工具样式
   ======================================== */

.main-content { width: 100%; max-width: 1200px; height: calc(100vh - 120px); display: flex; align-items: center; padding: 0 20px; padding-bottom: 50px; z-index: 10; }
.container { width: 100%; height: 100%; }
.tool-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); overflow: hidden; display: flex; flex-direction: column; width: 100%; height: 100%; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }

/* 工具栏 */
.toolbar { padding: 12px 16px; border-bottom: 1px solid var(--border-color); background: rgba(0,0,0,0.2); flex-shrink: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.actions-left, .actions-right { display: flex; gap: 8px; align-items: center; }
.toggle-option { display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text-secondary); font-size: 13px; user-select: none; }
.toggle-option input { accent-color: var(--primary-color); }
.btn-action { padding: 6px 12px; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: rgba(255,255,255,0.05); color: var(--text-secondary); cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 6px; transition: 0.2s; }
.btn-action:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.btn-action.btn-orange { background: rgba(249,115,22,0.2); border-color: rgba(249,115,22,0.4); color: #fb923c; }
.btn-action.btn-orange:hover { background: rgba(249,115,22,0.3); }
.btn-action.btn-purple { background: rgba(168,85,247,0.2); border-color: rgba(168,85,247,0.4); color: #c084fc; }
.btn-action.btn-purple:hover { background: rgba(168,85,247,0.3); }
.btn-action.btn-gray { background: rgba(255,255,255,0.05); }

/* 编辑区 */
.editor-container { display: flex; flex: 1; min-height: 0; overflow: hidden; }
.editor-panel { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.editor-panel:not(:last-child) { border-right: 1px solid var(--border-color); }
.panel-header { padding: 8px 16px; font-size: 12px; font-weight: 600; color: var(--text-muted); background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.05); flex-shrink: 0; }
textarea { flex: 1; padding: 16px; background: transparent; border: none; outline: none; resize: none; font-family: var(--font-sans); font-size: 16px; line-height: 1.8; color: var(--text-primary); overflow: auto; white-space: pre-wrap; word-break: break-all; }
textarea::placeholder { color: var(--text-muted); }
textarea[readonly] { color: var(--text-secondary); background: rgba(0,0,0,0.1); }

/* 统计栏 */
.stats-bar { display: flex; gap: 24px; padding: 10px 20px; background: rgba(0,0,0,0.1); border-top: 1px solid var(--border-color); justify-content: center; flex-shrink: 0; }
.stat-item { text-align: center; }
.stat-value { font-size: 20px; font-weight: 700; color: var(--primary-color); font-family: var(--font-mono); line-height: 1; }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

@media (max-width: 768px) {
    .editor-container { flex-direction: column; }
    .editor-panel:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border-color); }
    .editor-panel { height: 50%; }
    .toolbar { flex-direction: column; align-items: stretch; }
}
