/* ==========================================================================
   QVH 总站（www 3000）现代化增强层 · v1 2026-11-21
   定位：在既有 pc.css / h5 内联样式之上做体系化收敛，不改站点主色。
   口径对齐 docs/design-system.md：
     - 宽壳三档 1400 / 1560 / 1720，禁止回退 1140/1200 窄壳
     - 可点区域 ≥44×44；隐藏浮层 pointer-events:none，hover/激活才放行
     - 标题允许换行（两行截断），不做单行省略号
     - sticky 头部不遮内容；栅格七档自适应
   本层只覆写既有修饰，不新增裸元素选择器；与 /shared/qvh-ui.css 配套引入。
   ========================================================================== */

/* ---------- 1. 宽屏壳宽三档（覆盖 pc.css 固定 1320） ---------- */
:root{ --pc-wrap: 1320px; }
@media (min-width:1440px){ :root{ --pc-wrap: 1400px; } }
@media (min-width:1680px){ :root{ --pc-wrap: 1560px; } }
@media (min-width:1880px){ :root{ --pc-wrap: 1720px; } }

/* ---------- 2. 可点区域 ≥44×44（PC 头部 / 导航 / 标签） ---------- */
.site-header .site-nav a,
.site-header .navdrop__trigger,
.site-header .search-btn,
.site-header .lang-btn,
.site-header .user-link,
.site-header .topup-btn,
.sec-head__more,
.genrebar a{
  min-height: 44px !important;
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-top: 10px;
  padding-bottom: 10px;
}
/* 小屏被既有规则压到 34/36 的，统一抬到 44 */
@media (max-width:900px){
  .site-header .search-btn,
  .site-header .lang-btn,
  .site-header .user-link,
  .site-header .topup-btn{ min-height: 44px !important; height: 44px !important; }
}
@media (max-width:620px){
  .site-header .lang-btn{ max-width: 150px; overflow: visible; }
}

