/* ==========================================================================
   首页频道分区样式（版式参考 27580.cn，全端自适应）
   ========================================================================== */

.hm-wrap { padding-top: 16px; }

/* ===== 焦点区：大图头条 + 最新文字链 ===== */
.hm-focus { display: grid; grid-template-columns: 1.75fr 1fr; gap: 16px; margin-bottom: 26px; }
.hm-focus-slider { min-width: 0; }
.hm-focus-slider .hero-slider { height: 380px; border-radius: 10px; }

.hm-focus-list {
  background: var(--bg-card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hm-focus-head {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hm-focus-head i { color: var(--accent); }
.hm-focus-list ul { flex: 1; }
.hm-focus-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  font-size: .88rem;
  line-height: 1.45;
}
.hm-focus-list li:last-child { border-bottom: none; }
.hm-num {
  flex: 0 0 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 3px;
  background: #eef1f5;
  color: var(--text-light);
  font-size: .72rem;
  font-weight: 700;
}
.hm-num.top { background: var(--accent); color: #fff; }
.hm-focus-list li a {
  flex: 1;
  min-width: 0;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hm-focus-list li a:hover { color: var(--accent); }
.hm-date { flex: 0 0 auto; color: var(--text-light); font-size: .75rem; }

/* ===== 区块标题栏 ===== */
.hm-section { margin-bottom: 28px; }
.hm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--primary);
}
.hm-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hm-head-bar { width: 6px; height: 22px; background: var(--accent); border-radius: 2px; display: inline-block; }
.hm-more { font-size: .82rem; color: var(--text-light); white-space: nowrap; }
.hm-more:hover { color: var(--accent); }

/* ===== 卡片网格 ===== */
.hm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hm-card { min-width: 0; }
.hm-card-link { position: relative; display: block; }
.hm-thumb {
  position: relative;
  aspect-ratio: var(--hm-ratio, 16 / 9);
  overflow: hidden;
  border-radius: var(--radius);
  background: #eceff3;
}
.hm-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.hm-card:hover .hm-thumb img { transform: scale(1.05); }
.hm-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: rgba(255, 255, 255, .65);
  font-size: 2rem;
}
.hm-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
}
.hm-body { padding: 8px 2px 0; }
.hm-title {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hm-title a { color: var(--text); }
.hm-title a:hover { color: var(--accent); }
.hm-sub { font-size: .78rem; color: var(--text-light); margin-top: 2px; }
.hm-meta { margin-top: 5px; font-size: .74rem; color: var(--text-light); display: flex; gap: 10px; }

/* ===== 广告位 ===== */
.hm-ad { margin: 0 0 24px; }

/* ===== 大美艺术涂装师：横向滑动 ===== */
.hm-scroller {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.hm-scroller::-webkit-scrollbar { height: 6px; }
.hm-scroller::-webkit-scrollbar-thumb { background: #cfd6de; border-radius: 3px; }
.hm-artist {
  flex: 0 0 calc((100% - 70px) / 6);
  scroll-snap-align: start;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.hm-artist:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hm-artist-photo {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #eef1f5, #dfe5ec);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b3bec9;
  font-size: 1.8rem;
  overflow: hidden;
}
.hm-artist-photo img { width: 100%; height: 100%; object-fit: cover; }
.hm-artist-name { font-size: .88rem; font-weight: 600; padding: 8px 4px 2px; color: var(--text); }
.hm-artist-region { font-size: .74rem; color: var(--text-light); padding-bottom: 8px; }

/* ==========================================================================
   自适应断点
   ========================================================================== */
@media (max-width: 1200px) {
  .hm-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hm-focus-slider .hero-slider { height: 340px; }
  .hm-artist { flex: 0 0 calc((100% - 56px) / 5); }
}

@media (max-width: 992px) {
  .hm-focus { grid-template-columns: 1fr; }
  .hm-focus-slider .hero-slider { height: 300px; }
  .hm-focus-list li { font-size: .84rem; }
  .hm-grid { grid-template-columns: repeat(3, 1fr); }
  .hm-artist { flex: 0 0 calc((100% - 42px) / 4); }
}

@media (max-width: 768px) {
  .hm-wrap { padding-top: 12px; }
  .hm-focus-slider .hero-slider { height: 240px; }
  .hm-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hm-section { margin-bottom: 22px; }
  .hm-head h2 { font-size: 1.08rem; }
  .hm-head-bar { height: 18px; }
  .hm-title { font-size: .88rem; }
  .hm-artist { flex: 0 0 calc((100% - 28px) / 3); }
}

@media (max-width: 560px) {
  .hm-focus-slider .hero-slider { height: 200px; }
  .hm-focus-list { padding: 10px 12px; }
  .hm-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hm-title { font-size: .82rem; -webkit-line-clamp: 3; }
  .hm-meta { font-size: .7rem; }
  .hm-thumb-empty { font-size: 1.5rem; }
  .hm-artist { flex: 0 0 calc((100% - 14px) / 2); }
  .hm-artist-name { font-size: .82rem; }
  .hm-head h2 { font-size: 1rem; }
  .hm-more { font-size: .76rem; }
}

@media (max-width: 380px) {
  .hm-grid { grid-template-columns: 1fr; }
}
