/* site-3 · arctic-mint VOD 皮肤 · 居中首屏 + 三四列卡片 */
:root {
  --site-mint: #14b8a6;
  --site-mint-dark: #0d9488;
  --site-mint-light: #2dd4bf;
  --site-ice: #f0f9ff;
  --site-ice2: #e0f2fe;
  --site-surface: #ffffff;
  --site-surface2: #f8fafc;
  --site-text: #1f2937;
  --site-muted: #64748b;
  --site-line: rgba(148, 163, 184, 0.22);
  --site-radius: 14px;
}

html {
  scroll-behavior: smooth;
}

body.body-tpl-portal {
  --portal-page: var(--site-ice);
}

.page-main {
  min-height: 60vh;
}

/* ── 居中品牌首屏 ── */
.hero-arctic {
  position: relative;
  overflow: hidden;
  padding: 3.25rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(20, 184, 166, 0.14);
}

.hero-arctic__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(165deg, #f0f9ff 0%, #ecfeff 42%, #ffffff 100%);
}

.hero-arctic__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 55% 45% at 18% 22%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 82% 72%, rgba(20, 184, 166, 0.1), transparent 50%);
}

.hero-arctic__inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
}

.hero-arctic__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--site-mint-dark);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.22);
}

.hero-arctic__kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--site-mint);
}

.hero-arctic__title {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 4.5vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--site-text);
}

.hero-arctic__lead {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  font-size: clamp(0.95rem, 1.8vw, 1.0625rem);
  line-height: 1.65;
  color: var(--site-muted);
}

.hero-arctic__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
}

.hero-arctic__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-arctic__btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--site-mint-light), var(--site-mint-dark));
  border: none;
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.28);
}

.hero-arctic__btn--primary:hover {
  transform: translateY(-2px);
}

.hero-arctic__btn--ghost {
  color: var(--site-mint-dark);
  background: var(--site-surface);
  border: 2px solid rgba(20, 184, 166, 0.35);
}

.hero-arctic__btn--ghost:hover {
  background: rgba(20, 184, 166, 0.08);
}

.hero-arctic__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 36rem;
  margin: 0 auto;
}

.hero-arctic__stat {
  padding: 0.85rem 0.5rem;
  border-radius: 12px;
  text-align: center;
  background: var(--site-surface);
  border: 1px solid rgba(20, 184, 166, 0.16);
  box-shadow: 0 2px 12px rgba(14, 116, 144, 0.06);
}

.hero-arctic__stat-ico {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
  color: var(--site-mint);
}

.hero-arctic__stat-num {
  display: block;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 900;
  color: var(--site-text);
}

.hero-arctic__stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--site-muted);
}

/* ── 内页 hero ── */
.vod-page-hero {
  position: relative;
  overflow: hidden;
  padding: 2.75rem 0 2.5rem;
  border-bottom: 1px solid rgba(20, 184, 166, 0.14);
  background: linear-gradient(165deg, #f0f9ff 0%, #ecfeff 50%, #ffffff 100%);
}

.vod-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 55% 45% at 10% 30%, rgba(56, 189, 248, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 70%, rgba(20, 184, 166, 0.08), transparent 50%);
}

.vod-page-hero__inner {
  position: relative;
  z-index: 1;
}

.vod-page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--site-mint-dark);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.22);
}

.vod-page-hero__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--site-mint);
}

.vod-page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--site-text);
  line-height: 1.2;
}

.vod-page-hero p {
  margin: 0;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--site-muted);
}

/* ── 筛选栏 ── */
.vod-filter-bar {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: var(--site-radius);
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  box-shadow: 0 2px 12px rgba(14, 116, 144, 0.05);
}

.vod-filter-bar input,
.vod-filter-bar select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--site-line);
  background: var(--site-surface2);
  color: var(--site-text);
  font-size: 0.875rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vod-filter-bar input::placeholder {
  color: var(--site-muted);
}

.vod-filter-bar input:focus,
.vod-filter-bar select:focus {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

/* ── 分类网格 ── */
.vod-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.vod-cat-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 110px;
  padding: 20px 18px;
  border-radius: var(--site-radius);
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(14, 116, 144, 0.05);
}

.vod-cat-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow: 0 12px 32px rgba(14, 116, 144, 0.1);
}

.vod-cat-tile__ico {
  display: flex;
  color: var(--site-mint);
  margin-bottom: 2px;
}

.vod-cat-tile strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--site-text);
}

.vod-cat-tile span {
  font-size: 0.8125rem;
  color: var(--site-muted);
  line-height: 1.5;
}

