/* ========== 全局样式 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Roboto, sans-serif;
}

body {
  background: #f5f7fb;
  color: #1f2937;
  line-height: 1.8;
  padding-bottom: 20px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ========== 头部 ========== */
.header {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  padding: 30px 0;
  text-align: center;
  margin-bottom: 15px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
}

.logo-text {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.header h1 {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 8px;
  opacity: 0.95;
}

.header p {
  font-size: 16px;
  opacity: 0.85;
}

.platform-desc {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 10px;
}

/* ========== 搜索框 ========== */
.search-section {
  margin-bottom: 25px;
}
.search-form {
  display: flex;
  justify-content: center;
}
.search-input {
  width: 60%;
  max-width: 500px;
  height: 46px;
  border: 2px solid #dbeafe;
  border-right: none;
  border-radius: 25px 0 0 25px;
  padding: 0 20px;
  font-size: 16px;
  outline: none;
}
.search-input:focus {
  border-color: #2563eb;
}
.search-btn {
  height: 46px;
  padding: 0 30px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border: none;
  border-radius: 0 25px 25px 0;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.search-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

/* ========== 导航 ========== */
.nav-wrap {
  width: 100%;
  margin-bottom: 30px;
}
.nav {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.nav li {
  margin: 0 8px;
}
.nav a {
  color: #4b5563;
  text-decoration: none;
  font-size: 15px;
  padding: 12px 20px;
  display: block;
  border-radius: 12px;
  transition: all 0.3s ease;
}
.nav a:hover {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #2563eb;
  font-weight: 500;
  transform: translateY(-1px);
}

/* ========== 六宫格卡片 ========== */
.column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}
.column .item {
  background: #fff;
  padding: 30px 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border: 1px solid #f0f4fc;
  cursor: pointer;
}
.column .item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #dbeafe;
}
.column .item a {
  color: inherit;
  text-decoration: none;
  display: block;
}
.column .item h3 {
  font-size: 18px;
  color: #2563eb;
  margin-bottom: 12px;
  font-weight: 600;
}
.column .item h3 span {
  font-size: 12px;
  font-weight: normal;
  color: #9ca3af;
}
.column .item p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

/* ========== 主体布局 ========== */
.main {
  display: grid;
  grid-template-columns: 70% 28%;
  gap: 2%;
}

/* ========== 内容盒子 ========== */
.box {
  background: #fff;
  border-radius: 24px;
  padding: 28px 26px;
  margin-bottom: 28px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
  border: 1px solid #eff3f8;
}

.box h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 20px 0;
  padding-left: 16px;
  border-left: 5px solid #2563eb;
  letter-spacing: -0.2px;
}

.update-tip {
  font-size: 13px;
  color: #6c86a3;
  background: #f8fafc;
  display: inline-block;
  padding: 4px 14px;
  border-radius: 30px;
  margin-bottom: 18px;
}

/* ========== 问答列表（和截图100%匹配版） ========== */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-item-li {
  list-style: none;
  padding: 20px 0; /* 调整上下间距，和截图一致 */
  border-bottom: 1px solid #edf2f7;
}

.news-item-li:last-child {
  border-bottom: none;
}

.news-title-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.news-link {
  font-size: 16px;
  font-weight: 600; /* 标题加粗，和截图一致 */
  line-height: 1.5; /* 调整标题行高，避免拥挤 */
  color: #1f2937;
  text-decoration: none;
  flex: 1;
  transition: color 0.2s;
}

.news-link:hover {
  color: #2563eb;
}

.news-time {
  font-size: 12px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.news-summary {
  font-size: 14px;
  line-height: 1.6;
  color: #718096; /* 摘要文字调浅，和标题形成对比 */
  margin: 8px 0 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* ========== 右侧栏目 ========== */
.right .box .news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.right .box .news-list li {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #edf2f7;
}

.right .box .news-list li:last-child {
  border-bottom: none;
}

.right .box .news-list li a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  font-weight: 500;
  padding-left: 8px; 
}

.right .box .news-list li a i {
  color: #2563eb;
  width: 20px;
  font-size: 16px;
  text-align: center;
}

.right .box .news-list li a:hover {
  color: #2563eb;
  padding-left: 4px;
}

/* ========== 热点问答精选 终极修复版（标题必换行） ========== */
.hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hot-list li {
  display: flex;
  flex-wrap: wrap; /* 强制允许换行 */
  justify-content: space-between;
  align-items: flex-start; /* 顶部对齐，避免文字被日期挤歪 */
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px dashed #edf2f7;
}

.hot-list li:last-child {
  border-bottom: none;
}

.hot-title {
  /* 关键：彻底取消单行限制 */
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  /* 宽度限制，强制它在日期前面换行 */
  max-width: calc(100% - 90px);
  /* 其他样式 */
  color: #1e2a3a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.5; /* 行高拉大，避免多行文字拥挤 */
  transition: color 0.2s;
}

.hot-title:hover {
  color: #2563eb;
  text-decoration: underline;
}

.hot-date {
  /* 日期固定宽度，不被挤压 */
  flex: 0 0 auto;
  font-size: 11px;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
  margin-top: 6px; /* 和标题文字顶部对齐 */
}

/* ========== 底部卡片 ========== */
.footer-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 15px;
}
.footer-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}
.footer-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}
.footer-card-header .icon-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
}
.footer-card-header .icon-title i {
  color: #2563eb;
  font-size: 22px;
}
.footer-card-header .more-btn {
  font-size: 13px;
  color: #2563eb;
  background: #eff6ff;
  padding: 4px 12px;
  border-radius: 12px;
  text-decoration: none;
}
.footer-card-list {
  list-style: none;
}
.footer-card-list li {
  padding: 8px 0;
  line-height: 1.6;
}
.footer-card-list li a {
  color: #4b5563;
  text-decoration: none;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-left: 16px;
}
.footer-card-list li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #2563eb;
}
.footer-card-list li a:hover::before {
  transform: translateY(-50%) rotate(45deg) scale(1.2);
  transition: all 0.2s ease;
}
.footer-card-list li a:hover {
  color: #2563eb;
}

