/* ========================================================
 * tools/css/traditional_to_simplified.css
 * 2026-09-04 简繁互转工具样式
 * ====================================================== */

.tts-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
}

/* 顶部标题 */
.tts-header { margin-bottom: 18px; }
.tts-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.5px;
}
.tts-sub {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}
.tts-sub b { color: #7c3aed; }

/* 控件区 */
.tts-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.tts-label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}
.tts-select {
  flex: 1;
  min-width: 240px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tts-select:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.tts-btn {
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: #fff;
  transition: all 0.15s;
  white-space: nowrap;
}
.tts-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}
.tts-btn:active { transform: translateY(0); }
.tts-btn-ghost {
  background: #f8fafc;
  color: #475569;
  border-color: #cbd5e1;
}
.tts-btn-ghost:hover {
  background: #f1f5f9;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

/* 网格布局 */
.tts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
@media (max-width: 768px) {
  .tts-grid { grid-template-columns: 1fr; }
}

.tts-col {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.tts-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.tts-col-title {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}
.tts-stats {
  font-size: 12px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.tts-textarea {
  width: 100%;
  min-height: 360px;
  padding: 14px;
  border: none;
  outline: none;
  resize: vertical;
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB",
    "Source Han Sans", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #0f172a;
  background: #fff;
  box-sizing: border-box;
}
.tts-textarea:focus { background: #fefefe; }
.tts-textarea[readonly] { background: #fafafa; color: #1e293b; }

.tts-col-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid #e2e8f0;
  background: #fafbfc;
  flex-wrap: wrap;
}

.tts-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.tts-file-btn:hover { background: #e2e8f0; color: #0f172a; }
.tts-hint { font-size: 12px; color: #94a3b8; }

/* 状态条 */
.tts-status {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.tts-status-info  { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.tts-status-ok    { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.tts-status-warn  { background: #fefce8; color: #854d0e; border-color: #fde68a; }
.tts-status-err   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

/* 说明详情 */
.tts-detail {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.tts-detail summary {
  padding: 12px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  list-style: none;
  user-select: none;
}
.tts-detail summary::-webkit-details-marker { display: none; }
.tts-detail summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 8px;
  font-size: 11px;
  transition: transform 0.2s;
  color: #7c3aed;
}
.tts-detail[open] summary::before { transform: rotate(90deg); }
.tts-detail-body {
  padding: 4px 22px 18px;
  font-size: 14px;
  line-height: 1.8;
  color: #475569;
}
.tts-detail-body h3 {
  margin: 14px 0 6px;
  font-size: 15px;
  color: #0f172a;
}
.tts-detail-body ul { margin: 6px 0 6px 22px; padding: 0; }
.tts-detail-body li { margin: 4px 0; }
.tts-detail-body code {
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: #7c3aed;
}
.tts-detail-body b { color: #0f172a; }

/* 底部提示 */
.tts-footer-tip {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}
.tts-footer-nav {
  text-align: center;
  font-size: 13px;
  margin: 8px 0 0;
}
.tts-footer-nav a {
  color: #105CB6;
  text-decoration: none;
}
.tts-footer-nav a:hover {
  text-decoration: underline;
}
