/* ==========================================================================
   轻松一刻 · PC 端样式
   纯静态、无构建：所有页面共用这一份样式表。
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #0c0e13;
  --bg-2: #12151c;
  --panel: #161a23;
  --panel-2: #1c2130;
  --line: #252b38;
  --line-2: #333b4d;
  --txt: #e9edf6;
  --sub: #98a2b6;
  --dim: #6b7488;
  --acc: #ff8c00;
  --acc-2: #ff6a1a;
  --acc-dim: rgba(255, 140, 0, .13);
  --ok: #39b57a;
  --gold: #f5c451;
  --red: #f0555c;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 16px 40px rgba(0, 0, 0, .5);
  --wrap: 1280px;
}

html, body { margin: 0; padding: 0; }

body {
  min-width: 1180px;
  background:
    radial-gradient(1200px 620px at 50% -260px, #1c2333 0%, rgba(12, 14, 19, 0) 70%) no-repeat,
    var(--bg);
  color: var(--txt);
  font: 14px/1.65 "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; border: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0 0 10px; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: var(--wrap); max-width: calc(100% - 48px); margin: 0 auto; }
.dim { color: var(--dim); }
.sub { color: var(--sub); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 10px;
  background: var(--panel-2); color: var(--txt);
  font-size: 14px; white-space: nowrap;
  transition: .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-acc { background: linear-gradient(135deg, var(--acc) 0%, var(--acc-2) 100%); color: #22140a; font-weight: 600; }
.btn-acc:hover { box-shadow: 0 8px 22px rgba(255, 122, 20, .28); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--sub); }
.btn-ghost:hover { color: var(--txt); border-color: #4b556b; }
.btn-lg { height: 44px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  height: 68px;
  background: rgba(12, 14, 19, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar-in { height: 100%; display: flex; align-items: center; gap: 26px; }

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--acc) 0%, var(--acc-2) 100%);
  color: #22140a; font-size: 13px; font-weight: 800; letter-spacing: -1px;
}
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: .5px; }

.nav { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 9px;
  color: var(--sub); font-size: 14px; transition: .16s;
}
.nav a:hover { color: var(--txt); background: rgba(255, 255, 255, .05); }
.nav a.on { color: var(--txt); background: var(--acc-dim); }
.nav a.on::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--acc);
}

.search { position: relative; flex: 1 1 auto; max-width: 320px; margin-left: auto; }
.search input {
  width: 100%; height: 38px; padding: 0 44px 0 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--txt); outline: none;
  transition: .18s;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: #4a5470; background: var(--panel-2); }
.search button {
  position: absolute; right: 4px; top: 4px;
  width: 32px; height: 30px; border: 0; border-radius: 7px;
  background: transparent; color: var(--sub);
  display: grid; place-items: center;
}
.search button:hover { color: var(--acc); background: var(--acc-dim); }

.userbar { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.ub { display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px; border-radius: 30px; transition: .16s; }
.ub:hover { background: rgba(255, 255, 255, .06); }
.ub-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--panel-2); }
.ub-name { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.ub-points {
  padding: 4px 10px; border-radius: 30px;
  background: var(--acc-dim); color: var(--acc);
  font-size: 12px; font-weight: 600;
}

/* ---------- 通用区块 ---------- */
main { padding: 28px 0 60px; min-height: 60vh; }

.sec { margin-bottom: 34px; }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { font-size: 20px; letter-spacing: .3px; }
.sec-head .bar { width: 4px; height: 18px; border-radius: 3px; background: var(--acc); }
.sec-head .more { margin-left: auto; font-size: 13px; color: var(--dim); }
.sec-head .more:hover { color: var(--acc); }

.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 24px; }

.card-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px;
}

/* ---------- 轮播 ---------- */
.hero {
  position: relative; height: 340px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--panel); margin-bottom: 30px;
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
  background-size: cover; background-position: center 32%;
}
.hero-slide.on { opacity: 1; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 14, .92) 0%, rgba(8, 10, 14, .25) 45%, rgba(8, 10, 14, .1) 100%);
}
.hero-cap {
  position: absolute; left: 34px; right: 34px; bottom: 26px; z-index: 2;
  display: flex; align-items: flex-end; gap: 14px;
}
.hero-cap h3 {
  font-size: 22px; text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
  max-width: 780px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-cap .tag {
  padding: 3px 9px; border-radius: 6px; font-size: 12px;
  background: var(--acc); color: #22140a; font-weight: 700;
}
.hero-dots { position: absolute; right: 26px; bottom: 30px; z-index: 3; display: flex; gap: 7px; }
.hero-dots i {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .35);
  cursor: pointer; transition: .2s;
}
.hero-dots i.on { width: 20px; border-radius: 4px; background: var(--acc); }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 56px; border: 0; border-radius: 10px;
  background: rgba(10, 12, 16, .45); color: #fff; opacity: 0; transition: .2s;
  display: grid; place-items: center; font-size: 18px;
}
.hero:hover .hero-nav { opacity: 1; }
.hero-nav:hover { background: rgba(10, 12, 16, .75); }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }

