/* ==========================================================================
   云说 · 天气预报  —  手绘风格样式
   结构：1. 变量与主题  2. 天空背景  3. 顶栏  4. 主视觉与插画动画
        5. 七天预报  6. 城市选择面板  7. 响应式与无障碍
   ========================================================================== */

/* ---------------------------------------------------------------- 1. 变量 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ink: #22303f;
  --ink-2: #5c6d7e;
  --card: rgba(255, 255, 255, 0.62);
  --card-line: rgba(34, 48, 63, 0.13);
  --sheet-bg: #fdfaf3;
  --shadow: 0 18px 40px -18px rgba(28, 44, 66, 0.35);

  /* 插画配色（日间） */
  --sun-fill: #ffc94d;
  --sun-line: #e5a428;
  --cloud-top: #ffffff;
  --cloud-bottom: #e8f1fb;
  --cloud-line: #495b70;
  --cloud-line-soft: #8ea4ba;
  --cloud-back: #f1f7fd;
  --rain: #5a9bd4;
  --snow: #93bcdf;
  --bolt: #ffd452;
  --bolt-line: #d9991d;
  --fog: #b6c6d1;
  --bird: #5c6d7e;
  --moon-fill: #fbf1c9;
  --moon-line: #e2d094;
  --moon-dot: #c8b478;

  /* 天空（默认：多云白天） */
  --sky-1: #c3d3e2;
  --sky-2: #e4edf6;
  --sky-3: #f8fafc;

  --ease: cubic-bezier(0.22, 0.68, 0.16, 1);
}

/* 白天 · 各天气天空色 */
body[data-mood="day"][data-scene="clear"] {
  --sky-1: #a6d3ff;
  --sky-2: #dcefff;
  --sky-3: #fdf2df;
}
body[data-mood="day"][data-scene="partly"] {
  --sky-1: #b6d7f4;
  --sky-2: #e3f0fc;
  --sky-3: #fbf6ea;
}
body[data-mood="day"][data-scene="cloudy"] {
  --sky-1: #c3d3e2;
  --sky-2: #e4edf6;
  --sky-3: #f8fafc;
}
body[data-mood="day"][data-scene="rain"] {
  --sky-1: #8ea6bd;
  --sky-2: #c5d5e3;
  --sky-3: #e9eff6;
}
body[data-mood="day"][data-scene="snow"] {
  --sky-1: #cadeee;
  --sky-2: #e9f4fd;
  --sky-3: #fcfdff;
}
body[data-mood="day"][data-scene="thunder"] {
  --sky-1: #7b8ea4;
  --sky-2: #b6c6d7;
  --sky-3: #dde6ee;
}
body[data-mood="day"][data-scene="fog"] {
  --sky-1: #bfc9c6;
  --sky-2: #e3e9e6;
  --sky-3: #f7f8f5;
}

/* 夜晚 · 主题与插画 */
body[data-mood="night"] {
  --ink: #edf3ff;
  --ink-2: #b3c3da;
  --card: rgba(255, 255, 255, 0.07);
  --card-line: rgba(255, 255, 255, 0.16);
  --sheet-bg: #1d2739;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);

  --cloud-top: #93a3ba;
  --cloud-bottom: #6d7d94;
  --cloud-line: #d6e2f4;
  --cloud-line-soft: #a9bad0;
  --cloud-back: #7a8aa1;
  --rain: #8fc0ec;
  --snow: #dbe9f8;
  --fog: #9fb0c0;
  --bird: #93a4b8;
  --sky-1: #16233d;
  --sky-2: #2b3c5c;
  --sky-3: #4a5b79;
}
body[data-mood="night"][data-scene="cloudy"] {
  --sky-1: #141c2b;
  --sky-2: #26313f;
  --sky-3: #3d4762;
}
body[data-mood="night"][data-scene="rain"] {
  --sky-1: #0f1622;
  --sky-2: #1e2836;
  --sky-3: #333e4f;
}
body[data-mood="night"][data-scene="snow"] {
  --sky-1: #1a2436;
  --sky-2: #2f3d52;
  --sky-3: #55647d;
}
body[data-mood="night"][data-scene="thunder"] {
  --sky-1: #0d121c;
  --sky-2: #1b2333;
  --sky-3: #303a4d;
}
body[data-mood="night"][data-scene="fog"] {
  --sky-1: #1b2129;
  --sky-2: #2d3540;
  --sky-3: #4a535f;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui,
    -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: color 0.6s var(--ease);
}

