/* ============================================================
   当地天气 - Local Weather Web App
   Aesthetic, Modern Glassmorphism Design
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  
  /* 基础色彩 */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.48);
  
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-hover: rgba(255, 255, 255, 0.13);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-strong: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  
  --accent-gold: #f59e0b;
  --accent-blue: #38bdf8;
  --accent-green: #10b981;
  --accent-purple: #a855f7;
  
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 动态天气主题渐变背景 */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  color: var(--text-primary);
  background-color: #0f172a;
  min-height: 100vh;
  transition: background var(--transition-smooth);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.theme-clear-day {
  background: linear-gradient(145deg, #1d4ed8 0%, #38bdf8 55%, #60a5fa 100%);
}

body.theme-clear-night {
  background: linear-gradient(150deg, #090d16 0%, #111827 50%, #1e1b4b 100%);
}

body.theme-clouds {
  background: linear-gradient(145deg, #1e293b 0%, #334155 60%, #475569 100%);
}

body.theme-rain {
  background: linear-gradient(150deg, #0f172a 0%, #1e293b 50%, #293845 100%);
}

body.theme-thunder {
  background: linear-gradient(150deg, #130e24 0%, #1f1b3c 55%, #2e264f 100%);
}

body.theme-snow {
  background: linear-gradient(145deg, #1e293b 0%, #384f6b 55%, #64748b 100%);
}

body.theme-fog {
  background: linear-gradient(145deg, #27272a 0%, #3f3f46 60%, #52525b 100%);
}

/* 动态背景画布 */
.weather-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

#weatherCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* 玻璃质感通用面板 */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

/* 页面主布局 */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ============================================================
   顶部导航与搜索栏
   ============================================================ */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.header-left .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-center {
  flex: 1;
  max-width: 520px;
  min-width: 260px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-box .search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 12px 38px 12px 42px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  outline: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

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

.search-box input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.search-box .clear-btn {
  position: absolute;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(20, 26, 40, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.search-results-dropdown.active {
  display: block;
}

.search-result-item {
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background var(--transition-fast);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover, .search-result-item.highlighted {
  background: rgba(56, 189, 248, 0.2);
}

.search-result-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

.search-result-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-btn:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-strong);
  transform: translateY(-1px);
}

.action-btn:active {
  transform: translateY(0);
}

.action-btn svg {
  width: 16px;
  height: 16px;
}

.unit-btn {
  font-weight: 700;
  min-width: 46px;
  justify-content: center;
}

.rotating {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ============================================================
   快捷城市标签与收藏
   ============================================================ */
.quick-tags-container {
  overflow: hidden;
  margin-top: 2px;
  width: 100%;
}

.quick-tags-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.quick-tags-scroll::-webkit-scrollbar {
  display: none;
}

.city-chip {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.city-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.city-chip.active {
  background: var(--accent-blue);
  color: #04101e;
  font-weight: 600;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
}

.city-chip.current-location-chip {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: #bae6fd;
}

.city-chip.current-location-chip svg {
  width: 14px;
  height: 14px;
  color: var(--accent-blue);
}

.favorite-chips-group, .hot-cities-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   核心天气卡片 (Hero Card)
   ============================================================ */
.hero-card {
  padding: 36px 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.location-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.city-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.fav-btn {
  background: none;
  border: none;
  padding: 4px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fav-btn:hover {
  color: var(--accent-gold);
  transform: scale(1.15);
}

.fav-btn.is-fav {
  color: var(--accent-gold);
}

.fav-btn.is-fav svg {
  fill: var(--accent-gold);
}

.fav-btn svg {
  width: 22px;
  height: 22px;
}

.city-sub {
  margin: 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

.update-time {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.weather-badge-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-badge {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.aqi-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.aqi-badge.aqi-moderate {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.aqi-badge.aqi-unhealthy {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}

.condition-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.hero-center {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-temp-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-weather-icon {
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-weather-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.3));
}

.temp-numbers {
  display: flex;
  align-items: flex-start;
  line-height: 0.9;
}

.current-temp-val {
  font-size: 6.5rem;
  font-weight: 200;
  letter-spacing: -0.05em;
}

.temp-unit-symbol {
  font-size: 3.2rem;
  font-weight: 300;
  margin-top: 4px;
  color: var(--text-secondary);
}

.hero-desc-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.weather-main-desc {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.temp-range {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.temp-range strong {
  color: #fff;
}

.temp-divider {
  color: var(--text-muted);
}

.feels-like-text {
  margin-left: 6px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-bottom {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-summary-text {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ============================================================
   预报通用部分 (24小时 & 7天)
   ============================================================ */
.forecast-section {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.section-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.section-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 逐小时横向滑动 */
.hourly-scroll-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 4px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.hourly-scroll-container::-webkit-scrollbar {
  height: 5px;
}

.hourly-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.hourly-card {
  flex: 0 0 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 8px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.hourly-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hourly-card.is-now {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
}

.hourly-time {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hourly-card.is-now .hourly-time {
  color: #38bdf8;
  font-weight: 600;
}

.hourly-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hourly-icon svg {
  width: 100%;
  height: 100%;
}

.hourly-temp {
  font-size: 1.15rem;
  font-weight: 600;
}

.hourly-precip {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* 7天预报列表 */
.daily-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.daily-row {
  display: grid;
  grid-template-columns: 80px minmax(110px, 150px) 1fr minmax(90px, 120px);
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-fast);
  min-width: 0;
}

.daily-row > * {
  min-width: 0;
}

.daily-row:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.daily-day-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.daily-condition {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.daily-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.daily-icon svg {
  width: 100%;
  height: 100%;
}

.daily-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.daily-rain-prob {
  font-size: 0.75rem;
  color: #38bdf8;
  margin-left: 2px;
  white-space: nowrap;
}

/* 温度范围进度条 */
.daily-bar-container {
  display: flex;
  align-items: center;
  padding: 0 12px;
  min-width: 0;
}

.temp-bar-track {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  overflow: hidden;
}

.temp-bar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #38bdf8 0%, #f59e0b 100%);
}

.daily-temps {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.daily-temp-min {
  color: var(--text-secondary);
  width: 32px;
  text-align: right;
}

.daily-temp-max {
  font-weight: 600;
  width: 32px;
  text-align: right;
}

/* ============================================================
   详细指标网格 (8项指标) - 智能弹性自适应
   ============================================================ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.metric-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  min-width: 0;
  overflow: hidden;
}

.metric-card:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-2px);
}

.metric-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  min-width: 0;
}

.metric-header span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-header svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.metric-body {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.metric-value {
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-wrap: wrap;
  line-height: 1.2;
}

.metric-value .unit {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.metric-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  word-break: break-word;
}

.sunrise-sunset-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.sun-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sun-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.sun-item strong {
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================================
   生活气象指数建议 - 智能弹性自适应
   ============================================================ */
.life-index-section {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.life-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.life-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all var(--transition-fast);
  min-width: 0;
  overflow: hidden;
}

.life-card:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.life-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.life-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.life-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.life-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.life-card-level {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  white-space: nowrap;
}

.life-card-advice {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  word-break: break-word;
}

/* ============================================================
   页脚
   ============================================================ */
.app-footer {
  text-align: center;
  padding: 16px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.app-footer p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.82rem;
}

.footer-links a {
  color: var(--accent-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity var(--transition-fast);
}

.footer-links a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.footer-icon {
  width: 15px;
  height: 15px;
}

.footer-divider {
  color: var(--text-muted);
}

.cf-badge {
  color: #fb923c;
  font-weight: 500;
}

/* ============================================================
   加载遮罩与提示
   ============================================================ */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

#loadingText {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

.status-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: rgba(30, 41, 59, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-strong);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.status-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   响应式断点适配 (移动端 & 平板优化)
   ============================================================ */
@media (max-width: 780px) {
  .daily-bar-container {
    display: none; /* 780px以下隐藏进度条，避免挤压 */
  }
  
  .daily-row {
    grid-template-columns: 75px 1fr auto;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .app-container {
    padding: 16px 14px 36px;
    gap: 18px;
  }
  
  .app-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .header-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .header-center {
    max-width: 100%;
  }
  
  .header-right {
    justify-content: flex-end;
  }
  
  .hero-card {
    padding: 24px 20px;
  }
  
  .city-title {
    font-size: 1.8rem;
  }
  
  .current-temp-val {
    font-size: 4.8rem;
  }
  
  .temp-unit-symbol {
    font-size: 2.4rem;
  }
  
  .hero-weather-icon {
    width: 76px;
    height: 76px;
  }
  
  .hero-center {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .metric-card {
    padding: 16px;
    min-height: 125px;
  }
  
  .metric-value {
    font-size: 1.55rem;
  }
  
  .life-index-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