/* ---------- 频道 ---------- */
.channels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 34px; }
.channel {
  position: relative; height: 96px; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
  display: flex; align-items: flex-end; padding: 14px 16px;
  background-size: cover; background-position: center;
  transition: .2s;
}
.channel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 14, .86) 0%, rgba(8, 10, 14, .35) 100%);
}
.channel:hover { border-color: var(--acc); transform: translateY(-2px); }
.channel span { position: relative; z-index: 2; font-size: 15px; font-weight: 600; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 18px; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card { display: block; }
.card-thumb {
  position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  background: var(--panel-2) center/cover no-repeat;
  border: 1px solid var(--line);
  transition: .22s ease;
}
.card:hover .card-thumb { border-color: #46506a; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.card-thumb .ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #39415a; font-size: 12px;
}
.card-thumb .badge {
  position: absolute; left: 9px; top: 9px; z-index: 2;
  padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700;
  background: rgba(8, 10, 14, .72); color: #fff; backdrop-filter: blur(4px);
}
.badge.free { color: #5fe0a4; }
.badge.point { color: var(--acc); }
.badge.vip { color: var(--gold); }
.badge.get { color: #7fb2ff; }
.card-thumb .crown {
  position: absolute; right: 9px; top: 9px; z-index: 2;
  padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .5px;
  background: linear-gradient(135deg, #ffd97a, #e8a72b); color: #3a2500;
}
.card-title {
  margin-top: 10px; font-size: 14px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .16s;
}
.card:hover .card-title { color: var(--acc); }
.card-sub { margin-top: 4px; font-size: 12px; color: var(--dim); }

/* ---------- 首页双栏 ---------- */
.home-cols { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }
.side-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; margin-bottom: 18px;
}
.side-card h3 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.side-card h3::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--acc); }

.rank { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, .06); }
.rank:last-child { border-bottom: 0; }
.rank-no {
  flex: 0 0 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--dim); background: rgba(255, 255, 255, .05);
}
.rank:nth-child(1) .rank-no { background: linear-gradient(135deg, #ffd97a, #e8a72b); color: #3a2500; }
.rank:nth-child(2) .rank-no { background: rgba(255, 255, 255, .18); color: #fff; }
.rank:nth-child(3) .rank-no { background: rgba(214, 128, 66, .55); color: #fff; }
.rank-t { font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rank:hover .rank-t { color: var(--acc); }

.notice-li { display: flex; gap: 10px; padding: 8px 0; font-size: 13px; color: var(--sub); }
.notice-li i { color: var(--acc); font-style: normal; }
.notice-li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-li:hover span { color: var(--txt); }

/* ---------- 详情页 ---------- */
.detail { display: grid; grid-template-columns: 1fr 330px; gap: 26px; align-items: start; }

.stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden;
  background: #05070a; border: 1px solid var(--line); margin-bottom: 18px;
}
.stage video { width: 100%; height: 100%; display: block; background: #05070a; }
.stage-poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage.locked .stage-poster { filter: blur(14px) brightness(.5); transform: scale(1.06); }
.stage-mask {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(60% 70% at 50% 45%, rgba(0, 0, 0, .35) 0%, rgba(6, 8, 12, .82) 100%);
  text-align: center; padding: 24px;
}
.stage-mask .lock-ico { font-size: 30px; opacity: .9; }
.stage-mask h3 { font-size: 19px; }
.stage-mask p { color: var(--sub); max-width: 460px; margin: 0; font-size: 13px; }
.stage-mask .row { display: flex; gap: 10px; margin-top: 6px; }
.player-ph {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 13px;
}

.d-title { font-size: 22px; line-height: 1.45; margin-bottom: 10px; }
.d-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--dim); margin-bottom: 14px; flex-wrap: wrap; }
.d-meta .chip {
  padding: 2px 9px; border-radius: 6px; background: var(--panel-2); color: var(--sub); font-size: 12px;
}
.d-meta .chip.free { color: #5fe0a4; }
.d-meta .chip.point { color: var(--acc); }
.d-meta .chip.vip { color: var(--gold); }

.d-actions { display: flex; gap: 10px; margin-bottom: 22px; }
.d-body {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; font-size: 15px; line-height: 1.9; color: #d8dded;
  word-break: break-word;
}
.d-body img { display: block; margin: 12px auto; border-radius: 10px; max-width: 100%; }
.d-body p { margin: 0 0 12px; }
.d-body video, .d-body iframe { max-width: 100%; }

.side-item { display: flex; gap: 10px; padding: 9px 0; }
.side-item .th {
  flex: 0 0 108px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden;
  background: var(--panel-2) center/cover no-repeat;
}
.side-item .tx { flex: 1 1 auto; min-width: 0; }
.side-item .tx b {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13px; font-weight: 400; line-height: 1.5;
}
.side-item:hover .tx b { color: var(--acc); }
.side-item .tx small { color: var(--dim); font-size: 12px; }

.pay-card h3 { margin-bottom: 14px; }
.pay-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; color: var(--sub); }
.pay-line b { color: var(--txt); font-weight: 600; }
.pay-card .btn { margin-top: 12px; }

.vip-promo {
  border: 1px solid rgba(245, 196, 81, .35);
  background: linear-gradient(160deg, rgba(245, 196, 81, .12), rgba(245, 196, 81, .02));
}
.vip-promo h3::before { background: var(--gold); }
.vip-promo p { font-size: 13px; color: var(--sub); }

/* ---------- 我的 ---------- */
.profile {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(120deg, rgba(255, 140, 0, .09), rgba(20, 24, 33, .2) 55%), var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; margin-bottom: 22px;
}
.profile .av { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; background: var(--panel-2); border: 2px solid rgba(255, 255, 255, .08); }
.profile .who h2 { font-size: 20px; margin-bottom: 4px; }
.profile .who p { margin: 0; color: var(--dim); font-size: 13px; }
.profile .stats { margin-left: auto; display: flex; gap: 30px; text-align: center; }
.profile .stats b { display: block; font-size: 22px; color: var(--acc); font-weight: 700; }
.profile .stats span { font-size: 12px; color: var(--dim); }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.quick a, .quick button {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line);
  text-align: left; transition: .18s;
}
.quick a:hover, .quick button:hover { border-color: var(--acc); transform: translateY(-2px); background: var(--panel-2); }
.quick .ico {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 17px;
  background: var(--acc-dim); color: var(--acc);
}
.quick .tx b { display: block; font-size: 14px; font-weight: 600; }
.quick .tx small { color: var(--dim); font-size: 12px; }

/* ---------- 表单 ---------- */
.form-card { width: 420px; margin: 30px auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; }
.form-card h2 { font-size: 20px; margin-bottom: 6px; }
.form-card .lead { color: var(--dim); font-size: 13px; margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--sub); margin-bottom: 6px; }
.field input {
  width: 100%; height: 42px; padding: 0 13px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--txt); outline: none; transition: .16s;
}
.field input:focus { border-color: var(--acc); }
.form-card .btn { margin-top: 6px; }
.form-foot { margin-top: 16px; text-align: center; font-size: 13px; color: var(--dim); }
.form-foot a { color: var(--acc); }

