/* ==========================================================================
   资源详情页 Hero 版式 rx-*（软件详情 / 音乐详情 共用）
   2026-11-01：按「左缩略图 + 中标题评分与操作 + 右价格卡」三栏改造
   说明：单独成文件，不改 style.css（线上 style.css 比本地新，本地版不能覆盖线上）
   引用：<link rel="stylesheet" href="/style/css/rx-detail.css?ver=1">
   ========================================================================== */

.rx-part .items { padding: 0; }

/* ---------- 三栏骨架 ---------- */
.rx-hero {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr) 214px;
  gap: 0 24px;
  padding: 20px 22px 6px;
  align-items: start;
}

/* ---------- 左：16:9 缩略图 ---------- */
.rx-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .06) 0 22%, rgba(255, 255, 255, .02) 23%, transparent 44%),
    repeating-radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .03) 0 1px, transparent 1px 9px),
    linear-gradient(140deg, #2b3340, #171a21);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rx-thumb img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.rx-thumb--icon img { object-fit: contain; padding: 20px; }
.rx-thumb--cover img { object-fit: cover; }
.rx-thumb b { font-size: 46px; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .72); }
.rx-thumb > i { font-size: 30px; color: rgba(255, 255, 255, .22); }
.rx-thumb-badge {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; line-height: 1; font-weight: 700; color: #0d1a12;
  padding: 5px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #37d39b, #16b777);
}

/* ---------- 中：标题 / 星级 / 元信息 / 操作 ---------- */
.rx-main { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding-top: 1px; }
.rx-title { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.35; color: var(--dk-text, #e8eaf0); word-break: break-word; }

.rx-rate { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #8b93a5; }
.rx-stars { display: inline-flex; gap: 2px; font-size: 13px; color: #ffb400; letter-spacing: 0; }
.rx-stars .off { color: rgba(255, 255, 255, .16); }

.rx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; line-height: 1.6; color: #8b93a5; }
.rx-meta em { font-style: normal; color: #c3cad8; font-weight: 600; }
.rx-meta .dot { color: rgba(255, 255, 255, .18); }

.rx-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 5px; }
.rx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 20px; border-radius: 5px; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; white-space: nowrap;
  transition: filter .15s ease, transform .15s ease;
}
.rx-btn:hover { filter: brightness(1.08); color: #fff; text-decoration: none; }
.rx-btn:active { transform: translateY(1px); }
.rx-green { background: #22c55e; }
.rx-orange { background: #f97316; }
.rx-ghost { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #c8cfdb; font-weight: 500; }
.rx-ghost:hover { background: rgba(255, 255, 255, .12); }
.rx-off { background: rgba(255, 255, 255, .07); color: #8b93a5; cursor: not-allowed; }
.rx-off:hover { filter: none; }

/* ---------- 右：价格卡 ---------- */
.rx-card { min-width: 0; padding: 2px 0 0 22px; border-left: 1px solid rgba(255, 255, 255, .08); }
.rx-price { display: flex; align-items: flex-start; gap: 24px; }
.rx-price-i { display: flex; flex-direction: column; gap: 5px; }
.rx-price-i b { font-size: 25px; font-weight: 800; line-height: 1; color: #22c55e; white-space: nowrap; }
.rx-price-i b em { font-style: normal; font-size: 12px; font-weight: 600; margin-left: 3px; }
.rx-price-i span { font-size: 12px; color: #8b93a5; }
.rx-price-i.is-vip b { font-size: 22px; }
.rx-price-i.is-vip b .fa { font-size: 16px; margin-right: 2px; }

.rx-card-tip { margin: 12px 0 12px; font-size: 12px; line-height: 1.6; color: #8b93a5; }
.rx-card-tip b { color: #37d39b; font-weight: 600; }
.rx-card-btn {
  display: block; width: 100%; height: 40px; line-height: 40px; text-align: center;
  border-radius: 5px; border: 0; cursor: pointer;
  background: #22c55e; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none;
  transition: filter .15s ease;
}
.rx-card-btn:hover { filter: brightness(1.08); color: #fff; text-decoration: none; }
.rx-card-btn--ghost { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); color: #d5dbe5; font-weight: 600; }
.rx-card-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.rx-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12px; color: #8b93a5; }
.rx-card-foot a { color: #5b8def; text-decoration: none; }
.rx-card-foot a:hover { text-decoration: underline; }

/* 收藏按钮挂在下载条右侧，需要自己的选中态（原 .sd-ghost.is-on 已不适用） */
.sd-dl-ghost.is-on,
.md-dl-ghost.is-on { color: #f0b451; border-color: rgba(240, 180, 81, .35); background: rgba(240, 180, 81, .1); }

/* ---------- 响应式 ---------- */
/* 桌面端：左图撑满整行高度，和中栏按钮下沿对齐（更像下载站大封面） */
@media (min-width: 901px) {
  .rx-hero { align-items: stretch; }
  .rx-thumb { aspect-ratio: auto; height: 100%; min-height: 152px; }
}

@media (max-width: 1100px) {
  .rx-hero { grid-template-columns: 184px minmax(0, 1fr) 196px; gap: 0 18px; }
  .rx-title { font-size: 19px; }
  .rx-price { gap: 18px; }
  .rx-price-i b { font-size: 22px; }
}

@media (max-width: 900px) {
  .rx-hero { grid-template-columns: 168px minmax(0, 1fr); gap: 0 18px; }
  .rx-card {
    grid-column: 1 / -1; margin-top: 16px; padding: 14px 16px;
    border-left: 0; border-top: 1px solid rgba(255, 255, 255, .07);
    border-radius: 10px; background: rgba(255, 255, 255, .03);
  }
  .rx-card-tip { margin: 10px 0 10px; }
}

@media (max-width: 640px) {
  .rx-hero { grid-template-columns: 1fr; gap: 14px; padding: 16px 14px 4px; }
  .rx-thumb { max-width: 100%; max-height: 190px; }
  .rx-thumb--ph { max-width: 210px; max-height: 128px; margin: 0 auto; }
  .rx-title { font-size: 18px; }
  .rx-main { gap: 7px; }
  .rx-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .rx-btn { height: 38px; padding: 0 10px; font-size: 13.5px; width: 100%; }
  .rx-acts .rx-btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .rx-card { margin-top: 4px; padding: 14px; }
  .rx-price-i b { font-size: 21px; }
  .rx-card-btn { height: 38px; line-height: 38px; }
}
