@charset "utf-8";

[hidden] {
  display: none !important;
}


.wx-page {
  --wx-bg: #f6f9ff;
  --wx-panel: #fff;
  --wx-panel-border: #e7edf5;
  --wx-accent: var(--brand-primary, #4da3ff);
  --wx-accent-light: var(--brand-glow, #8bd5ff);
  --wx-text: #1d1d1f;
  --wx-muted: #86868b;
  --wx-dark: #1f315e;
  --wx-radius: 14px;
  --wx-shadow: 0 8px 28px rgba(31, 49, 94, 0.06);
  /* 兜底栈；有 atmosphere 时由 OS 选择器覆盖 --wx-font-* */
  --wx-font-ui: "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --wx-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background: var(--wx-bg);
  color: var(--wx-text);
  min-height: 100vh;
  font-family: var(--wx-font-ui);
}

body.wx-page,
body.page-body.wx-page,
body.wx-page :is(h1, h2, h3, h4, h5, h6, strong) {
  font-family: var(--wx-font-ui) !important;
}


.wx-hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 48px;
  min-height: 560px;
  background-color: #eef4fc;
}

.wx-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(246, 249, 255, 0.72) 0%,
    rgba(246, 249, 255, 0.85) 50%,
    rgba(246, 249, 255, 0.97) 100%
  );
  pointer-events: none;
}

.wx-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: min(1120px, calc(100vw - 96px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.wx-hero-inner.page-container {
  width: min(1120px, calc(100vw - 96px));
  max-width: none;
}

.wx-hero-inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: min(92%, 880px);
  height: 62%;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(33, 61, 82, 0.12) 0%, rgba(33, 61, 82, 0) 72%);
  pointer-events: none;
  z-index: -1;
}

.wx-detail-top-bar {
  width: 100%;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  margin-bottom: 4px;
}

.wx-detail-top-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.wx-detail-search {
  position: relative;
  flex-shrink: 0;
}

.wx-detail-search-form {
  display: flex;
  align-items: center;
  height: 36px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  box-shadow: none;
  transition:
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wx-detail-search-form:hover,
.wx-detail-search-form:focus-within,
.wx-detail-search-form.is-expanded {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wx-detail-search-input {
  width: 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-weight: 400;
  color: #ffffff;
  opacity: 0;
  transition:
    width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.wx-detail-search-form:hover .wx-detail-search-input,
.wx-detail-search-form:focus-within .wx-detail-search-input,
.wx-detail-search-form.is-expanded .wx-detail-search-input {
  width: 148px;
  padding-left: 14px;
  opacity: 1;
}

.wx-detail-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.wx-detail-search-input:focus {
  outline: none;
}

.wx-detail-search-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.wx-detail-search-trigger:hover {
  opacity: 0.85;
}

.wx-detail-search-trigger-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transform: translateY(-1px);
  pointer-events: none;
}

.wx-detail-search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  min-width: 320px;
  max-width: min(420px, calc(100vw - 32px));
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 30;
  max-height: 320px;
  overflow-y: auto;
}

.wx-detail-search-suggest .wx-search-suggest-head {
  padding: 8px 12px 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  list-style: none;
  cursor: default;
}

.wx-detail-search-suggest li button .wx-suggest-line {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
}

.wx-detail-search-suggest li button {
  color: #ffffff;
}

.wx-detail-search-suggest li button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.wx-detail-top-tools .wx-lang-toggle.wx-detail-lang {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 36px;
  padding: 3px;
  gap: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: none;
  box-sizing: border-box;
}

.wx-detail-top-tools .wx-detail-lang .wx-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border: none;
  border-radius: 15px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.wx-detail-top-tools .wx-detail-lang .wx-lang-btn:hover:not(.active) {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
}

.wx-detail-top-tools .wx-detail-lang .wx-lang-btn.active {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.wx-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--wx-text);
  outline: none;
  min-width: 0;
}

.wx-search-input::placeholder {
  color: var(--wx-muted);
}

.wx-search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--wx-panel-border);
  border-radius: 12px;
  box-shadow: var(--wx-shadow);
  z-index: 20;
  max-height: 320px;
  overflow-y: auto;
}

.wx-search-suggest .wx-search-suggest-head {
  padding: 8px 12px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--wx-muted);
  list-style: none;
  cursor: default;
}

.wx-search-suggest li button .wx-suggest-line {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
}

.wx-search-suggest li button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--wx-text);
  cursor: pointer;
}

.wx-search-suggest li button:hover {
  background: #f0f6ff;
}

.wx-detail-search .wx-search-suggest {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.wx-detail-search .wx-search-suggest li button {
  color: #ffffff;
}

.wx-detail-search .wx-search-suggest li button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.wx-search-suggest .wx-search-no-match {
  color: rgba(255, 255, 255, 0.7);
}


.wx-current {
  text-align: center;
  width: 100%;
  max-width: 420px;
  margin: 36px auto 0;
}

.wx-location {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 38px;
  line-height: 38px;
}

.wx-location-zh,
.wx-location-en {
  font-size: 32px;
  font-weight: 700;
  color: var(--wx-dark);
  letter-spacing: 0.02em;
  line-height: 38px;
  height: 38px;
  display: inline-block;
}

.wx-current-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.wx-current-icon {
  width: 104px;
  height: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wx-current-icon .wx-weather-icon {
  width: 104px;
  height: 104px;
}


.wx-current-icon .wx-weather-icon--hero {
  object-fit: contain;
  background: transparent;
}

.wx-current-temp {
  font-size: 96px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -3px;
  color: var(--wx-dark);
  text-shadow: none;
}

.wx-current-temp sup {
  font-size: 28px;
  font-weight: 400;
  vertical-align: super;
  letter-spacing: 0;
  color: var(--wx-muted);
}

.wx-current-desc {
  margin: 14px 0 0;
  font-size: 18px;
  color: #344054;
  height: 24px;
  line-height: 24px;
  display: block;
}

.wx-current-updated {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--wx-muted);
  min-height: 18px;
  line-height: 18px;
  display: block;
}

.wx-current-local-clock {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #475467;
  line-height: 18px;
}

.wx-current-hilo {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: #475467;
  line-height: 1.4;
}

.wx-current-no-alert {
  color: var(--wx-muted);
  opacity: 0.72;
}

.wx-hero-alert-wrap {
  width: 100%;
  max-width: 920px;
  margin: 32px auto 0;
}

.wx-hero-alert-wrap[hidden] {
  display: none !important;
}

.wx-hero-alert-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid var(--alert-accent, #f2994a);
  border-radius: 14px;
  background: var(--surface-alert-bar, rgba(255, 255, 255, 0.12));
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 40px rgba(0, 0, 0, 0.22);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wx-hero-alert-bar:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
}

.wx-hero-alert-bar__accent {
  display: none;
}

.wx-hero-alert-bar__icon {
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
}

.wx-hero-alert-bar__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wx-hero-alert-bar__title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
}

.wx-hero-alert-bar__meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.74);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wx-hero-alert-bar__action {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.74);
  white-space: nowrap;
  flex-shrink: 0;
}

#wx-quick-weather-strip {
  width: 100%;
  max-width: 900px;
  margin: 20px auto 0;
}

.wx-quick-weather-strip {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 68px;
  margin: 0 auto;
  border-radius: 16px;
  background: var(--glass-bg, rgba(255, 255, 255, 0.08));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 20px 60px rgba(0, 0, 0, 0.35);
}

.wx-qws-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 12px 8px;
  min-width: 0;
}

.wx-qws-label {
  font-size: 12px;
  color: #667085;
  white-space: nowrap;
  line-height: 1.2;
}

.wx-qws-value {
  font-size: 15px;
  font-weight: 700;
  color: #1d2939;
  white-space: nowrap;
  overflow: visible;
  line-height: 1.3;
  text-align: center;
}

.wx-qws-item[style*="--qws-accent"] .wx-qws-value {
  color: var(--qws-accent);
}