/* ---------- 列表页/空态 ---------- */
.more-wrap { display: flex; justify-content: center; margin-top: 30px; }
.empty { padding: 80px 0; text-align: center; color: var(--dim); }
.empty .big { font-size: 34px; opacity: .5; display: block; margin-bottom: 10px; }
.loading { padding: 90px 0; text-align: center; color: var(--dim); }
.skel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 18px; }
.skel { height: 210px; border-radius: 12px; background: linear-gradient(100deg, #171b24 30%, #1f2531 50%, #171b24 70%); background-size: 220% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { from { background-position: 120% 0; } to { background-position: -20% 0; } }

/* ---------- 公告 / 静态页 ---------- */
.notice-list li { border-bottom: 1px solid var(--line); }
.notice-list a { display: flex; align-items: center; gap: 12px; padding: 15px 4px; }
.notice-list a:hover { color: var(--acc); }
.notice-list time { margin-left: auto; font-size: 12px; color: var(--dim); }
.article { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 30px; }
.article h1 { font-size: 22px; margin-bottom: 14px; }
.article .body { font-size: 15px; line-height: 1.9; color: #d8dded; }
.article .body img { display: block; margin: 14px auto; border-radius: 10px; }

/* ---------- toast / modal ---------- */
.toast {
  position: fixed; left: 50%; top: 84px; z-index: 300;
  transform: translate(-50%, -10px);
  padding: 11px 20px; border-radius: 10px;
  background: #232936; border: 1px solid var(--line-2);
  color: var(--txt); font-size: 14px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: .22s ease;
  max-width: 520px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: rgba(57, 181, 122, .5); }
.toast.err { border-color: rgba(240, 85, 92, .55); }

.modal-wrap {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 6, 9, .72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.modal-wrap[hidden] { display: none; }
.modal {
  width: 480px; max-width: calc(100vw - 48px);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 26px 26px 22px; box-shadow: var(--shadow);
  animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { font-size: 18px; margin-bottom: 10px; }
.modal .desc { color: var(--sub); font-size: 13px; }
.modal .m-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.plan {
  padding: 14px 10px; border-radius: 12px; text-align: center; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line); transition: .16s;
}
.plan:hover { border-color: var(--acc); background: var(--panel-2); }
.plan b { display: block; font-size: 15px; margin-bottom: 6px; }
.plan i { font-style: normal; color: var(--acc); font-weight: 700; font-size: 17px; }
.plan small { display: block; color: var(--dim); font-size: 11px; margin-top: 4px; }

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--line); padding: 24px 0 34px; text-align: center; font-size: 12px; color: var(--dim); }
.foot p { margin: 4px 0; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a3140; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #3a4356; }
::-webkit-scrollbar-track { background: transparent; }
