.wrap { max-width: 1240px; margin: 0 auto; padding: 54px 22px 0; }
.sec-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-head h2 { font-size: 22px; }
.sec-head .muted { font-size: 13px; }

/* ---------- Hero 轮播（后端运营配置） ---------- */
.hero-wrap {
  position: relative; max-width: 1240px; margin: 22px auto 0; padding: 0 22px;
}
.hero-track {
  display: flex; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.hero-item {
  position: relative; flex: 0 0 100%; height: 300px; overflow: hidden;
  /* 无配图时的兜底：品牌色渐变 + 网格，视觉上是「有设计」而不是「图挂了」 */
  background:
    radial-gradient(120% 150% at 88% 15%, rgba(124, 92, 255, .38), transparent 60%),
    radial-gradient(90% 120% at 12% 85%, rgba(51, 230, 176, .2), transparent 55%),
    linear-gradient(160deg, #14142a, #0a0a10 70%);
}
.hero-item::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(124, 92, 255, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, .1) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 90% at 50% 40%, #000, transparent);
}
.hero-item img, .hero-item video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  /* 略偏上取景：保留主体构图，同时把生成服务加在右下角的水印裁掉 */
  object-position: center 42%;
}
.hero-tx-in {
  position: absolute; inset: auto 0 0; padding: 26px 30px;
  background: linear-gradient(transparent, rgba(6, 6, 10, .92));
}
.hero-item:hover img, .hero-item:hover video { transform: scale(1.03); }
.hero-item img, .hero-item video { transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.hero-tx-in h2 { font-size: 27px; }
.hero-tx-in p { margin: 7px 0 0; font-size: 14px; color: #c3c3cf; }
.hero-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.hero-dots button {
  width: 22px; height: 3px; border: 0; border-radius: 3px; padding: 0;
  background: var(--line); cursor: pointer; transition: .2s;
}
.hero-dots button.on { background: var(--ac); width: 34px; }

/* ---------- 活动位 ---------- */
.activity {
  position: relative; display: flex; align-items: center; gap: 20px;
  padding: 22px 24px; overflow: hidden;
}
.act-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .3; mask-image: linear-gradient(90deg, transparent, #000);
}
.act-tx { position: relative; flex: 1; }
.act-tx h3 { font-size: 19px; margin: 8px 0 6px; }
.act-tx p { margin: 0; font-size: 13px; }
.activity .btn { position: relative; flex: none; }

/* ---------- LIB·TV ---------- */
.tv {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px;
  max-width: 1240px; margin: 0 auto; padding: 28px 22px 0;
}
.tv-main { background: var(--bg-1); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.tv-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px;
}
.live { display: flex; align-items: center; gap: 7px; color: var(--warn); font-family: var(--mono); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); animation: b 1.4s infinite; }
@keyframes b { 50% { opacity: .25; } }
#tv-frame { width: 100%; height: 380px; border: 0; background: #0b0b10; display: block; }
.tv-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 16px; }
.tv-bar h3 { font-size: 17px; }
.tv-bar p { margin: 5px 0 0; font-size: 12px; }
.tv-act { display: flex; gap: 8px; }

.tv-side { display: flex; flex-direction: column; }
.hero-tx h1 { font-size: 38px; margin-bottom: 12px; }
.hero-tx p { font-size: 14px; margin: 0 0 22px; }
.ch-title { font-size: 11px; letter-spacing: .12em; margin-bottom: 10px; }
.ch {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px; margin-bottom: 8px; border-radius: 12px;
  background: transparent; border: 1px solid transparent; cursor: pointer; text-align: left;
}
.ch:hover { background: var(--bg-1); }
.ch.on { background: var(--bg-1); border-color: #34344a; }
.ch b { display: block; font-size: 13.5px; font-weight: 550; }
.ch span { font-size: 11.5px; color: var(--tx-2); }
.ch-thumb { width: 54px; height: 34px; border-radius: 7px; flex: none; }

/* ---------- 筛选 ---------- */
.filters { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; }
.chip {
  height: 34px; padding: 0 12px; border-radius: 9px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); font-size: 13px; color: var(--tx-2);
}
.chip.on { background: var(--bg-2); color: var(--tx); border-color: #3a3a46; }

/* ---------- 游戏卡 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 18px; }
.g-card { border-radius: var(--r); overflow: hidden; background: var(--bg-1); border: 1px solid var(--line); transition: .18s; }
.g-card:hover { transform: translateY(-3px); border-color: #38384a; }
.g-cover { position: relative; height: 152px; cursor: pointer; }
.g-cover b {
  position: absolute; left: 14px; bottom: 12px; right: 14px;
  font-size: 19px; font-weight: 650; letter-spacing: -.02em;
}
.g-cover .hot-tag {
  position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 600; color: #fff;
}
.g-body { padding: 13px 14px 14px; }
.g-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--tx-2); }
.g-meta a:hover { color: var(--tx); text-decoration: underline; }
.g-desc { font-size: 13px; color: var(--tx-2); margin: 9px 0 12px; height: 42px; overflow: hidden; }
.g-src { margin: -6px 0 10px; font-size: 11px; }
.g-act { display: flex; gap: 7px; }
.g-act .btn { flex: 1; }

/* ---------- 作者 / 方案 ---------- */
.a-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; }
.a-card { padding: 18px; text-align: center; }
.a-face { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 10px; background: linear-gradient(135deg, var(--ac), var(--ac-2)); }
.a-card b { font-size: 14.5px; }
.a-card p { font-size: 12.5px; color: var(--tx-2); margin: 5px 0 12px; }

.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.p-card { padding: 22px; position: relative; }
.p-card.best { border-color: var(--ac); }
.p-card .best-tag { position: absolute; top: -10px; left: 22px; padding: 2px 9px; border-radius: 20px; background: var(--ac); font-size: 11px; }
.p-card h3 { font-size: 16px; }
.p-card ul { list-style: none; padding: 0; margin: 14px 0 18px; font-size: 13px; color: var(--tx-2); }
.p-card li { padding: 5px 0 5px 18px; position: relative; }
.p-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ac-2); }

/* ---------- 弹窗内容 ---------- */
.m-cover { height: 130px; border-radius: 10px; margin-bottom: 16px; }
.m-row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .tv { grid-template-columns: 1fr; }
  .hero-item { height: 210px; }
  .hero-tx-in { padding: 18px 20px; }
  .hero-tx-in h2 { font-size: 20px; }
  .activity { flex-direction: column; align-items: flex-start; }
  .filters { margin-left: 0; width: 100%; }
  .chips { overflow-x: auto; }
}
