@font-face {
  font-family: Barlow;
  src: url(assets/barlow.ttf);
}
@font-face {
  font-family: Barlow;
  src: url(assets/barlow-bold.ttf);
  font-weight: 700 900;
}
:root {
  --dark: #1d3049;
  --muted: #61768a;
  --line: #dce4ed;
  --blue: #37699d;
  --pale: #edf3fa;
  --orange: #d56e40;
  --white: #fff;
  font:
    14px/1.55 Barlow,
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  color: var(--dark);
  background: #f5f8fb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select,
input,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
button:hover:not(:disabled) {
  filter: brightness(0.94);
}
button:disabled {
  cursor: default;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid #f89860;
  outline-offset: 3px;
}
a {
  color: var(--blue);
}
[hidden] {
  display: none !important;
}
.ico {
  vertical-align: middle;
  flex-shrink: 0;
}
button,
.inline,
.badge,
.status,
.brand,
.title-row,
.section-head,
.seg,
.city-list,
.city-line,
.filters,
.head-actions,
.weather-label {
  display: flex;
  align-items: center;
}
button,
.inline,
.weather-label {
  gap: 7px;
}
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner,
main {
  max-width: 1280px;
  padding: 0 46px;
  margin: auto;
}
.header-inner {
  height: 73px;
  display: flex;
  align-items: center;
  gap: 65px;
}
.brand {
  padding: 0;
  gap: 10px;
}
.brand img {
  width: 37px;
  height: 37px;
}
.brand strong {
  font-size: 27px;
  letter-spacing: -1.3px;
  line-height: 1;
}
.header-inner nav,
.bottomnav {
  display: flex;
  gap: 10px;
}
nav button {
  border-radius: 7px;
  padding: 9px 15px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
nav button.active {
  background: #edf3fa;
  color: var(--blue);
}
.share-btn {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 15px;
  background: white;
  font-weight: 600;
}
.title-row {
  justify-content: space-between;
  margin: 28px 0 18px;
  gap: 14px;
}
.eyebrow,
.kicker {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--blue);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: 0.04em;
  line-height: 1.45;
}
.today-date {
  color: #5a6d82;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.today-date span {
  background: #e8eef5;
  color: #5f778f;
  border-radius: 5px;
  font-size: 12px;
  padding: 2px 8px;
}
.city-line {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 17px;
}
.city-list {
  gap: 8px;
}
.city-list button {
  padding: 6px 15px;
  min-height: 34px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: #53687c;
  white-space: nowrap;
}
.city-list button.active {
  background: #355f8d;
  border-color: #355f8d;
  color: white;
}
.text-btn {
  padding: 6px;
  color: var(--blue);
  font-size: 13px;
  white-space: nowrap;
}
.filters {
  justify-content: space-between;
  gap: 8px;
  margin: 17px 0 16px;
}
.seg {
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: #e9eff5;
}
.seg button {
  border-radius: 6px;
  padding: 5px 16px;
  min-height: 32px;
  color: #596d81;
}
.seg button.active {
  background: white;
  color: var(--blue);
  box-shadow: 0 1px 4px #23394d1c;
  font-weight: 700;
}
.seg small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3px;
}
.sessions button.active {
  color: #a35330;
  background: #fff9f3;
}
.top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(285px, 1fr);
  gap: 18px;
}
.hero,
.window,
.panel,
.metric,
.map-wrap {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.hero {
  color: white;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 23px 27px 19px;
  background: #25486b url(assets/sky-theme.jpg) 60% 47% / cover no-repeat;
  isolation: isolate;
}
.hero:before {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #102a45e8 0%, #173248b8 33%, #0f25450d 78%),
    linear-gradient(0deg, #09263cd9, transparent 42%);
}
.hero-top,
.window-head,
.readings,
.section-head,
.panel-top,
.foot-row,
.map-line,
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hero-place {
  font:
    700 12px Barlow,
    sans-serif;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-place b {
  font:
    600 15px "Microsoft YaHei",
    sans-serif;
  letter-spacing: 0;
}
.status {
  background: #152e477d;
  border: 1px solid #ffffff46;
  border-radius: 16px;
  padding: 3px 9px;
  gap: 6px;
  font-size: 11px;
  backdrop-filter: blur(8px);
}
.dot {
  width: 6px;
  height: 6px;
  background: #a8efca;
  border-radius: 50%;
}
.hero-body {
  margin-top: 21px;
}
.hero h2 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
}
.prob-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.number {
  font:
    700 85px/0.98 Barlow,
    sans-serif;
  letter-spacing: -4px;
}
.number small {
  font-size: 35px;
  letter-spacing: -1px;
  margin-left: 4px;
}
.badge {
  background: #ffdcbd;
  color: #713615;
  border-radius: 5px;
  padding: 3px 9px;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
}
.hero p {
  margin: 7px 0 17px;
  max-width: 95%;
  font-size: 13px;
  line-height: 1.65;
  text-shadow: 0 1px 3px #172c40;
}
.scale {
  display: flex;
  gap: 4px;
}
.scale i {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--s);
  position: relative;
}
.scale i.on:after {
  content: "";
  width: 8px;
  height: 8px;
  border: 2px solid white;
  background: var(--s);
  position: absolute;
  right: var(--pos);
  top: 50%;
  transform: translate(50%, -50%);
  border-radius: 100%;
  box-shadow: 0 0 0 2px #0002;
}
.scale-label {
  display: flex;
  justify-content: space-between;
  color: #eff5fb;
  font-size: 10px;
  margin-top: 5px;
}
.window,
.panel,
.metric,
.map-wrap {
  background: #fff;
  border: 1px solid var(--line);
}
.window {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
}
.window h2,
.panel h2 {
  font-size: 18px;
}
.window-head .ico {
  color: var(--orange);
}
.tiny {
  font-size: 11px;
  color: var(--muted);
}
.solar-timeline {
  grid-column: 1/-1;
  margin: 8px 0;
}
.timeline-meta,
.timeline-ticks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #657789;
  font-size: 11px;
}
.timeline-meta output {
  font:
    700 17px Barlow,
    sans-serif;
  color: #a95729;
  font-variant-numeric: tabular-nums;
}
.solar-track {
  position: relative;
  margin: 8px 15px 0;
  height: 55px;
}
.solar-track > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.sun-cursor {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-content: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #fff3df;
  color: #c8792e;
  box-shadow: 0 1px 4px #925a322b;
  pointer-events: none;
}
.sun-cursor svg {
  fill: #ffc77b;
}
#sun-time {
  position: absolute;
  inset: -8px 0;
  width: 100%;
  height: calc(100% + 16px);
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: none;
}
.solar-track:focus-within .sun-cursor {
  outline: 2px solid #b57641;
  outline-offset: 2px;
}
.timeline-ticks {
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}
.timeline-empty {
  grid-column: 1/-1;
  padding: 16px;
}
.time-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #edf0f4;
  padding: 10px 0;
}
.time-box b,
.time-reading {
  font:
    700 27px/1 Barlow,
    sans-serif;
  color: #243e59;
}
.time-box span,
.window-call span {
  color: #657487;
  font-size: 12px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.window-call {
  border: 1px solid #f3dac6;
  border-radius: 9px;
  background: #fff6ec;
  padding: 11px 13px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.window-call span,
.window-call strong {
  color: #9e512c;
}
.window-call strong {
  font:
    700 24px/1.1 Barlow,
    sans-serif;
}
.section-head {
  margin: 25px 0 13px;
}
.section-head h2 {
  font-size: 21px;
}
.section-head h2 small {
  font:
    700 11px Barlow,
    sans-serif;
  letter-spacing: 1.5px;
  color: #7e91a5;
  margin-left: 10px;
}
.section-head button {
  font-size: 12px;
  color: var(--blue);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.metric {
  padding: 15px 17px;
  border-radius: 12px;
}
.weather-label {
  font-size: 13px;
  color: #566b7e;
}
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  color: var(--t);
  background: var(--bg);
}
.reading {
  font:
    700 29px/1.25 Barlow,
    "Microsoft YaHei",
    sans-serif;
  letter-spacing: -0.7px;
  margin: 7px 0 4px;
}
.reading small {
  font-size: 14px;
  font-weight: 500;
  margin-left: 3px;
}
.reading em {
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 7px;
  color: var(--muted);
}
.metric p,
.panel p,
.empty,
.foot-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}
.lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.panel {
  padding: 20px 22px;
}
.panel-top {
  margin-bottom: 13px;
}
.panel-top > .ico {
  color: var(--blue);
}
.spot {
  width: 100%;
  text-align: left;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  gap: 10px;
}
.spot .ico:last-child {
  margin-left: auto;
}
.primary,
.secondary {
  padding: 9px 15px;
  border-radius: 8px;
  font-weight: 600;
}
.primary {
  background: var(--blue);
  color: white;
}
.secondary {
  border: 1px solid var(--line);
  background: white;
}
.feedback-btn {
  margin: 12px 0 6px;
}
.foot-row {
  margin-top: 27px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}
.foot-note {
  font-size: 11px;
}
.foot-row button {
  flex-shrink: 0;
}
footer {
  padding-bottom: 20px;
}
.bottomnav {
  display: none;
}
.toast {
  position: fixed;
  z-index: 9999;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 16px;
  color: white;
  background: #223c55;
  border-radius: 8px;
  max-width: 90%;
  width: max-content;
  box-shadow: 0 3px 20px #22334422;
  pointer-events: none;
}
.toast:empty {
  display: none;
}
dialog {
  border: 0;
  border-radius: 17px;
  padding: 0;
  color: var(--dark);
  width: min(440px, calc(100% - 26px));
  max-height: 88dvh;
  box-shadow: 0 18px 80px #142a4266;
}
dialog::backdrop {
  background: #11283c7a;
  backdrop-filter: blur(3px);
}
#modal-content {
  padding: 23px;
}
.modal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.modal-title h2 {
  font-size: 21px;
}
.modal-title button,
.square {
  width: 34px;
  height: 34px;
  display: grid;
  place-content: center;
  background: #eff4f8;
  border-radius: 7px;
}
.form label {
  display: block;
  font-weight: 600;
  margin: 10px 0 4px;
}
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}
.form textarea {
  resize: vertical;
}
.form .primary {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}
.poster {
  width: 100%;
  border-radius: 10px;
}
.action-row {
  margin-top: 15px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.source-row {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.source-row strong {
  display: block;
}
.source-row p,
.form-msg {
  font-size: 13px;
  color: var(--muted);
}
.map-wrap {
  padding: 15px;
}
.map-layers {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.map-layers button,
.map-tools button {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 10px;
  background: white;
  font-size: 12px;
}
.map-layers button.active {
  background: var(--blue);
  color: white;
}
.map-frame {
  isolation: isolate;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.map {
  height: 480px;
  background: #e4edf0;
}
.map-tools {
  position: absolute;
  right: 11px;
  top: 11px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.map-tools button {
  padding: 8px;
  justify-content: center;
}
.map-line {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.map-wrap.expanded {
  position: fixed;
  inset: 0;
  z-index: 9000;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}
.expanded .map-frame,
.expanded .map {
  flex: 1;
  height: 100%;
}
.map-pin {
  border: 2px solid white;
  background: #d36b3f;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 2px 6px #27384e66;
}
.pop h3 {
  font-size: 15px;
}
.pop a {
  display: inline-block;
  margin: 5px 0;
  color: #346c9e;
}
.legend {
  display: inline-block;
  width: 68px;
  height: 7px;
  border-radius: 5px;
  background: linear-gradient(90deg, #70b8a2, #ebd278, #ef9e64, #db6858);
  margin: 0 4px;
}
.sat-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.sat-controls select,
.sat-controls button {
  border: 1px solid var(--line);
  padding: 5px;
  border-radius: 5px;
  background: white;
}
.sat-controls input {
  width: min(25%, 150px);
}
.leaflet-container,
.leaflet-popup-content {
  font-family: Barlow, "Microsoft YaHei", sans-serif !important;
}
.map-val {
  border-radius: 14px;
  border: 1px solid #fff;
  background: #fffdf2df;
  color: #644226;
  text-align: center;
  font-weight: bold;
  white-space: nowrap;
}
.poster-link {
  display: inline-block;
  text-decoration: none;
}
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1450px) {
  .hero {
    min-height: 338px;
  }
}
@media (max-width: 950px) {
  .header-inner,
  main {
    padding: 0 25px;
  }
  .top-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(265px, 1fr);
  }
  .city-list {
    gap: 5px;
  }
  .city-list button {
    padding: 6px 12px;
  }
  .window {
    padding: 18px;
  }
  .window-call {
    flex-wrap: wrap;
  }
  .metric-grid {
    gap: 8px;
  }
  .metric {
    padding: 13px;
  }
  .today-date {
    font-size: 12px;
  }
}
@media (max-width: 700px) {
  :root {
    font-size: 13px;
  }
  .header-inner,
  main {
    padding: 0 15px;
  }
  .header-inner {
    height: 53px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .brand strong {
    font-size: 23px;
  }
  .header-inner nav {
    display: none;
  }
  .share-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  .title-row {
    margin: 13px 0 10px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.7px;
  }
  h1 {
    font-size: 24px;
  }
  .today-date {
    font-size: 11px;
    gap: 4px;
    display: block;
    text-align: right;
  }
  .today-date .ico {
    display: none;
  }
  .today-date span {
    margin-left: 3px;
    font-size: 10px;
  }
  .city-line {
    display: block;
    padding-bottom: 8px;
    position: relative;
  }
  .city-list {
    overflow: auto;
    scrollbar-width: none;
    gap: 5px;
    padding-right: 44px;
  }
  .city-list button {
    font-size: 12px;
    padding: 6px 10px;
    min-height: 32px;
  }
  .city-line > .text-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 33px;
    width: 32px;
    justify-content: center;
    background: #f5f8fb;
    box-shadow: -7px 0 8px #f5f8fb;
  }
  .city-line > .text-btn span {
    display: none;
  }
  .filters {
    margin: 9px 0;
    gap: 5px;
  }
  .seg {
    gap: 0;
    padding: 2px;
  }
  .seg button {
    min-height: 33px;
    padding: 4px 10px;
    font-size: 12px;
  }
  .seg small {
    display: none;
  }
  .top-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .hero {
    min-height: 234px;
    padding: 16px 17px 13px;
    border-radius: 12px;
    background-position: 62% 43%;
  }
  .hero-body {
    margin-top: 11px;
  }
  .hero h2 {
    font-size: 13px;
  }
  .number {
    font-size: 64px;
  }
  .number small {
    font-size: 27px;
  }
  .hero p {
    font-size: 12px;
    line-height: 1.5;
    margin: 6px 0 12px;
  }
  .hero-place {
    font-size: 10px;
  }
  .hero-place b {
    font-size: 13px;
  }
  .window {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 5px 10px;
    padding: 11px 14px;
    border-radius: 12px;
  }
  .window-head {
    grid-column: 1/-1;
  }
  .window h2 {
    font-size: 14px;
  }
  .solar-timeline {
    margin: 2px 0 4px;
  }
  .solar-track {
    height: 40px;
  }
  .time-box {
    padding: 5px 0 0;
    display: block;
    border: 0;
  }
  .time-box b {
    font-size: 23px;
  }
  .time-box span,
  .window-call span {
    font-size: 10px;
  }
  .window-call {
    display: block;
    margin: 0;
    padding: 5px 9px;
  }
  .window-call strong {
    font-size: 22px;
  }
  .section-head {
    margin: 18px 0 9px;
  }
  .section-head h2 {
    font-size: 18px;
  }
  .section-head h2 small {
    font-size: 9px;
    letter-spacing: 1px;
    margin-left: 5px;
  }
  .section-head button {
    font-size: 11px;
  }
  .metric-grid,
  .lower-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    padding: 11px;
    border-radius: 10px;
  }
  .reading {
    font-size: 24px;
  }
  .metric p {
    font-size: 11px;
  }
  .lower-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .panel {
    padding: 14px;
  }
  .bottomnav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: center;
    z-index: 800;
    background: #ffffffee;
    border-top: 1px solid var(--line);
    padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
    backdrop-filter: blur(8px);
  }
  .bottomnav button {
    width: 44%;
    padding: 3px;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    font-size: 10px;
  }
  .bottomnav button.active {
    background: transparent;
  }
  .bottomnav button.active .ico {
    color: #356b9d;
  }
  .foot-row {
    display: block;
  }
  footer {
    padding-bottom: 70px;
  }
  .toast {
    bottom: 68px;
  }
  .map-wrap {
    padding: 9px;
  }
  .map {
    height: max(335px, 54dvh);
  }
  .map-layers button {
    padding: 6px;
    font-size: 11px;
  }
  .map-layers {
    gap: 4px;
  }
  .hero-top .status {
    font-size: 10px;
  }
  .map-line {
    font-size: 11px;
  }
}
@media (max-width: 370px) {
  .seg button {
    padding: 4px 7px;
  }
  .hero {
    min-height: 218px;
  }
  .hero p {
    font-size: 11px;
  }
  .today-date span {
    display: none;
  }
  .window-call strong {
    font-size: 18px;
  }
  .section-head h2 small {
    display: none;
  }
}
@media (max-width: 700px) {
  .city-list {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 4px;
    padding-right: 33px;
    overflow: visible;
  }
  .city-list button {
    justify-content: center;
    padding: 6px 1px;
  }
  .city-list button .ico {
    display: none;
  }
}

@media (max-width: 359px) {
  .city-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.forecast-disclaimer {
  margin-top: 24px;
  font-size: 13px;
  color: #666;
  text-align: center;
  line-height: 1.7;
}

.section-head h2 #metric-time {
  display: inline;
  font-size: 11px;
  letter-spacing: 0;
  white-space: nowrap;
}
