/* =========================================================
   鉴黄师 品牌站 — 首页 HOME 专属样式
   （由 pages.css 按页面拆分；公共样式见 style.css）
   ========================================================= */

.home-hero { }

.hero-carousel { position: relative; width: 100%; max-width: 1440px; margin: 0 auto; aspect-ratio: 1440 / 526; overflow: hidden; }

.hero-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }

.hero-slide { min-width: 100%; height: 100%; }

.hero-slide picture,
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .18); color: #fff;
  font-size: 24px; line-height: 1; backdrop-filter: blur(4px);
  opacity: 0; transition: var(--ease);
}

.hero-carousel:hover .hero-arrow { opacity: 1; }

.hero-arrow:hover { background: rgba(232, 163, 61, .92); color: #1a1206; border-color: transparent; transform: translateY(-50%) scale(1.06); }

.hero-arrow:active { transform: translateY(-50%) scale(.96); }

.hero-arrow.prev { left: 18px; }

.hero-arrow.next { right: 18px; }

.hero-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 10px; }

.hero-dots .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .45); border: none; cursor: pointer; padding: 0; transition: var(--ease); }

.hero-dots .dot.active { width: 26px; border-radius: 5px; background: var(--gold-grad); }

.hero-dots .dot:hover { background: rgba(255, 255, 255, .78); transform: scale(1.12); }

.home-main { display: grid; grid-template-columns: 1fr 350px; gap: 20px; align-items: start; }

.talent-panel {
  padding: 20px 16px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .05);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(2px);
  overflow: hidden;
}

.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }

.sec-head .t { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: var(--gold-2); }

.sec-head .t .fire { display: block; width: 24px; height: 24px; background: url("/assets/img/home-fire.png") center / contain no-repeat; }

.sec-head .more { color: var(--text-dim); font-size: 13px; }

.sec-head .more:hover { color: var(--gold); }

.talent-viewport { overflow: hidden; }

.talent-track { display: flex; will-change: transform; transition: transform .45s ease; }

.talent-track > .talent-grid { flex: 0 0 100%; }

.talent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.talent-card { display: flex; flex-direction: column; gap: 8px; }

.talent-card .cover {
  display: block; aspect-ratio: 254 / 144; border-radius: 6px; overflow: hidden;
  background: var(--panel-2); transition: var(--ease);
}

.talent-card .cover img {
  display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease;
}

.talent-card:hover .cover { box-shadow: var(--shadow); }

.talent-card:hover .cover img { transform: scale(1.06); }

.talent-card .meta { display: flex; align-items: center; gap: 8px; line-height: 20px; }

.talent-card .meta .nm { font-size: 16px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.talent-card .meta .rg { font-size: 14px; color: var(--text-dim); flex-shrink: 0; }

.talent-card:hover .meta .nm { color: var(--gold); }

.talent-card .fs { font-size: 12px; color: var(--text-2); line-height: 16px; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }

.pager > :is(a, button, span) {
  min-width: 34px; height: 34px; padding: 0 9px; display: grid; place-items: center;
  border-radius: 8px; background: var(--panel); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-2);
}