/* ------------------------------------------------------------ 2. 天空背景 */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    175deg,
    var(--sky-1) 0%,
    var(--sky-2) 55%,
    var(--sky-3) 100%
  );
  transition: background 1.1s var(--ease);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  transition: background 1.1s var(--ease), opacity 1.1s var(--ease);
}
.glow-a {
  width: 46vw;
  height: 46vw;
  top: -12vw;
  right: -8vw;
  background: radial-gradient(circle, rgba(255, 236, 190, 0.75), transparent 68%);
}
.glow-b {
  width: 40vw;
  height: 40vw;
  bottom: -14vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(200, 226, 255, 0.7), transparent 70%);
}
body[data-mood="night"] .glow-a {
  background: radial-gradient(circle, rgba(150, 180, 255, 0.28), transparent 70%);
}
body[data-mood="night"] .glow-b {
  background: radial-gradient(circle, rgba(90, 120, 190, 0.32), transparent 70%);
}

.stars {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
  pointer-events: none;
}
body[data-mood="night"] .stars {
  opacity: 1;
}
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  animation: twinkle 3.4s ease-in-out infinite;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(20, 32, 48, 0.5) 0.5px, transparent 0.6px);
  background-size: 3px 3px;
  opacity: 0.05;
  mix-blend-mode: multiply;
}
body[data-mood="night"] .grain {
  opacity: 0.03;
}

/* ---------------------------------------------------------------- 3. 顶栏 */
.bar {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 24px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.place {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 4px;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.25s;
}
.place:hover {
  opacity: 0.72;
}
.place:focus-visible,
.round-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.ic {
  width: 20px;
  height: 20px;
  flex: none;
  display: block;
}
.chev {
  width: 16px;
  height: 16px;
  opacity: 0.55;
}

.round-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--card-line);
  background: var(--card);
  color: inherit;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.round-btn:hover {
  transform: rotate(24deg) scale(1.04);
}
.round-btn.is-busy {
  animation: spin 1.1s linear infinite;
}

/* -------------------------------------------------- 4. 主视觉与插画动画 */
.hero {
  flex: 0 0 auto;
  margin-top: auto;
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px clamp(8px, 2vw, 20px);
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  align-items: center;
  gap: clamp(4px, 2.4vw, 32px);
}

.art-wrap {
  position: relative;
  margin-left: clamp(-24px, -1.4vw, 0px);
}
.art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* 场景元素默认隐藏，按 data-scene 显示 */
.art-sun,
.art-moon,
.art-cloud,
.art-cloud-back,
.art-rain,
.art-snow,
.art-bolt,
.art-fog,
.art-birds {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}

/* 用属性选择器覆盖 SVG 内联颜色（便于随主题切换） */
.art-sun circle:last-of-type {
  fill: var(--sun-fill);
  stroke: var(--sun-line);
}
.art-sun .rays path {
  stroke: var(--sun-line);
}
.art-moon > path {
  fill: var(--moon-fill);
  stroke: var(--moon-line);
}
.art-moon circle:not(:first-child) {
  fill: var(--moon-dot);
}
.art-cloud path {
  stroke: var(--cloud-line);
}
.art-cloud > path:first-of-type {
  fill: url(#cloudBody);
}
.art-cloud-back path {
  fill: var(--cloud-back);
  stroke: var(--cloud-line-soft);
}
.art-rain,
.art-snow,
.art-fog,
.art-birds {
  stroke: var(--fog);
}
.art-rain {
  stroke: var(--rain);
}
.art-snow {
  stroke: var(--snow);
}
.art-birds {
  stroke: var(--bird);
}
.art-bolt path {
  fill: var(--bolt);
  stroke: var(--bolt-line);
}
#cloudBody stop:nth-child(1) {
  stop-color: var(--cloud-top);
}
#cloudBody stop:nth-child(2) {
  stop-color: var(--cloud-bottom);
}

/* 各天气状态显示的元素 */
body[data-scene="clear"] .art-sun,
body[data-scene="partly"] .art-sun {
  opacity: 1;
}
body[data-scene="clear"] .art-birds {
  opacity: 1;
}
body[data-scene="partly"] .art-cloud,
body[data-scene="cloudy"] .art-cloud,
body[data-scene="rain"] .art-cloud,
body[data-scene="snow"] .art-cloud,
body[data-scene="thunder"] .art-cloud,
body[data-scene="fog"] .art-cloud {
  opacity: 1;
}
body[data-scene="cloudy"] .art-cloud-back,
body[data-scene="rain"] .art-cloud-back {
  opacity: 1;
}
body[data-scene="rain"] .art-rain,
body[data-scene="thunder"] .art-rain,
body[data-scene="snow"] .art-snow,
body[data-scene="fog"] .art-fog,
body[data-scene="thunder"] .art-bolt {
  opacity: 1;
}

