/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #f0f2f5;
  color: #333;
  overflow-x: hidden;
}

/* ===== Header ===== */
#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: linear-gradient(135deg, #005c0e 0%, #00991A 50%, #007613 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
#header h1 { font-size: 20px; font-weight: 600; letter-spacing: 1px; }
#header .icon { font-size: 22px; margin-right: 6px; }
.header-left { display: flex; align-items: center; gap: 20px; }
.header-right { font-size: 13px; opacity: .85; }

#breadcrumb { font-size: 13px; display: flex; align-items: center; gap: 6px; }
#breadcrumb .crumb {
  cursor: pointer;
  padding: 2px 10px;
  border-radius: 3px;
  background: rgba(255,255,255,.15);
  transition: background .2s;
}
#breadcrumb .crumb:hover { background: rgba(255,255,255,.3); }
#breadcrumb .crumb.active { background: rgba(255,255,255,.25); font-weight: 600; }
#breadcrumb .sep { color: rgba(255,255,255,.5); }

/* ===== Main Layout (Grid) ===== */
#main-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 12px;
  min-height: calc(100vh - 160px);
}

/* 地图 — 左列，跨越所有行 */
#map-panel {
  grid-column: 1;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  min-height: 600px;
}

/* ===== Map Toolbar ===== */
#map-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 12px;
}
#map-title { font-size: 14px; font-weight: 600; color: #555; flex: 1; text-align: center; }
#btn-zoom-back {
  padding: 5px 14px;
  font-size: 13px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
#btn-zoom-back:hover:not(:disabled) { color: #00991A; border-color: #00991A; }
#btn-zoom-back:disabled { opacity: .4; cursor: not-allowed; }

#map-chart {
  flex: 1;
  min-height: 750px;
}

/* 概览 — 右列第1行 */
#overview {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  padding: 16px;
}
.ov-item {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ov-label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}
.ov-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #00991A;
}

/* 排名 — 右列第2行 */
#ranking-section {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

/* 热力图面板 — 右列第3行 */
#stats-panel {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stats-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  padding: 16px;
}
.stats-section h3 {
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #00991A;
}

/* Stats Table */
#stats-table-wrapper { max-height: 360px; overflow-y: auto; }
#stats-table-wrapper::-webkit-scrollbar { width: 4px; }
#stats-table-wrapper::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
#stats-table { width: 100%; border-collapse: collapse; font-size: 13px; }
#stats-table th {
  position: sticky; top: 0; background: #fafafa;
  padding: 8px 6px; text-align: left; font-weight: 600; color: #666;
  border-bottom: 2px solid #eee;
}
#stats-table td { padding: 6px; border-bottom: 1px solid #f5f5f5; }
#stats-table tr:hover td { background: #fafafa; }
#stats-table td:first-child { color: #999; width: 28px; text-align: center; }
#stats-table .rank-collected { font-weight: 600; }
#stats-table .rank-rate { font-weight: 600; color: #00991A; }
#stats-table .bar-bg {
  display: inline-block; width: 50px; height: 6px;
  background: #eee; border-radius: 3px; vertical-align: middle;
  overflow: hidden; margin-right: 4px;
}
#stats-table .bar-fill {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #66bb6a, #00991A);
  transition: width .6s ease;
}

/* Summary Text */
#stats-summary-text { font-size: 13px; line-height: 2; color: #555; }
#stats-summary-text strong { color: #00991A; }

/* ===== 日期热力图 ===== */
#stats-heatmap { margin-top: 4px; }
.hm-grid {
  display: grid;
  gap: 2px;
  align-items: center;
}
.hm-dw {
  font-size: 9px;
  color: #bbb;
  text-align: center;
  line-height: 1;
}
.hm-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
}
.hm-legend {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 8px;
  font-size: 10px;
  color: #999;
  justify-content: flex-end;
}
.hm-legend .hm-cell {
  width: 12px;
  height: 12px;
}