.pager > :is(a, button, span).active { background: var(--gold-grad); color: #1a1206; border-color: transparent; font-weight: 700; }

.pager > a:hover:not(.active):not([rel="prev"]):not([rel="next"]) { border: 1px solid #F7C96B; color: #F7C96B; }

.pager > :is(a[rel="prev"], a[rel="next"], span.disabled) {
  width: 34px;
  min-width: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 18px;
}

.pager > :is(a[rel="prev"], a[rel="next"]):hover { border: 0; background: transparent; color: #F7C96B; }

.panel-more.talent-more { display: none; }

.side-panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 8px 10px; margin-bottom: 24px;
  backdrop-filter: blur(2px);
}

.side-panel:last-child { margin-bottom: 0; }

.side-panel .ph { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; padding: 0 12px 4px; color: var(--gold-2); }

.side-panel .ph .i { display: block; width: 24px; height: 24px; background: url("/assets/img/home-fire.png") center / contain no-repeat; }
.side-panel .ph .i.voice { background-image: url("/assets/img/home-notice.png"); }


.rk { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 6px 12px; }

/* 热门排行：PC ≈ 5 条高度可滚动、不显示「查看更多」；移动端默认 5 条、点按展开 */
.rk-list { display: flex; flex-direction: column; }

@media (min-width: 861px) {
  .rank-panel .rk-list {
    max-height: 332px; overflow-y: auto; padding-right: 6px;
    scrollbar-width: thin; scrollbar-color: var(--border-2) transparent;
  }
  .rank-panel .rk-list::-webkit-scrollbar { width: 6px; }
  .rank-panel .rk-list::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
  .rank-panel .rk-list::-webkit-scrollbar-track { background: transparent; }
  .rank-panel > .panel-more { display: none; }
}

@media (max-width: 860px) {
  .rank-panel:not(.open) .rk-list .rk:nth-child(n + 6) { display: none; }
}

/* 名次：top1-3 用奖牌图标，4+ 用方形序号 */
.rk .rank { width: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

.rk .rank img { width: 32px; height: 32px; display: block; object-fit: contain; }

.rk .rank b {
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px;
  background: #131418; border: 1px solid rgba(255, 255, 255, .06);
  font-size: 13px; font-weight: 500; color: #fff;
}

/* 头像 56 圆形（容器裁切，hover 放大内部图片） */
.rk .av { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; overflow: hidden; transition: var(--ease); }

.rk .av img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }

.rk .meta { min-width: 0; display: flex; flex-direction: column; gap: 6px; }

.rk .meta .nm {
  font-size: 14px; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--ease);
}

.rk .meta .fs { display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; color: #f7c96b; }

.rk .meta .fs .ic { width: 12px; height: 12px; flex-shrink: 0; }

.rk .meta .fs b { font-weight: 400; color: #f7c96b; }

/* hover：仿「热门艺人推荐」——头像放大 + 阴影，姓名转金 */
.rk:hover { background-color: #fff1; border-radius: 8px; }

.rk:hover .av { box-shadow: var(--shadow); }

.rk:hover .av img { transform: scale(1.06); }

.rk:hover .nm { color: var(--gold); }

.notice { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); }

.notice:last-child { border-bottom: none; }

.notice .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

.notice .nt { color: var(--text-2); font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.notice .nt:hover { color: var(--gold); cursor: pointer; }

.notice .nd { color: rgba(255, 255, 255, 0.5); font-size: 14px; flex-shrink: 0; }

.panel-more {
  display: block; text-align: center; padding: 8px; margin: 10px 0 4px; border-radius: 100px;
  background: var(--panel); color: var(--text-2); font-size: 16px;
  border: 1px solid var(--panel);
  font-weight: 500;
}

.panel-more:hover { color: var(--text-2); }

.incubate { position: relative; }

.incubate .ttl { text-align: center; color: var(--text-2); font-size: 15px; margin-bottom: 30px; }

.incubate .ttl b { color: var(--gold); font-weight: 700; font-size: 17px; }

.marquee {
  display: flex; flex-direction: column; gap: 18px; overflow: hidden;
  max-width: var(--maxw); margin-left: auto; margin-right: auto; padding: 0 24px;
}

.marquee-row { overflow: hidden; position: relative; }
/* 左右渐变淡出（外层 section，对齐版心边缘） */
.marquee-row::before,
.marquee-row::after { content: ""; position: absolute; top: 0; bottom: 0; width: 42%; z-index: 2; pointer-events: none; }
.marquee-row::before { left: 0; background: linear-gradient(90deg, #010406 0%, rgba(1, 4, 6, 0) 100%); }
.marquee-row::after { right: 0; background: linear-gradient(90deg, rgba(1, 4, 6, 0) 0%, #010406 100%); }

.marquee-track { display: flex; gap: 24px; width: max-content; }

.marquee-track.to-left { animation: mq-left  44s linear infinite; }

.marquee-track.to-right { animation: mq-right 44s linear infinite; }

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes mq-left { from { transform: translateX(0); }                      to { transform: translateX(var(--mq-shift, -50%)); } }

@keyframes mq-right { from { transform: translateX(var(--mq-shift, -50%)); }  to { transform: translateX(0); } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

.mq-pill { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.mq-pill .av { width: 70px; height: 70px; flex-shrink: 0; }

.mq-pill .info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.mq-pill .nm { font-size: 16px; font-weight: 500; color: var(--text); white-space: nowrap; transition: color var(--ease); }

.mq-pill .fans {
  align-self: flex-start; font-size: 12px; line-height: 1; padding: 5px 9px; border-radius: 6px;
  background: rgba(232, 163, 61, .07); border: 1px solid rgba(232, 163, 61, .38);
  color: var(--gold-2); white-space: nowrap;
}

.mq-pill:hover .nm { color: var(--gold); }

.app-zone { padding: 64px 0 72px; overflow: hidden; }

.app-zone-head { text-align: center; }

.app-zone-head h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 600; line-height: 1.22; letter-spacing: -0.72px; color: var(--gold-2); }

.app-zone-head p { margin-top: 12px; color: var(--text-2); font-size: 16px; line-height: 22px; }

.logo-marquee {
  margin-top: 26px; overflow: hidden;
  /* 上下留白：overflow 裁剪到 padding 盒，hover 放大/阴影溢出到此留白内不会被裁 */
  max-width: var(--maxw); margin-left: auto; margin-right: auto; padding: 18px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.logo-track { display: flex; gap: 16px; width: max-content; animation: logo-scroll 40s linear infinite; }

.logo-marquee:hover .logo-track { animation-play-state: paused; }

@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(var(--mq-shift, -50%)); } }

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

.logo-item {
  flex-shrink: 0; display: block; width: 80px; height: 80px; border-radius: 16px; overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}

.logo-item img { display: block; width: 100%; height: 100%; object-fit: cover; }

.logo-item:hover { transform: scale(1.1); box-shadow: var(--shadow); }

@media (max-width: 1024px) {
  .talent-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .home-main { grid-template-columns: 1fr; }
  .talent-panel { padding: 0; border: none; border-radius: 0; background: none; backdrop-filter: none; }
  .talent-grid { grid-template-columns: repeat(2, 1fr); gap: 12px 10px; }
  .talent-track > .talent-grid:not(:first-child) { display: none; }
  .talent-grid > .talent-card:nth-child(n+7) { display: none; }
  .talent .pager { display: flex; margin-top: 18px; }
  .panel-more.talent-more { display: none; }
  .talent-card .meta .nm { font-size: 15px; }
  .talent-card .meta .rg { font-size: 12px; }
  .talent.expanded .talent-viewport { overflow: visible; }
  .talent.expanded .talent-track {
      display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 10px;
      transform: none !important;
    }
  .talent.expanded .talent-track > .talent-grid { display: contents; }
  .talent.expanded .talent-grid > .talent-card { display: flex; }
  .hero-carousel { aspect-ratio: 375 / 500; }
  .hero-arrow { display: none; }
  .hero-dots { bottom: 12px; }
  .incubate .ttl { font-size: 14px; color: #b4b4b4; margin-bottom: 24px; }
  /* 移动端恢复整屏铺满（版心约束仅 PC） */
  .marquee { gap: 24px; padding: 0; }
  .marquee-track { gap: 24px; }
  .mq-pill { gap: 12px; }
  .mq-pill .av { width: 48px; height: 48px; }
  .mq-pill .info { gap: 4px; }
  .mq-pill .nm { font-size: 12px; line-height: 18px; }
  .mq-pill .fans { font-size: 10px; line-height: 16px; padding: 2px 8px; border-radius: 4px; }
  .app-zone { padding: 44px 0 52px; }
  .app-zone-head h2 { font-size: 22px; line-height: 30px; }
  .app-zone-head p { font-size: 14px; line-height: 20px; margin-top: 10px; color: var(--text-2); }
  .logo-marquee { margin-top: 24px; padding: 14px 0; }
}

@media (max-width: 560px) {
  .talent-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sec-head .t { font-size: 18px; }
}


/* =========================================================
   网站公告弹窗（Figma：弹窗-公告）
   ========================================================= */
.notice[data-notice] { cursor: pointer; }
.notice[data-notice]:hover .nt { color: var(--gold); }

.notice-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.notice-modal[hidden] { display: none; }

.notice-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.notice-dialog {
  position: relative;
  display: flex; flex-direction: column;
  width: min(480px, 100%);
  max-height: min(80vh, 640px);
  background: #0d0e0f;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
  animation: notice-pop .22s cubic-bezier(.4, 0, .2, 1);
}
@keyframes notice-pop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.notice-dialog-head {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 16px;
}
.notice-dialog-title {
  flex: 1; min-width: 0;
  font-size: 16px; font-weight: 500; line-height: 22px;
  color: rgba(255, 255, 255, .9);
}
.notice-dialog-close {
  flex-shrink: 0; width: 24px; height: 24px;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, .55);
  transition: color var(--ease);
}
.notice-dialog-close:hover { color: #fff; }
.notice-dialog-close svg { width: 18px; height: 18px; fill: none; }

.notice-dialog-body {
  flex: 1; overflow-y: auto;
  padding: 0 16px 16px;
  font-size: 14px; line-height: 22px;
  color: rgba(255, 255, 255, .7);
}
.notice-dialog-body > :first-child { margin-top: 0; }
.notice-dialog-body p { margin: 0 0 10px; }
.notice-dialog-body h5 {
  margin: 18px 0 8px;
  font-size: 14px; font-weight: 600;
  color: rgba(255, 255, 255, .9);
}
.notice-dialog-body ul { margin: 0 0 10px; padding: 0; list-style: none; }
.notice-dialog-body li { position: relative; padding-left: 14px; margin-bottom: 6px; }
.notice-dialog-body li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}
.notice-dialog-body .notice-sign {
  margin-top: 14px; color: rgba(255, 255, 255, .5);
}

.notice-dialog-foot {
  display: flex; justify-content: flex-end;
  padding: 0 16px 16px;
}
.notice-dialog-ok {
  height: 32px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f7c96b; color: rgba(0, 0, 0, .9);
  font-size: 14px; font-weight: 500; line-height: 20px;
  border-radius: 8px;
  transition: filter var(--ease);
}
.notice-dialog-ok:hover { color: rgba(0, 0, 0, .9); filter: brightness(1.05); }

@media (max-width: 860px) {
  .notice-dialog { width: 100%; max-height: 78vh; }
  .notice-dialog-foot { padding: 0 16px 16px; }
  .notice-dialog-ok { width: 100%; height: 40px; }
}
