/* ChemSVG 工具集：化学方程式编辑器 / 配平 / 摩尔质量 / 方程库 / 有机结构式 / 器材库 */
.chemsvg-app { max-width: 1180px; margin: 0 auto; color: #1f2937; }
.chemsvg-app * { box-sizing: border-box; }
.chemsvg-hero { background: linear-gradient(120deg,#ecfeff,#f0fdfa 45%,#eff6ff); border: 1px solid #bae6fd; border-radius: 16px; padding: 18px 22px; margin-bottom: 18px; }
.chemsvg-hero h3 { margin: 0 0 6px; font-size: 19px; color: #0f766e; }
.chemsvg-hero p { margin: 0; font-size: 13px; color: #475569; line-height: 1.7; }
.chemsvg-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; }
.chemsvg-tabs button { border: 1px solid #cbd5e1; background: #fff; color: #475569; border-radius: 999px; padding: 7px 15px; font-size: 13px; cursor: pointer; transition: .15s; }
.chemsvg-tabs button:hover { border-color: #14b8a6; color: #0f766e; }
.chemsvg-tabs button.on { background: #0d9488; color: #fff; border-color: #0d9488; }
.chemsvg-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; }
.chemsvg-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 14px; }
.chemsvg-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #334155; }
.chemsvg-field.wide { grid-column: 1 / -1; }
.chemsvg-field label { font-weight: 600; }
.chemsvg-field .hint { font-size: 11px; color: #94a3b8; }
.chemsvg-input, .chemsvg-select, .chemsvg-textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 11px; font-size: 14px; background: #fff; color: #0f172a; font-family: inherit; }
.chemsvg-input:focus, .chemsvg-select:focus, .chemsvg-textarea:focus { outline: none; border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.12); }
.chemsvg-textarea { resize: vertical; min-height: 76px; line-height: 1.6; }
.chemsvg-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chemsvg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chemsvg-btn { border: 1px solid #0d9488; background: #0d9488; color: #fff; border-radius: 8px; padding: 8px 16px; font-size: 13px; cursor: pointer; }
.chemsvg-btn:hover { background: #0f766e; }
.chemsvg-btn.ghost { background: #fff; color: #0f766e; border-color: #99f6e4; }
.chemsvg-btn.ghost:hover { background: #f0fdfa; }
.chemsvg-btn:disabled { opacity: .55; cursor: not-allowed; }
.chemsvg-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #334155; cursor: pointer; }
.chemsvg-out { margin-top: 18px; border: 1px dashed #99f6e4; border-radius: 12px; padding: 16px; background: #f8fafc; min-height: 80px; }
.chemsvg-out.empty { display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 13px; }
.chemsvg-svgbox { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 18px; overflow-x: auto; text-align: center; }
.chemsvg-svgbox svg { max-width: 100%; height: auto; }
.chemsvg-result-title { font-size: 13px; font-weight: 600; color: #0f766e; margin-bottom: 8px; }
.chemsvg-kv { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 10px; margin-top: 12px; }
.chemsvg-kv > div { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.chemsvg-kv span { color: #64748b; display: block; font-size: 11px; margin-bottom: 3px; }
.chemsvg-kv b { color: #0f172a; font-size: 15px; }
.chemsvg-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.chemsvg-table th, .chemsvg-table td { border: 1px solid #e2e8f0; padding: 7px 10px; text-align: left; }
.chemsvg-table th { background: #f1f5f9; color: #475569; }
.chemsvg-steps { margin: 10px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.8; color: #475569; }
.chemsvg-steps li { margin-bottom: 6px; }
.chemsvg-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chemsvg-card-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 12px; }
.chemsvg-card { border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; padding: 12px; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; }
.chemsvg-card:hover { border-color: #5eead4; box-shadow: 0 2px 10px rgba(15,118,110,.08); }
.chemsvg-card-title { font-size: 13px; font-weight: 600; color: #0f172a; margin-bottom: 6px; }
.chemsvg-card-svg { font-size: 12px; overflow-x: auto; color: #334155; }
.chemsvg-card-svg svg { max-width: 100%; height: auto; }
.chemsvg-card-tag { font-size: 11px; color: #64748b; margin-top: 6px; }
.chemsvg-card-btns { display: flex; gap: 6px; margin-top: 8px; }
.chemsvg-mini { border: 1px solid #cbd5e1; background: #fff; color: #475569; border-radius: 6px; padding: 3px 8px; font-size: 11px; cursor: pointer; }
.chemsvg-mini:hover { border-color: #14b8a6; color: #0f766e; }
.chemsvg-status { font-size: 12px; color: #64748b; margin: 10px 0; }
.chemsvg-note { font-size: 12px; color: #64748b; line-height: 1.7; margin-top: 12px; padding: 10px 12px; background: #f8fafc; border-radius: 8px; }
.chemsvg-img { max-width: 100%; height: auto; display: block; min-height: 40px; background: #f8fafc; }
.chemsvg-cat { border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.chemsvg-cat-head { width: 100%; text-align: left; border: 0; background: #f8fafc; padding: 12px 15px; font-size: 14px; font-weight: 600; color: #0f766e; cursor: pointer; }
.chemsvg-cat-head:hover { background: #f0fdfa; }
.chemsvg-cat-head span { color: #64748b; font-weight: 400; font-size: 12px; }
.chemsvg-cat-body { padding: 12px; border-top: 1px solid #f1f5f9; }
.chemsvg-cat.closed .chemsvg-cat-body { display: none; }
@media (max-width: 720px) {
  .chemsvg-panel { padding: 14px; }
  .chemsvg-hero { padding: 14px; }
  .chemsvg-tabs button { padding: 6px 11px; font-size: 12px; }
}
