/* 资讯分类页：左栏是一块面板（轮播 + 最新资讯卡片列表），右栏侧栏各一块白面板；分类导览、两栏版面、侧栏在 main.css（与资讯详情页共用） */

/* ===== 轮播（widget/art_slider） ===== */
.dg-art-slider {
  position: relative;
  overflow: hidden;
  margin-bottom: 4px;
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.dg-art-slider-track {
  display: flex;
  transition: transform 0.4s ease;
}

.dg-art-slide {
  position: relative;
  min-width: 100%;
}

.dg-art-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.dg-art-slide-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 40px 20px 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.dg-art-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.dg-asd {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}

.dg-asd.dg-active {
  width: 22px;
  background: var(--accent);
}

/* ===== 文章列表：带框卡片（左缩图、右分类标签／标题／摘要／日期＋阅读数），hover 边框转主色并带淡光晕 ===== */
.dg-art-main .dg-vd-panel {
  box-shadow: none;
}

/* 列表页左栏面板内：轮播、标题、列表、分页之间只留 16px，标题上下不再叠加面板间距 */
.dg-art-content.dg-vd-panel {
  gap: 16px;
}

.dg-art-content .dg-art-list-hd {
  min-height: 0;
  margin: 4px 0 0;
}

.dg-art-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dg-art-card {
  display: flex;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-light);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dg-art-card:hover {
  border-color: rgba(213, 250, 107, 0.48);
  box-shadow: 0 0 14px rgba(213, 250, 107, 0.16);
}

.dg-art-card-thumb {
  flex-shrink: 0;
  width: 220px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.dg-art-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dg-art-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

/* 分类标签：目标站文章卡是主色小字、不带底 */
.dg-art-card-tag {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
}

.dg-art-card-title {
  width: 100%;
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.dg-art-card-title a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  transition: color 0.2s;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dg-art-card-desc {
  display: -webkit-box;
  margin: 0 0 auto;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dg-art-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 10px;
  color: var(--text-weak);
  font-size: 12px;
}

.dg-art-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* 右侧小箭头：纯装饰 */
.dg-art-card-go {
  margin-left: auto;
  font-size: 16px;
}

.dg-art-empty {
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 767px) {
  .dg-art-content.dg-vd-panel {
    padding: 12px;
  }

  .dg-art-slide-caption {
    padding: 30px 15px 28px;
    font-size: 15px;
  }

  .dg-art-card {
    gap: 12px;
    padding: 10px;
  }

  .dg-art-card-thumb {
    width: 120px;
  }

  .dg-art-card-tag {
    margin-bottom: 4px;
  }

  .dg-art-card-title {
    margin-bottom: 4px;
    font-size: 15px;
  }

  .dg-art-card-desc {
    -webkit-line-clamp: 1;
  }
}
