/* WallHub Detail — 壁纸详情页：大图舞台 / 信息面板 / 色系 / 作者卡 / 下载 */

/* ============================================================
   Detail page
   ============================================================ */
.wh-crumb { font-size: 13px; color: var(--wh-text-3); margin: 22px 0 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wh-crumb a:hover { color: var(--wh-primary); }
.wh-detail { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 24px; align-items: start; }
.wh-detail__stage { background: var(--wh-surface); border: 1px solid var(--wh-border); border-radius: var(--wh-radius); overflow: hidden; box-shadow: var(--wh-shadow); }
.wh-detail__imgwrap { position: relative; background: #e6e9ed; display: grid; place-items: center; min-height: 320px; cursor: zoom-in; }
.wh-detail__imgwrap img { width: 100%; height: auto; max-height: 74vh; object-fit: contain; }
.wh-detail__scale { position: absolute; right: 14px; bottom: 14px; background: rgba(18,20,32,.6); color: #fff; border-radius: 8px; padding: 5px 10px; font-size: 12px; backdrop-filter: blur(6px); }
.wh-detail__bar { display: flex; align-items: center; gap: 10px; padding: 14px; border-top: 1px solid var(--wh-border); flex-wrap: wrap; }
.wh-detail__bar .wh-spacer { flex: 1; }
.wh-detail__body { background: var(--wh-surface); border: 1px solid var(--wh-border); border-radius: var(--wh-radius); padding: 22px; margin-top: 18px; box-shadow: var(--wh-shadow); }
.wh-detail__body h1 { font-size: 24px; margin: 0 0 12px; letter-spacing: -.6px; }
.wh-detail__desc { color: var(--wh-text-2); line-height: 1.9; }
.wh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.wh-stat { background: var(--wh-surface-2); border-radius: 8px; padding: 13px; }
.wh-stat small { display: block; color: var(--wh-text-3); font-size: 11.5px; margin-bottom: 3px; }
.wh-stat b { font-size: 17px; font-weight: 700; }
.wh-meta-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 13.5px; }
.wh-meta-list div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--wh-border); padding-bottom: 8px; }
.wh-meta-list span { color: var(--wh-text-3); }
.wh-meta-list strong { font-weight: 600; }
.wh-colors { margin-top: 20px; }
.wh-colors__bar { display: flex; height: 12px; border-radius: 100px; overflow: hidden; margin: 10px 0 10px; }
.wh-colors__legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--wh-text-2); }
.wh-colors__legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.wh-detail__panel { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--wh-header-h) + 20px); }
.wh-author { display: flex; align-items: center; gap: 12px; }
.wh-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--wh-gradient); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px; flex: 0 0 44px; }
.wh-author b { display: block; font-size: 14px; }
.wh-author small { color: var(--wh-text-3); font-size: 12px; }
.wh-notice { background: var(--wh-primary-soft); border: 1px solid color-mix(in srgb, var(--wh-primary) 22%, transparent); border-radius: 8px; padding: 12px 14px; font-size: 12.5px; color: var(--wh-text-2); line-height: 1.8; }
.wh-notice b { color: var(--wh-primary); }