.wx-qws-divider {
  width: 1px;
  height: 28px;
  align-self: center;
  margin: 0;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}


.wx-alert-modal-card {
  max-width: 760px;
  width: min(760px, calc(100vw - 48px));
  background: var(--surface-alert-modal, rgba(255, 255, 255, 0.14));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 20px;
  color: #fff;
}

.wx-alert-modal-body {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0 24px 24px;
  max-height: min(70vh, 560px);
  overflow: hidden;
}

.wx-alert-modal-body.is-solo .wx-alert-modal-detail {
  padding-left: 0;
}

.wx-alert-modal-nav {
  width: 236px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 16px;
  margin-right: 16px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  overflow-y: auto;
}

.wx-alert-modal-nav[hidden] {
  display: none !important;
}

.wx-alert-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  transition: background 0.15s ease;
}

.wx-alert-nav-item:hover {
  background: rgba(15, 23, 42, 0.04);
}

.wx-alert-nav-item.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.98);
}

.wx-alert-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--alert-accent, #ff7e00);
  flex-shrink: 0;
}

.wx-alert-nav-title {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.wx-alert-modal-detail {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding-left: 4px;
}

.wx-alert-modal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 4px;
}

.wx-alert-level-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.98);
  background: color-mix(in srgb, var(--alert-accent, #ff7e00) 22%, rgba(255, 255, 255, 0.1));
  border: 1px solid color-mix(in srgb, var(--alert-accent, #ff7e00) 40%, rgba(255, 255, 255, 0.18));
}

.wx-alert-modal-alert-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.98);
  flex: 1;
  min-width: 0;
}

.wx-alert-modal-status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.wx-alert-modal-status-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.wx-alert-modal-status--new .wx-alert-modal-status-dot {
  background: #22c55e;
}

.wx-alert-modal-status--update .wx-alert-modal-status-dot {
  background: #3b82f6;
}

.wx-alert-modal-status--cancel .wx-alert-modal-status-dot {
  background: #94a3b8;
}

.wx-alert-modal-status--unknown .wx-alert-modal-status-dot {
  background: #cbd5e1;
}

.wx-alert-modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 8px 0 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.wx-alert-modal-type {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.wx-alert-modal-source,
.wx-alert-modal-time {
  margin: 0 0 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.wx-alert-modal-meta .wx-alert-modal-source {
  margin: 0;
}

.wx-alert-modal-range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 6px 0 10px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.78);
}

.wx-alert-modal-range-sep {
  color: rgba(255, 255, 255, 0.45);
}

.wx-alert-modal-summary {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wx-alert-area-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.wx-alert-modal-text {
  white-space: pre-wrap;
}

.wx-alert-modal-section {
  margin-top: 16px;
}

.wx-alert-modal-section h5 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
}

.wx-alert-modal-section p,
.wx-alert-modal-section ol {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.wx-alert-modal-section ol {
  padding-left: 18px;
}

.wx-alert-modal-link-wrap {
  margin-top: 18px;
}

.wx-alert-modal-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-primary, #4da3ff);
  text-decoration: none;
}

.wx-alert-modal-link:hover {
  text-decoration: underline;
}


.wx-stats-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  width: 100%;
}

.wx-stat-chip {
  background: #fff;
  border: 1px solid var(--wx-panel-border);
  border-radius: 12px;
  padding: 14px 12px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  text-align: center;
  transition: border-color 0.2s;
}

.wx-stat-chip:hover {
  border-color: var(--wx-accent-light);
}

.wx-stat-chip > span {
  font-size: 11px;
  color: var(--wx-muted);
  display: block;
  height: 16px;
  line-height: 16px;
}

.wx-stat-chip strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--wx-dark);
  display: block;
  height: 20px;
  line-height: 20px;
}


.wx-dashboard {
  padding: 20px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wx-panel {
  background: var(--wx-panel);
  border: 1px solid var(--wx-panel-border);
  border-radius: var(--wx-radius);
  box-shadow: var(--wx-shadow);
  padding: 20px 22px;
}

.wx-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.wx-panel-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--wx-dark);
}

.wx-panel-meta {
  font-size: 12px;
  color: var(--wx-muted);
}


.wx-hourly-shell {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wx-scroll-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--wx-panel-border);
  border-radius: 50%;
  background: #fff;
  color: var(--wx-accent);
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.wx-scroll-btn:hover {
  background: #f0f6ff;
  border-color: var(--wx-accent);
}


.wx-day-list-wrap {
  width: 92%;
  max-width: none;
  margin: 0 auto;
}

.wx-day-list-header {
  display: grid;
  grid-template-columns: 50px 40px 92px minmax(130px, 1fr) 76px 52px 108px;
  align-items: center;
  gap: 12px;
  padding: 0 8px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--wx-muted);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--wx-panel-border);
}

.wx-day-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.wx-day-item {
  position: relative;
  display: grid;
  grid-template-columns: 50px 40px 92px minmax(130px, 1fr) 76px 52px 108px;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  min-height: 44px;
  border-bottom: 1px solid var(--wx-panel-border);
  font-size: 13px;
  transition: background 0.15s, box-shadow 0.15s, border-radius 0.15s;
  cursor: pointer;
}

.wx-day-weather {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wx-day-weather .wx-weather-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
}

.wx-day-condition {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wx-day-wind {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--wx-muted);
  white-space: nowrap;
}

.wx-wind-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-primary, #4da3ff);
  line-height: 1;
}

.wx-day-item.is-today {
  background: transparent;
}

.wx-day-item.is-today::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 22px;
  width: 3px;
  border-radius: 2px;
  background: var(--brand-primary, #4da3ff);
}