/* 夜间：太阳换成月亮 */
body[data-mood="night"][data-scene="clear"] .art-sun,
body[data-mood="night"][data-scene="partly"] .art-sun,
body[data-mood="night"] .art-birds {
  opacity: 0;
}
body[data-mood="night"][data-scene="clear"] .art-moon,
body[data-mood="night"][data-scene="partly"] .art-moon {
  opacity: 1;
}

/* 云的姿态：多云时向右下缩一点，阴天抬起来 */
.art-cloud {
  --cloud-y: 0px;
  --cloud-s: 1.08;
}
body[data-scene="partly"] .art-cloud {
  --cloud-y: 30px;
  --cloud-s: 0.92;
}
body[data-scene="cloudy"] .art-cloud {
  --cloud-y: -4px;
}
body[data-scene="rain"] .art-cloud,
body[data-scene="snow"] .art-cloud,
body[data-scene="thunder"] .art-cloud,
body[data-scene="fog"] .art-cloud {
  --cloud-y: -10px;
}

.art-cloud {
  animation: float 9s ease-in-out infinite;
}
.art-cloud-back {
  animation: float 12s ease-in-out infinite reverse;
}
.art-sun .rays {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 70s linear infinite;
}
.art-sun {
  animation: breathe 7s ease-in-out infinite;
}
.art-moon {
  animation: breathe 9s ease-in-out infinite;
}

.drop {
  animation: rainfall 1.25s linear infinite;
  transform-box: fill-box;
}
.d1 { animation-delay: 0s; }
.d2 { animation-delay: 0.32s; }
.d3 { animation-delay: 0.16s; }
.d4 { animation-delay: 0.48s; }
.d5 { animation-delay: 0.08s; }
.d6 { animation-delay: 0.64s; }
.d7 { animation-delay: 0.4s; }

.flake {
  animation: snowfall 5.5s linear infinite;
  transform-box: fill-box;
}
.f1 { animation-delay: 0s; }
.f2 { animation-delay: 1.4s; }
.f3 { animation-delay: 0.7s; }
.f4 { animation-delay: 2.1s; }
.f5 { animation-delay: 1.9s; }

.art-bolt path {
  animation: flash 4.2s ease-in-out infinite;
}
.mist {
  animation: drift 9s ease-in-out infinite;
}
.m2 { animation-delay: 1.2s; }
.m3 { animation-delay: 2.2s; }
.bird {
  animation: fly 6s ease-in-out infinite;
}
.b2 { animation-delay: 1.1s; }

