/* 首页专用样式文件 */

/* 主体背景与字体 */
body { 
  background: #f6f8fa; 
  font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif; 
  margin: 0; 
}

/* 顶部导航 */
.tq-nav { 
  background: #fff; 
  border-bottom: 1.5px solid #e3e8f0; 
}

.tq-nav-inner { 
  max-width: 1160px; 
  margin: 0 auto; 
  display: flex; 
  align-items: center; 
  height: 64px; 
}

.tq-logo { 
  font-size: 28px; 
  color: #2196f3; 
  font-weight: bold; 
  letter-spacing: 2px; 
  margin-right: 48px; 
  text-decoration: none; 
}

.tq-nav-links { 
  display: flex; 
  align-items: center; 
}

.tq-nav-links a { 
  color: #222; 
  font-size: 17px; 
  margin-right: 32px; 
  text-decoration: none; 
  font-weight: 500; 
  padding-bottom: 2px; 
  transition: color 0.2s, border-bottom 0.2s; 
}

.tq-nav-links a.active, 
.tq-nav-links a:hover { 
  color: #2196f3; 
  border-bottom: 2px solid #2196f3; 
}

/* 汉堡菜单按钮默认隐藏，仅移动端显示 */
.tq-menu-btn {
  display: none;
}

/* 主内容区 */
.tq-main { 
  background: none; 
}

.tq-main-inner { 
  max-width: 1160px; 
  margin: 3px auto 0 auto; 
}

.tq-flex-row { 
  display: flex; 
  gap: 3px; 
  align-items: flex-start; 
}

.tq-main-left { 
  flex: 1; 
  min-width: 0; 
}

.tq-main-right { 
  width: 320px; 
  min-width: 220px; 
}

/* 内容区块 */
.tq-block { 
  background: #fff; 
  border-radius: 14px; 
  box-shadow: none; 
  margin-bottom: 3px; 
  padding: 28px 36px 22px 36px; 
  border: 1.5px solid #f0f0f0; 
}

.tq-block-title { 
  font-size: 20px; 
  color: #222; 
  font-weight: bold; 
  border-left: 4px solid #2196f3; 
  padding-left: 14px; 
  margin-bottom: 18px; 
  letter-spacing: 1px; 
}

/* 省份/城市列表 */
.tq-province-list, 
.tq-hotcity-list { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 16px; 
}

.tq-province-list a, 
.tq-hotcity-list a { 
  color: #2196f3; 
  font-size: 16px; 
  background: #f6f8fa; 
  border-radius: 8px; 
  padding: 6px 18px; 
  text-decoration: none; 
}

.tq-province-list a:hover, 
.tq-hotcity-list a:hover { 
  background: #e3e8f0; 
}

/* 最新关注天气列表特殊样式 */
.tq-latest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.tq-latest-list a {
  display: inline-block;
  background: #fafbfc;
  color: #444;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 4px;
}

.tq-latest-list a:hover {
  background: #1976d2;
  color: #fff;
  border-color: #1976d2;
}

/* 搜索表单 */
.tq-search-form { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
}

.tq-search-input { 
  height: 36px; 
  border: 1.5px solid #e3e8f0; 
  border-radius: 6px 0 0 6px; 
  padding: 0 14px; 
  font-size: 16px; 
  outline: none; 
  flex: 1 1 0;
  min-width: 0;
}

.tq-search-btn {
  height: 36px;
  line-height: 36px;
  border: none;
  background: #2196f3;
  color: #fff;
  font-size: 16px;
  border-radius: 0 6px 6px 0;
  padding: 0 22px;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  writing-mode: horizontal-tb !important;
  white-space: nowrap;
}

/* 天气新闻列表 */
.tq-news-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tq-news-item {
  display: flex;
  align-items: stretch;
  gap: 14px;
  background: none;
  border: none;
  padding: 0;
}
.tq-news-thumb {
  display: flex;
  align-items: center;
  height: 60px;
}
.tq-news-thumb img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.tq-news-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 60px;
}
.tq-news-content a {
  font-size: 15px;
  color: #222;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  max-height: 2.8em;
}
.tq-news-meta {
  font-size: 13px;
  color: #888;
  margin-top: auto;
}