.wx-day-item.is-selected {
  background: color-mix(in srgb, var(--brand-primary, #4da3ff) 6%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-primary, #4da3ff) 28%, transparent);
  border-radius: 8px;
  border-bottom-color: transparent;
}

.wx-day-date {
  font-weight: 500;
  color: var(--wx-muted);
}

.wx-day-label {
  font-weight: 600;
  color: var(--wx-dark);
}

.wx-day-item:last-child {
  border-bottom: none;
}

.wx-day-item:hover:not(.is-selected) {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

.wx-day-item.is-modal-disabled,
.wx-chart-col-top.is-modal-disabled,
.wx-chart-col-night.is-modal-disabled,
.wx-chart-col-aqi.is-modal-disabled {
  cursor: default;
  opacity: 0.6;
}

.wx-day-item.is-modal-disabled:hover:not(.is-selected),
.wx-chart-col-top.is-modal-disabled:hover,
.wx-chart-col-night.is-modal-disabled:hover,
.wx-chart-col-aqi.is-modal-disabled:hover {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.wx-day-weather {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wx-day-precip {
  font-size: 12px;
  color: var(--wx-muted);
  text-align: center;
  white-space: nowrap;
}

.wx-day-precip.is-risk-low {
  color: #7dd3fc;
  font-weight: 500;
}

.wx-day-precip.is-risk-mid {
  color: #38bdf8;
  font-weight: 600;
}

.wx-day-precip.is-risk-warn {
  color: #fbbf24;
  font-weight: 600;
}

.wx-day-precip.is-risk-high {
  color: #fb923c;
  font-weight: 700;
}

.wx-day-list-header span:last-child,
.wx-day-temps {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  text-align: right;
  white-space: nowrap;
}

.wx-day-temp-sep {
  color: rgba(0, 0, 0, 0.28);
  font-weight: 400;
  font-size: 12px;
  margin: 0 4px;
}

.wx-day-temp-low {
  color: #0284c7;
  font-size: 13px;
  font-weight: 600;
}

.wx-day-temp-high {
  color: #c2410c;
  font-size: 13px;
  font-weight: 600;
}

.wx-day-icon {
  font-size: 18px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.wx-day-icon .wx-weather-icon {
  width: 20px;
  height: 20px;
}

.wx-day-condition {
  color: var(--wx-muted);
  white-space: normal;
  overflow: visible;
  line-height: 1.3;
  word-break: break-word;
}

.wx-day-bar-wrap {
  position: relative;
  height: 6px;
  background: #f1f3f5;
  border-radius: 999px;
}

.wx-day-bar {
  position: absolute;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #3988e8 0%, #f5a623 100%);
  border-radius: 999px;
}


.aqi-good { --aqi-color: #00e400; }
.aqi-fair { --aqi-color: #ffff00; }
.aqi-moderate { --aqi-color: #ff7e00; }
.aqi-unhealthy { --aqi-color: #ff0000; }
.aqi-very-unhealthy { --aqi-color: #99004c; }
.aqi-hazardous { --aqi-color: #7e0023; }
.aqi-unknown { --aqi-color: #94a3b8; }

/* AccuWeather / PlumeLabs 海外色阶 */
body[data-region="overseas"] .aqi-fair { --aqi-color: #ffde33; }
body[data-region="overseas"] .aqi-moderate { --aqi-color: #ff9933; }
body[data-region="overseas"] .aqi-unhealthy,
body[data-region="overseas"] .aqi-unhealthy-sg { --aqi-color: #cc0033; }
body[data-region="overseas"] .aqi-very-unhealthy { --aqi-color: #660099; }
body[data-region="overseas"] .aqi-hazardous { --aqi-color: #a53def; }


.visually-hidden,
.wx-seo-data {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {

  .wx-hero-inner,
  .wx-hero-inner.page-container {
    width: min(1120px, calc(100vw - 40px));
  }

  .wx-hero-alert-wrap {
    max-width: 100%;
  }

  #wx-quick-weather-strip {
    max-width: 100%;
  }

  .wx-qws-item {
    flex-direction: column;
    gap: 4px;
    padding: 12px 10px;
  }

  .wx-current-temp {
    font-size: 72px;
  }

  .wx-day-item {
    grid-template-columns: 44px 40px 1fr 56px;
  }

  .wx-day-bar-wrap {
    display: none;
  }
}

@media (max-width: 640px) {
  .wx-scroll-btn {
    display: none;
  }

  .wx-hero {
    min-height: auto;
    padding: 28px 0 36px;
  }

  .wx-current {
    margin-top: 32px;
  }

  .wx-hero-alert-wrap {
    margin-top: 24px;
  }

  #wx-quick-weather-strip {
    margin-top: 16px;
  }

  .wx-quick-weather-strip {
    flex-wrap: wrap;
    min-height: auto;
  }

  .wx-qws-divider {
    display: none;
  }

  .wx-qws-item {
    flex: 1 1 45%;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }

  .wx-alert-modal-body {
    flex-direction: column;
    max-height: min(80vh, 640px);
    padding: 0 16px 16px;
  }

  .wx-alert-modal-nav {
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    margin: 0 0 12px;
    padding: 0 0 12px;
  }

  .wx-alert-nav-item {
    flex: 0 0 auto;
    width: auto;
    max-width: 200px;
  }

  .wx-alert-modal-detail {
    padding-left: 0;
  }

  .wx-location-zh,
  .wx-location-en {
    font-size: 26px;
  }

  .wx-stat-chip {
    font-size: 12px;
    padding: 6px 12px;
  }
}


.wx-lang-toggle {
  display: inline-flex;
  padding: 2px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(200, 210, 230, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.wx-lang-btn {
  border: 0;
  background: transparent;
  color: #8a96a8;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.wx-lang-btn.active {
  background: linear-gradient(135deg, rgba(180, 210, 255, 0.35), rgba(200, 225, 255, 0.2)) !important;
  color: #2a4a7a !important;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(100, 150, 220, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.wx-lang-btn:hover:not(.active) {
  color: #5a6a80;
  background: rgba(200, 215, 240, 0.12);
}


.wx-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 500;
  color: #344054;
  text-decoration: none;
  transition: color 0.2s;
}

.wx-back-link:focus-visible {
  outline: 2px solid var(--wx-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wx-back-link:hover {
  color: var(--wx-accent);
}


.wx-detail-lang .wx-lang-btn {
  padding: 0 12px;
  font-size: 12px;
}

@media (max-width: 640px) {
  .wx-detail-top-bar {
    gap: 10px;
  }

  .wx-back-link {
    font-size: 13px;
    min-height: 36px;
  }

  .wx-detail-top-tools {
    gap: 8px;
  }

  .wx-detail-search-form:hover .wx-detail-search-input,
  .wx-detail-search-form:focus-within .wx-detail-search-input,
  .wx-detail-search-form.is-expanded .wx-detail-search-input {
    width: min(120px, 34vw);
    padding-left: 12px;
  }

  .wx-detail-top-tools .wx-detail-lang .wx-lang-btn {
    padding: 0 9px;
    font-size: 11px;
  }

  .wx-current {
    margin-top: 28px;
  }
}


.wx-daily-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wx-daily-toggle-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--wx-muted);
  white-space: nowrap;
}

.wx-daily-toggle {
  display: inline-flex;
  background: #f0f3f8;
  padding: 2px;
  border-radius: 8px;
  border: 1px solid var(--wx-panel-border);
}

.wx-daily-toggle-btn {
  border: 0;
  background: transparent;
  color: var(--wx-muted);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.wx-daily-toggle-btn:hover {
  color: var(--wx-text);
}

.wx-daily-toggle-btn.active {
  background: #fff;
  color: #1d1d1f;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wx-daily-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wx-daily-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--wx-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.wx-daily-toggle-icon {
  flex-shrink: 0;
  opacity: 0.72;
}

.wx-daily-toggle-btn:hover {
  color: var(--wx-text);
}

.wx-daily-toggle-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--wx-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.wx-daily-toggle-btn.active .wx-daily-toggle-icon {
  opacity: 1;
}

.wx-daily-chart-scroll-wrap {
  position: relative;
  width: 100%;
  overflow: visible;
}

.wx-daily-chart-view {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 0 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  cursor: grab;
}

.wx-daily-chart-view:active {
  cursor: grabbing;
}

.wx-daily-chart-view::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.wx-daily-chart-fade {
  position: absolute;
  top: 0;
  width: var(--forecast-edge-width);
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
}

.wx-daily-chart-fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--forecast-edge-color, var(--wx-panel-bg, #fff)) 0%, var(--forecast-edge-fade, transparent) 100%);
}

.wx-daily-chart-fade--right {
  right: 0;
  background: linear-gradient(270deg, var(--forecast-edge-color, var(--wx-panel-bg, #fff)) 0%, var(--forecast-edge-fade, transparent) 100%);
}

.wx-daily-chart-scroll-wrap.is-scrollable:not(.is-at-start) .wx-daily-chart-fade--left {
  opacity: 1;
}

.wx-daily-chart-scroll-wrap.is-scrollable:not(.is-at-end) .wx-daily-chart-fade--right {
  opacity: 1;
}

.wx-daily-chart-scroll-wrap .wx-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: var(--forecast-arrow-size);
  height: var(--forecast-arrow-size);
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, background 0.15s;
}

.wx-daily-chart-scroll-wrap .wx-scroll-prev {
  left: 6px;
}

.wx-daily-chart-scroll-wrap .wx-scroll-next {
  right: 6px;
}

/* 可滚动时两端都露出箭头；到头一侧半透明不可点，避免“右侧箭头消失” */
.wx-daily-chart-scroll-wrap.is-scrollable .wx-scroll-prev,
.wx-daily-chart-scroll-wrap.is-scrollable .wx-scroll-next {
  opacity: 0.4;
  pointer-events: none;
}

.wx-daily-chart-scroll-wrap.is-scrollable:not(.is-at-start) .wx-scroll-prev,
.wx-daily-chart-scroll-wrap.is-scrollable:not(.is-at-end) .wx-scroll-next {
  opacity: 1;
  pointer-events: auto;
}


.wx-daily-chart-container {
  --wx-daily-col-width: 108px;
  --wx-daily-axis-width: 60px;
  --wx-daily-chart-day-height: 118px;
  --wx-daily-chart-svg-height: 268px;
  --wx-daily-chart-night-height: 72px;
  --wx-daily-chart-precip-height: 38px;
  --wx-daily-chart-wind-height: 38px;
  --wx-daily-chart-aqi-height: 36px;
  width: max-content;
  min-width: calc(var(--wx-daily-axis-width) + var(--wx-daily-days, 15) * var(--wx-daily-col-width));
}

.wx-daily-chart-layout {
  display: flex;
  align-items: stretch;
  width: max-content;
}

.wx-daily-chart-axis-col {
  flex-shrink: 0;
  width: var(--wx-daily-axis-width);
  display: flex;
  flex-direction: column;
  padding-left: 2px;
}

.wx-daily-chart-axis-spacer--day {
  min-height: var(--wx-daily-chart-day-height);
}

.wx-daily-chart-axis-spacer--chart {
  min-height: var(--wx-daily-chart-svg-height);
}

.wx-daily-chart-axis-spacer--night {
  min-height: var(--wx-daily-chart-night-height);
}

.wx-daily-chart-axis-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--wx-muted);
  opacity: 0.66;
  white-space: nowrap;
}

.wx-daily-chart-axis-label--precip {
  min-height: var(--wx-daily-chart-precip-height);
}

.wx-daily-chart-axis-label--wind {
  min-height: var(--wx-daily-chart-wind-height);
}

.wx-daily-chart-axis-label--aqi {
  min-height: var(--wx-daily-chart-aqi-height);
}

.wx-daily-chart-data-col {
  flex: 0 0 auto;
  min-width: 0;
}

.wx-daily-chart-svg-wrap {
  position: relative;
  min-height: var(--wx-daily-chart-svg-height);
}

.wx-daily-chart-legend {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--wx-muted);
  pointer-events: none;
}

.wx-daily-legend-high::before,
.wx-daily-legend-low::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 0;
  margin-right: 6px;
  border-top: 2.5px solid currentColor;
  vertical-align: middle;
}

.wx-daily-legend-high {
  color: #ffd166;
}

.wx-daily-legend-low {
  color: #78c7ff;
}

.wx-daily-chart-day-row,
.wx-daily-chart-night-row,
.wx-daily-chart-precip-row,
.wx-daily-chart-wind-row,
.wx-daily-chart-aqi-row {
  display: grid;
  grid-template-columns: repeat(var(--wx-daily-days, 15), var(--wx-daily-col-width));
  width: max-content;
  min-width: calc(var(--wx-daily-days, 15) * var(--wx-daily-col-width));
  text-align: center;
}

.wx-daily-chart-day-row {
  min-height: var(--wx-daily-chart-day-height);
}

.wx-daily-chart-night-row {
  min-height: var(--wx-daily-chart-night-height);
  align-items: flex-start;
}

.wx-daily-chart-precip-row {
  min-height: var(--wx-daily-chart-precip-height);
  padding: 0;
  align-items: center;
}

.wx-daily-chart-wind-row {
  min-height: var(--wx-daily-chart-wind-height);
  padding: 0;
  align-items: center;
}

.wx-daily-chart-aqi-row {
  min-height: var(--wx-daily-chart-aqi-height);
  align-items: center;
}

.wx-daily-chart-data-col {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.wx-daily-chart-bg-cols {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(var(--wx-daily-days, 15), var(--wx-daily-col-width));
  pointer-events: none;
  z-index: 0;
}

.wx-daily-chart-bg-col {
  height: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid transparent;
}

.wx-daily-chart-bg-col.is-hovered:not(.is-selected) {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wx-daily-chart-bg-col.is-selected {
  background-color: rgba(77, 163, 255, 0.09);
  border: 1px solid rgba(77, 163, 255, 0.32);
  box-shadow: inset 0 0 16px rgba(77, 163, 255, 0.06);
}

.wx-daily-chart-day-row,
.wx-daily-chart-svg-wrap,
.wx-daily-chart-night-row,
.wx-daily-chart-precip-row,
.wx-daily-chart-wind-row,
.wx-daily-chart-aqi-row {
  position: relative;
  z-index: 2;
  background: transparent !important;
}

.wx-chart-col-wind {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: background 0.15s;
}

.wx-chart-col-wind:hover {
  background: transparent !important;
}

.wx-chart-wind-dir {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--wx-text, rgba(255, 255, 255, 0.85));
}

.wx-chart-wind-spd {
  font-size: 10px;
  color: var(--wx-muted, rgba(255, 255, 255, 0.6));
}

.wx-chart-col-night {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 2px 4px;
  min-width: 0;
  overflow: visible;
  border-top: 1px dashed rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background 0.15s;
}

.wx-chart-col-night:hover {
  background: transparent !important;
}

.wx-chart-col-aqi {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 10px;
  cursor: pointer;
}

.wx-chart-col-aqi:hover {
  background: transparent !important;
  border-radius: 0 !important;
}

.wx-chart-precip-val {
  font-size: 10px;
  color: var(--wx-muted);
  font-weight: 500;
}

.wx-chart-precip-val.is-rainy {
  color: #0284c7;
  font-weight: 600;
}

.wx-daily-chart-col {
  min-width: var(--wx-daily-col-width);
  max-width: var(--wx-daily-col-width);
}

.wx-chart-col-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 2px 8px;
  min-width: 0;
  overflow: visible;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background 0.15s, border-radius 0.15s, box-shadow 0.15s;
  justify-content: flex-start;
}

.wx-chart-col-top:hover,
.wx-chart-col-night:hover,
.wx-chart-col-wind:hover,
.wx-chart-col-precip:hover,
.wx-chart-col-aqi:hover,
.wx-chart-col-top.is-selected,
.wx-chart-col-night.is-selected,
.wx-chart-col-wind.is-selected,
.wx-chart-col-precip.is-selected,
.wx-chart-col-aqi.is-selected {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.wx-chart-date {
  font-size: 11px;
  color: var(--wx-muted);
}

.wx-chart-day {
  font-size: 13px;
  color: var(--wx-dark);
  font-weight: 600;
}

.wx-chart-phrase {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 12px;
  color: var(--wx-text);
  white-space: normal;
  overflow: visible;
  line-height: 1.25;
  word-break: break-word;
  max-width: 100%;
  padding: 0 3px;
  min-height: 2.5em;
}

.wx-chart-icon {
  font-size: 20px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.wx-chart-icon .wx-weather-icon {
  width: 20px;
  height: 20px;
}

.wx-daily-chart-svg-wrap {
  width: 100%;
  position: relative;
  background: transparent;
}

.wx-daily-chart-svg {
  display: block;
  width: 100%;
  height: auto;
}


.wx-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.wx-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.wx-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--wx-overlay-bg, rgba(15, 23, 42, 0.25));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#wx-weather-modal .wx-modal-card {
  background: var(--surface-glass-modal, rgba(255, 255, 255, 0.18));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.28));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 24px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 24px;
  color: #fff;
}

#wx-weather-modal .wx-modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

#wx-weather-modal .wx-modal-detail-card {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 16px;
}

#wx-weather-modal .wx-modal-detail-card__title,
#wx-weather-modal .wx-modal-title,
#wx-weather-modal .wx-modal-temp-max {
  color: rgba(255, 255, 255, 0.98);
}

#wx-weather-modal .wx-modal-title span:first-child,
#wx-weather-modal .wx-modal-update-time,
#wx-weather-modal .wx-modal-temp-min,
#wx-weather-modal .wx-modal-hero-phrase,
#wx-weather-modal .wx-modal-summary-text {
  color: rgba(255, 255, 255, 0.78);
}

.wx-modal-card {
  position: relative;
  background: #fff;
  width: min(960px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.wx-modal-open {
  overflow: hidden;
}

.wx-modal.active .wx-modal-card {
  transform: translateY(0);
}

#wx-weather-modal.active .wx-modal-card,
#wx-weather-modal.wx-modal.active .wx-modal-card {
  transform: translateY(0);
  opacity: 1;
}

.wx-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 20px;
  font-weight: 300;
  line-height: 28px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.wx-modal-close-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.wx-modal-header {
  padding: 24px 28px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.wx-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--wx-dark);
  display: flex;
  gap: 10px;
  align-items: center;
}

.wx-modal-title span:first-child {
  color: var(--wx-muted);
  font-weight: 500;
}

.wx-modal-update-time {
  font-size: 13px;
  font-weight: 400;
  color: var(--wx-muted);
  margin-left: auto;
  padding-right: 32px;
}

.wx-modal-body {
  padding: 16px 24px 24px;
  overflow-y: auto;
  max-height: calc(100vh - 48px - 72px);
  scrollbar-width: thin;
}

.wx-modal-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .wx-modal-body {
    padding: 20px 28px 28px;
  }

  .wx-modal-detail-grid {
    grid-template-columns: 310px minmax(0, 1fr);
    grid-template-rows: minmax(264px, auto) minmax(208px, auto);
    gap: 24px;
    align-items: stretch;
  }
}

.wx-modal-detail-flow {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.wx-modal-detail-card {
  min-width: 0;
  padding: 24px 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wx-modal-overview-bar {
  padding: 22px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wx-modal-overview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wx-modal-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.wx-modal-hero-left .wx-modal-hero-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wx-modal-hero-left .wx-modal-hero-icon .wx-weather-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.wx-modal-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wx-modal-hero-temp {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.wx-modal-temp-max {
  color: #ffffff;
}

.wx-modal-temp-sep {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.38);
  margin: 0 1px;
}

.wx-modal-temp-min {
  font-size: 22px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.wx-modal-hero-phrase {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.wx-modal-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 10px 20px;
  flex: 1;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 24px;
}

.wx-modal-metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wx-modal-metric-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.52);
  font-weight: 500;
}

.wx-modal-metric-value {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.25;
}

.wx-modal-metric-value--precip,
.wx-modal-metric-value--amount {
  color: #38bdf8;
}

.wx-modal-metric-value--aqi {
  color: #34d399;
}

.wx-modal-summary-line {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.wx-modal-title--temp::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: #ff9f0a;
  box-shadow: 0 0 8px rgba(255, 159, 10, 0.6);
  margin-right: 8px;
  vertical-align: -1px;
}

.wx-modal-title--precip::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
  margin-right: 8px;
  vertical-align: -1px;
}

.wx-modal-chart-footnote {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  padding-top: 10px;
  margin-top: 4px;
}

@media (max-width: 680px) {
  .wx-modal-overview-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .wx-modal-metrics-grid {
    border-left: none;
    padding-left: 0;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
}

.wx-modal-detail-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--wx-dark);
  letter-spacing: 0.01em;
}

.wx-modal-overview-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.wx-modal-detail-temp-chart {
  min-height: 0;
}

.wx-modal-detail-summary {
  min-height: 0;
}

.wx-modal-detail-precip-chart {
  min-height: 0;
}

.wx-modal-detail-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wx-modal-precip-toggle {
  margin-left: 0;
  font-size: 11px;
}

.wx-modal-precip-controls {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.wx-modal-precip-intensity-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 0;
  color: var(--wx-muted);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.wx-modal-precip-intensity-legend i {
  font-style: normal;
}

.wx-modal-precip-intensity-legend__weak { color: rgba(56, 189, 248, 0.7); }
.wx-modal-precip-intensity-legend__moderate { color: #38bdf8; font-weight: 600; }
.wx-modal-precip-intensity-legend__strong { color: #00f0ff; font-weight: 700; text-shadow: 0 0 6px rgba(0, 240, 255, 0.4); }

.wx-modal-precip-status,
.wx-hourly-precip-status {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--wx-muted);
  background: rgba(148, 163, 184, 0.08);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  white-space: nowrap;
}

.wx-modal-precip-intensity-legend i + i {
  padding-left: 7px;
  border-left: 1px solid rgba(148, 163, 184, 0.22);
}

.wx-modal-liquid-bar {
  pointer-events: none;
}

.wx-modal-temp-incomplete,
.wx-modal-precip-incomplete {
  fill: var(--wx-muted);
  font-size: 9px;
  font-weight: 600;
  opacity: 0.72;
}

@media (max-width: 560px) {
  .wx-modal-detail-card__head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .wx-modal-precip-toggle {
    margin-left: 0;
  }

  .wx-modal-precip-controls {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .wx-modal-precip-intensity-legend {
    margin-left: 0;
    order: 3;
    width: 100%;
  }
}

.wx-modal-detail-summary .wx-modal-summary-text {
  margin: 0;
  flex: 1;
}


.wx-modal-body::-webkit-scrollbar {
  width: 6px;
}
.wx-modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.wx-modal-body::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 99px;
}
.wx-modal-body::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

.wx-modal-hero {
  text-align: center;
  background: transparent;
  padding: 16px 12px 14px;
  border-radius: 16px;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.wx-modal-hero-icon {
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
}

.wx-modal-hero-icon .wx-weather-icon {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.38)) drop-shadow(0 0 14px rgba(255, 255, 255, 0.16));
}

.wx-modal-hero-temp {
  font-size: 36px;
  font-weight: 800;
  color: var(--wx-dark);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.wx-modal-temp-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.wx-modal-temp-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--wx-muted);
  letter-spacing: 0.04em;
}

.wx-modal-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.wx-modal-chart-header .wx-modal-detail-card__title {
  margin: 0;
}

.wx-modal-temp-max {
  color: var(--brand-primary, #4da3ff);
}

.wx-modal-temp-min {
  color: #8ab7ff;
}

.wx-modal-temp-sep {
  color: #cbd5e1;
  font-weight: 300;
}

.wx-modal-hero-phrase {
  font-size: 16px;
  font-weight: 600;
  color: var(--wx-text);
  margin-top: 4px;
  line-height: 1.35;
  word-break: break-word;
}

.wx-modal-summary-panel {
  background: #f4f8fe;
  border: 1px solid #e0ecfb;
  border-radius: 16px;
  padding: 16px;
}

.wx-modal-summary-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--wx-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.wx-modal-summary-text {
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
}


.wx-modal-chart-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wx-modal-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--wx-dark);
  margin: 0;
}

.wx-modal-chart-wrap {
  width: 100%;
  position: relative;
  overflow: visible;
  min-height: 120px;
}

.wx-modal-chart-tooltip {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -100%);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.wx-modal-chart-tooltip[hidden] {
  display: none;
}

.wx-modal-chart-point {
  cursor: pointer;
}

.wx-modal-detail-temp-chart .wx-modal-chart-wrap--temp {
  min-height: 180px;
}

.wx-modal-detail-precip-chart .wx-modal-chart-wrap--precip {
  min-height: 156px;
}

.wx-modal-section-subtitle {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--wx-muted);
  margin-top: 2px;
}


:root {
  --forecast-edge-width: 44px;
  --forecast-edge-color: rgba(61, 96, 122, 0.72);
  --forecast-edge-fade: transparent;
  --wx-overlay-bg: rgba(30, 41, 59, 0.4);
  --wx-modal-surface: rgba(29, 53, 78, 0.94);
  --wx-tooltip-surface: rgba(24, 48, 69, 0.9);
  --wx-modal-inner: rgba(255, 255, 255, 0.06);
  --wx-segment-track: rgba(0, 0, 0, 0.22);
  --forecast-arrow-size: 30px;
  --forecast-arrow-bg: rgba(255, 255, 255, 0.11);
  --forecast-arrow-border: rgba(255, 255, 255, 0.20);
  --wx-hourly-chart-height: 220px;
}

.wx-panel-hourly .wx-panel-head {
  align-items: center;
}

.wx-hourly-panel-head {
  margin-bottom: 4px;
}

.wx-hourly-metric-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0 2px;
}

.wx-hourly-metric-tab {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
  color: var(--wx-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.wx-hourly-metric-tab:hover {
  border-color: color-mix(in srgb, var(--metric-color, #ff9f1c) 35%, transparent);
  color: var(--wx-dark);
}

.wx-hourly-metric-tab[aria-selected="true"] {
  background: color-mix(in srgb, var(--metric-color, #ff9f1c) 14%, #fff);
  border-color: color-mix(in srgb, var(--metric-color, #ff9f1c) 45%, transparent);
  color: var(--wx-dark);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.wx-hourly-metric-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 12px;
  min-height: 32px;
}

.wx-hourly-metric-control {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.wx-hourly-precip-legend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--wx-muted);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.wx-hourly-legend-key {
  display: inline-block;
  flex: 0 0 auto;
}

.wx-hourly-legend-key--prob {
  width: 16px;
  height: 0;
  border-top: 2px solid #38bdf8;
}

.wx-hourly-legend-key--weak,
.wx-hourly-legend-key--moderate,
.wx-hourly-legend-key--strong {
  width: 7px;
  height: 10px;
  margin-left: 5px;
  border-radius: 2px 2px 0 0;
  border: 1px solid rgba(3, 148, 196, 0.9);
}

.wx-hourly-legend-key--weak { background: #38bdf8; opacity: 0.45; border-color: rgba(56, 189, 248, 0.6); }
.wx-hourly-legend-key--moderate { background: #0ea5e9; opacity: 0.80; border-color: rgba(14, 165, 233, 0.9); }
.wx-hourly-legend-key--strong { background: #00f0ff; opacity: 1; border-color: #00f0ff; box-shadow: 0 0 4px rgba(0, 240, 255, 0.5); }

.wx-hourly-feels-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--wx-muted);
  user-select: none;
  flex-shrink: 0;
}

.wx-hourly-feels-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.wx-hourly-feels-switch {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.wx-hourly-feels-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s;
}

.wx-hourly-feels-toggle input:checked + .wx-hourly-feels-switch {
  background: var(--brand-primary, #4da3ff);
}

.wx-hourly-feels-toggle input:checked + .wx-hourly-feels-switch::after {
  transform: translateX(16px);
}

.wx-hourly-scale-card {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--wx-muted);
  min-height: 26px;
  flex: 1 1 240px;
}

.wx-hourly-scale-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 120px;
  height: 8px;
  flex-shrink: 0;
}

.wx-hourly-scale-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #123b73 0%, #3988e8 22%, #e4c76c 55%, #f5a623 78%, #ffd45c 100%);
  opacity: 0.92;
}

.wx-hourly-scale-min,
.wx-hourly-scale-max {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.72;
  white-space: nowrap;
}

.wx-hourly-scale-end {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.72;
}

.wx-legend-line {
  display: inline-block;
  width: 18px;
  height: 0;
  border-top: 2.5px solid #ff9f1c;
  vertical-align: middle;
}

.wx-legend-line-actual {
  border-top-color: #ff9f1c;
}

.wx-hourly-shell {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 100%;
  overflow: hidden;
}

.wx-hourly-fade {
  position: absolute;
  top: 0;
  width: var(--forecast-edge-width);
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
}

.wx-hourly-fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--forecast-edge-color, var(--wx-panel-bg, #fff)) 0%, var(--forecast-edge-fade, transparent) 100%);
}

.wx-hourly-fade--right {
  right: 0;
  background: linear-gradient(270deg, var(--forecast-edge-color, var(--wx-panel-bg, #fff)) 0%, var(--forecast-edge-fade, transparent) 100%);
}

.wx-hourly-shell.is-scrollable:not(.is-at-start) .wx-hourly-fade--left {
  opacity: 1;
}

.wx-hourly-shell.is-scrollable:not(.is-at-end) .wx-hourly-fade--right {
  opacity: 1;
}

.wx-hourly-shell .wx-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: var(--forecast-arrow-size);
  height: var(--forecast-arrow-size);
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, background 0.15s;
}

.wx-hourly-shell .wx-scroll-prev {
  left: 6px;
}

.wx-hourly-shell .wx-scroll-next {
  right: 6px;
}

.wx-hourly-shell.is-scrollable .wx-scroll-prev,
.wx-hourly-shell.is-scrollable .wx-scroll-next {
  opacity: 0.4;
  pointer-events: none;
}

.wx-hourly-shell.is-scrollable:not(.is-at-start) .wx-scroll-prev,
.wx-hourly-shell.is-scrollable:not(.is-at-end) .wx-scroll-next {
  opacity: 1;
  pointer-events: auto;
}

.wx-hourly-scroll-viewport {
  flex: 1;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  scrollbar-width: none;
  position: relative;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.wx-hourly-scroll-viewport:active {
  cursor: grabbing;
}

.wx-hourly-scroll-viewport::-webkit-scrollbar {
  display: none; 
  width: 0;
  height: 0;
}

.wx-hourly-chart-inner {
  width: calc(var(--wx-hourly-count, 24) * var(--wx-hourly-col, 88px));
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px 0 12px;
  user-select: none;
}

.wx-hourly-day-row,
.wx-hourly-top-row {
  display: grid;
  grid-template-columns: repeat(var(--wx-hourly-count, 24), var(--wx-hourly-col, 88px));
  width: 100%;
  text-align: center;
}

.wx-hourly-day-row {
  min-height: 22px;
  margin-bottom: 2px;
}

.wx-hourly-day-col {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
}

.wx-hourly-day-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--wx-muted);
  white-space: nowrap;
}

.wx-hourly-day-label--today {
  justify-self: start;
  padding-left: 6px;
}

.wx-hourly-day-label--next {
  justify-self: start;
  padding-left: 4px;
}

.wx-hourly-top-row {
  min-height: 92px;
  position: relative;
  z-index: 2;
}


.wx-hourly-col-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 2px 6px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.wx-hourly-col-top.is-active {
  background: rgba(3, 114, 254, 0.08);
}


.wx-hourly-svg-wrap {
  width: 100%;
  height: var(--wx-hourly-chart-height, 220px);
  min-height: var(--wx-hourly-chart-height, 220px);
  max-height: var(--wx-hourly-chart-height, 220px);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.wx-hourly-svg-wrap .wx-hourly-svg {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow: visible;
  vertical-align: top;
}

.wx-hourly-time {
  font-size: 11px;
  color: var(--wx-muted);
}

.wx-hourly-icon {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.wx-hourly-icon .wx-weather-icon {
  width: 20px;
  height: 20px;
}

.wx-hourly-temp,
.wx-hourly-metric-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--wx-dark);
  white-space: nowrap;
  max-width: 100%;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}


.wx-hourly-hover-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1.5px dashed rgba(148, 163, 184, 0.85);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.wx-hourly-hover-line.is-locked {
  border-left-style: solid;
  border-left-color: var(--brand-glow, #8bd5ff);
}

.wx-hourly-cross-marker {
  position: absolute;
  top: 22px;
  bottom: 0;
  width: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.28);
  pointer-events: none;
  z-index: 1;
}


.wx-hourly-tooltip {
  position: absolute;
  left: 0;
  min-width: 120px;
  max-width: none;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: var(--wx-tooltip-surface, rgba(24, 48, 69, 0.90));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 22px rgba(10, 26, 39, 0.22);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 12;
  transform: translate(-50%, 0);
  overflow: visible;
  white-space: nowrap;
}

.wx-hourly-tooltip.is-flip-right {
  transform: translate(-85%, 0);
}

.wx-hourly-tooltip.is-flip-left {
  transform: translate(-15%, 0);
}

.wx-hourly-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: var(--wx-tooltip-surface, rgba(24, 48, 69, 0.90)) transparent transparent;
}

.wx-hourly-svg-wrap.is-metric-fade {
  opacity: 0.35;
  transition: opacity 0.18s ease;
}

.wx-hourly-svg-wrap {
  transition: opacity 0.18s ease;
}

.wx-tooltip-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.2;
}

.wx-tooltip-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.wx-tooltip-primary {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  white-space: nowrap;
}

.wx-tooltip-label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.wx-tooltip-secondary {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.86);
}

.wx-tooltip-tertiary {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
}

.wx-tooltip-icon {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.wx-tooltip-icon .wx-weather-icon {
  width: 18px;
  height: 18px;
}

.wx-weather-icon {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.wx-tooltip-temp-actual {
  font-size: 13px;
  font-weight: 700;
  color: #ff9f1c;
}

.wx-tooltip-temp-feel {
  font-size: 12px;
  font-weight: 600;
  color: rgba(186, 220, 255, 0.95);
}

.wx-tooltip-precip {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
}


.wx-hourly-line-path {
  transition: d 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), stroke 0.45s;
}

.wx-hourly-area-path {
  transition: d 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), fill 0.45s;
  mix-blend-mode: screen;
}

.wx-hourly-liquid-bar,
.wx-modal-liquid-bar {
  pointer-events: none;
  transition: x 0.35s ease, y 0.35s ease, height 0.35s ease, opacity 0.25s ease, fill 0.25s ease;
}

.wx-hourly-liquid-bar--weak,
.wx-modal-liquid-bar--weak {
  fill: #38bdf8;
  opacity: 0.38;
}
.wx-hourly-liquid-bar--moderate,
.wx-modal-liquid-bar--moderate {
  fill: #0ea5e9;
  opacity: 0.80;
}
.wx-hourly-liquid-bar--strong,
.wx-modal-liquid-bar--strong {
  fill: #00f0ff;
  opacity: 0.98;
  filter: drop-shadow(0 0 3px rgba(0, 240, 255, 0.45));
}

.wx-hourly-svg--precip-low .wx-hourly-liquid-bar,
.wx-modal-precip-svg--low .wx-modal-liquid-bar {
  opacity: 0.35;
}

.wx-hourly-liquid-baseline,
.wx-modal-liquid-baseline {
  stroke: rgba(56, 189, 248, 0.28);
  stroke-width: 1;
}

.wx-page:not(.wx-atmosphere) .wx-hourly-area-path {
  mix-blend-mode: normal;
}

.wx-hourly-line-feel {
  pointer-events: none;
}

.wx-hourly-circle-feel {
  pointer-events: none;
}

.wx-hourly-ref-line-path {
  transition: d 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.45s, stroke 0.45s;
}

.wx-hourly-circle {
  transition: cy 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), fill 0.45s;
}

.wx-grad-stop-0, .wx-grad-stop-1 {
  transition: stop-color 0.45s ease;
}


.wx-panel-indices.dark-theme {
  background: var(--glass-bg, var(--wx-glass, rgba(255, 255, 255, 0.08)));
  border: 1px solid var(--glass-border, var(--wx-glass-border, rgba(255, 255, 255, 0.18)));
  box-shadow: var(--glass-highlight, inset 0 1px 0 rgba(255, 255, 255, 0.35)), var(--glass-shadow, var(--wx-shadow, 0 20px 60px rgba(0, 0, 0, 0.35)));
  backdrop-filter: var(--glass-blur, var(--wx-glass-blur, blur(24px) saturate(180%)));
  -webkit-backdrop-filter: var(--glass-blur, var(--wx-glass-blur, blur(24px) saturate(180%)));
  color: rgba(255, 255, 255, 0.96);
  border-radius: 22px;
  padding: 20px 22px;
  margin-top: 24px;
}

.wx-indices-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding-bottom: 10px;
}

.wx-indices-tabs {
  display: flex;
  gap: 16px;
}

.wx-indices-tab {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 4px;
  position: relative;
  transition: color 0.2s ease;
}

.wx-indices-tab:hover {
  color: rgba(255, 255, 255, 0.85);
}

.wx-indices-tab.active {
  color: rgba(255, 255, 255, 0.96);
}

.wx-indices-tab.active::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  right: 0;
  height: 2px;
  background: #54b7ff;
  border-radius: 99px;
  box-shadow: none;
}

.wx-indices-header-right {
  display: flex;
  align-items: center;
}

.wx-indices-container {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  min-height: 300px;
}

@media (max-width: 768px) {
  .wx-indices-container {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.wx-indices-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.wx-indices-left::-webkit-scrollbar {
  width: 4px;
}

.wx-indices-left::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}


.wx-index-tab-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 68px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  color: rgba(255, 255, 255, 0.96);
  text-align: left;
  user-select: none;
}

.wx-index-tab-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  border-left-color: rgba(255, 255, 255, 0.12);
}

.wx-index-tab-card.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  border-left-color: #54b7ff;
  box-shadow: none;
}

.wx-index-tab-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.wx-tab-icon-wrap {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wx-tab-icon {
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wx-tab-icon .wx-index-icon,
.wx-detail-icon .wx-index-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.wx-detail-icon .wx-index-icon {
  width: 32px;
  height: 32px;
}

.wx-tab-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wx-tab-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wx-tab-level {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wx-tab-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: none;
}

.wx-tab-dot.green { background: #57F287; }
.wx-tab-dot.lime,
.wx-tab-dot.light-green { background: #83E377; }
.wx-tab-dot.yellow { background: #FFD166; }
.wx-tab-dot.orange { background: #FF9F43; }
.wx-tab-dot.red { background: #FF4D5A; }


.wx-indices-right {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wx-indices-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: none;
  padding-bottom: 0;
}

.wx-indices-updated {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  padding-top: 4px;
}

.wx-indices-detail-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wx-detail-icon {
  font-size: 20px;
  background: rgba(0, 0, 0, 0.22);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.wx-detail-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
}

.wx-detail-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wx-detail-title-row {
  display: flex;
  align-items: center;
  min-width: 0;
}

.wx-detail-advice {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  margin: 12px 0 2px;
  padding: 8px 0 2px 12px;
  border-radius: 0;
  background: transparent;
  border-left: 2px solid #57F287;
  max-width: 100%;
}

.wx-detail-advice strong {
  display: block;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 11px;
  letter-spacing: 0;
}

.wx-detail-advice p {
  margin: 0;
}

.wx-detail-advice--green { border-left-color: #57F287; }
.wx-detail-advice--lime,
.wx-detail-advice--light-green { border-left-color: #83E377; }
.wx-detail-advice--yellow { border-left-color: #FFD166; }
.wx-detail-advice--orange { border-left-color: #FF9F43; }
.wx-detail-advice--red { border-left-color: #FF4D5A; }


.wx-indices-body {
  display: grid;
  grid-template-columns: minmax(320px, 0.38fr) minmax(480px, 0.62fr);
  gap: 20px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.wx-indices-right > .wx-detail-advice {
  flex: 0 0 auto;
}

.wx-indices-gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.wx-indices-gauge {
  position: relative;
  width: 100%;
  max-width: 340px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wx-indices-gauge-svg,
.wx-lifering-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
}

.wx-orb-stage {
  position: relative;
  width: 320px;
  height: 290px;
  isolation: isolate;
}

.wx-orb-stage::before {
  position: absolute;
  content: '';
  left: 50%;
  top: 50%;
  width: 204px;
  height: 204px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 220, 230, 0.2), rgba(9, 41, 56, 0.08) 68%, transparent 70%);
  box-shadow: 0 12px 30px rgba(6, 28, 40, 0.28), 0 0 24px rgba(106, 205, 220, 0.15);
  transform: translate(-50%, -50%);
  z-index: -1;
}

.wx-orb-stage::after {
  position: absolute;
  content: '';
  left: 50%;
  top: 51%;
  width: 212px;
  height: 212px;
  border: 1px solid rgba(208, 247, 250, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  box-shadow: 0 0 16px rgba(112, 213, 225, 0.2), inset 0 0 12px rgba(177, 239, 243, 0.08);
}

.wx-page.wx-atmosphere .wx-orb-stage > .wx-atmosphere-canvas,
.wx-page.wx-atmosphere .wx-orb-stage > .wx-lifering-svg {
  position: absolute;
  inset: 0;
  width: 320px;
  height: 290px;
  display: block;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

.wx-page.wx-atmosphere .wx-orb-stage > .wx-atmosphere-canvas {
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: normal !important;
  background: transparent !important;
}

.wx-page.wx-atmosphere .wx-orb-stage > .wx-lifering-svg {
  z-index: 2;
  background: transparent !important;
}

.wx-page.wx-atmosphere .wx-orb-stage > .wx-lifering-svg {
  overflow: visible;
}

.wx-orb-scale-indicator {
  animation: wx-orb-indicator-breathe 5s ease-in-out infinite;
}

@keyframes wx-orb-indicator-breathe {
  0%, 100% { opacity: 0.68; }
  50% { opacity: 1; }
}

.wx-lifering-center {
  position: absolute;
  left: 50%;
  top: 51%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  pointer-events: none;
  z-index: 3;
  width: 58%;
  max-width: 148px;
}

.wx-lifering-score {
  font-family: var(--wx-font-mono);
  margin-top: 4px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--lr-score-color, rgba(255, 255, 255, 0.98));
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  text-shadow: 0 0 16px var(--lr-score-color, #4da3ff), 0 2px 8px rgba(0, 12, 20, 0.95);
}

.wx-lifering-score strong {
  font-weight: 700;
}

.wx-lifering-score--thermal {
  margin-top: 3px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  color: var(--lr-score-color);
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px var(--lr-score-color, #4da3ff), 0 2px 6px rgba(0, 12, 20, 0.9);
}

.wx-lifering-score--thermal strong {
  font-weight: 650;
}

.wx-lifering-level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 19px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.98);
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px var(--lr-score-color, #4da3ff), 0 1px 4px rgba(0, 12, 20, 0.96);
}

.wx-lifering-level i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lr-score-color);
  box-shadow: 0 0 10px var(--lr-score-color);
}

.wx-orb-scale-label {
  paint-order: stroke;
}

.wx-orb-scale-major {
  filter: drop-shadow(0 0 1px rgba(181, 244, 249, 0.6));
}


.wx-tab-level--green { color: #8EB192; }
.wx-tab-level--lime,
.wx-tab-level--light-green { color: #A8C07A; }
.wx-tab-level--yellow { color: #D8B66F; }
.wx-tab-level--orange { color: #BD895E; }
.wx-tab-level--red { color: #C47A5A; }

.wx-tab-level--thermal {
  color: var(--wx-thermal-color);
}

.wx-indices-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 320px;
}

.wx-index-trend-card {
  position: relative;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  padding: 4px 2px 0;
  margin-top: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 280px;
}

.wx-trend-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wx-indices-trend-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

.wx-trend-unit {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
}

.wx-trend-chart-area {
  position: relative;
  flex: 1;
  min-height: 200px;
}

.wx-indices-trend-svg {
  width: 100%;
  height: auto;
  display: block;
}

.wx-indices-trend-labels {
  position: relative;
  height: 28px;
  width: 100%;
  overflow: visible;
}

.wx-trend-hotzones {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  z-index: 5;
}

.wx-trend-hotzone {
  flex: 1;
  cursor: pointer;
  background: transparent;
}

.wx-trend-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  transition: opacity 0.15s ease;
}

.wx-trend-axis-label {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
  max-width: none;
}

.wx-trend-axis-label .name {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  line-height: 1.2;
}

.wx-trend-axis-label .state {
  max-width: 76px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wx-trend-axis-label .date {
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  opacity: 1;
  white-space: nowrap;
  line-height: 1.2;
}

.wx-trend-axis-label.active .name {
  color: #54b7ff;
  font-weight: 700;
}

.wx-trend-axis-label.active .state {
  color: rgba(84, 183, 255, 0.86);
}

.wx-trend-axis-label.is-thermal.active .name,
.wx-trend-axis-label.is-thermal.active .state {
  color: var(--wx-active-trend-color);
}

.wx-trend-axis-label.active .date {
  color: #54b7ff;
  opacity: 1;
}

.wx-trend-axis-label.is-estimated .name,
.wx-trend-axis-label.is-estimated .date {
  opacity: 0.72;
}

.wx-trend-est {
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 3px;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.12);
  vertical-align: 1px;
}

.wx-trend-tooltip .title {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.wx-trend-tooltip .val {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.wx-indices-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  padding-top: 4px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.wx-index-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wx-index-legend-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--wx-muted);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .wx-indices-body {
    grid-template-columns: 1fr;
  }

  .wx-indices-gauge {
    max-width: 320px;
    margin: 0 auto;
  }

  .wx-indices-container {
    grid-template-columns: 1fr;
  }
}


.wx-panel-astro {
  position: relative;
  z-index: 12;
  background: var(--glass-bg, var(--wx-glass, rgba(255, 255, 255, 0.08)));
  background-image: none;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  padding: 28px 22px 32px;
  border-radius: 20px;
  border: 1px solid var(--glass-border, var(--wx-glass-border, rgba(255, 255, 255, 0.18)));
  margin-top: 24px;
  box-shadow: var(--glass-highlight, inset 0 1px 0 rgba(255, 255, 255, 0.35)), var(--glass-shadow, var(--wx-shadow, 0 20px 60px rgba(0, 0, 0, 0.35)));
  backdrop-filter: var(--glass-blur, var(--wx-glass-blur, blur(24px) saturate(180%)));
  -webkit-backdrop-filter: var(--glass-blur, var(--wx-glass-blur, blur(24px) saturate(180%)));
  isolation: isolate;
}


@media (max-width: 767px) {
  .wx-day-list-wrap {
    width: 100%;
  }

  .wx-day-list-header {
    display: none;
  }

  .wx-day-item {
    grid-template-columns: 48px 1fr 56px 72px;
    grid-template-rows: auto auto;
    gap: 8px 8px;
    padding: 12px 10px;
  }

  .wx-day-date { grid-column: 1; grid-row: 1; }
  .wx-day-label { grid-column: 2; grid-row: 1; }
  .wx-day-weather { grid-column: 1 / 3; grid-row: 2; }
  .wx-day-precip { grid-column: 3; grid-row: 1; text-align: right; align-self: start; }
  .wx-day-bar-wrap { grid-column: 1 / 4; grid-row: 2; margin-top: 22px; max-width: none; }
  .wx-day-temps { grid-column: 4; grid-row: 1 / 3; align-self: center; }

  .wx-daily-chart-container {
    --wx-daily-col-width: 100px;
  }

  .wx-daily-toggle-label {
    font-size: 11px;
  }

  .wx-modal {
    align-items: flex-end;
  }

  .wx-modal-card {
    width: 100%;
    max-width: none;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }

  .wx-modal.active .wx-modal-card {
    transform: translateY(0);
  }

  .wx-modal-body {
    max-height: calc(92vh - 64px);
    padding: 12px 16px 20px;
  }

  .wx-modal-header {
    padding: 16px 16px 10px;
  }

  .wx-modal-close-btn {
    top: 12px;
    right: 12px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .wx-day-list-wrap {
    width: 96%;
  }

  .wx-modal-body {
    grid-template-columns: 280px 1fr;
  }
}

.wx-page.wx-atmosphere .wx-modal-chart-tooltip {
  background: var(--wx-tooltip-surface) !important;
  border: 1px solid var(--wx-glass-border) !important;
  color: rgba(255, 255, 255, 0.95) !important;
}

@media (max-width: 767px) {
  .wx-page.wx-atmosphere .wx-modal {
    align-items: flex-end !important;
  }

  .wx-page.wx-atmosphere .wx-modal-card {
    width: 100% !important;
    max-width: none !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 92vh !important;
  }
}


/* 生活指数趋势折线图 Tooltip */
.wx-index-trend-card {
  position: relative;
}

.wx-indices-trend-tooltip {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  background: rgba(15, 28, 48, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  color: #fff;
  transform: translate(-50%, -100%);
  margin-top: -10px;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.wx-indices-trend-tooltip[hidden] {
  display: none !important;
}

.wx-indices-trend-tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(15, 28, 48, 0.94);
}

.wx-indices-trend-tooltip .wx-tt-level {
  color: var(--brand-primary, #4da3ff);
  font-weight: 600;
}

.wx-indices-trend-tooltip .wx-tt-desc {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}
