/* ============================================================
   我们的小窝 — 今年想去页面
   ============================================================ */

:root {
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
          "Segoe UI", system-ui, sans-serif;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.is-hidden { display: none !important; }

body {
  min-height: 100vh;
  font-family: var(--font);
  color: #31485d;
  background: linear-gradient(172deg, #d3e8f4 0%, #e7f0d6 72%, #eef4e1 100%);
  background-attachment: fixed;
}

.pl-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.pl-cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  filter: blur(2px);
}
.pl-cloud::before,
.pl-cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.pl-cloud::before { width: 60%; height: 150%; top: -40%; left: 14%; }
.pl-cloud::after  { width: 46%; height: 130%; top: -26%; right: 16%; }
.pl-cloud--1 {
  width: 150px; height: 54px; top: 9%; left: -42px;
  animation: pl-drift 95s linear infinite;
}
.pl-cloud--2 {
  width: 112px; height: 42px; top: 31%; right: -36px;
  animation: pl-drift 120s linear infinite reverse;
}
.pl-cloud--3 {
  width: 132px; height: 48px; top: 72%; left: -50px;
  animation: pl-drift 108s linear infinite;
}
@keyframes pl-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(125vw); }
}

.places-main {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
  padding: 132px 0 96px;
}

.places-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 34px;
}

.places-kicker {
  color: #7aa6d4;
  font-size: 13px;
  font-weight: 600;
}

.places-hero h1 {
  margin-top: 12px;
  color: #284158;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
}

.places-lead {
  width: min(660px, 100%);
  margin-top: 18px;
  color: #5e7082;
  font-size: 16px;
  line-height: 1.9;
  font-weight: 750;
}

.places-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.places-count {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.56);
  color: #637589;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 10px 24px rgba(68, 88, 112, 0.08);
}

.places-toggle,
.place-form__cancel,
.place-form__save {
  border: none;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.places-toggle {
  padding: 10px 17px;
  background: rgba(255,255,255,0.72);
  color: #4f6a82;
  box-shadow: 0 10px 22px rgba(68, 88, 112, 0.1);
  transition: transform 0.18s var(--spring), background 0.2s ease, color 0.2s ease;
}

.places-toggle:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.places-toggle[aria-expanded="true"] {
  color: #b6783c;
  background: #ffffff;
}

.place-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 14px;
  width: min(760px, 100%);
  margin: 0 auto 34px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.56);
  border-radius: 8px;
  background: rgba(255,255,255,0.5);
  box-shadow: 0 12px 30px rgba(68, 88, 112, 0.1);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
}

.place-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.place-form label:nth-child(2) {
  grid-row: span 2;
}

.place-form span {
  color: #627084;
  font-size: 13px;
  font-weight: 650;
}

.place-form input,
.place-form textarea,
.place-form select {
  width: 100%;
  border: 2px solid rgba(255,255,255,0.72);
  border-radius: 12px;
  background: rgba(255,255,255,0.72);
  color: #4a4f5c;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 750;
}

.place-form input,
.place-form select {
  height: 42px;
  padding: 0 12px;
}

.place-form textarea {
  min-height: 92px;
  padding: 11px 12px;
  line-height: 1.7;
  resize: vertical;
}

.place-form input:focus,
.place-form textarea:focus,
.place-form select:focus {
  outline: none;
  border-color: #8fc7e8;
  background: #ffffff;
}

.place-form__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.place-form__cancel {
  padding: 9px 16px;
  background: rgba(255,255,255,0.7);
  color: #6b7385;
}