/* 卡片收藏按钮：视觉保持紧凑，命中框扩到 44×44 */
.dcard__fav{
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
.dcard__fav svg, .dcard__fav img{ width: 18px; height: 18px; }

/* 卡片内标签（role=link）命中区 */
.dcard__tag{
  display: inline-flex !important;
  align-items: center;
  min-height: 44px;
  padding: 11px 10px;
  margin: -6px 2px -6px 0;
}

/* 表单控件最小命中高度 */
.form-input,
.cmt__form .input,
input:not([type=hidden]):not([type=checkbox]):not([type=radio]),
select, textarea{
  min-height: 44px;
}

/* ---------- 3. 隐藏浮层：未激活时不可点（红线⑥） ---------- */
.dcard__play{ pointer-events: none; }
.dcard:hover .dcard__play,
.dcard:focus-within .dcard__play{ pointer-events: auto; }
.dcard__fav{ pointer-events: none; }
.dcard:hover .dcard__fav,
.dcard:focus-within .dcard__fav,
.dcard__fav.is-on{ pointer-events: auto; }

/* ---------- 4. 标题/文案：去掉单行省略，允许两行换行 ---------- */
.rankband .rank__title,
.rank__title,
.hotrank__w,
.wcard__title,
.resume__title{
  white-space: normal !important;
  overflow: hidden;
  text-overflow: clip;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

/* 轮播指示点：视觉细条，命中框扩到 44×44 */
.hero__dot{
  position: relative;
  width: 44px !important;
  height: 44px !important;
  background: transparent !important;
}
.hero__dot::before{
  content: "";
  position: absolute;
  left: 9px; right: 9px; top: 50%; transform: translateY(-50%);
  height: 4px; border-radius: 2px; background: rgba(255,255,255,.22);
}
.hero__dot.is-on::before{ background: var(--pc-brand, #ff4d8d); }

/* 任务卡 CTA 与小标签命中区 */
.gtask__cta,
.genrebar a,
.wcard__meta a,
.resume__meta a{ min-height: 44px; display: inline-flex; align-items: center; }

/* 页脚/标签链接受控命中高度 */
.site-footer a, .footer a{ min-height: 36px; display: inline-flex; align-items: center; }

/* ---------- 5. 播放页栅格：窄屏必须塌成单列，禁止 380+320 双列溢出 ---------- */
@media (max-width:1200px){
  .pc-split{ grid-template-columns: minmax(0,1fr) !important; gap: 24px; }
  .pc-side{ grid-column: 1 / -1; }
}
@media (max-width:768px){
  .watch-row{ grid-template-columns: 1fr !important; }
  .pc-side{ grid-column: 1; }
  .pc-wrap{ padding: 0 14px; }
}

/* ---------- 6. 栅格自适应（七档兜底） ---------- */
@media (max-width:620px){
  .dgrid--6, .dgrid--5, .dgrid--4, .dgrid--3{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 12px; }
  .feedgrid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .resume{ grid-template-columns: 1fr; }
}
@media (max-width:380px){
  .dgrid--6, .dgrid--5, .dgrid--4, .dgrid--3{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ---------- 7. Sticky 头部：不遮锚点内容 ---------- */
.site-header{ scroll-margin-top: 76px; }
.site-header.is-hidden{ pointer-events: none; }

/* ---------- 8. 卡片 hover 抬升（现代化反馈，不靠换色块） ---------- */
.dcard, .wcard, .resume__card, .gtask{
  transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s cubic-bezier(.22,1,.36,1), border-color .22s ease;
}
.dcard:hover, .wcard:hover{ transform: translateY(-3px); }

/* ---------- 9. H5 头部图标/标签命中区 ---------- */
.h5-ico, .back-ico, .hs-btn, .home-tab, .nav-item, .lang-item{
  min-height: 44px;
  min-width: 44px;
}
.h5-search{ min-height: 44px; }
.h5-search input{ min-height: 44px; }
.nav-item{ justify-content: center; }

/* ---------- 10. 预览站（/preview）导航命中区与壳宽 ---------- */
.preview-wrap, .wrap{ max-width: var(--pc-wrap, 1320px); }
.nav a, .nav-trigger, .backhome, .linkplain{
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---------- 10b. 复测补齐：页脚 / chip / 裸链 / 小按钮 / 预览版式链 / 播放控件 ---------- */
.site-footer a,
.footer-link,
.footer-mobile{
  min-height: 44px !important;
  min-width: 44px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip{ min-height: 44px !important; min-width: 44px !important; height: auto !important; padding: 0 16px; }
.genrebar a,
.gtask__meta a,
.dcard__meta a{
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
}
.btn--sm, .tk-btn{ min-height: 44px !important; min-width: 44px !important; height: 44px !important; }
.st a, .mstyles a,
.nav a, .nav-trigger, .backhome, .linkplain, .brand,
.curbar a, .acts a, .foot a, .main{
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
}
.player__speed, .player__sub, .desc-toggle{ min-height: 44px !important; min-width: 44px !important; height: 44px !important; }
.h5-logo{ min-height: 44px; min-width: 44px; }
.tabs__btn{ min-height: 44px; min-width: 44px; }
.search-btn{ min-width: 44px !important; }
.banner-play,
.watch-breadcrumb a,
.qvh-captcha-refresh{ min-height: 44px !important; min-width: 44px !important; display: inline-flex; align-items: center; }
a[style*="linear-gradient"]{ min-height: 44px; }
.side-card a{ min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }

/* 标题截断补齐：榜单名 / 弹窗用户名 / 卡片名 允许两行换行 */
.hot-name, .upop__name, .dcard__title, .db-title{
  white-space: normal !important;
  overflow: hidden;
  text-overflow: clip;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

/* ---------- 11. 降级与动效收敛 ---------- */
@supports not (gap:1px){
  .dgrid > * + *, .feedgrid > * + *{ margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce){
  .dcard, .wcard, .resume__card, .gtask{ transition: none; }
}