/* Comments */
.wh-comments { margin-top: 26px; }
.wh-comment-list { list-style: none; margin: 0; padding: 0; }
.wh-comment { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--wh-border); }
.wh-comment__body { flex: 1; min-width: 0; }
.wh-comment__head { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 5px; }
.wh-comment__head b { font-weight: 600; }
.wh-comment__head time { color: var(--wh-text-3); font-size: 12px; }
.wh-comment p { margin: 0; color: var(--wh-text-2); font-size: 14px; }
/* --- 详情页布局 --- */
.wh-detail2 { padding-bottom: 34px; }
.wh-detail2__layout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 22px; align-items: start; }
.wh-detail2__left, .wh-detail2__right { min-width: 0; }
.wh-stage { background: var(--wh-surface); border: 1px solid var(--wh-border); border-radius: var(--wh-radius); padding: 18px 18px 16px; box-shadow: var(--wh-shadow); }
.wh-stage__frame { position: relative; margin: 0 auto; width: 100%; border-radius: 8px; overflow: hidden; background: #0d0f16; display: grid; place-items: center; cursor: zoom-in; border: 8px solid #1c1f28; box-shadow: 0 10px 30px rgba(0,0,0,.34); transition: width .35s ease, aspect-ratio .35s ease; }
.wh-stage__frame img { width: 100%; height: auto; max-height: 70vh; display: block; object-fit: contain; }
.wh-stage:not([data-device="auto"]) .wh-stage__frame img { height: 100%; object-fit: cover; }
.wh-stage__zoom { position: absolute; right: 12px; bottom: 12px; padding: 5px 11px; border-radius: 8px; background: rgba(16,18,28,.62); color: #fff; font-size: 11.5px; backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.wh-stage__frame:hover .wh-stage__zoom { opacity: 1; }
.wh-stage__rule { width: 92%; height: 4px; margin: 14px auto 12px; border-radius: 100px; background: var(--wh-surface-2); }
.wh-stage__rule span { display: block; width: 62%; height: 100%; border-radius: 100px; background: var(--wh-gradient); }
.wh-devices { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.wh-device { border: 1px solid var(--wh-border); background: var(--wh-surface-2); color: var(--wh-text-2); border-radius: 100px; padding: 7px 13px; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; transition: .18s; }
.wh-device:hover { color: var(--wh-text); border-color: var(--wh-primary); }
.wh-device.is-active { background: var(--wh-primary); color: #fff; border-color: transparent; font-weight: 600; }
.wh-stage[data-device="auto"] .wh-stage__frame { width: 100%; }
.wh-stage[data-device="laptop"] .wh-stage__frame { width: 82%; aspect-ratio: 16 / 10; }
.wh-stage[data-device="tablet"] .wh-stage__frame { width: 58%; aspect-ratio: 4 / 3; }
.wh-stage[data-device="dual"] .wh-stage__frame { width: 72%; aspect-ratio: 3 / 2; }
.wh-stage[data-device="triple"] .wh-stage__frame { width: 88%; aspect-ratio: 21 / 9; }
.wh-stage[data-device="ultrawide"] .wh-stage__frame { width: 100%; aspect-ratio: 32 / 9; }

/* --- 画面特征 --- */
.wh-features { margin-top: 22px; }
.wh-features__title { font-size: 15px; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 7px; }
.wh-features__title i { color: var(--wh-primary); }
.wh-features__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.wh-features__tags a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 100px; border: 1px solid var(--wh-border); background: var(--wh-surface); color: var(--wh-text-2); font-size: 12.5px; transition: .18s; }
.wh-features__tags a i { color: var(--wh-text-3); font-size: 12px; }
.wh-features__tags a:hover { border-color: var(--wh-primary); color: var(--wh-primary); }
.wh-features__empty { color: var(--wh-text-3); font-size: 12.5px; }

/* --- 右侧信息面板 --- */
.wh-infocard { position: sticky; top: calc(var(--wh-header-h) + 18px); background: var(--wh-surface); border: 1px solid var(--wh-border); border-radius: var(--wh-radius); padding: 20px; box-shadow: var(--wh-shadow); }
.wh-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 18px; }
.wh-info-grid > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wh-info-grid span { display: inline-flex; align-items: center; gap: 6px; color: var(--wh-text-3); font-size: 11.5px; }
.wh-info-grid strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-info-grid strong a { color: var(--wh-text); }
.wh-info-grid strong a:hover { color: var(--wh-primary); }
.wh-colors2 { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--wh-border); }
.wh-colors2__head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; }
.wh-colors2__head span { display: inline-flex; gap: 6px; align-items: center; }
.wh-colors2__head i { color: var(--wh-primary); }
.wh-colors2__head small { font-weight: 400; font-size: 11px; color: var(--wh-text-3); }
.wh-colors2__bar { display: flex; height: 10px; border-radius: 100px; overflow: hidden; margin: 10px 0 9px; }
.wh-colors2__legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--wh-text-2); }
.wh-colors2__legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 5px; }
.wh-authorcard { background: var(--wh-surface-2); border-radius: 8px; padding: 14px; margin: 18px 0; }
.wh-authorcard__top { display: flex; align-items: center; gap: 10px; }
.wh-authorcard__name { flex: 1; min-width: 0; }
.wh-authorcard__name b { display: block; font-size: 14px; }
.wh-authorcard__name small { color: var(--wh-text-3); font-size: 11.5px; }
.wh-authorcard__follow { color: var(--wh-text-3); font-size: 15px; }
.wh-authorcard__follow:hover { color: var(--wh-primary); }
.wh-authorcard__stats { display: flex; gap: 14px; margin: 12px 0 8px; font-size: 11.5px; color: var(--wh-text-3); flex-wrap: wrap; }
.wh-authorcard__stats b { color: var(--wh-text); font-size: 13px; }
.wh-authorcard__sign { margin: 0; font-size: 12px; color: var(--wh-text-3); }
.wh-dlactions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wh-dlactions__main { flex: 1; min-width: 190px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.wh-dlactions__main small { font-size: 10.5px; font-weight: 400; opacity: .82; }
.wh-round { position: relative; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--wh-border); background: var(--wh-surface-2); color: var(--wh-text-2); display: grid; place-items: center; font-size: 16px; transition: .18s; }
.wh-round:hover { border-color: var(--wh-primary); color: var(--wh-primary); }
.wh-round.is-on { color: #b4763c; border-color: #b4763c; }
.wh-round small { position: absolute; top: -6px; right: -6px; min-width: 17px; padding: 1px 4px; border-radius: 100px; background: #e0483f; color: #fff; font-size: 10px; line-height: 1.4; }
.wh-autoplay { display: flex; align-items: center; gap: 8px; margin: 12px 0 16px; font-size: 12.5px; color: var(--wh-text-2); cursor: pointer; }
.wh-autoplay small { color: var(--wh-text-3); }
.wh-autoplay input { accent-color: var(--wh-primary); }
.wh-detail2__notice { margin-top: 14px; font-size: 11.5px; line-height: 1.75; color: var(--wh-text-3); }
.wh-detail2__notice b { color: var(--wh-text-2); }
