/* ========================================
   文本转换工具（汉字转拼音 / 人民币大写 / 英文大小写）
   ======================================== */

/* 模块卡片 */
.tc-module { margin-top: 20px; }
.tc-module-title {
  font-size: 19px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.tc-module-title i { font-size: 18px; }
.tc-icon-blue { color: #2563eb; }
.tc-icon-red { color: #dc2626; }
.tc-icon-green { color: #16a34a; }

/* 选项行 */
.tc-options {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  margin-bottom: 16px;
}
.tc-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  user-select: none;
}
.tc-check input { width: 16px; height: 16px; accent-color: #2563eb; cursor: pointer; }

/* 字段 */
.tc-field { margin-bottom: 14px; }
.tc-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 7px;
}
.tc-wrap { position: relative; }

/* 文本域 / 输入框 */
.tc-textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px 26px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #1f2937;
  background: #fff;
  resize: vertical;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  font-family: inherit;
}
.tc-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.tc-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  color: #1f2937;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
.tc-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.tc-output { background: #f8fafc; color: #111827; }

/* 右下角字数统计 */
.tc-count {
  position: absolute;
  right: 12px;
  bottom: 9px;
  font-size: 11px;
  color: #9ca3af;
  pointer-events: none;
}

/* 操作按钮行 */
.tc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 16px;
}
.tc-actions-three { gap: 10px; }
.tc-btn-convert {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: #2563eb;
  color: #fff;
  border: 1.5px solid #2563eb;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s;
}
.tc-btn-convert:hover { background: #1d4ed8; box-shadow: 0 4px 12px rgba(37,99,235,0.25); }
.tc-btn-convert:active { transform: translateY(1px); }
.tc-btn-outline {
  background: #fff;
  color: #2563eb;
}
.tc-btn-outline:hover { background: #eff6ff; }

/* 结果操作行 */
.tc-result-actions {
  display: flex;
  gap: 10px;
  margin-top: 9px;
}
.tc-btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
}
.tc-btn-mini:hover { background: #e2e8f0; }
.tc-btn-ghost { background: #fff; }

/* 复制轻提示 */
.tc-flash {
  position: fixed;
  left: 50%;
  bottom: 60px;
  transform: translate(-50%, 12px);
  background: rgba(17,24,39,0.92);
  color: #fff;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 8px;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  z-index: 9999;
  pointer-events: none;
}
.tc-flash.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== 移动端适配 ===== */
@media (max-width: 640px) {
  .tc-module { margin-top: 16px; }
  .tc-module-title { font-size: 17px; }
  .tc-options { gap: 12px 16px; padding: 11px 13px; }
  .tc-textarea { font-size: 14px; min-height: 96px; }
  .tc-input { font-size: 14px; }
  .tc-actions { gap: 10px; }
  .tc-btn-convert {
    flex: 1 1 auto;
    justify-content: center;
    padding: 11px 12px;
    font-size: 13.5px;
  }
  .tc-actions-three .tc-btn-convert { flex: 1 1 30%; }
  .tc-btn-mini { flex: 1; justify-content: center; }
}