/* ===== Loading Overlay ===== */
#loading-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s, visibility .4s;
}
#loading-overlay:not(.active) { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-content { text-align: center; }
.loading-content p { margin-top: 16px; color: #888; font-size: 14px; }
.spinner {
  width: 40px; height: 40px; margin: 0 auto;
  border: 3px solid #f0f0f0; border-top-color: #00991A;
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  #main-container {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }
  #map-panel { grid-column: 1; grid-row: auto; min-height: 400px; }
  #overview { grid-column: 1; grid-row: auto; flex-wrap: wrap; }
  #ranking-section { grid-column: 1; grid-row: auto; width: auto; }
  #stats-panel { grid-column: 1; grid-row: auto; width: auto; }
  .ov-item { min-width: 45%; }
}
@media (max-width: 480px) {
  #header { flex-direction: column; gap: 8px; text-align: center; }
  .header-left { flex-direction: column; gap: 6px; }
  #main-container { padding: 8px; }
  .ov-item { min-width: 100%; }
}

/* ============================================================
   ===== 录入按钮 (Header) =====
   ============================================================ */
.btn-primary {
  padding: 6px 18px;
  font-size: 13px;
  border: none;
  border-radius: 4px;
  background: #fff;
  color: #00991A;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary:hover { background: #e8f5e9; }
.btn-secondary {
  padding: 6px 16px;
  font-size: 13px;
  border: 1px solid #00991A;
  border-radius: 4px;
  background: #fff;
  color: #00991A;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-secondary:hover { background: #00991A; color: #fff; }
.btn-cancel {
  padding: 6px 18px; font-size: 13px;
  border: 1px solid #d9d9d9; border-radius: 4px;
  background: #fff; cursor: pointer;
}
.btn-small {
  padding: 3px 10px; font-size: 12px;
  border: 1px solid #d9d9d9; border-radius: 3px;
  background: #fff; cursor: pointer;
  transition: all .2s;
}
.btn-small:hover { border-color: #00991A; color: #00991A; }
.btn-danger { color: #007A15; }
.btn-danger:hover { background: #e8f5e9; border-color: #007A15; }

/* ===== FAB 按钮 ===== */
.fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 100;
  width: 52px; height: 52px; border-radius: 50%;
  border: none; background: #00991A; color: #fff;
  font-size: 28px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,153,26,.4);
  transition: all .2s; line-height: 1;
}
.fab:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,153,26,.5); }

/* ============================================================
   ===== 模态框 =====
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .25s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-container {
  background: #fff; border-radius: 10px;
  width: 90%; max-width: 680px; max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  transform: translateY(20px); transition: transform .25s;
}
.modal-overlay.active .modal-container { transform: translateY(0); }
.modal-lg { max-width: 900px; }

/* ===== 记录列表页面 ===== */
#records-page {
  display: none;
  flex-direction: column;
  padding: 20px 24px;
  height: calc(100vh - 100px);
  overflow: hidden;
}
#records-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
#records-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}
#records-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
#records-toolbar .form-select,
#records-toolbar .form-input {
  height: 30px;
  font-size: 12px;
  padding: 2px 8px;
  width: auto;
  min-width: 100px;
}
#records-toolbar .form-input {
  width: 200px;
}
#records-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
#records-actions .btn-small,
#records-actions .btn-secondary {
  height: 30px;
  font-size: 12px;
  padding: 2px 12px;
  display: inline-flex;
  align-items: center;
}
#records-actions #batch-bar {
  font-size: 13px;
  color: #00991A;
  margin-right: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
#records-table-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  min-height: 0;
}
#records-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
  flex-shrink: 0;
}
#records-table th {
  padding: 8px 6px;
  text-align: left;
  font-weight: 600;
  color: #666;
  background: #fafafa;
  border-bottom: 2px solid #eee;
}
#records-tbody-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
#records-tbody-scroll::-webkit-scrollbar { width: 4px; }
#records-tbody-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
#records-table-body {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
}
#records-table-body td {
  padding: 6px;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: top;
}
#records-table-body tr:hover td { background: #fafafa; }
#records-table .rec-actions,
#records-table-body .rec-actions { white-space: nowrap; }
#records-table .rec-actions button,
#records-table-body .rec-actions button {
  padding: 2px 10px; font-size: 11px; border: 1px solid #d9d9d9;
  border-radius: 3px; background: #fff; cursor: pointer; transition: all .15s;
}
#records-table .rec-actions .btn-edit:hover,
#records-table-body .rec-actions .btn-edit:hover { border-color: #1976d2; color: #1976d2; }
#records-table .rec-actions .btn-del:hover,
#records-table-body .rec-actions .btn-del:hover { border-color: #00991A; color: #00991A; }
#records-table td:first-child,
#records-table th:first-child,
#records-table-body td:first-child { width: 32px; text-align: center; }
#records-table .rec-select,
#records-table-body .rec-select { cursor: pointer; }

