/* ============================================================
   dl_minimal · down.css
   下载列表 / 下载详情 / 平台标签 / SHA256 / 截图画廊
   ============================================================ */

/* ===== Down List Item（下载列表卡片） ===== */
.dl-list-item {
  display: flex;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius);
  color: var(--dl-text);
  overflow: hidden;
  padding: 16px;
  margin-bottom: 14px;
  transition: all .2s;
  text-decoration: none;
}
.dl-list-item:hover {
  border-color: var(--dl-primary);
  box-shadow: var(--dl-shadow);
  color: var(--dl-text);
}
.dl-list-thumb {
  width: 200px;
  min-height: 140px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--dl-bg-soft);
}
.dl-list-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--dl-muted);
}
.dl-list-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dl-list-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--dl-text);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dl-list-item:hover .dl-list-title { color: var(--dl-primary); }
.dl-list-desc {
  color: var(--dl-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.dl-list-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--dl-muted);
}
.dl-list-meta i { margin-right: 4px; }

/* ===== Down Detail（下载详情主区） ===== */
.dl-detail-card {
  background: #fff;
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.dl-detail-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.dl-detail-icon {
  width: 100px;
  height: 100px;
  border-radius: 18px;
  background: var(--dl-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: var(--dl-primary);
  flex-shrink: 0;
  overflow: hidden;
}
.dl-detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dl-detail-info { flex: 1; min-width: 240px; }
.dl-detail-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--dl-text);
  letter-spacing: -.5px;
  margin: 0 0 10px;
  line-height: 1.3;
}
.dl-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--dl-muted);
  font-size: 13px;
  margin-bottom: 14px;
}
.dl-detail-meta i { margin-right: 4px; }

/* ===== Download Source Switch ===== */
.dl-source-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.dl-source-switch a {
  padding: 6px 14px;
  border: 1px solid var(--dl-border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--dl-text);
  background: #fff;
  font-weight: 500;
}
.dl-source-switch a.active,
.dl-source-switch a:hover {
  border-color: var(--dl-primary);
  background: rgba(9, 105, 218, .08);
  color: var(--dl-primary);
}

.dl-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* ===== Info Specs Table ===== */
.dl-spec-table {
  width: 100%;
  margin-top: 22px;
  font-size: 13.5px;
  border-collapse: collapse;
}
.dl-spec-table th,
.dl-spec-table td {
  padding: 10px 14px;
  border-bottom: 1px dashed var(--dl-border-soft);
  text-align: left;
  vertical-align: top;
}
.dl-spec-table th {
  width: 110px;
  color: var(--dl-muted);
  font-weight: 500;
  background: var(--dl-bg-soft);
}
.dl-spec-table td { color: var(--dl-text); }
.dl-spec-table tr:last-child th,
.dl-spec-table tr:last-child td { border-bottom: 0; }

/* ===== Screens（截图画廊） ===== */
.dl-screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dl-screens img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--dl-border-soft);
  cursor: zoom-in;
  transition: all .15s;
}
.dl-screens img:hover {
  border-color: var(--dl-primary);
  transform: scale(1.02);
}

/* ===== Lightbox ===== */
.dl-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(31, 35, 40, .85);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.dl-lightbox.show { display: flex; }
.dl-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 8px;
}
.dl-lightbox .close {
  position: absolute;
  top: 20px; right: 20px;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  background: rgba(255,255,255,.1);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Block Section Title ===== */
.dl-block-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dl-text);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--dl-border-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dl-block-title i { color: var(--dl-primary); }

/* ===== Prev / Next ===== */
.dl-prev-next {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  margin-top: 22px;
}
.dl-prev-next a {
  flex: 1 1 280px;
  padding: 12px 16px;
  background: var(--dl-bg-soft);
  border: 1px solid var(--dl-border-soft);
  border-radius: 8px;
  color: var(--dl-text);
}
.dl-prev-next a:hover {
  color: var(--dl-primary);
  border-color: var(--dl-primary);
  background: #fff;
}
.dl-prev-next a small { display: block; color: var(--dl-muted); font-size: 12px; margin-bottom: 2px; }

@media (max-width: 767.98px) {
  .dl-list-item { flex-direction: column; gap: 14px; }
  .dl-list-thumb { width: 100%; height: 180px; min-height: 0; }
  .dl-detail-title { font-size: 22px; }
  .dl-screens { grid-template-columns: repeat(2, 1fr); }
  .dl-screens img { height: 140px; }
  .dl-prev-next a { flex: 1 1 100%; }
}

/* MOBILE ENHANCED - down */
@media (max-width: 991.98px) {
  .dl-detail-card { padding: 20px; }
  .dl-spec-table { font-size: 14px; }
}
@media (max-width: 768px) {
  .dl-detail-card { padding: 16px; }
  .dl-detail-head { flex-direction: column; }
  .dl-detail-icon { width: 56px; height: 56px; font-size: 24px; }
  .dl-detail-meta { flex-wrap: wrap; gap: 8px; font-size: 13px; }
  .dl-detail-actions { flex-direction: column; }
  .dl-detail-actions .btn { width: 100%; }
  .dl-screens { grid-template-columns: 1fr; }
  .dl-spec-table th, .dl-spec-table td { padding: 8px; }
}
@media (max-width: 480px) {
  .dl-detail-title { font-size: 18px; }
  .dl-detail-card { padding: 12px; }
  .dl-screens img { height: 120px; }
}
