*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%;overflow:hidden}
body{font-family:"PingFang SC","Microsoft YaHei",sans-serif;background:#0d1520;color:#fff;display:flex;align-items:center;justify-content:center;padding:16px;position:relative}

/* 雨天背景 */
.rain-bg{position:fixed;inset:0;z-index:0;overflow:hidden;background:linear-gradient(160deg,#1e3a4a,#0d1f2d,#0a1520)}
#rainCanvas{width:100%;height:100%}

/* 天气卡片 - 玻璃窗雨珠效果 */
.weather-card{width:100%;max-width:680px;z-index:1;position:relative;border-radius:18px;padding:0;overflow:hidden;box-shadow:0 12px 40px rgba(0,0,0,.6);border:1px solid rgba(255,255,255,.1)}

/* 卡片内玻璃雨珠层 */
.glass-layer{position:relative;overflow:hidden;border-radius:18px;min-height:420px;display:flex;flex-direction:column}
#glassCanvas{position:absolute;inset:0;z-index:0;pointer-events:none}

.weather-content{position:relative;z-index:1;padding:24px 20px;flex:1;display:flex;flex-direction:column}

.weather-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;font-size:14px;color:rgba(255,255,255,.8)}
.city{font-weight:600;color:#fff;font-size:17px;text-shadow:0 1px 4px rgba(0,0,0,.5)}
.arrow{font-size:10px;opacity:.7;margin-left:4px}
.update-time{font-size:12px;opacity:.7;text-shadow:0 1px 2px rgba(0,0,0,.5)}

.weather-main{display:flex;align-items:center;gap:20px;margin-bottom:28px}
.temp-big{font-size:76px;font-weight:100;line-height:1;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.4)}
.weather-desc{font-size:16px;color:#fff;margin-bottom:10px;display:flex;align-items:center;flex-wrap:wrap;gap:4px;text-shadow:0 1px 4px rgba(0,0,0,.5)}
.aqi{display:inline-block;background:rgba(255,140,30,.9);color:#fff;font-size:12px;padding:2px 8px;border-radius:4px;margin-left:4px;font-weight:600;text-shadow:none}
.weather-detail{font-size:13px;color:rgba(255,255,255,.7);text-shadow:0 1px 2px rgba(0,0,0,.5)}

.hourly-wrap{border-top:1px solid rgba(255,255,255,.1);padding-top:14px;margin-top:auto}
.hourly-labels{display:flex;gap:28px;font-size:12px;color:rgba(255,255,255,.5);margin-bottom:14px;padding-left:4px}
.hourly-scroll{display:flex;overflow-x:auto;gap:0;padding-bottom:8px;scrollbar-width:none}
.hourly-scroll::-webkit-scrollbar{display:none}
.hour-item{flex:0 0 auto;width:62px;text-align:center}
.hour-time{font-size:13px;color:rgba(255,255,255,.8);margin-bottom:10px;text-shadow:0 1px 2px rgba(0,0,0,.4)}
.hour-icon{font-size:20px;margin-bottom:8px;min-height:24px}
.hour-rain{font-size:11px;color:#9fd3e8;margin-bottom:10px;min-height:14px}
.hour-temp{font-size:17px;color:#fff;margin-bottom:10px;font-weight:500;text-shadow:0 1px 2px rgba(0,0,0,.4)}
.hour-aqi{display:inline-block;font-size:10px;padding:2px 8px;border-radius:4px;font-weight:600}
.aqi-good{background:rgba(100,200,80,.9);color:#fff}
.aqi-mid{background:rgba(255,140,30,.9);color:#fff}

@media(max-width:600px){
  .temp-big{font-size:52px}
  .weather-content{padding:18px 14px}
  .hour-item{width:52px}
  .weather-main{gap:14px}
  .glass-layer{min-height:380px}
}