/* ===== Stats Table ===== */
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid #f0f0f0;
}
.modal-header h2 { font-size: 16px; font-weight: 600; }
.modal-close {
  width: 28px; height: 28px; border: none; background: none;
  font-size: 20px; cursor: pointer; color: #999; line-height: 1;
  border-radius: 4px; transition: all .2s;
}
.modal-close:hover { background: #f0f0f0; color: #333; }
.modal-body {
  padding: 20px 24px; overflow-y: auto; flex: 1;
}

/* ===== 表单 ===== */
.form-row { display: flex; gap: 12px; margin-bottom: 14px; }
.form-row.triple > .form-group { flex: 1; min-width: 0; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 500; color: #555;
  margin-bottom: 4px;
}
.form-group .required { color: #00991A; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 7px 10px; font-size: 13px;
  border: 1px solid #d9d9d9; border-radius: 4px;
  background: #fff; transition: border-color .2s; outline: none;
  font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #00991A; box-shadow: 0 0 0 2px rgba(0,153,26,.1);
}
.form-input.readonly { background: #f5f5f5; color: #888; cursor: default; }
.form-textarea { resize: vertical; min-height: 60px; }
.form-select { cursor: pointer; height: 34px; }
.form-select:disabled { background: #f9f9f9; color: #bbb; cursor: not-allowed; }

/* 动态列表 */
.dynamic-row {
  display: flex; gap: 6px; align-items: center; margin-bottom: 4px;
}
.dynamic-row .form-input { flex: 1; }
.btn-remove {
  width: 24px; height: 24px; border: none; background: #e8f5e9;
  color: #00991A; border-radius: 50%; cursor: pointer;
  font-size: 14px; line-height: 1; display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .2s;
}
.btn-remove:hover { background: #c8e6c9; }

/* 条件区域 */
.form-section {
  padding: 12px; background: #fafafa; border-radius: 6px;
  margin-bottom: 14px; border: 1px solid #f0f0f0;
}
.checkbox-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: #555; cursor: pointer;
}
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }

/* 按钮区 */
.form-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  padding-top: 12px; border-top: 1px solid #f0f0f0;
}

/* ===== 批量编辑相关 ===== */
#batch-bar { display: inline-flex; align-items: center; gap: 4px; }
#batch-bar strong { font-size: 14px; }
#batch-overlay .modal-container { max-width: 600px; }
#batch-overlay .form-group label { font-size: 13px; color: #555; display: flex; align-items: center; gap: 6px; }
#batch-overlay .form-group label input[type="checkbox"] { margin: 0; }

/* ===== 自定义对话框专用 ===== */
#dialog-overlay .modal-container {
  max-width: 400px;
  padding-bottom: 24px;
}
#dialog-overlay .modal-body {
  padding-bottom: 8px;
}
#dialog-overlay .form-actions {
  gap: 12px;
  padding: 4px 24px 0;
}
#dialog-overlay .btn-primary {
  background: #00991A;
  color: #fff;
  border: 1px solid #00991A;
}
#dialog-overlay .btn-primary:hover {
  background: #007A15;
  border-color: #007A15;
}
#dialog-overlay .btn-cancel {
  color: #00991A;
  border: 1px solid #00991A;
  background: #fff;
}
#dialog-overlay .btn-cancel:hover {
  background: #e8f5e9;
}

/* ===== 邮政编码提示 ===== */
.postal-hint {
  font-size: 12px;
  color: #00991A;
  background: #e8f5e9;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
  line-height: 1.5;
}

