/* ============================================================
   index-page.css — 首页内容区专属样式
   依赖：global-new.css（header/footer 公共样式）
   ============================================================ */

/* ========== 推荐区块（带图片的推荐列表） ========== */
.moban_headtxt {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0 10px; margin-bottom: 12px;
  border-bottom: 2px solid #e2e8f0; position: relative;
}
.moban_headtxt::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 70px; height: 2px; background: linear-gradient(90deg, #3182ce, #63b3ed);
}
.moban_headtxt strong {
  font-size: 17px; font-weight: 700; color: #1a365d;
  display: flex; align-items: center; gap: 6px;
}
.moban_headtxt span a {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 13px; color: #3182ce; font-weight: 600;
}
.moban_headtxt span a:hover { color: #2b6cb0; }
.moban_headtxt span a i { font-style: normal; font-size: 12px; }

/* 推荐图文列表（list-img） */
.list-img {
  background: #fff; border-radius: 12px; padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.list-img ul {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.list-img li { transition: transform .3s; }
.list-img li:hover { transform: translateY(-3px); }
.list-img li a {
  display: block; text-decoration: none;
}
.list-img li img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 8px; transition: opacity .3s;
}
.list-img li:hover img { opacity: .88; }
.list-img li h3 {
  font-size: 13px; font-weight: 500; color: #2d3748;
  margin-top: 6px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; text-align: center;
}
.list-img li a:hover h3 { color: #3182ce; }

/* ========== 三栏主体（m3） ========== */
.m3 {
  max-width: 1200px; margin: 20px auto; padding: 0 15px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.m3l { min-width: 0; }
.m3r { min-width: 0; }

/* 地区浏览推荐（标签云样式） */
.list-area { margin-bottom: 24px; }
.list-area ul {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.list-area li a {
  display: inline-flex; align-items: center;
  padding: 6px 14px; background: #f7fafc; border: 1px solid #e2e8f0;
  border-radius: 20px; font-size: 12.5px; color: #4a5568;
  transition: all .25s;
}
.list-area li a:hover {
  background: #3182ce; color: #fff; border-color: #3182ce;
  transform: translateY(-1px); box-shadow: 0 2px 8px rgba(49,130,206,.25);
}

/* 行业浏览（分类列表） */
.list-cate { }
.list-cate a {
  display: inline-block; padding: 4px 0; color: #4a5568; font-size: 13px;
}
.list-cate a:hover { color: #3182ce; }

/* ========== 右侧栏（m3r） ========== */
.moban_head_sub {
  display: flex; align-items: center;
  padding: 10px 0 8px; margin-bottom: 10px;
  border-bottom: 2px solid #e2e8f0; position: relative;
}
.moban_head_sub::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 50px; height: 2px; background: linear-gradient(90deg, #38a169, #68d391);
}
.moban_head_sub strong {
  font-size: 14px; font-weight: 700; color: #1a365d;
}

/* 文字列表（最新发布 / 重温经典） */
.list-txt ul { display: flex; flex-direction: column; gap: 0; }
.list-txt li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0; border-bottom: 1px dashed #edf2f7;
}
.list-txt li:last-child { border-bottom: none; }
.list-txt .news_time {
  display: inline-block; padding: 1px 5px; border-radius: 3px;
  background: #ebf8ff; color: #3182ce; font-size: 11px; font-weight: 600;
  flex-shrink: 0; font-family: 'Courier New', monospace; white-space: nowrap;
}
.list-txt li a {
  font-size: 12.5px; color: #4a5568; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.list-txt li a:hover { color: #3182ce; }

/* 排行列表（随机推荐） */
.list-rank ul { display: flex; flex-direction: column; gap: 0; }
.list-rank li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0; border-bottom: 1px dashed #edf2f7;
}
.list-rank li:last-child { border-bottom: none; }
.list-rank .news_time {
  display: inline-block; padding: 1px 5px; border-radius: 3px;
  background: #f0fff4; color: #38a169; font-size: 11px; font-weight: 600;
  flex-shrink: 0; font-family: 'Courier New', monospace; white-space: nowrap;
}
.list-rank em {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 4px; font-size: 11px; font-weight: 700;
  color: #fff; flex-shrink: 0; font-style: normal;
}
.list-rank li:nth-child(1) em { background: #e53e3e; }
.list-rank li:nth-child(2) em { background: #ed8936; }
.list-rank li:nth-child(3) em { background: #ecc94b; color: #744210; }
.list-rank li:nth-child(n+4) em { background: #a0aec0; }
.list-rank li a {
  font-size: 12.5px; color: #4a5568; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.list-rank li a:hover { color: #e53e3e; }

/* 右侧区块间距 */
.m3r .moban_head_sub + .list-txt,
.m3r .moban_head_sub + .list-rank {
  background: #fff; border-radius: 10px; padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04); margin-bottom: 18px;
}

/* ========== 提示区块 ========== */
.tishi {
  max-width: 1200px; margin: 15px auto; padding: 12px 16px;
  background: #fffbeb; border-left: 4px solid #ed8936; border-radius: 6px;
  font-size: 12.5px; color: #744210; line-height: 1.8;
}
.tishi span:first-child { font-weight: 700; color: #c05621; }

/* ========== 动画辅助 ========== */
.block.animate { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.block.animate.animated { opacity: 1; transform: translateY(0); }

/* ========== 响应式 ========== */
@media (max-width: 960px) {
  .m3 { grid-template-columns: 1fr; }
  .list-img ul { grid-template-columns: repeat(3, 1fr); }
  .m3r .moban_head_sub + .list-txt,
  .m3r .moban_head_sub + .list-rank { margin-bottom: 14px; }
}
@media (max-width: 640px) {
  .list-img ul { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .moban_headtxt strong { font-size: 15px; }
  .list-area li a { padding: 5px 10px; font-size: 12px; }
}
