@charset "UTF-8";
/* Resize page — 仅尺寸专属控件；布局/卡片/侧栏/分段/滑杆全部复用 compress.css */
/* 模式子组：默认隐藏，命中当前模式才展开（配合 .is-active） */
.rs-sub {
  display: none;
  margin-top: 4px;
}
.rs-sub.is-active {
  display: block;
  animation: rs-sub-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rs-sub-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* 数字输入行：标签 + 输入框 + 单位 */
.rs-dim-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rs-dim-row + .rs-dim-row {
  margin-top: 10px;
}

.rs-dim-row > label {
  flex: 0 0 auto;
  font-size: 13px;
  color: #5f5f5d;
  min-width: 56px;
}

.rs-input-wrap {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.rs-input {
  width: 100%;
  padding: 9px 40px 9px 12px;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 14px;
  color: #1c1c1c;
  background: #f7f4ed;
  border: 1px solid #dcd8cc;
  border-radius: 8px;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -moz-appearance: textfield;
  appearance: textfield;
}
.rs-input::-webkit-outer-spin-button, .rs-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.rs-input:focus {
  outline: none;
  border-color: rgba(28, 28, 28, 0.45);
  box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.06);
}

.rs-unit {
  position: absolute;
  right: 12px;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  color: rgba(28, 28, 28, 0.62);
  pointer-events: none;
}

/* 快捷 chip（预设尺寸 / 百分比快选） */
.rs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rs-chip {
  padding: 5px 12px;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  color: #5f5f5d;
  background: #f1eee6;
  border: 1px solid #eceae4;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.rs-chip:hover {
  color: #1c1c1c;
  border-color: #dcd8cc;
  background: #e8e5dc;
}

/* 预设组：仅单维模式（按宽/按高）显示 */
#rs-group-preset {
  display: none;
}
#rs-group-preset.is-active {
  display: block;
}

/* ── 指定宽高：比例锁定按钮 ── */
.rs-lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 6px 10px;
  font-family: "Plus Jakarta Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  color: #5f5f5d;
  background: #f1eee6;
  border: 1px solid #dcd8cc;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.rs-lock:hover {
  color: #1c1c1c;
  background: #e8e5dc;
}
.rs-lock.is-on {
  color: #1c1c1c;
  font-weight: 600;
  background: #f7f4ed;
  border-color: rgba(28, 28, 28, 0.45);
  box-shadow: 0 1px 4px rgba(28, 28, 28, 0.1);
}

/* ── 指定宽高：填充方式 + 留白颜色 ── */
.rs-fit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.rs-fit-label {
  flex: 0 0 auto;
  font-size: 13px;
  color: #5f5f5d;
}

.rs-fit-seg {
  flex: 1 1 auto;
}
.rs-fit-seg .cv-mode span {
  padding: 6px 8px;
  font-size: 12px;
}

.rs-bg-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.rs-bg-row[hidden] {
  display: none;
}

.rs-bg-chips {
  margin-top: 0;
}

.rs-bg-chip.is-on,
.rs-chip.is-on {
  color: #1c1c1c;
  font-weight: 600;
  background: #f7f4ed;
  border-color: rgba(28, 28, 28, 0.45);
}

/* 自定义留白色：color swatch 包进 chip 外形 */
.rs-bg-custom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 5px;
  font-size: 12px;
  color: #5f5f5d;
  background: #f1eee6;
  border: 1px solid #eceae4;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.rs-bg-custom:hover {
  border-color: #dcd8cc;
}
.rs-bg-custom.is-on {
  color: #1c1c1c;
  font-weight: 600;
  border-color: rgba(28, 28, 28, 0.45);
}
.rs-bg-custom input[type=color] {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid #dcd8cc;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.rs-bg-custom input[type=color]::-webkit-color-swatch-wrapper {
  padding: 2px;
}
.rs-bg-custom input[type=color]::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}

/* 结果角标文案：压缩页共享规则写死「压后」，本页改为缩放语义 */
.compress-card__thumb[data-state=result]::after {
  content: "缩放后";
  white-space: nowrap;
}

/* 说明性小注 */
.rs-hint {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(28, 28, 28, 0.62);
}

.rs-hint code {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(28, 28, 28, 0.05);
  color: #1c1c1c;
}

/* 卡片状态里的尺寸串用等宽字更清晰 */
.compress-card__state {
  font-variant-numeric: tabular-nums;
}

/* ── 空态布局：左列首屏内垂直居中 ──
   compress.css 的 .tool-main:has(.compress-grid:empty){justify-content:center} 在此页同样生效，
   但本页侧栏较高，若由 .tool-page 满屏拉伸做居中基准会把内容顶出首屏；
   改为空态时仅左列自身 min-height=首屏（导航 68px 之外）+ align-self 防拉伸，
   居中始终相对视口第一屏；文件入队后恢复顶对齐。 */
body.resize-page .tool-page {
  min-height: 0;
}

body.resize-page .tool-main {
  align-self: flex-start;
}

body.resize-page .tool-main:has(.compress-grid:empty) {
  min-height: calc(100vh - 68px);
  justify-content: center;
  padding-bottom: 28px;
}

/*# sourceMappingURL=resize.css.map */