/* ===== 日历弹窗 ===== */
.date-wrap {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.date-input {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: border-color .25s, box-shadow .25s;
  user-select: none;
  min-height: 36px;
  box-sizing: border-box;
}
.date-input:hover { border-color: #00991A; }
.date-input:focus-within,
.date-input.active { border-color: #00991A; box-shadow: 0 0 0 2px rgba(0,153,26,.12); }
#date-text {
  font-size: 14px;
  color: #bbb;
}
.date-ico { flex-shrink: 0; margin-left: 4px; }

/* 小时下拉 */
.hour-select {
  width: 80px;
  padding: 7px 6px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  min-height: 36px;
  box-sizing: border-box;
}
.hour-select:hover { border-color: #00991A; }
.hour-select:focus { border-color: #00991A; box-shadow: 0 0 0 2px rgba(0,153,26,.12); }

/* 日历弹出面板 */
.cal-popup {
  display: none;
  position: fixed;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  padding: 12px;
  z-index: 9999;
  width: 272px;
}
.cal-popup.active { display: block; }
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-btn {
  width: 28px; height: 28px;
  border: none; border-radius: 4px;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #555;
  transition: background .15s;
}
.cal-btn:hover { background: #f0f0f0; }
#cal-title { font-size: 14px; font-weight: 600; color: #333; }
.cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}
.cal-dow span { padding: 4px 0; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-grid span {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 4px;
  cursor: default;
  color: #333;
}
.cal-day {
  cursor: pointer !important;
  transition: background .15s;
}
.cal-day:hover { background: #e8f5e9; }
.cal-today {
  font-weight: 700;
  color: #00991A !important;
}
.cal-sel {
  background: #00991A !important;
  color: #fff !important;
  font-weight: 600;
}
.cal-sel:hover { background: #007A15 !important; }

/* ============================================================
   ===== 工具箱页面 =====
   ============================================================ */
#tools-page {
  display: none;
  flex-direction: column;
  padding: 20px 24px;
  min-height: calc(100vh - 100px);
}
#tools-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
#tools-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}
#tools-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 16px;
}
.tool-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  overflow: hidden;
}
.tool-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}
.tool-card-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.tool-icon {
  font-size: 12px;
  font-weight: 700;
  color: #00991A;
  background: #e8f5e9;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Consolas', 'Courier New', monospace;
}
.tool-card-body {
  padding: 16px;
}
.tool-desc {
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
  line-height: 1.5;
}
.tool-form-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tool-result {
  padding: 10px 14px;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
}
.tool-result-label { color: #555; margin-right: 6px; }
.tool-result code {
  font-size: 18px;
  font-weight: 700;
  color: #00991A;
  letter-spacing: 2px;
  font-family: 'Consolas', 'Courier New', monospace;
}
.tool-history {
  border-top: 1px dashed #e8e8e8;
  padding-top: 10px;
}
.tool-history h4 {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
  font-weight: 500;
}
.tool-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  font-size: 13px;
  color: #555;
  font-family: 'Consolas', 'Courier New', monospace;
}
.tool-history-item .tool-hi-time {
  font-size: 11px;
  color: #bbb;
  font-family: inherit;
}
.tool-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tool-result-item {
  padding: 10px;
  background: #fafafa;
  border-radius: 4px;
  text-align: center;
}
.tool-result-item .tool-result-label {
  display: block;
  font-size: 11px;
  color: #999;
  margin-bottom: 4px;
}
.tool-result-item span:last-child {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.tool-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.tool-stat-item {
  text-align: center;
  padding: 10px;
  background: #fafafa;
  border-radius: 4px;
}
.tool-stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #00991A;
}
.tool-stat-label {
  display: block;
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}
.tool-b64-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tool-b64-col label {
  display: block;
  margin-bottom: 4px;
}
.tool-b64-col textarea {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
}
.tool-card-body textarea:read-only {
  background: #f5f5f5;
  cursor: default;
}
.tool-card-body .form-textarea {
  margin-bottom: 8px;
}
.tool-copy {
  cursor: pointer;
  transition: all .15s;
}
.tool-copy:hover { background: #00991A; color: #fff; border-color: #00991A; }
.tool-copy.copied { background: #00991A; color: #fff; border-color: #00991A; }
.tool-copy-all { transition: all .15s; }
.tool-copy-all.copied { background: #00991A; color: #fff; border-color: #00991A; }

/* 条码校验 */
.tool-bc-verify {
  padding: 12px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  margin-bottom: 8px;
}
.tool-bc-verify-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 14px;
}
.tool-bc-verify-row code {
  font-size: 16px;
  font-weight: 600;
  font-family: 'Consolas', 'Courier New', monospace;
  letter-spacing: 2px;
}
.tool-bc-label {
  font-size: 12px;
  color: #999;
  min-width: 80px;
}

/* 工具卡片分区标题 */
.tool-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  #tools-container {
    grid-template-columns: 1fr;
  }
  .tool-b64-cols {
    grid-template-columns: 1fr;
  }
  .tool-result-grid {
    grid-template-columns: 1fr;
  }
  .tool-stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

