/* 心愿池 t1078 · 花园水塘意象，非旅行页换皮，无橙 */
:root {
  --cream: #f6efe6;
  --paper: #fffdf8;
  --ink: #4a3b2f;
  --ink-soft: #6a5648;
  --muted: #8a7468;
  --line: #4a3b2f26;
  --pond: #6a9aa8;
  --pond-deep: #3d6d78;
  --water: #cfe6ee;
  --lily: #7faf7a;
  --blush: #f3e6e8;
  --shadow: 0 18px 40px #3d6d7822;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --max: 840px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background:
    linear-gradient(180deg, #eaf1f8 0%, #d7e8ee 38%, #c5dce3 70%, #b7d0c8 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
.sky {
  position: fixed; inset: 0 auto auto 0; width: 100%; height: 42vh; pointer-events: none; z-index: 0;
  background:
    radial-gradient(520px 220px at 12% 0%, #ffffff88, transparent 60%),
    radial-gradient(420px 180px at 88% 8%, #d9eef355, transparent 55%);
}
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(--pond-deep); color: #fff; 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 var(--pond-deep);
  outline-offset: 3px;
}

.mast, main, footer { position: relative; z-index: 1; }
.mast { padding: 28px 20px 10px; }
.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 #4a3b2f33; border-radius: 999px;
  background: var(--paper); font-size: 13px;
}
.home-btn:hover, .home-btn:focus-visible { background: #e4f1f3; border-color: var(--pond); }
.mast h1 {
  margin: 18px 0 8px;
  font-size: clamp(2.1rem, 6vw, 3rem);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.15;
  color: var(--pond-deep);
}
.lede { margin: 0 0 10px; max-width: 42em; color: var(--ink-soft); font-size: 15px; }
.preview-note {
  margin: 0;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fffdf8cc;
  border: 1px dashed #6a9aa866;
  color: var(--ink-soft);
  font-size: 12.5px;
}

main { max-width: var(--max); margin: 0 auto; padding: 18px 20px 64px; }
.banner {
  background: #edf5f7;
  border: 1px dashed var(--pond-deep);
  border-radius: 16px;
  padding: 12px 16px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.banner a { color: var(--pond-deep); margin-left: 8px; }

.compose {
  margin-bottom: 22px;
  padding: 8px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, #efe4d4 0%, #e2d3c0 100%);
  box-shadow: var(--shadow);
  border: 1px solid #c8b49a66;
}
.window-frame {
  background: var(--paper);
  border-radius: 22px;
  padding: 22px 22px 18px;
  border: 1px solid #fff8;
}
.compose h2, .pond 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="text"], input[type="date"], textarea {
  width: 100%; border: 1px solid #4a3b2f33; border-radius: 14px;
  padding: 10px 12px; background: #fff; color: var(--ink);
}
textarea { resize: vertical; min-height: 76px; }
#wish-note { min-height: 58px; }
.btn {
  border: 1px solid #4a3b2f33; border-radius: 999px; background: #f3eee7;
  padding: 9px 16px; color: var(--ink);
}
.btn.primary {
  background: var(--pond-deep); color: #f4fbfb; border-color: var(--pond-deep); font-weight: 650;
}
.btn.primary:hover { background: #2f585f; }
.btn.ghost:hover { background: #e4f1f3; border-color: var(--pond); }
.btn.tiny { padding: 5px 11px; 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: #2f6a4f; }
.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);
}
.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); }

.pond {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 22px 20px 26px;
  background: linear-gradient(180deg, #b7d8df 0%, #87b7c0 46%, #6a9aa8 100%);
  border: 1px solid #3d6d7844;
  box-shadow: var(--shadow);
  color: #234249;
  min-height: 280px;
}
.pond-water { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ripple {
  position: absolute; border: 2px solid #ffffff55; border-radius: 50%;
  animation: ripple 8s ease-out infinite;
}
.r1 { width: 120px; height: 54px; left: 12%; top: 28%; animation-delay: 0s; }
.r2 { width: 180px; height: 80px; right: 8%; top: 48%; animation-delay: 2.4s; }
.r3 { width: 90px; height: 40px; left: 48%; bottom: 16%; animation-delay: 4.2s; }
@keyframes ripple {
  0% { transform: scale(.7); opacity: .5; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
.pad {
  position: absolute; width: 54px; height: 24px; border-radius: 50%;
  background: #7faf7a; box-shadow: 0 0 0 1px #3d5c4888, 10px 2px 0 -2px #96c28a;
  opacity: .85;
}
.p1 { left: 8%; bottom: 18%; transform: rotate(-12deg); }
.p2 { right: 12%; top: 22%; transform: rotate(16deg); width: 42px; height: 18px; }
.p3 { left: 42%; bottom: 8%; transform: rotate(8deg); width: 36px; height: 16px; }
.bloom {
  position: absolute; width: 16px; height: 16px; border-radius: 50%;
  background: #f3e6e8; box-shadow: -8px 3px 0 -3px #efe0e4, 8px 3px 0 -3px #efe0e4;
}
.b1 { right: 16%; top: 20%; }
.b2 { left: 18%; bottom: 22%; width: 12px; height: 12px; }

.pond-head, .empty, .cards { position: relative; z-index: 1; }
.pond-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pond h2, .pond .count { color: #12343a; }
.pond .count { margin: 0; }
.empty { text-align: center; padding: 12px 10px 6px; color: #234249; }
.empty-art { display: flex; justify-content: center; margin-bottom: 6px; }
.empty-title { font-weight: 650; color: #12343a; margin: 0 0 6px; font-size: 1.05rem; }
.empty p { margin: 0 auto; max-width: 28em; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid #ffffffaa;
  border-radius: 20px;
  padding: 16px 16px 14px;
  box-shadow: 0 10px 0 #3d6d7830, 0 16px 24px #1d3d4230;
  min-height: 150px;
  color: var(--ink);
  animation: bob 5.4s ease-in-out infinite;
}
.card:nth-child(3n+1) { transform: rotate(-1.4deg); animation-delay: -.6s; background: #fffdf8; }
.card:nth-child(3n+2) { transform: rotate(1.1deg); animation-delay: -1.8s; background: #f7fbf8; }
.card:nth-child(3n) { transform: rotate(-.5deg); animation-delay: -3.2s; background: #fbf6f4; }
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}
.card .seal {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: #d8eef0; border: 1.5px dashed #3d6d7888;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--pond-deep);
}
.card h3 { margin: 0 40px 8px 0; font-size: 1.05rem; line-height: 1.4; font-weight: 650; }
.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; }

footer {
  padding: 24px 20px 40px; text-align: center; font-size: 12px; color: #d7ecee;
  background: #2b5158;
}
footer a { color: #d8eef0; text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .mast { padding: 22px 16px 8px; }
  main { padding: 14px 14px 48px; }
  .window-frame { padding: 16px; }
  .compose, .pond { border-radius: 22px; }
  .pond { padding: 16px 14px 20px; }
  .card { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .card { transform: none !important; translate: none !important; }
}
