/* 图片工具页：与 _Layout 中 .container 同宽（与导航栏对齐），分区卡片、表单对齐 */

.tool-page {
  width: 100%;
  padding-bottom: 2rem;
}

.tool-page > h2 {
  margin-bottom: 0.35rem;
}

.tool-lead {
  font-size: 0.95rem;
  color: #605e5c;
  line-height: 1.55;
  margin: 0 0 1rem;
  max-width: 52rem;
}

.tool-section {
  background: #fff;
  border: 1px solid #edebe9;
  border-radius: 8px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tool-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #323130;
  margin: 0 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f3f2f1;
}

.tool-form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #605e5c;
}

.tool-field-col {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tool-field-col .form-control,
.tool-field-col .form-select {
  width: 100%;
}

.tool-range {
  margin-top: 0.15rem;
}

.tool-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.35rem;
}

.tool-btn-row.mt-section {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f3f2f1;
}

.tool-message {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.tool-message--error {
  color: #a4262c;
  background: #fdf3f4;
  border: 1px solid #f1bbbc;
}

.tool-message--busy {
  color: #0078d4;
  background: #f3f9fd;
  border: 1px solid #c7e0f4;
}

.tool-preview-wrap {
  border: 1px solid #edebe9;
  border-radius: 8px;
  padding: 1rem;
  background: #faf9f8;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tool-preview-wrap h3,
.tool-preview-wrap .tool-preview-heading {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  color: #323130;
}

.tool-checkerboard {
  background: repeating-conic-gradient(#ebebeb 0% 25%, #fff 0% 50%) 50% / 14px 14px;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  flex: 1;
}

.tool-checkerboard canvas {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.tool-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}

.tool-radio-row .form-check {
  margin-bottom: 0;
  min-height: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tool-note {
  font-size: 0.875rem;
  color: #605e5c;
  line-height: 1.5;
  margin: 0;
}

.tool-split-row {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

@media (min-width: 992px) {
  .tool-split-row {
    flex-direction: row;
    align-items: stretch;
  }

  .tool-split-row > .tool-preview-col {
    flex: 1;
    min-width: 0;
  }
}
