/* 城市选择页右侧栏样式 */

/* 右侧栏基础样式 */
.tq-main-right {
  width: 320px;
  min-width: 220px;
}

/* 搜索框样式 */
.tq-block.tq-search {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 3px;
  padding: 24px;
  border: 1px solid #f0f0f0;
}

.tq-search-form {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  flex-direction: row;
  align-items: center;
}

.tq-search-input {
  flex: 1;
  height: 40px;
  border: 1.5px solid #e3e8f0;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 13px;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  background: #fafbfc;
  width: 70%;
  min-width: 120px;
  max-width: 200px;
}

.tq-search-input:focus {
  border-color: #2196f3;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.tq-search-btn {
  height: 40px;
  padding: 0 12px;
  background: #2196f3;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
  margin-left: 0;
  min-width: 60px;
}

.tq-search-btn:hover {
  background: #1976d2;
  transform: translateY(-1px);
}

.tq-search-hotcity {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 8px;
}

.tq-search-hotcity a {
  display: inline-block;
  padding: 4px 12px;
  background: #f5f6fa;
  border-radius: 16px;
  color: #1976d2;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: 1px solid #e3e8f0;
}

.tq-search-hotcity a:hover {
  background: #e3eaf6;
  color: #1565c0;
}

/* 热门城市样式 */
.tq-block.tq-hotcity {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 3px;
  padding: 24px;
  border: 1px solid #f0f0f0;
}

.tq-hotcity-list {
  display: flex;
  flex-direction: column;
  gap: 8px 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 6px;
}

.tq-hotcity-list a {
  display: inline-block;
  flex: 1 1 0;
  padding: 6px 10px;
  background: #f5f6fa;
  border-radius: 8px;
  color: #1976d2;
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  border: 1px solid #e3e8f0;
  text-align: center;
}

.tq-hotcity-list a:hover {
  background: #e3eaf6;
  color: #1565c0;
  transform: translateY(-1px);
}

/* 天气新闻样式 - 卡片式，和城市详情页一致 */
.tq-block.tq-news {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid #f0f0f0;
}

.tq-news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tq-news-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 1px 4px rgba(33,150,243,0.04);
  transition: box-shadow 0.2s;
}

.tq-news-item:hover {
  box-shadow: 0 2px 12px rgba(33,150,243,0.10);
}

.tq-news-thumb {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  margin-right: 14px;
  background: #e3e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tq-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tq-news-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tq-news-content a {
  font-size: 15px;
  color: #222;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 4px;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tq-news-content a:hover {
  color: #2196f3;
}

.tq-news-meta {
  font-size: 12px;
  color: #888;
}

/* 兼容旧的列表样式（如果还在使用） */
.tq-news-list li {
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.5;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 12px;
}

.tq-news-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.tq-news-list li a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.tq-news-list li a:hover {
  color: #2196f3;
}

/* 响应式设计 */
.tq-search-input,
.tq-search-btn {
  height: 40px;
  box-sizing: border-box;
}

.tq-search-btn {
  padding: 0 16px;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 搜索结果区整体美化 */
.tq-search-result-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tq-search-result-list li {
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s, background 0.2s;
  box-shadow: 0 1px 4px rgba(33,150,243,0.04);
}

.tq-search-result-list li:hover {
  background: #e3eaf6;
  box-shadow: 0 2px 12px rgba(33,150,243,0.10);
}

.tq-search-result-list a {
  color: #1976d2;
  font-size: 17px;
  font-weight: bold;
  text-decoration: none;
  margin-right: 12px;
  transition: color 0.2s;
}

.tq-search-result-list a:hover {
  color: #1565c0;
  text-decoration: underline;
}

.tq-search-result-meta {
  color: #888;
  font-size: 14px;
  letter-spacing: 1px;
}

.tq-search-weather {
  margin-top: 4px;
  font-size: 14px;
  color: #444;
}
.tq-search-weather span {
  margin-right: 10px;
}

.tq-search-children {
  margin-top: 4px;
  font-size: 13px;
  color: #888;
}
.tq-search-children a {
  color: #1976d2;
  text-decoration: none;
  margin-right: 8px;
  font-size: 13px;
}
.tq-search-children a:hover {
  text-decoration: underline;
  color: #1565c0;
}

 