/* 心愿足迹 t1002 · 旅行小足迹子页，活泼贴纸风，无橙 */
:root {
  --bg: #e8efec;
  --paper: #f9fbf8;
  --ink: #173e3b;
  --ink-soft: #3d5c56;
  --muted: #617c71;
  --line: #173e3b33;
  --lime: #d9ef68;
  --deep: #17433e;
  --cream: #f4f8f2;
  --star: #5e7958;
  --shadow: 0 16px 40px #173e3b1a;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --max: 960px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 0% -10%, #d9ef6833, transparent 55%),
    radial-gradient(700px 420px at 100% 0%, #17433e14, transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--deep); color: var(--paper); padding: 8px 12px; z-index: 40;
}
.skip:focus { left: 12px; top: 12px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #5e7958;
  outline-offset: 3px;
}

.mast { padding: 28px 20px 18px; border-bottom: 1px solid var(--line); }
.mast-inner { max-width: var(--max); margin: 0 auto; }
.mast-top, .mast-links {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px;
}
.kicker { margin: 0; font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.home-btn {
  display: inline-flex; align-items: center; text-decoration: none;
  padding: 7px 14px; border: 1px solid #173e3b55; border-radius: 999px;
  background: var(--paper); font-size: 13px;
}
.home-btn:hover, .home-btn:focus-visible { background: var(--lime); border-color: var(--lime); }
.mast h1 {
  margin: 16px 0 8px;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.2;
}
.lede { margin: 0 0 16px; max-width: 40em; color: var(--ink-soft); font-size: 15px; }
.travel-subs { display: flex; flex-wrap: wrap; gap: 8px; }
.travel-subs a {
  text-decoration: none; padding: 6px 14px; border-radius: 999px;
  border: 1px solid #173e3b44; background: var(--paper); font-size: 13px;
}
.travel-subs a[aria-current="page"] {
  background: var(--lime); border-color: var(--lime); font-weight: 650;
}

main { max-width: var(--max); margin: 0 auto; padding: 22px 20px 60px; }
.banner {
  background: #eef4c9; border: 1px dashed #5e7958; border-radius: 16px;
  padding: 12px 16px; color: var(--ink-soft); margin: 0 0 22px;
}
.compose, .album {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
  margin-bottom: 22px;
}
.compose h2, .album h2 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 650; }
.hint, .count { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font-size: 14px; }
.field > span { color: var(--ink-soft); font-weight: 600; }
.field-row { display: flex; flex-wrap: wrap; gap: 14px; }
.field-row .grow { flex: 1 1 220px; }
input[type="search"], input[type="text"], input[type="date"], textarea {
  width: 100%; border: 1px solid #173e3b44; border-radius: 12px;
  padding: 10px 12px; background: #fff; color: var(--ink);
}
textarea { resize: vertical; min-height: 76px; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; }
.btn {
  border: 1px solid #173e3b55; border-radius: 999px; background: var(--cream);
  padding: 9px 16px; color: var(--ink);
}
.btn.primary {
  background: var(--deep); color: #edf4eb; border-color: var(--deep); font-weight: 650;
}
.btn.primary:hover { background: #102e2b; }
.btn.ghost:hover { background: var(--lime); border-color: var(--lime); }
.btn.tiny { padding: 4px 10px; font-size: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }
.msg { min-height: 1.4em; margin: 10px 0 0; color: #8a3b4a; font-size: 14px; }
.msg.ok { color: var(--star); }
.picked { margin: 0 0 10px; font-size: 13px; color: var(--ink-soft); }
.picked.is-set { color: var(--deep); font-weight: 600; }
.results { display: grid; gap: 6px; margin: 0 0 12px; }
.results button {
  text-align: left; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; padding: 8px 12px;
}
.results button strong { display: block; }
.results button span { display: block; color: var(--muted); font-size: 12px; }
.pick-map, .list-map {
  width: 100%; height: 240px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: #dfe8e3; margin: 0 0 16px;
}
.list-map { height: 220px; margin: 0 0 18px; }
.photo-preview { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.photo-preview img {
  width: 88px; height: 88px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--line); background: var(--cream);
}

.album-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.empty {
  text-align: center; padding: 18px 10px 8px; color: var(--ink-soft);
}
.empty-art { display: flex; justify-content: center; margin-bottom: 8px; }
.empty-title { font-weight: 650; color: var(--ink); margin: 0 0 6px; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 14px 12px;
  box-shadow: 0 8px 0 #b9cbc2;
  min-height: 140px;
}
.card:nth-child(3n+1) { transform: rotate(-1.1deg); }
.card:nth-child(3n+2) { transform: rotate(.8deg); background: #fbfcf7; }
.card:nth-child(3n) { transform: rotate(-.4deg); }
.card .stamp {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--lime); border: 1.5px dashed #173e3b99;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--deep);
}
.card h3 { margin: 0 36px 8px 0; font-size: 1.05rem; line-height: 1.35; }
.card .meta { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.card .note { margin: 0; font-size: 14px; color: var(--ink-soft); }
.card img.cover {
  width: 100%; height: 110px; object-fit: cover; border-radius: 12px;
  margin: 0 0 10px; background: #dfe8e3;
}
.card .tools { display: flex; gap: 8px; margin-top: 10px; }
.card .tools .btn { padding: 5px 11px; font-size: 12px; }

.maplibregl-ctrl-attrib { font-size: 10px; }
footer {
  padding: 24px 20px 40px; text-align: center; font-size: 12px; color: #d5e6d8;
  background: var(--deep);
}
footer a { color: #d9ef68; text-decoration: none; }

@media (max-width: 640px) {
  .mast { padding: 22px 16px 14px; }
  main { padding: 16px 14px 48px; }
  .compose, .album { padding: 16px; border-radius: 18px; }
  .pick-map, .list-map { height: 200px; }
  .card { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .card { transform: none !important; }
}

.file-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.file-row input[type=file]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.file-name{font-size:13px;color:var(--muted)}