/* 中国地图 */
.tq-china-map-wrap {
  width: 100%;
  background: #fafbfc;
  border-radius: 12px;
  padding: 18px 0 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
}

.tq-china-map-center {
  justify-content: center !important;
}

.tq-china-map {
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  position: relative;
}

.china-map-img {
  width: 100%;
  height: auto;
  display: block;
}

.province-labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.province-label {
  position: absolute;
  background: rgba(33, 150, 243, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
  white-space: nowrap;
  z-index: 10;
}

.province-label:hover {
  background: rgba(33, 150, 243, 1);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.tq-china-map svg {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.tq-china-map a { 
  text-decoration: none; 
}

.tq-china-map a rect { 
  fill: #888; 
  transition: all 0.3s ease; 
  cursor: pointer; 
  stroke: #fff; 
  stroke-width: 1; 
}

.tq-china-map a:hover rect { 
  fill: #2196f3; 
  transform: scale(1.05); 
}

.tq-china-map a:active rect { 
  fill: #1976d2; 
  transform: scale(0.98); 
}

.tq-china-map a rect[fill="#ffb300"] { 
  fill: #ffb300 !important; 
}

.tq-china-map a:hover rect[fill="#ffb300"] { 
  fill: #ff9800 !important; 
}

.tq-china-map text { 
  font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif; 
  font-size: 14px; 
  pointer-events: none; 
  transition: all 0.3s ease; 
}

.tq-china-map a:hover text { 
  fill: #fff; 
  font-weight: bold; 
}

.tq-china-map g text { 
  font-size: 12px; 
  fill: #888; 
}

.tq-china-map g rect { 
  fill: #f0f0f0; 
  stroke: #ddd; 
  stroke-width: 1; 
}

/* 首页地图容器 */
.home_map {
  width: 716px;
  height: 595px;
  margin: 0 auto;
  position: relative;
}

.home_map img {
  display: block;
}

/* 首页地图链接 */
.home_map a {
  display: inline-block;
  padding: 2px 8px;
  font-size: 14px;
  color: #fff;
  background: #666;
  border-radius: 10px;
  text-align: center;
  font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
  font-weight: bold;
  box-shadow: none;
  border: none;
  line-height: 1.2;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  position: absolute;
  z-index: 10;
}

/* 各省市地图链接定位 */
.home_map a[href="/city/beijing/"] { top: 215px; left: 515px; }
.home_map a[href="/city/tianjin/"] { top: 239px; left: 544px; }
.home_map a[href="/city/anhui/"] { top: 355px; left: 545px; }
.home_map a[href="/city/heilongjiang/"] { top: 81px; left: 624px; }
.home_map a[href="/city/neimenggu/"] { top: 211px; left: 414px; }
.home_map a[href="/city/xinjiang/"] { top: 200px; left: 130px; }
.home_map a[href="/city/shanghai/"] { top: 352px; left: 615px; }
.home_map a[href="/city/liaoning/"] { top: 180px; left: 600px; }
.home_map a[href="/city/chongqing/"] { top: 390px; left: 420px; }
.home_map a[href="/city/guangdong/"] { top: 490px; left: 500px; }
.home_map a[href="/city/xianggang/"] { top: 515px; left: 525px; }
.home_map a[href="/city/aomen/"] { top: 520px; left: 490px; }
.home_map a[href="/city/guangxi/"] { top: 488px; left: 432px; }
.home_map a[href="/city/jilin/"] { top: 150px; left: 642px; }
.home_map a[href="/city/henan/"] { top: 320px; left: 490px; }
.home_map a[href="/city/shan_xi/"] { top: 321px; left: 428px; }
.home_map a[href="/city/shanxi/"] { top: 271px; left: 470px; }
.home_map a[href="/city/hebei/"] { top: 247px; left: 508px; }
.home_map a[href="/city/shandong/"] { top: 281px; left: 540px; }
.home_map a[href="/city/jiangxi/"] { top: 425px; left: 525px; }
.home_map a[href="/city/jiangsu/"] { top: 321px; left: 570px; }
.home_map a[href="/city/zhejiang/"] { top: 395px; left: 588px; }
.home_map a[href="/city/xizang/"] { top: 350px; left: 143px; }
.home_map a[href="/city/qinghai/"] { top: 290px; left: 254px; }
.home_map a[href="/city/gansu/"] { top: 310px; left: 364px; }
.home_map a[href="/city/ningxia/"] { top: 272px; left: 390px; }
.home_map a[href="/city/hainan/"] { top: 565px; left: 450px; }
.home_map a[href="/city/hubei/"] { top: 370px; left: 480px; }
.home_map a[href="/city/fujian/"] { top: 445px; left: 565px; }
.home_map a[href="/city/hunan/"] { top: 425px; left: 475px; }
.home_map a[href="/city/yunnan/"] { top: 480px; left: 320px; }
.home_map a[href="/city/sichuan/"] { top: 385px; left: 345px; }
.home_map a[href="/city/guizhou/"] { top: 445px; left: 405px; }
.home_map a[href="/city/taiwan/"] { top: 475px; left: 612px; }

.home_map a.em {
  background: #f1aa00;
  color: #fff;
}

.home_map a:hover {
  background: #444;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* 定位城市天气内容 */
#location-weather-content {
  padding: 8px 0;
  text-align: center;
  color: #333;
}

.tq-location-weather { 
  display: block !important; 
}

.tq-location-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tq-location-city {
  font-size: 18px;
  font-weight: bold;
  color: #2196f3;
}

.tq-location-error {
  font-size: 16px;
  color: #f44336;
}

.tq-location-action {
  margin-top: 8px;
}

.tq-location-link {
  display: inline-block;
  background: #2196f3;
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.tq-location-link:hover {
  background: #1976d2;
}

/* 底部版权 */
.tq-footer { 
  background: #f0f2f5; 
  color: #888; 
  font-size: 15px; 
  text-align: center; 
  padding: 20px 0 16px 0; 
  margin-top: 24px; 
}

.tq-footer-inner { 
  max-width: 1160px; 
  margin: 0 auto; 
}

 

.tq-search-hotcity {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.tq-search-hotcity a {
  display: inline-block;
  background: #f6f8fa;
  color: #2196f3;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.tq-search-hotcity a:hover {
  background: #e3e8f0;
  color: #1976d2;
}

/* 天气显示样式 */
.tq-weather-display {
  padding: 0;
}

.tq-weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.tq-weather-city {
  font-size: 18px;
  font-weight: bold;
  color: #222;
}

.tq-weather-time {
  font-size: 12px;
  color: #666;
}

.tq-weather-main {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
}

.tq-weather-icon {
  font-size: 48px;
  line-height: 1;
}

.tq-weather-info {
  flex: 1;
}

.tq-weather-temp {
  font-size: 36px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 4px;
}

.tq-weather-desc {
  font-size: 16px;
  opacity: 0.9;
}

.tq-weather-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.tq-weather-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.tq-weather-item:last-child {
  border-bottom: none;
}

.tq-weather-label {
  font-size: 14px;
  color: #666;
}

.tq-weather-value {
  font-size: 14px;
  color: #222;
  font-weight: 500;
}

.tq-weather-forecast {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.tq-forecast-item {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.tq-forecast-date {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.tq-forecast-weather {
  font-size: 14px;
  color: #222;
  margin-bottom: 4px;
}

.tq-forecast-temp {
  font-size: 12px;
  color: #666;
}

.tq-weather-loading {
  font-size: 14px;
  color: #666;
  text-align: center;
  padding: 20px 0;
} 