body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background: #f5f5f5;
  color: #333;
}
header, footer {
  background: #222;
  color: #fff;
  padding: 12px 20px;
}
header h1 { margin: 0; font-size: 20px; }
main {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
section {
  margin-bottom: 32px;
  background: #fff;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.uploader input[type="file"] { display: block; margin-top: 8px; }
.tip { font-size: 12px; color: #666; }

/* 貼上區 */
.paste-zone {
  margin-top: 12px;
  min-height: 90px;
  border: 2px dashed #bbb;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  color: #666;
  cursor: text;
  outline: none;
  background: #fafafa;
}
.paste-zone:focus { border-color: #1e88e5; background: #fff; }

.image-list {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 40px;
  border: 2px dashed #ccc;
  border-radius: 8px;
}
.image-item {
  display: flex;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
  cursor: grab;
}
.image-item:last-child { border-bottom: none; }
.image-item img {
  width: 60px;
  height: auto;
  border-radius: 4px;
  margin-right: 12px;
}
.image-item .meta {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.filename {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}
.controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.main-radio input { margin-right: 4px; }
.remove-btn {
  border: none;
  background: none;
  color: #e53935;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.remove-btn:hover { color: #b71c1c; }
.drag-ghost { opacity: 0.4; }

.canvas-wrapper {
  width: 100%;
  height: 70vh;
  overflow: hidden;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  position: relative;
}

.zoom-snap-bar {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
}
.zoom-snap-bar input[type="range"] { vertical-align: middle; }
.snap-toggle input { margin-right: 4px; }

.actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
}
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #888;
  color: #fff;
  font-size: 14px;
}
.btn.primary { background: #1e88e5; }
.btn.danger  { background: #e53935; }
.btn:active  { transform: scale(0.98); }

footer { text-align: center; font-size: 12px; }

.footer-center {
  text-align: center;
  margin-top: 2em;
  font-size: 0.9em;
  color: #666;
}

.footer-center a {
  color: #666;
  text-decoration: none;
}

.footer-center a:hover {
  text-decoration: underline; /* 滑鼠移上去才有底線 */
}
