:root { color-scheme: light; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; color: #172033; background: #eef4ff; }
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; min-height: 100vh; background: radial-gradient(circle at 12% 5%, #d6eaff 0, transparent 28rem), radial-gradient(circle at 92% 12%, #e8ddff 0, transparent 30rem), linear-gradient(135deg, #f4f8ff, #fbfcff 45%, #f2efff); }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 54px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #162238; text-decoration: none; font-size: 22px; letter-spacing: 0; }
.brand span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #207bff, #7562ed); color: white; font-weight: 850; box-shadow: 0 10px 24px #327cff4d; }
.location-search { display: flex; width: min(520px, 100%); padding: 5px; border: 1px solid #d8e2f2; border-radius: 14px; background: #ffffffcc; box-shadow: 0 8px 30px #6c85ad12; }
.location-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 10px 13px; background: transparent; color: #172033; }
.location-search button { border: 0; border-radius: 10px; padding: 10px 16px; background: #1d73e8; color: #fff; font-weight: 700; }
.surface { border: 1px solid #dce5f4; border-radius: 20px; background: #ffffffc9; box-shadow: 0 18px 40px #2d4e7c14; backdrop-filter: blur(16px); }
.hero { position: relative; overflow: hidden; display: flex; min-height: 242px; justify-content: space-between; gap: 34px; padding: 32px; background: linear-gradient(125deg, #1f71e5, #5289ec 49%, #8179e9); color: #fff; border: 0; }
.hero::after { position: absolute; right: -80px; bottom: -110px; width: 340px; height: 340px; border: 1px solid #ffffff4d; border-radius: 50%; box-shadow: 0 0 0 46px #ffffff12, 0 0 0 100px #ffffff0d; content: ""; }
.hero-copy, .now-stats { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 8px; color: #6d7f9c; font-size: 12px; font-weight: 800; letter-spacing: 1.1px; }
.hero .eyebrow { color: #dce9ff; }
.current-line { display: flex; align-items: center; gap: 18px; }
.weather-icon { display: inline-grid; place-items: center; font-family: system-ui, sans-serif; }
.weather-icon.large { width: 74px; height: 74px; font-size: 55px; filter: drop-shadow(0 8px 12px #183a8540); }
.current-line strong { font-size: clamp(58px, 7vw, 88px); line-height: 1; letter-spacing: 0; }
h1, h2, p { margin: 0; }
h1 { font-size: 26px; letter-spacing: 0; }
.current-line p, .update { color: #e8f0ff; }
.update { margin-top: 22px; font-size: 13px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-actions .update { margin-top: 22px; }
.subscribe-button { margin-top: 22px; border: 1px solid #ffffff66; border-radius: 999px; padding: 8px 13px; background: #ffffff22; color: #fff; font-size: 13px; font-weight: 750; backdrop-filter: blur(8px); }
.subscribe-button:hover { background: #ffffff35; }
.now-stats { display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); align-content: center; gap: 12px; min-width: 292px; }
.now-stats div { padding: 13px 15px; border: 1px solid #ffffff38; border-radius: 13px; background: #113e8b2b; }
.now-stats dt { color: #d6e4ff; font-size: 12px; }
.now-stats dd { margin: 5px 0 0; font-size: 16px; font-weight: 750; }
.quick-cities { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 18px 0 26px; }
.quick-cities span { color: #5f718c; font-size: 13px; font-weight: 700; margin-right: 4px; }
.quick-cities button { border: 1px solid #d7e2f3; border-radius: 999px; padding: 7px 13px; background: #fff9; color: #426184; transition: .18s; }
.quick-cities button:hover { border-color: #2676e8; color: #1765cd; transform: translateY(-1px); }
.forecast-section { margin-top: 18px; padding: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 19px; }
.section-head h2 { color: #19263a; font-size: 21px; letter-spacing: 0; }
.section-head > span { color: #73839b; font-size: 13px; }
.hourly-list, .daily-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); overflow-x: auto; gap: 10px; padding-bottom: 3px; scrollbar-color: #b7c8e3 transparent; }
.hour-card, .day-card { min-height: 152px; padding: 14px 10px; border: 1px solid #e0e8f4; border-radius: 14px; background: linear-gradient(145deg, #fbfdff, #f1f6ff); text-align: center; }
.hour-card.active { border-color: #4e91f0; background: linear-gradient(145deg, #edf6ff, #e8f0ff); }
.hour-card time, .day-card time { display: block; color: #60738f; font-size: 13px; font-weight: 700; }
.hour-card .weather-icon, .day-card .weather-icon { margin: 9px auto; font-size: 30px; }
.hour-card strong { color: #1d3354; font-size: 20px; }
.hour-card small, .day-card small { display: block; margin-top: 7px; color: #687b96; font-size: 12px; }
.day-card { display: grid; min-height: 180px; align-content: start; grid-template-rows: auto auto auto 1fr auto; text-align: left; }
.day-card .weather-icon { margin: 9px 0; }
.day-card h3 { margin: 0; color: #263952; font-size: 14px; }
.day-card p { margin: 5px 0 12px; color: #6c7e98; font-size: 12px; }
.temperatures { align-self: end; color: #203755; font-size: 16px; font-weight: 800; }
.temperatures span { margin-left: 6px; color: #7890b0; font-size: 13px; }
.loading { display: grid; min-height: 130px; place-items: center; color: #70829b; grid-column: 1 / -1; }
.source { margin-top: 24px; text-align: center; color: #8997ab; font-size: 12px; }
.toast { position: fixed; z-index: 5; left: 50%; bottom: 26px; max-width: min(420px, calc(100% - 32px)); padding: 11px 16px; border-radius: 10px; background: #17233a; color: #fff; opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (max-width: 720px) { .shell { width: min(100% - 24px, 620px); padding-top: 16px; } .topbar, .hero { align-items: stretch; flex-direction: column; } .topbar { margin-bottom: 18px; } .location-search { width: 100%; } .hero { padding: 24px; min-height: auto; } .now-stats { min-width: 0; } .forecast-section { padding: 18px; } .hourly-list, .daily-list { grid-auto-columns: 92px; } .hero-actions { justify-content: space-between; } }
