/* 主体背景与字体 */
body {
  background: #f5f6fa;
  margin: 0;
  font-family: '微软雅黑', Arial, sans-serif;
}

/* 天气页面主卡片区块 */
.weather-block-card {
  max-width: 980px;
  margin: 0 auto 32px auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px #0001;
  padding: 28px 0 18px 0;
  box-sizing: border-box;
}
.weather-block-title {
  font-size: 20px;
  font-weight: bold;
  color: #222;
  margin-bottom: 18px;
  text-align: left;
}

/* 逐小时天气区块 */
.weather-hourly-list {
  display: flex;
  gap: 14px;
  min-width: max-content;
  padding: 8px 0;
}
.weather-hourly-item {
  background: #f8f9fb;
  border-radius: 10px;
  padding: 14px 16px;
  min-width: 120px;
  flex-shrink: 0;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid #e9ecef;
}
.weather-hourly-date {
  font-size: 13px;
  color: #1976d2;
  margin-bottom: 6px;
  font-weight: 600;
}
.weather-hourly-desc {
  font-size: 13px;
  color: #444;
  margin-bottom: 6px;
  font-weight: 500;
}
.weather-hourly-temp {
  font-size: 15px;
  color: #ff9800;
  font-weight: bold;
  margin-bottom: 4px;
}
.weather-hourly-wind {
  font-size: 11px;
  color: #666;
  line-height: 1.3;
}
.weather-hourly-empty {
  color: #888;
  font-size: 16px;
  padding: 24px 0;
  text-align: center;
  width: 100%;
}

