/* =============================================
   857直播 桌面版复刻 · 教学演示
   布局：960px 居中内容，整页满宽
   修改 :root 变量即可全局调整视觉风格
   ============================================= */

:root {
  --c-accent: #F8C21B;       /* 主黄 */
  --c-accent-2: #FFB600;
  --c-red: #FA3434;
  --c-hot: #F50D2E;
  --c-dark: #1B1C2E;         /* 顶栏深色 */
  --c-hero: #15151f;         /* 直播大厅深底 */
  --c-navy: #25284C;         /* 页脚深蓝 */
  --c-page: #F0F1F6;         /* 页面底色 */
  --c-white: #FFFFFF;
  --c-t1: #333333;
  --c-t2: #666666;
  --c-t3: #999999;
  --c-line: #EBEBEB;
  --w-inner: 960px;
  --font: "PingFang SC", -apple-system, "Microsoft YaHei", "Segoe UI", sans-serif;
}

* , *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); color: var(--c-t1); background: var(--c-page); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; cursor: pointer; }
img { display: block; border: 0; }
ul, ol, li { list-style: none; }
.inner { width: var(--w-inner); margin: 0 auto; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 顶部导航 ---------- */
.header-wrapper {
  position: fixed; top: 0; left: 0; right: 0; height: 60px;
  background: var(--c-dark); z-index: 100;
}
.header-inner {
  width: var(--w-inner); height: 60px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.header-left { display: flex; align-items: center; }
.header-logo-box { width: 150px; }
.header-logo { height: 34px; width: auto; }
.header-menu ul { display: flex; align-items: center; gap: 6px; margin-left: 30px; }
.header-menu li {
  position: relative; height: 36px; line-height: 36px; padding: 0 18px;
  color: var(--c-white); font-size: 17px; border-radius: 4px; cursor: pointer;
  display: flex; align-items: center;
}
.header-menu li.active { background: var(--c-accent); color: var(--c-white); }
.header-menu li:not(.active):hover { color: var(--c-accent); }
.header-menu .dl-label { position: relative; display: inline-block; }
.header-menu .hot { position: absolute; top: -11px; right: -30px; height: 18px; width: auto; }

/* 下载APP 悬浮二维码 */
.download-menu { position: relative; }
.download-submenu {
  position: absolute; top: 52px; left: 50%; transform: translateX(-50%) translateY(8px);
  width: 200px; padding: 18px 0 16px; background: #fff; border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18); text-align: center;
  opacity: 0; visibility: hidden; transition: all .2s; z-index: 120;
}
.download-menu:hover .download-submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.download-submenu::before {
  content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  border: 8px solid transparent; border-bottom-color: #fff; border-top: 0;
}
.download-submenu .dl-qr { width: 140px; height: 140px; margin: 0 auto 10px; }
.download-submenu p { color: #666; font-size: 13px; line-height: 20px; }

.header-right { display: flex; align-items: center; color: var(--c-white); font-size: 15px; }
.header-login, .header-register { cursor: pointer; }
.header-login:hover, .header-register:hover { color: var(--c-accent); }
.division { width: 1px; height: 12px; background: rgba(255,255,255,0.4); margin: 0 12px; }

/* ---------- 直播大厅 ---------- */
.living-room {
  background: var(--c-hero) url(assets/bg/banner.jpg) no-repeat center top;
  background-size: cover;
  padding-top: 60px;
}
.video-inner {
  display: flex; padding-top: 24px; padding-bottom: 24px;
}
.video-box {
  position: relative; width: 810px; height: 454px; background: #000;
  border-radius: 6px 0 0 6px; overflow: hidden;
}
.video-poster { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video-shade { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.big-play-btn {
  position: absolute; top: 50%; left: 50%; width: 90px; height: 90px;
  transform: translate(-50%, -50%); cursor: pointer; opacity: 0.95;
}
.vplayer-recommend {
  position: absolute; top: 56%; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.85); font-size: 15px; white-space: nowrap;
}
.inLiveRoom {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  height: 44px; line-height: 42px; padding: 0 25px;
  background: rgba(0,0,0,0.5); color: var(--c-accent); font-size: 18px; font-weight: 600;
  border: 1px solid var(--c-accent); border-radius: 6px;
}
.inLiveRoom:hover { background: var(--c-accent); color: #000; }

.video-list { width: 150px; height: 454px; background: #1d1e2b; border-radius: 0 6px 6px 0; overflow-y: auto; }
.room-list li { padding: 6px 8px; }
.room-list a { position: relative; display: block; border-radius: 4px; overflow: hidden; border: 2px solid transparent; }
.room-list a.active { border-color: var(--c-accent); }
.room-list a.active .left-arrow {
  position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0; border: 6px solid transparent; border-left-color: var(--c-accent);
}
.room-list .live-cover { width: 100%; height: 72px; object-fit: cover; }

/* ---------- 赛事预约 ---------- */
.appoinment-list {
  position: relative; margin-top: 16px; background: var(--c-white);
  border-radius: 8px; padding: 14px 0;
}
.appoinment-track { display: flex; gap: 0; overflow: hidden; }
.appoinment-track .game {
  flex: 0 0 240px; padding: 0 16px; border-right: 1px solid var(--c-line);
}
.appoinment-track .game:last-child { border-right: none; }
.game .title { display: flex; align-items: center; justify-content: space-between; }
.game .title .fl { display: flex; align-items: center; gap: 6px; }
.game .title .icon { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.game .title .fl span { font-size: 13px; color: var(--c-t1); }
.game .match-time { font-size: 12px; color: var(--c-t3); }
.game .match-time span { color: var(--c-red); margin-right: 2px; }
.game .box { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.battle-team { flex: 1; min-width: 0; }
.battle-team p { font-size: 14px; color: var(--c-t1); line-height: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appoinment {
  flex-shrink: 0; height: 26px; line-height: 26px; padding: 0 12px; margin-left: 8px;
  border: 1px solid var(--c-accent); border-radius: 13px; color: var(--c-accent-2); font-size: 13px;
}
.appoinment:hover { background: var(--c-accent); color: #fff; }
.swiper-button-prev, .swiper-button-next {
  position: absolute; top: 50%; width: 30px; height: 30px; transform: translateY(-50%);
  border-radius: 50%; background: rgba(0,0,0,0.25); color: #fff; cursor: pointer;
}
.swiper-button-prev { left: -12px; }
.swiper-button-next { right: -12px; }
.swiper-button-prev::after, .swiper-button-next::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px;
  border-top: 2px solid #fff; border-right: 2px solid #fff;
}
.swiper-button-prev::after { transform: translate(-30%, -50%) rotate(-135deg); }
.swiper-button-next::after { transform: translate(-70%, -50%) rotate(45deg); }

/* ---------- 区块标题通用 ---------- */
.hot, .anchor { margin-top: 28px; }
.hot-title, .cat-title {
  display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px;
}
.hot-live img { height: 44px; width: auto; }
.live-title-img { height: 32px; width: auto; }
.more { font-size: 14px; color: var(--c-t3); }
.more:hover { color: var(--c-accent-2); }

/* ---------- 正在热播：4列 ---------- */
.hot-content { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hot-content li a, .category-list li a { display: block; }
.hot-content .fm {
  width: 100%; height: 128px; object-fit: cover; border-radius: 6px;
}
.hot-content li a, .category-list li a { position: relative; }
.live-mask { position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 45%); }
.btn-open {
  position: absolute; top: 44px; left: 50%; transform: translate(-50%, -50%);
  width: 50px; height: 50px; border-radius: 50%; background: rgba(0,0,0,0.4);
  opacity: 0; transition: opacity .2s;
}
.btn-open::after {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border: 9px solid transparent; border-left-color: #fff;
}
.hot-content li a:hover .btn-open, .category-list li a:hover .btn-open { opacity: 1; }
.top-tag { position: absolute; top: 8px; left: 8px; }
.living {
  display: flex; align-items: center; gap: 3px; height: 18px; padding: 0 6px;
  background: var(--c-hot); border-radius: 3px;
}
.living img { width: 10px; height: 10px; }
.living span { color: #fff; font-size: 12px; }
.bottom-title {
  position: absolute; left: 8px; right: 8px; top: 100px;
  display: flex; align-items: center; justify-content: space-between; font-weight: 400;
}
.bottom-title .name { color: #fff; font-size: 13px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottom-title .num { display: flex; align-items: center; gap: 3px; color: #fff; font-size: 12px; }
.bottom-title .num img { width: 13px; height: 14px; }
.hot-content h4 { margin-top: 8px; font-size: 14px; font-weight: 400; color: var(--c-t1); }

/* ---------- 热门主播 ---------- */
.title-block img { height: 46px; width: auto; }
.anchor-track { display: flex; gap: 14px; margin-top: 16px; overflow: hidden; }
.person { flex: 0 0 auto; text-align: center; width: 90px; }
.person .avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin: 0 auto; }
.person p { margin-top: 8px; font-size: 14px; color: var(--c-t1); }

/* ---------- 分类直播 ---------- */
.category-box { width: 100%; background: var(--c-page); padding: 28px 0 10px; }
.category { margin-bottom: 24px; }
.category-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-list .live-item { position: relative; }
.recommend {
  position: absolute; top: 0; left: 0; z-index: 2;
  background: #2b8fff; color: #fff; font-size: 12px; line-height: 18px;
  padding: 0 8px; border-radius: 6px 0 8px 0;
}
.category-list .fm { width: 100%; height: 127px; object-fit: cover; border-radius: 6px; }
.category-list h4 { margin-top: 10px; font-size: 14px; font-weight: 400; color: var(--c-t1); }
.category-list h6 {
  margin-top: 6px; display: flex; align-items: center; justify-content: space-between;
  font-weight: 400; color: var(--c-t3); font-size: 13px;
}
.category-list h6 .num { display: flex; align-items: center; gap: 3px; }

/* ---------- 右侧悬浮 ---------- */
.right-fix {
  position: fixed; right: 24px; bottom: 120px; z-index: 50;
  display: flex; flex-direction: column; gap: 10px;
}
.right-fix a {
  width: 56px; height: 56px; background: #fff; border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.right-fix .icon { width: 22px; height: 22px; }
.right-fix .text { font-size: 11px; color: var(--c-t2); transform: scale(0.92); }
.right-fix a:hover { color: var(--c-accent-2); }

/* ---------- 页脚 ---------- */
.footer-wrapper { background: var(--c-navy); margin-top: 20px; }
.footer-wrapper .inner { padding: 30px 0; }
.logo-footer img { height: 64px; width: auto; opacity: 0.9; }
.guide { display: flex; gap: 36px; margin-top: 18px; }
.guide a { color: rgba(255,255,255,0.7); font-size: 14px; }
.guide a:hover { color: #fff; }
.desc { margin-top: 16px; }
.desc p { color: rgba(255,255,255,0.45); font-size: 13px; }