.place-form__save {
  padding: 9px 18px;
  background: linear-gradient(135deg, #8fc7e8, #9fdcc5);
  color: #ffffff;
  box-shadow: 0 7px 16px rgba(80, 130, 150, 0.22);
}

.place-stage {
  --place-card-w: clamp(184px, 22vw, 246px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 46px);
  align-items: end;
  min-height: 430px;
  padding: 28px 18px 60px;
  perspective: 1000px;
  perspective-origin: 50% 25%;
}

.place-card {
  position: relative;
  z-index: 1;
  width: min(100%, var(--place-card-w));
  min-height: 286px;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: 8px;
  color: #ffffff;
  background: #5b6fc0;
  box-shadow: 0 16px 24px rgba(56, 65, 90, 0.22);
  transform: rotateX(66deg) translateY(22px);
  transform-origin: bottom center;
  transform-style: preserve-3d;
  transition:
    transform 0.62s ease-in-out,
    box-shadow 0.62s ease-in-out,
    filter 0.42s ease-in-out;
  will-change: transform;
}

.place-card:hover,
.place-card:focus {
  z-index: 8;
  transform: rotateX(0deg) translateY(-12px) scale(1.05);
  box-shadow: 0 32px 58px rgba(45, 56, 84, 0.34);
  outline: none;
}

.place-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 24% 14%, rgba(255,255,255,0.92) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 12%, rgba(255,255,255,0.72) 0 2px, transparent 3px),
    radial-gradient(circle at 86% 28%, rgba(255,255,255,0.8) 0 2px, transparent 3px),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.18));
  opacity: 0.9;
  pointer-events: none;
}

.place-card::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 26px;
  height: 20px;
  border-radius: 50%;
  background: rgba(32, 38, 54, 0.28);
  filter: blur(16px);
  transform: translateZ(-1px);
}

.place-card--night {
  background: linear-gradient(180deg, #5b4a7d 0%, #596bc1 54%, #5369b9 100%);
}
.place-card--desert {
  background: linear-gradient(180deg, #f6a057 0%, #ef8b56 48%, #db7356 100%);
}
.place-card--forest {
  background: linear-gradient(180deg, #79b7a4 0%, #5f9f94 54%, #517f7b 100%);
}
.place-card--sea {
  background: linear-gradient(180deg, #6bbbd3 0%, #5d91c8 54%, #6378bd 100%);
}

.place-card__art {
  position: relative;
  z-index: 1;
  height: 118px;
  overflow: hidden;
}

.place-card__sun,
.place-card__moon {
  position: absolute;
  border-radius: 50%;
}

.place-card__sun {
  top: 38px;
  right: 34px;
  width: 30px;
  height: 30px;
  background: rgba(255, 227, 147, 0.9);
  box-shadow: 0 0 34px rgba(255, 218, 120, 0.46);
}

.place-card__moon {
  left: 50%;
  bottom: 0;
  width: 52px;
  height: 52px;
  transform: translateX(-50%);
  background: #fff8ed;
  box-shadow: 0 0 34px rgba(255, 248, 237, 0.58);
}

.place-card__land {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 42px;
}

.place-card__land::before,
.place-card__land::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 54%;
  height: 48px;
  background: rgba(60, 54, 98, 0.78);
  clip-path: polygon(0 100%, 54% 0, 100% 100%);
}

.place-card__land::before { left: 0; }
.place-card__land::after { right: 0; transform: scaleX(0.82); opacity: 0.72; }

.place-card--forest .place-card__land::before,
.place-card--forest .place-card__land::after {
  background: rgba(52, 92, 76, 0.78);
}

.place-card--sea .place-card__land::before,
.place-card--sea .place-card__land::after {
  height: 24px;
  background: rgba(230, 245, 247, 0.46);
  clip-path: ellipse(48% 36% at 50% 100%);
}

.place-card--night .place-card__land::before,
.place-card--night .place-card__land::after {
  background: rgba(60, 54, 98, 0.86);
  clip-path: polygon(0 100%, 16% 8%, 28% 100%, 42% 8%, 58% 100%, 72% 8%, 88% 100%, 100% 8%, 100% 100%);
}

.place-card__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 14px 22px 26px;
  text-align: center;
}

.place-card__name {
  font-size: 24px;
  line-height: 1.24;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(36, 42, 58, 0.18);
}

.place-card__note {
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  line-height: 1.76;
  font-weight: 600;
}

@media (max-width: 780px) {
  .places-main {
    width: min(100% - 28px, 430px);
    padding: 104px 0 74px;
  }
  .places-actions {
    flex-direction: column;
  }
  .place-form {
    grid-template-columns: 1fr;
  }
  .place-form label:nth-child(2) {
    grid-row: auto;
  }
  .place-form__actions {
    flex-direction: column;
  }
  .place-form__cancel,
  .place-form__save {
    width: 100%;
  }
  .place-stage {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: 0;
    padding: 12px 8px 28px;
    perspective: 900px;
  }
  .place-card {
    width: min(100%, 260px);
    min-height: 250px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pl-cloud { animation: none; }
  .places-toggle,
  .place-card { transition: none; }
}
