/* PaperMylove × 盛大：首页增强层样式（只作用于新增的两个入口条与热销区，不影响主站现有类） */

/* ---------- 第二个入口条：与 3D 入口并排 ---------- */
.preview-hub-pair {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}
.preview-hub-pair .preview-hub-link {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  margin: 0;
}
.preview-hub-pair .preview-hub-sub {
  max-width: 100%;
}
.sd-hub-link .preview-hub-icon {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 3px 9px rgba(31, 30, 27, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
@media (max-width: 720px) {
  .preview-hub-pair { flex-direction: column; gap: 7px; }
  .preview-hub-pair .preview-hub-link { width: 100%; }
}

/* ---------- 盛大热销精选 ---------- */
.sd-hot-section {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px dashed var(--line);
}
.sd-hot-section[hidden] { display: none; }
.sd-hot-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sd-hot-title {
  font-family: var(--font-script);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-deep);
  margin: 0;
  line-height: 1.1;
}
.sd-hot-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  margin-right: 9px;
  border-radius: 2px;
  background: var(--accent);
  vertical-align: -2px;
}
.sd-hot-more {
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.sd-hot-more:hover { color: var(--accent-deep); }
.sd-hot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) { .sd-hot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sd-hot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.sd-hot-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg, 14px);
  box-shadow: 0 2px 8px rgba(31, 41, 55, .05), 0 8px 22px rgba(31, 41, 55, .05);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s cubic-bezier(.4, 0, .2, 1), box-shadow .2s ease, border-color .2s ease;
}
@media (hover: hover) {
  .sd-hot-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(31, 41, 55, .08), 0 18px 40px rgba(31, 30, 27, .16);
    border-color: var(--accent);
  }
}
.sd-hot-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.sd-hot-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sd-hot-card-body {
  padding: 9px 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sd-hot-rank {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--accent-deep);
  border-radius: 7px;
  padding: 1px 6px;
  align-self: flex-start;
  line-height: 1.5;
}
.sd-hot-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sd-hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  min-height: 16px;
}
.sd-hot-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: #57544D;
  background: #EDE8DE;
  border-radius: 8px;
  padding: 1px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}


/* ---------- 盛大全品类：11 大类导航 ---------- */
.sd-cat-section {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px dashed var(--line);
}
.sd-cat-section[hidden] { display: none; }
.sd-cat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 900px) { .sd-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sd-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
.sd-cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px 11px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(31, 41, 55, .05);
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  min-width: 0;
}
@media (hover: hover) {
  .sd-cat-tile:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(31, 41, 55, .08), 0 14px 30px rgba(31, 30, 27, .14);
  }
}
.sd-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 44px;
}
.sd-cat-icon img {
  /* 盛大分类图标是 64×192 的竖向图标条（3 个图标叠放），这里取顶部第一个图标 */
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.sd-cat-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sd-cat-count {
  font-size: 10.5px;
  color: var(--ink-muted);
  font-weight: 600;
}


/* ---------- 入口条比例修正（与内容区 900px 对齐、两栏等宽等高） ---------- */
.preview-hub-pair {
  max-width: 876px;
  margin: 0 auto;
  width: 100%;
  gap: 10px;
}
.preview-hub-pair .preview-hub-link {
  min-height: 48px;
  padding: 7px 12px;
  gap: 10px;
}
.preview-hub-pair .preview-hub-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 10px;
  font-size: 14px;
}
.preview-hub-pair .preview-hub-title {
  font-size: 13.5px;
}
.preview-hub-pair .preview-hub-sub {
  font-size: 10.5px;
  margin-top: 2px;
}
@media (max-width: 720px) {
  .preview-hub-pair { max-width: none; }
  .preview-hub-pair .preview-hub-link { min-height: 46px; }
}