@keyframes float {
  0%,
  100% {
    transform: translateY(calc(var(--cloud-y, 0px) - 7px)) scale(var(--cloud-s, 1));
  }
  50% {
    transform: translateY(calc(var(--cloud-y, 0px) + 7px)) scale(var(--cloud-s, 1));
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}
@keyframes rainfall {
  0% {
    transform: translateY(-14px);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    transform: translateY(26px);
    opacity: 0;
  }
}
@keyframes snowfall {
  0% {
    transform: translate(0, -10px) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translate(10px, 34px) rotate(90deg);
    opacity: 0;
  }
}
@keyframes flash {
  0%,
  86%,
  100% {
    opacity: 0;
  }
  88% {
    opacity: 1;
  }
  90% {
    opacity: 0.15;
  }
  92% {
    opacity: 1;
  }
  95% {
    opacity: 0;
  }
}
@keyframes drift {
  0%,
  100% {
    transform: translateX(-8px);
    opacity: 0.5;
  }
  50% {
    transform: translateX(10px);
    opacity: 0.9;
  }
}
@keyframes fly {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-6px, -8px);
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

/* 文字读数区 */
.read {
  padding: 8px 0 12px;
}
.place-sub {
  margin: 0 0 4px;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.now {
  display: flex;
  align-items: flex-start;
  line-height: 0.86;
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.now-temp {
  font-size: clamp(84px, 11vw, 146px);
}
.now-temp .minus {
  font-size: 0.46em;
  vertical-align: 0.14em;
  margin-right: 0.03em;
  opacity: 0.85;
}
.now-unit {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 600;
  margin-top: 0.16em;
  opacity: 0.55;
}
.now-cond {
  margin: 10px 0 0;
  font-size: clamp(19px, 1.9vw, 26px);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.now-range {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.now-note {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--ink-2);
  opacity: 0.72;
  line-height: 1.7;
}

/* ------------------------------------------------------------ 5. 七天预报 */
.panel {
  width: 100%;
  max-width: 1160px;
  margin: clamp(14px, 3vh, 38px) auto auto;
  padding: 0 24px 8px;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.panel-head h2 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-2);
}
.stamp {
  font-size: 12px;
  color: var(--ink-2);
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}

.days {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.day {
  background: var(--card);
  border: 1.5px solid var(--card-line);
  /* 不规则圆角，模拟手绘边框 */
  border-radius: 19px 15px 21px 16px / 16px 21px 15px 19px;
  padding: 13px 6px 12px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
  animation: rise 0.5s var(--ease) backwards;
}
.day:hover {
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-4px) rotate(-0.7deg);
}
body[data-mood="night"] .day:hover {
  background: rgba(255, 255, 255, 0.13);
}
.day.is-today {
  border-color: rgba(229, 164, 40, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 201, 77, 0.14);
}

.day-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.day-date {
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.day-icon {
  display: block;
  width: 38px;
  height: 38px;
  margin: 8px auto 6px;
}
.day-cond {
  font-size: 11.5px;
  color: var(--ink-2);
  margin-bottom: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.day-temp {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}
.day-max {
  font-size: 17px;
  font-weight: 800;
}
.day-min {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 600;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.foot {
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-2);
  opacity: 0.6;
  padding: 6px 24px 20px;
}

/* 小图标配色 */
.ic-sun-fill { fill: var(--sun-fill); }
.ic-line { stroke: var(--ink); }
.ic-cloud-fill { fill: var(--cloud-top); }
.ic-cloud-line { stroke: var(--cloud-line); }
.ic-rain { stroke: var(--rain); }
.ic-snow { stroke: var(--snow); }
.ic-bolt { fill: var(--bolt); }
.ic-fog { stroke: var(--fog); }

/* -------------------------------------------------------- 6. 城市选择面板 */
.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet-wrap[hidden] {
  display: none;
}
.veil {
  position: absolute;
  inset: 0;
  background: rgba(18, 28, 42, 0.34);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.sheet-wrap.is-open .veil {
  opacity: 1;
}

.sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--sheet-bg);
  border-radius: 26px 26px 0 0;
  padding: 10px 20px 26px;
  box-shadow: 0 -18px 50px -20px rgba(15, 25, 40, 0.45);
  transform: translateY(100%);
  transition: transform 0.42s var(--ease);
}
.sheet-wrap.is-open .sheet {
  transform: translateY(0);
}

.grip {
  width: 44px;
  height: 4px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.16;
  margin: 4px auto 12px;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet-head h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0.04em;
}
.close {
  border: none;
  background: transparent;
  color: var(--ink-2);
  font-size: 26px;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}
.close:hover {
  background: rgba(120, 140, 160, 0.12);
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 10px;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1.5px solid rgba(34, 48, 63, 0.18);
  background: #fff;
  color: #22303f;
}
.search input {
  flex: 1;
  border: none;
  outline: none;
  font: inherit;
  font-size: 15px;
  background: transparent;
  color: inherit;
}
.search input::-webkit-search-cancel-button {
  display: none;
}
.search input::placeholder {
  color: #9aa9b8;
}
.search .clear {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: #8c9aa8;
  cursor: pointer;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 14px;
}
.chip {
  border: 1.5px solid color-mix(in srgb, currentColor 22%, transparent);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  padding: 6px 13px;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.chip:hover {
  background: rgba(120, 150, 190, 0.14);
  transform: translateY(-1px);
}

.results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 11px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.result:hover,
.result.is-active {
  background: rgba(120, 150, 190, 0.14);
}
.result-name {
  font-size: 15px;
  font-weight: 600;
}
.result-sub {
  margin-left: auto;
  font-size: 12.5px;
  color: #8394a4;
}
.hint {
  font-size: 12.5px;
  color: var(--ink-2);
  opacity: 0.75;
  text-align: center;
  margin: 14px 0 0;
}

/* 轻提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  z-index: 60;
  max-width: min(88vw, 420px);
  padding: 11px 20px;
  border-radius: 99px;
  background: rgba(28, 40, 58, 0.92);
  color: #f4f8ff;
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------------------------- 7. 响应式与无障碍 */@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-top: 0;
    gap: 0;
  }
  .art-wrap {
    margin-left: 0;
    width: min(100%, 420px);
  }
  .now {
    justify-content: center;
  }
  .now-temp {
    font-size: clamp(76px, 20vw, 112px);
  }
  .read {
    padding-bottom: 18px;
  }
  .now-note {
    display: none;
  }
  .days {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 88px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .days::-webkit-scrollbar {
    display: none;
  }
  .day {
    scroll-snap-align: start;
  }
  .panel-head {
    margin-bottom: 10px;
  }
}

@media (max-width: 420px) {
  .bar {
    padding: 16px 16px 0;
  }
  .hero,
  .panel {
    padding-left: 16px;
    padding-right: 16px;
  }
  .place {
    font-size: 15.5px;
  }
}

@media (min-width: 861px) {
  .sheet-wrap {
    align-items: center;
  }
  .sheet {
    border-radius: 26px;
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
  }
  .sheet-wrap.is-open .sheet {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  .grip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.05ms !important;
  }
}
