:root {
  --paper: #f5f1e8;
  --paper-deep: #e9e2d4;
  --ink: #19201d;
  --muted: #66706b;
  --forest: #204d3d;
  --forest-dark: #153a2e;
  --mint: #dce9df;
  --line: rgba(28, 50, 41, .16);
  --white: #fffdf8;
  --orange: #dd6b3d;
  --shadow: 0 20px 70px rgba(36, 50, 44, .09);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 2%, rgba(255,255,255,.8), transparent 24rem),
    linear-gradient(180deg, #f8f5ee 0, var(--paper) 38%, #eee8dc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

button, input { font: inherit; }
button { cursor: pointer; }

.page-shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }

.hero { padding: 24px 0 54px; position: relative; }
.topbar { display: flex; justify-content: space-between; align-items: center; }

.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 11px; }
.brand > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.brand strong { font-size: 14px; letter-spacing: .02em; }
.brand small { color: var(--muted); font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.72); box-shadow: 0 4px 16px rgba(30,50,42,.05); }
.brand svg { width: 24px; fill: none; stroke: var(--forest); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.privacy-pill { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(32,77,61,.13); border-radius: 999px; color: var(--forest); background: rgba(255,255,255,.55); font-size: 12px; font-weight: 700; }
.privacy-pill span { width: 8px; height: 8px; border-radius: 50%; background: #42a477; box-shadow: 0 0 0 5px rgba(66,164,119,.12); }

.hero-grid { display: grid; grid-template-columns: minmax(0, .93fr) minmax(430px, .82fr); align-items: center; gap: clamp(40px, 7vw, 90px); min-height: 570px; padding-top: 34px; }
.hero-copy { max-width: 570px; padding: 36px 0; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--forest); font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.eyebrow span { width: 26px; height: 2px; background: var(--orange); }
h1 { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: clamp(54px, 6vw, 78px); font-weight: 790; line-height: 1.08; letter-spacing: -.065em; }
h1 em { color: var(--forest); font-style: normal; white-space: nowrap; }
.lead { max-width: 520px; margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.hero-action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 180px; min-height: 50px; margin-top: 28px; padding: 0 22px; border-radius: 13px; color: white; background: var(--forest); box-shadow: 0 12px 30px rgba(32,77,61,.2); text-decoration: none; font-size: 14px; font-weight: 750; transition: .18s ease; }
.hero-action:hover { background: var(--forest-dark); transform: translateY(-1px); }
.hero-action svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust-row { display: flex; align-items: center; gap: 22px; margin-top: 20px; color: var(--muted); font-size: 12px; }
.trust-row span { display: flex; align-items: center; gap: 6px; }
.trust-row svg { width: 17px; fill: none; stroke: var(--forest); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; min-height: 470px; }
.visual-glow { position: absolute; inset: 8% 3% 6% 4%; border-radius: 50%; background: radial-gradient(circle, rgba(152,188,165,.36), rgba(220,233,223,.08) 60%, transparent 72%); filter: blur(12px); }
.photo-card { position: absolute; top: 28px; left: 3%; width: min(78%, 380px); padding: 11px; border: 1px solid rgba(32,54,45,.12); border-radius: 23px; background: rgba(255,253,248,.94); box-shadow: 0 28px 70px rgba(35,52,44,.16); transform: rotate(-3.5deg); }
.photo-scene { position: relative; height: 290px; overflow: hidden; border-radius: 15px; background: linear-gradient(180deg, #b8d3c2 0%, #dfe9dc 48%, #e8d8ba 100%); }
.sun { position: absolute; top: 42px; right: 48px; width: 47px; height: 47px; border-radius: 50%; background: #fff1bd; box-shadow: 0 0 38px rgba(255,240,179,.76); }
.mountain { position: absolute; left: -12%; bottom: -15%; width: 120%; height: 74%; clip-path: polygon(0 85%, 22% 42%, 39% 67%, 60% 18%, 79% 54%, 100% 31%, 100% 100%, 0 100%); }
.mountain-back { background: #789e88; opacity: .78; transform: translateY(-18px); }
.mountain-front { background: linear-gradient(150deg, #2e604c, #173f32); clip-path: polygon(0 72%, 18% 48%, 39% 74%, 61% 32%, 82% 65%, 100% 48%, 100% 100%, 0 100%); }
.photo-date { position: absolute; left: 17px; bottom: 15px; padding: 6px 9px; border-radius: 8px; color: white; background: rgba(18,45,35,.55); backdrop-filter: blur(8px); font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.photo-caption { display: flex; justify-content: space-between; align-items: center; padding: 12px 5px 3px; font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.photo-caption small { color: var(--muted); font-weight: 500; }
.meta-card { position: absolute; right: 0; bottom: 24px; z-index: 2; width: min(76%, 365px); padding: 20px; border: 1px solid rgba(32,54,45,.13); border-radius: 20px; background: rgba(255,255,253,.93); box-shadow: 0 26px 70px rgba(31,47,40,.2); backdrop-filter: blur(18px); }
.meta-card-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; padding-bottom: 13px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 800; }
.local-badge { padding: 4px 8px; border-radius: 999px; color: var(--forest); background: var(--mint); font-size: 10px; }
.meta-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--muted); font-size: 11px; }
.meta-line strong { color: var(--ink); font-size: 11px; }
.meta-line .cleared { color: #34815e; }
.cleared i { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-right: 3px; border-radius: 50%; color: white; background: #47a477; font-size: 9px; font-style: normal; }
.meta-success { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 11px; border-radius: 12px; color: var(--forest); background: rgba(220,233,223,.65); }
.meta-success > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: white; background: var(--forest); }
.meta-success div { display: flex; flex-direction: column; gap: 2px; }
.meta-success strong { font-size: 11px; }
.meta-success small { color: var(--muted); font-size: 9px; }

main { padding-bottom: 50px; }
.panel { background: rgba(255,253,248,.84); border: 1px solid rgba(32,54,45,.12); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 42px); margin-bottom: 24px; backdrop-filter: blur(12px); }
.section-heading { display: flex; align-items: flex-start; gap: 17px; margin-bottom: 26px; }
.step { display: grid; place-items: center; flex: 0 0 42px; height: 42px; color: var(--forest); background: var(--mint); border-radius: 13px; font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.section-heading h2 { margin: 1px 0 5px; font-size: 22px; letter-spacing: -.02em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; }

.drop-zone { min-height: 220px; border: 1.5px dashed rgba(32,77,61,.3); border-radius: 20px; background: linear-gradient(135deg, rgba(220,233,223,.36), rgba(255,255,255,.55)); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 30px; text-align: center; transition: .2s ease; cursor: pointer; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--forest); background: rgba(220,233,223,.6); transform: translateY(-2px); }
.drop-zone input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.upload-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 20px; color: var(--white); background: var(--forest); box-shadow: 0 10px 25px rgba(32,77,61,.22); }
.upload-icon svg { width: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drop-zone strong { font-size: 17px; }
.drop-zone small { margin-top: 9px; color: var(--muted); }

.file-summary { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.file-summary div { display: flex; align-items: baseline; gap: 12px; }
.file-summary span { color: var(--muted); font-size: 13px; }
.text-button { padding: 5px 0; border: 0; color: #a5482a; background: none; font-size: 13px; }
.file-list { display: grid; gap: 10px; margin-top: 12px; }
.file-item { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 14px; min-width: 0; padding: 10px 12px; background: rgba(239,237,227,.6); border: 1px solid rgba(32,54,45,.08); border-radius: 15px; }
.file-thumb { width: 58px; height: 48px; object-fit: cover; border-radius: 10px; background: var(--paper-deep); }
.file-meta { min-width: 0; }
.file-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.file-detail { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 5px; color: var(--muted); font-size: 12px; }
.gps-tag { color: #a5482a; }
.remove-file { width: 34px; height: 34px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 20px; }
.remove-file:hover { background: #eaded5; color: #8c3f26; }

.setting-group { min-width: 0; margin: 0 0 26px; padding: 0; border: 0; }
.setting-group legend { margin-bottom: 13px; padding: 0; font-weight: 750; font-size: 15px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 5px; background: #ece9df; border-radius: 14px; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 11px 10px; text-align: center; border-radius: 10px; color: var(--muted); font-size: 14px; transition: .18s ease; cursor: pointer; }
.segmented input:checked + span { color: var(--forest-dark); background: var(--white); box-shadow: 0 3px 12px rgba(31,47,40,.1); font-weight: 700; }
.time-option { margin-top: 16px; padding: 18px; background: rgba(220,233,223,.38); border-radius: 15px; }
.time-option > label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 13px; }
.input-with-action { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
input[type="datetime-local"], input[type="number"], .text-input { width: 100%; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--white); outline: 0; }
input[type="datetime-local"], input[type="number"] { min-height: 45px; padding: 9px 12px; }
input:focus { border-color: rgba(32,77,61,.6); box-shadow: 0 0 0 3px rgba(32,77,61,.09); }
.input-with-action button { border: 1px solid rgba(32,77,61,.18); border-radius: 11px; padding: 0 16px; color: var(--forest); background: var(--white); }
.offset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.offset-grid label { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.offset-grid span { color: var(--muted); font-size: 13px; }
.field-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.compact-group { padding-top: 24px; border-top: 1px solid var(--line); }
.check-field { display: grid; grid-template-columns: 20px 96px 1fr; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.check-field > input[type="checkbox"], .privacy-check > input { position: absolute; opacity: 0; }
.custom-check { width: 20px; height: 20px; border: 1.5px solid #a9b0ac; border-radius: 6px; background: var(--white); position: relative; }
input:checked + .custom-check { border-color: var(--forest); background: var(--forest); }
input:checked + .custom-check::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.field-label { font-size: 14px; }
.text-input { min-height: 42px; padding: 9px 12px; }
.text-input:disabled { background: #eeece5; color: #929892; cursor: not-allowed; }
.privacy-check { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 15px; border: 1px solid rgba(221,107,61,.18); border-radius: 14px; background: rgba(221,107,61,.06); cursor: pointer; }
.privacy-check > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.privacy-check strong { font-size: 14px; }
.privacy-check small { color: var(--muted); }

.action-area { padding-top: 24px; border-top: 1px solid var(--line); text-align: center; }
.primary-button, .secondary-button { border: 0; border-radius: 14px; font-weight: 750; transition: .18s ease; }
.primary-button { width: min(100%, 430px); min-height: 56px; display: inline-flex; justify-content: center; align-items: center; gap: 12px; padding: 0 24px; color: white; background: var(--forest); box-shadow: 0 12px 26px rgba(32,77,61,.21); }
.primary-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.primary-button:hover:not(:disabled) { background: var(--forest-dark); transform: translateY(-1px); }
.primary-button:disabled { color: #8f9691; background: #d8d8d2; box-shadow: none; cursor: not-allowed; }
.action-area p { margin: 10px 0 0; color: var(--muted); font-size: 12px; }

.result-panel { border-color: rgba(32,77,61,.22); }
.step.done { color: white; background: var(--forest); font-size: 18px; }
.result-list { display: grid; gap: 10px; margin-bottom: 18px; }
.result-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 13px 15px; background: rgba(220,233,223,.4); border-radius: 13px; }
.result-info { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.result-item strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.result-item small { color: var(--muted); font-size: 11px; }
.download-button { border: 1px solid rgba(32,77,61,.2); border-radius: 9px; padding: 8px 12px; color: var(--forest); background: var(--white); text-decoration: none; font-size: 12px; font-weight: 700; }
.secondary-button { width: 100%; min-height: 48px; color: var(--forest); border: 1px solid rgba(32,77,61,.24); background: white; }
.download-note { margin: 9px 0 0; color: var(--muted); text-align: center; font-size: 12px; }

.explain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 34px 0; }
.explain-grid article { position: relative; min-height: 150px; padding: 24px; overflow: hidden; border-top: 1px solid var(--line); }
.explain-grid span { position: absolute; top: 17px; right: 18px; color: rgba(32,77,61,.12); font: 700 48px/1 Georgia, serif; }
.explain-grid h3 { margin: 0 0 10px; font: 500 24px/1.2 Georgia, "Songti SC", serif; }
.explain-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

footer { display: flex; justify-content: space-between; align-items: center; padding: 28px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer span:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
footer span:nth-child(2) { color: var(--forest); font-weight: 700; }
.hidden { display: none !important; }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 10; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; color: white; background: var(--ink); box-shadow: 0 12px 40px rgba(0,0,0,.2); font-size: 13px; opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .22s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #943e2b; }

@media (max-width: 720px) {
  .page-shell { width: min(100% - 22px, 1120px); }
  .hero { padding: 16px 0 34px; }
  .brand strong { font-size: 13px; }
  .privacy-pill { padding: 7px 10px; font-size: 11px; }
  .hero-grid { display: block; min-height: 0; padding-top: 34px; }
  .hero-copy { padding: 18px 0 26px; }
  h1 { font-size: clamp(45px, 13vw, 62px); letter-spacing: -.06em; }
  .lead { font-size: 15px; }
  .hero-action { min-width: 165px; }
  .trust-row { gap: 14px; }
  .hero-visual { min-height: 390px; margin: 4px 2px 0; }
  .photo-card { top: 20px; left: 0; width: 78%; }
  .photo-scene { height: 225px; }
  .meta-card { right: 0; bottom: 16px; width: 78%; padding: 16px; }
  .panel { padding: 20px 16px; border-radius: 20px; }
  .drop-zone { min-height: 190px; padding: 22px 12px; }
  .segmented { grid-template-columns: 1fr; }
  .segmented span { padding: 10px; }
  .offset-grid { grid-template-columns: 1fr; }
  .check-field { grid-template-columns: 20px 74px 1fr; }
  .file-item { grid-template-columns: 48px 1fr auto; gap: 10px; }
  .file-thumb { width: 48px; height: 44px; }
  .explain-grid { grid-template-columns: 1fr; }
  .explain-grid article { min-height: 115px; }
  footer { display: block; text-align: center; line-height: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