.vod-cat-tile__count {
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--site-mint-dark);
}

/* ── 空状态 ── */
.vod-empty {
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--site-radius);
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  color: var(--site-muted);
  font-weight: 700;
}

/* ── 卡片网格（三四列） ── */
.cq-card-grid--arctic {
  gap: 18px;
}

.cq-card-grid--arctic.cq-card-grid--dense {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cq-card-grid--arctic.cq-card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tuy-card.fsp-hl-card {
  border-radius: var(--site-radius);
  box-shadow: 0 4px 16px rgba(14, 116, 144, 0.07);
}

.tuy-card.fsp-hl-card:hover {
  transform: translateY(-4px);
}

.tuy-card__media {
  border-radius: var(--site-radius) var(--site-radius) 0 0;
}

/* ── 播放页 ── */
.player-stack,
.play-info-section,
.page-panel {
  background: var(--site-surface) !important;
  border-color: var(--site-line) !important;
}

.video-frame {
  background: #000 !important;
  border: 1px solid var(--site-line) !important;
}

.play-info-title {
  color: var(--site-text) !important;
}

.play-info-desc {
  color: var(--site-muted) !important;
}

.player-head-simple h1 {
  color: var(--site-text) !important;
}

.detail-hero__inner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(240, 249, 255, 0.95)) !important;
}

.pill-badge {
  color: var(--site-mint-dark) !important;
  background: rgba(20, 184, 166, 0.1) !important;
  border-color: rgba(20, 184, 166, 0.28) !important;
}

.detail-tags span {
  background: var(--site-surface2) !important;
  border-color: var(--site-line) !important;
  color: var(--site-muted) !important;
}

.ghost-btn {
  color: var(--site-mint-dark) !important;
  background: var(--site-surface) !important;
  border: 1px solid rgba(20, 184, 166, 0.35) !important;
}

.detail-info-grid div {
  background: var(--site-surface2) !important;
  border-color: var(--site-line) !important;
}

.mirror-player-slot {
  margin: 0 auto;
  max-width: min(1180px, calc(100% - 32px));
  padding: 0 0 8px;
}

.mirror-local-player {
  width: 100%;
  border-radius: 12px;
  background: #000;
  border: 1px solid var(--site-line);
}

.mother-play-desc {
  max-width: min(1180px, calc(100% - 32px));
  margin: 12px auto 24px;
  padding: 16px 20px;
  border-radius: var(--site-radius);
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  color: var(--site-muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* ── 特色区块 ── */
.tuyona-features__card {
  border-color: rgba(20, 184, 166, 0.14) !important;
  box-shadow: 0 4px 18px rgba(14, 116, 144, 0.06) !important;
}

.tuyona-features__card h3 {
  color: var(--site-text) !important;
}

/* ── 顶栏移动端 ── */
.header-inner--ref {
  position: relative;
}

.header-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--site-line);
  border-radius: 10px;
  background: var(--site-surface);
  color: var(--site-text);
  cursor: pointer;
}

@media (max-width: 768px) {
  .header-mobile-toggle {
    display: inline-flex;
  }

  .header-main-nav {
    display: none;
  }

  .header-main-nav.is-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: var(--site-surface);
    border: 1px solid var(--site-line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(14, 116, 144, 0.12);
    z-index: 70;
  }

  .header-tools {
    width: 100%;
  }

  .header-search--with-btn {
    max-width: none !important;
    width: 100%;
  }

  .hero-arctic {
    padding: 2.25rem 0 2rem;
  }

  .hero-arctic__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vod-filter-bar {
    grid-template-columns: 1fr;
  }

  .vod-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vod-page-hero {
    padding: 2rem 0 1.75rem;
  }

  .cq-card-grid--arctic.cq-card-grid--dense,
  .cq-card-grid--arctic.cq-card-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .vod-filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .vod-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cq-card-grid--arctic.cq-card-grid--dense {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .vod-cat-grid {
    grid-template-columns: 1fr;
  }

  .cq-card-grid--arctic.cq-card-grid--dense,
  .cq-card-grid--arctic.cq-card-grid--3 {
    grid-template-columns: 1fr;
  }

  .hero-arctic__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-arctic__btn {
    width: 100%;
  }
}

/* ── 轻量入场动效 ── */
@keyframes vod-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-tuyona__stack > section,
.inner-page > section {
  animation: vod-fade-up 0.45s ease both;
}

.home-tuyona__stack > section:nth-child(2) {
  animation-delay: 0.06s;
}

.home-tuyona__stack > section:nth-child(3) {
  animation-delay: 0.12s;
}
