:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: #18212b; background: #f6f8fb; }
* { box-sizing: border-box; }
body { margin: 0; }
.shell { max-width: 1180px; margin: 0 auto; padding: 56px 22px 72px; }
.hero { max-width: 700px; margin-bottom: 32px; }
.eyebrow { margin: 0 0 9px; color: #197b61; font-weight: 700; letter-spacing: .08em; font-size: 12px; }
h1 { margin: 0; font-size: clamp(30px, 5vw, 48px); letter-spacing: -.045em; }
.hero > p:last-child { color: #65707e; line-height: 1.7; margin: 14px 0 0; }
.upload-panel { background: #fff; padding: 22px; border-radius: 18px; box-shadow: 0 12px 35px #25354a0b; }
.dropzone { min-height: 174px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; border: 1.5px dashed #9bb2ad; border-radius: 14px; background: #f7fbfa; cursor: pointer; text-align: center; transition: .18s; }
.dropzone.dragging { background: #e8f7f1; border-color: #147b60; transform: scale(.995); }
.upload-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #d7efe6; color: #147b60; font-size: 22px; line-height: 1; }
.dropzone small, .hint { color: #75818e; font-size: 13px; }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 17px; }
.actions span { margin-right: auto; color: #60707c; font-size: 14px; }
button { appearance: none; border: 0; background: #147b60; padding: 10px 14px; color: #fff; border-radius: 9px; font: inherit; font-size: 14px; cursor: pointer; }
button:disabled { opacity: .42; cursor: not-allowed; }
button.secondary { background: #e3f2ed; color: #12674f; } button.ghost { background: transparent; color: #62727c; }
.photo-save-guide { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); background: #172129cc; }.photo-save-guide[hidden] { display: none; }.photo-save-sheet { position: relative; width: min(560px, 100%); max-height: 100%; overflow: auto; background: #fff; border-radius: 18px; padding: 22px; text-align: center; }.photo-save-sheet h2 { margin: 0; font-size: 20px; }.photo-save-sheet p { margin: 9px 28px 17px; color: #667580; line-height: 1.5; font-size: 14px; }.photo-save-sheet img { display: block; max-width: 100%; max-height: 70svh; margin: 0 auto; border-radius: 8px; -webkit-user-select: none; user-select: none; }.close-guide { position: absolute; right: 9px; top: 8px; padding: 2px 10px; color: #55636d; background: transparent; font-size: 28px; }
.batch-save-sheet { max-width: 390px; }.batch-save-sheet button:not(.close-guide) { display: block; width: 100%; min-height: 46px; margin-top: 10px; font-size: 15px; }.batch-primary { background: #147b60; }.batch-secondary { color: #166951; background: #e4f2ed; }
.hint { margin: 14px 0 0; line-height: 1.5; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 28px; }
.card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px #25354a0c; }
.card header { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; gap: 12px; font-size: 14px; }
.filename { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.status { color: #168062; white-space: nowrap; font-size: 12px; }
.preview { height: 360px; background: #f3f5f6; display: grid; place-items: center; overflow: hidden; }.preview img { width: 100%; height: 100%; object-fit: contain; }
.controls { padding: 14px 14px 4px; }.controls label { display: grid; grid-template-columns: 70px 1fr 58px; align-items: center; gap: 8px; color: #65727e; font-size: 12px; margin-bottom: 9px; }.controls input[type="range"] { accent-color: #147b60; min-width: 0; }.controls input[type="number"] { min-width: 0; width: 58px; border: 1px solid #d6e1de; border-radius: 6px; padding: 5px; color: #46545d; font: inherit; }.controls select { min-width: 0; border: 1px solid #d6e1de; background: #fff; border-radius: 6px; color: #46545d; padding: 5px; font: inherit; }
.card-actions { display: grid; gap: 8px; padding: 8px 14px 14px; }.card-actions button { width: 100%; }
@media (max-width: 560px) {
  body { background: #fff; }
  .shell { padding: calc(18px + env(safe-area-inset-top)) 0 calc(24px + env(safe-area-inset-bottom)); max-width: none; overflow: hidden; }
  .hero { padding: 0 18px; margin-bottom: 18px; }.hero h1 { font-size: 30px; }.hero > p:last-child { margin-top: 8px; font-size: 14px; }
  .upload-panel { padding: 13px 15px 15px; border-radius: 0; box-shadow: none; border-top: 1px solid #edf0f2; border-bottom: 8px solid #f3f5f6; }
  .dropzone { min-height: 112px; border-radius: 12px; }.dropzone strong { font-size: 15px; }.dropzone small { font-size: 12px; }
  .actions { flex-wrap: wrap; margin-top: 12px; }.actions span { width: 100%; font-size: 13px; }.actions button { flex: 1; min-height: 43px; }
  .hint { margin: 11px 0 0; font-size: 12px; }
  .gallery { display: flex; gap: 12px; overflow-x: auto; padding: 0 12px 10px; margin-top: 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }.gallery::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 calc(100vw - 24px); scroll-snap-align: center; border: 1px solid #edf0f1; border-radius: 14px; box-shadow: none; }
  .card header { padding: 12px 13px; }.preview { height: min(53svh, 540px); }.preview img { -webkit-user-drag: none; user-select: none; }
  .controls { padding: 12px 13px 3px; }.controls label { grid-template-columns: 68px 1fr 60px; gap: 7px; margin-bottom: 11px; }.controls input[type="range"] { min-height: 28px; }.controls input[type="number"], .controls select { min-height: 34px; font-size: 13px; }
  .card-actions { padding: 8px 13px 13px; }.card-actions button { min-height: 46px; font-size: 15px; }
  .photo-save-sheet { width: 100%; padding: 19px 14px 14px; border-radius: 16px; }.photo-save-sheet img { max-height: 72svh; }
}
