/* 首页 DSD 推介，对照 hifi361-新首页.html 的 .dsd。 */

.hires-home-dsd {
  --red: #C9002B;
  --gold: #F6B800;
  --bg: #FFFFFF;
  --ink: #161616;
  --on2: rgba(255, 255, 255, .7);
  --rule: rgba(255, 255, 255, .16);
  --line: #E7E0D8;
  --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  --r-card: 6px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --w: 1488px;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  min-width: 0;
  padding: 64px 0 88px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  scroll-margin-top: 68px;
}
.hires-home-dsd,
.hires-home-dsd * { box-sizing: border-box; }
.hires-home-dsd h2,
.hires-home-dsd h3,
.hires-home-dsd p,
.hires-home-dsd ul { margin: 0; padding: 0; }
.hires-home-dsd ul { list-style: none; }
.hires-home-dsd a { color: inherit; text-decoration: none; }
.hires-home-dsd button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.hires-home-dsd img { display: block; max-width: none; }
.hires-home-dsd svg { display: block; flex: none; max-width: none; }
.hires-home-dsd .wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.hires-home-dsd .sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.hires-home-dsd .sec-eyebrow { display: flex; align-items: center; gap: 10px; font: 700 12px/1.5 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--bg); }
.hires-home-dsd .sec-eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gold); flex: none; }
.hires-home-dsd .sec-title { margin-top: 10px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; font-weight: 800; color: var(--bg); text-wrap: balance; }
.hires-home-dsd .sec-more { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--on2); transition: color .2s; }
.hires-home-dsd .sec-more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.hires-home-dsd .sec-more:hover { color: var(--gold); }
.hires-home-dsd .sec-more:hover svg { transform: translateX(3px); }

.hires-home-dsd .tabs-row { margin-top: 28px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--rule); }
.hires-home-dsd .tabs { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.hires-home-dsd .tabs::-webkit-scrollbar { display: none; }
.hires-home-dsd .tab { position: relative; flex: none; padding: 12px 16px; font-size: 15px; font-weight: 600; color: var(--on2); white-space: nowrap; transition: color .2s; }
.hires-home-dsd .tab:first-child { padding-left: 0; }
.hires-home-dsd .tab::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.hires-home-dsd .tab:first-child::after { left: 0; }
.hires-home-dsd .tab:hover,
.hires-home-dsd .tab[aria-selected="true"] { color: var(--bg); font-weight: 700; }
.hires-home-dsd .tab[aria-selected="true"]::after { transform: scaleX(1); }

.hires-home-dsd .dsd-panels { transition: opacity .3s; }
.hires-home-dsd .dsd-panels.is-dim { opacity: 0; }
.hires-home-dsd .dsd-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 20px; }
.hires-home-dsd .dsd-grid[hidden] { display: none; }
.hires-home-dsd .dsd-grid > li { display: flex; min-width: 0; }
.hires-home-dsd .dsd-grid.swap > li { animation: hiresDsdPop .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes hiresDsdPop { from { opacity: 0; transform: translateY(12px); } }
.hires-home-dsd .dsd-empty { grid-column: 1 / -1; color: var(--on2); }

.hires-home-dsd .dsc { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--bg); }
.hires-home-dsd .alb-art { position: relative; transition: transform .25s var(--ease); }
.hires-home-dsd .dsc:hover .alb-art { transform: translateY(-4px); }
.hires-home-dsd .cover { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-card); background: #2a2a2a; color: var(--on2); font: 600 12px/1.5 var(--mono); letter-spacing: .12em; transition: border-color .2s, box-shadow .3s; }
.hires-home-dsd .cover:not(:has(img))::before { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(255, 255, 255, .2); border-radius: 3px; }
.hires-home-dsd .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hires-home-dsd .dsc:hover .cover { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }

.hires-home-dsd .alb-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-card); }
.hires-home-dsd .alb-play { position: absolute; right: 10px; bottom: 10px; z-index: 3; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease), background .2s; }
.hires-home-dsd .dsc:hover .alb-play,
.hires-home-dsd .dsc:focus-within .alb-play,
.hires-home-dsd .alb-play.is-playing,
.hires-home-dsd .alb-play[aria-pressed="true"] { opacity: 1; transform: none; }
.hires-home-dsd .alb-play:hover,
.hires-home-dsd .alb-play.is-playing,
.hires-home-dsd .alb-play[aria-pressed="true"] { background: var(--red); }
.hires-home-dsd .alb-play .ic-pause { display: none; }
.hires-home-dsd .alb-play.is-playing .ic-play,
.hires-home-dsd .alb-play[aria-pressed="true"] .ic-play { display: none; }
.hires-home-dsd .alb-play.is-playing .ic-pause,
.hires-home-dsd .alb-play[aria-pressed="true"] .ic-pause { display: block; }

.hires-home-dsd .alb-info { display: flex; flex-direction: column; min-width: 0; }
.hires-home-dsd .dsc-rate { margin-top: 12px; display: flex; align-items: baseline; gap: 6px; font: 600 12px/1.2 var(--mono); color: var(--on2); white-space: nowrap; }
.hires-home-dsd .dsc-rate b { font-size: 18px; font-weight: 800; color: var(--gold); }
.hires-home-dsd .dsc-lv { margin-left: auto; align-self: flex-end; display: flex; align-items: flex-end; gap: 3px; padding-bottom: 3px; }
.hires-home-dsd .dsc-lv .bar { width: 4px; height: calc(5px + var(--k) * 3px); border-radius: 1px; background: rgba(255, 255, 255, .24); }
.hires-home-dsd .dsc-lv .bar.on { background: var(--gold); }
.hires-home-dsd .alb-title { margin-top: 8px; font-size: 16px; line-height: 1.4; font-weight: 700; color: var(--bg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.hires-home-dsd .dsc:hover .alb-title { color: var(--gold); }
.hires-home-dsd .alb-title a:focus-visible { outline: none; }
.hires-home-dsd .alb-title a:focus-visible::after { outline: 2px solid var(--gold); outline-offset: 3px; }
.hires-home-dsd .alb-artist { font-size: 14px; line-height: 1.5; color: var(--on2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hires-home-dsd .dsc-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 8px; font: 500 12px/1.5 var(--mono); color: var(--on2); white-space: nowrap; }
.hires-home-dsd .dsc-foot > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1100px) {
  .hires-home-dsd .dsd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
}
@media (max-width: 900px) {
  .hires-home-dsd { padding: 48px 0 64px; }
}
@media (max-width: 599px) {
  .hires-home-dsd { padding: 40px 0 56px; }
  .hires-home-dsd .wrap { padding-left: 16px; padding-right: 16px; }
  .hires-home-dsd .tabs-row { margin-top: 20px; }
  .hires-home-dsd .dsd-grid { margin-top: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .hires-home-dsd .dsd-grid > li:nth-child(n+5) { display: none; }
  .hires-home-dsd .dsc-hz { display: none; }
  .hires-home-dsd .alb-play { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hires-home-dsd .sec-more,
  .hires-home-dsd .sec-more svg,
  .hires-home-dsd .tab,
  .hires-home-dsd .tab::after,
  .hires-home-dsd .alb-art,
  .hires-home-dsd .cover,
  .hires-home-dsd .alb-play,
  .hires-home-dsd .alb-title,
  .hires-home-dsd .dsd-panels { transition: none; }
  .hires-home-dsd .dsd-grid.swap > li { animation: none; }
}