/* 空气质量区块 */
.aqi-widget { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; min-height: 200px; }
.aqi-gauge-wrap { flex: 0 0 340px; max-width: 340px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.aqi-gauge-svg { width: 320px; height: 180px; position: relative; }
.aqi-gauge-center { position: absolute; left: 0; top: 0; width: 320px; height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.aqi-gauge-value { font-size: 54px; font-weight: bold; color: #222; line-height: 1; }
.aqi-gauge-level { font-size: 26px; color: #4caf50; font-weight: 600; margin-bottom: 2px; }
.aqi-gauge-desc { font-size: 16px; color: #666; margin-top: 8px; max-width: 260px; line-height: 1.6; }
.aqi-bar-list { flex: 1; min-width: 220px; max-width: 320px; margin-left: 24px; }
.aqi-bar-list-title { font-size: 17px; font-weight: 600; color: #222; margin-bottom: 12px; }
.aqi-bar-item { display: flex; align-items: center; margin-bottom: 18px; gap: 12px; }
.aqi-bar-label { width: 54px; font-size: 15px; font-weight: 600; color: #333; }
.aqi-bar-bg { flex: 1; display: flex; align-items: center; gap: 8px; }
.aqi-bar-bg-inner { width: 100px; height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.aqi-bar-fg { height: 100%; border-radius: 4px; transition: width 0.3s; }
.aqi-bar-value { font-size: 15px; font-weight: bold; min-width: 32px; text-align: right; }
.aqi-bar-level { font-size: 13px; color: #888; min-width: 32px; text-align: left; }
.aqi-empty { color: #888; font-size: 16px; padding: 24px 0; text-align: center; }


/* 生活指数区块 */
.life-index-flex { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.life-index-card { background: #f8f8f8; border-radius: 12px; box-shadow: 0 1px 4px #0001; padding: 18px 18px 14px 18px; min-width: 160px; max-width: 220px; flex: 1 1 180px; display: flex; flex-direction: column; align-items: center; }
.life-index-icon { font-size: 32px; color: #2196f3; margin-bottom: 8px; }
.life-index-level { font-size: 28px; font-weight: bold; color: #2196f3; margin-bottom: 6px; }
.life-index-title { font-size: 16px; font-weight: 600; color: #222; margin-bottom: 8px; text-align: center; }
.life-index-desc { font-size: 14px; color: #666; text-align: center; line-height: 1.6; min-height: 38px; }
.life-index-empty { color: #888; font-size: 16px; padding: 24px 0; text-align: center; }

/* 右侧栏区块 */
.tq-block { margin-bottom: 32px; background: #fff; border-radius: 14px; box-shadow: 0 2px 12px #0001; padding: 18px 18px 12px 18px; }
.tq-block-title { font-size: 20px; font-weight: bold; color: #1976d2; margin-bottom: 12px; letter-spacing: 1px; }
.tq-search-form { display: flex; gap: 6px; margin-bottom: 8px; flex-direction: row; align-items: center; }
.tq-search-input { flex: 1; height: 38px; border: 1px solid #d0d7de; border-radius: 6px; padding: 0 12px; font-size: 15px; outline: none; transition: border 0.2s; }
.tq-search-btn { height: 38px; padding: 0 14px; background: #1976d2; color: #fff; border: none; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.2s; white-space: nowrap; min-width: 44px; display: flex; align-items: center; justify-content: center; }
.tq-search-hotcity { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 2px; }
.tq-search-hotcity a { display: inline-block; padding: 3px 12px; background: #f5f6fa; border-radius: 12px; color: #1976d2; font-size: 13px; text-decoration: none; transition: background 0.2s; border: 1px solid #e0e6ed; }
.tq-search-hotcity a:hover { background: #e3eaf6; }
.tq-hotcity-list { display: flex; flex-direction: column; gap: 4px 0; list-style: none; padding: 0; margin: 0; }
.tq-hotcity-list li { width: 100%; display: flex; flex-direction: row; justify-content: flex-start; gap: 0 4px; }
.tq-hotcity-list a { display: inline-block; flex: 1 1 0; padding: 4px 6px; background: #f5f6fa; border-radius: 16px; color: #1976d2; font-weight: 500; font-size: 13px; text-decoration: none; transition: background 0.2s; text-align: center; }
.tq-hotcity-list a:hover { background: #e3eaf6; }
.tq-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tq-news-list li {
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}
.tq-news-thumb {
  width: 72px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f5f6fa;
}
.tq-news-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  color: #444;
  text-decoration: none;
  transition: color 0.2s;
  flex: 1 1 0;
  line-height: 1.5;
  word-break: break-all;
  white-space: normal;
  margin-left: 0;
}
.tq-news-title:hover {
  color: #1976d2;
  text-decoration: underline;
}


 
body { background: #f5f6fa; margin: 0; font-family: '微软雅黑', Arial, sans-serif; }
.weather-block-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px #eee; margin-bottom: 3px; padding: 16px 28px 18px 28px; overflow: hidden; }
.weather-block-title { font-size: 20px; font-weight: bold; color: #1976d2; margin-bottom: 18px; letter-spacing: 1px; }
.weather-today-flex { display: flex; align-items: center; gap: 32px; }
.weather-today-info { flex: 1; }
.weather-today-hifi {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}
.weather-today-img {
  flex-shrink: 0;
  width: 170px;
  height: 130px;
  border-radius: 10px;
  box-shadow: 0 2px 8px #eee;
  object-fit: cover;
  display: block;
}
.weather-today-title {
  font-size: 22px;
  font-weight: bold;
  color: #1976d2;
  display: flex;
  align-items: center;
  gap: 6px;
}
.weather-today-temp {
  font-size: 44px;
  color: #ff9800;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}
.weather-today-desc {
  font-size: 20px;
  color: #1976d2;
  display: flex;
  align-items: center;
  gap: 6px;
}
.weather-today-update {
  margin-left: auto;
  font-size: 14px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}
.weather-today-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin: 12px 0 0 0;
  font-size: 15px;
  color: #444;
  align-items: center;
}
.weather-15d-list { display: flex; flex-wrap: wrap; gap: 4px; min-width: max-content; }
.weather-15d-item {
  background: #f8f9fb;
  border-radius: 12px;
  min-width: 140px;
  flex-shrink: 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #e9ecef;
  padding: 16px 20px;
  box-sizing: border-box;
}
.weather-15d-date {
  font-size: 14px;
  color: #1976d2;
  margin-bottom: 8px;
  font-weight: 600;
}
.weather-15d-icon {
  margin-bottom: 8px;
}
.weather-15d-icon img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.weather-15d-desc {
  font-size: 14px;
  color: #444;
  margin-bottom: 8px;
  font-weight: 500;
}
.weather-15d-temp {
  font-size: 16px;
  color: #ff9800;
  font-weight: bold;
  margin-bottom: 6px;
}
.weather-15d-wind {
  font-size: 12px;
  color: #666;
  line-height: 1.3;
}
.life-index-portal-table { display: flex; flex-wrap: wrap; gap: 12px; }
.life-index-portal-item { background: #f8f9fb; border-radius: 8px; padding: 12px 16px; min-width: 120px; flex: 1 1 120px; max-width: 220px; box-sizing: border-box; }
.life-index-portal-title { font-size: 15px; color: #1976d2; font-weight: bold; margin-bottom: 4px; }
.life-index-portal-desc { font-size: 13px; color: #444; }
.daynight-row { color: #888; font-size: 15px; margin-top: 8px; }
/* 右侧新闻栏 */
.sidebar-block { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px #eee; margin-bottom: 28px; padding: 22px 22px 12px 22px; }
.sidebar-title { font-size: 18px; color: #1976d2; font-weight: bold; margin-bottom: 12px; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { margin-bottom: 10px; }
.sidebar-list a { color: #444; text-decoration: none; font-size: 15px; transition: color 0.2s; }
.sidebar-list a:hover { color: #1976d2; text-decoration: underline; }

/* 滚动优化样式 */
.weather-15d-container, .weather-hourly-container {
  -webkit-overflow-scrolling: touch; /* iOS滚动优化 */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #ccc transparent; /* Firefox */
}
.weather-15d-container::-webkit-scrollbar, .weather-hourly-container::-webkit-scrollbar {
  height: 6px;
}
.weather-15d-container::-webkit-scrollbar-track, .weather-hourly-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}
.weather-15d-container::-webkit-scrollbar-thumb, .weather-hourly-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.weather-15d-container::-webkit-scrollbar-thumb:hover, .weather-hourly-container::-webkit-scrollbar-thumb:hover {
  background: #999;
}
 
.tq-main-inner.tq-flex-row, .tq-main {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.tq-main-left {
  flex: 1 1 0;
}
.tq-main-right {
  width: 320px;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
 
.tq-block { margin-bottom: 3px; } 
.tq-block.tq-search {
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 3px;
  margin-top: 0;
}
.tq-search-form {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-direction: row;
  align-items: center;
}
.tq-search-input {
  flex: 1;
  height: 38px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 15px;
  outline: none;
  transition: border 0.2s;
}
.tq-search-input:focus {
  border-color: #1976d2;
}
.tq-search-btn {
  height: 38px;
  padding: 0 14px;
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tq-search-btn:hover {
  background: #1565c0;
}
.tq-search-hotcity {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 2px;
}
.tq-search-hotcity a {
  display: inline-block;
  padding: 3px 12px;
  background: #f5f6fa;
  border-radius: 12px;
  color: #1976d2;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s;
  border: 1px solid #e0e6ed;
}
.tq-search-hotcity a:hover {
  background: #e3eaf6;
} 
.icon-wind { color: #607d8b; margin-right: 6px; }
.icon-gauge { color: #ffb300; margin-right: 6px; }
.icon-tint { color: #03a9f4; margin-right: 6px; }
.icon-eye { color: #43a047; margin-right: 6px; }
.icon-smog { color: #4caf50; margin-right: 6px; }
.icon-sun { color: #ff9800; margin-right: 6px; }
.aqi-level { color: #4caf50; font-weight: bold; } 
 