/* ========== 页脚 ========== */
.footer {
  text-align: center;
  padding: 25px 20px;
  color: #6b7280;
  font-size: 14px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  margin-top: 30px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
}
.footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}
.footer .footer-nav a {
  color: #6b7280;
  text-decoration: none;
}
.footer .footer-nav a:hover {
  color: #2563eb;
}
.footer p {
  margin: 5px 0;
}

/* ========== 列表页专用样式 ========== */
.row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.sidebar {
  width: 240px;
  flex-shrink: 0;
}
.content-area {
  flex: 1;
  min-width: 0;
}

.sidebar .box {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.04);
  border: 1px solid #f0f4fc;
}
.sidebar h4 {
  font-size: 16px;
  color: #2563eb;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid #2563eb;
}
.sidebar ul {
  list-style: none;
}
.sidebar ul li {
  padding: 8px 0;
  border-bottom: 1px dashed #e5e7eb;
}
.sidebar ul li a {
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  transition: 0.2s;
}
.sidebar ul li a i {
  color: #2563eb;
  font-size: 14px;
  width: 16px;
}
.sidebar ul li a:hover {
  color: #2563eb;
  font-weight: 500;
}

.question-list .item {
  background: #fff;
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border: 1px solid #f0f4fc;
}
.item .q-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  color: #1f2937;
  text-decoration: none;
}
.item .q-title:hover {
  color: #2563eb;
}
.item .q-summary {
  text-align: left;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 8px;
}
.item .q-meta {
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.pagination {
  text-align: center;
  margin-top: 25px;
}
.pagination a, .pagination span {
  display: inline-block;
  padding: 6px 14px;
  margin: 0 3px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
}
.pagination .current {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .column {
    grid-template-columns: 1fr;
  }
  .main {
    grid-template-columns: 1fr;
  }
  .nav a {
    padding: 10px 15px;
    font-size: 14px;
  }
  .header h1 {
    font-size: 20px;
  }
  .box {
    padding: 20px;
  }
  .search-input {
    width: 70%;
  }
  .footer-cards {
    grid-template-columns: 1fr;
  }

  .news-title-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .news-time {
    white-space: normal;
    font-size: 11px;
  }
  .news-link {
    font-size: 15px;
  }
  .news-summary {
    font-size: 13px;
  }
  .hot-list li {
    flex-wrap: wrap;
  }
  .hot-title {
    white-space: normal;
    width: 100%;
  }

  .row {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .news-title-line {
    flex-direction: column;
    align-items: flex-start;
  }
  .news-time {
    white-space: normal;
  }
}
/* ========== 卡片式问答列表样式 ========== */
.news-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f4fc;
  transition: all 0.2s ease;
}

.news-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.news-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
  line-height: 1.5;
}

.news-card-title:hover {
  color: #2563eb;
}

.news-card-summary {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 16px;
}

.news-card-meta {
  font-size: 13px;
  color: #9ca3af;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.news-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========== 侧边栏热点问答精选（和主列表统一版） ========== */
.hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hot-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed #edf2f7;
}

.hot-list li:last-child {
  border-bottom: none;
}

.hot-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1e2a3a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
  transition: color 0.2s;
}

.hot-title:hover {
  color: #2563eb;
  text-decoration: underline;
}

.hot-date {
  font-size: 11px; /* 保持和主列表日期一致 */
  color: #9ca3af;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}
/* ======================================
  首页带图问答卡片（和截图100%匹配）
======================================== */
.news-card-has-img {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #f0f4fc;
    transition: all 0.2s ease;
}
.news-card-has-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.news-card-img {
    width: 140px;
    height: 105px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    display: block;
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-card-body {
    flex: 1;
    min-width: 0;
}
.news-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    line-height: 1.5;
}
.news-card-title:hover {
    color: #2563eb;
}
.news-card-summary {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-meta {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
/* 移动端适配 */
@media (max-width:768px) {
    .news-card-has-img {
        flex-direction: column;
        gap: 12px;
    }
    .news-card-img {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .column { grid-template-columns: 1fr; gap: 16px; }
  .main { flex-direction: column; }
}
.geo-claim {
  margin: 40px auto;
  padding: 20px;
  background: #f8fafc;
  border-left: 4px solid #2563eb;
  border-radius: 12px;
}