/* ==========================================================================
   武汉卡特斯网络科技有限公司  ktsdw.com
   站点样式：企业白底 + 深色顶栏 + 蓝色主色（按原站视觉复刻）
   ========================================================================== */

:root {
  --blue: #1f6fb2;
  --blue-d: #14507f;
  --blue-l: #8db7d8;
  --blue-soft: #eef5fa;
  --ink: #1c1f22;
  --ink-2: #3d4348;
  --gray: #6b7378;
  --gray-l: #9aa2a8;
  --line: #e6eaee;
  --line-2: #f1f4f7;
  --bg: #ffffff;
  --soft: #f7f9fb;
  --top: #16181c;
  --w: 1200px;
  --r: 4px;
  --shadow: 0 10px 30px rgba(17, 36, 56, .10);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-d); }
img { max-width: 100%; display: block; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; color: var(--ink); }
p { margin: 0 0 12px; }

.wrap { width: var(--w); max-width: calc(100% - 40px); margin: 0 auto; }
.clearfix::after { content: ""; display: table; clear: both; }
.hide { display: none !important; }

/* ---------- 顶部黑条 ---------- */
.topbar {
  height: 40px;
  background: var(--top);
  color: #c9ced4;
  font-size: 13px;
  line-height: 40px;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; }
.topbar .hi { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .hi b { color: #fff; font-weight: 400; }
.topbar .tel { color: #fff; letter-spacing: .3px; white-space: nowrap; }
.topbar .tel i { font-style: normal; color: var(--blue-l); margin-right: 6px; }
.topbar a { color: #c9ced4; }
.topbar a:hover { color: #fff; }

/* ---------- 导航 ---------- */
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 60;
}
.header .wrap { display: flex; align-items: center; height: 78px; }

.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo-mark {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.logo-mark img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.logo-text { line-height: 1.25; }
.logo-text strong { display: block; font-size: 17px; color: var(--ink); letter-spacing: .5px; }
.logo-text span { display: block; font-size: 11px; color: var(--gray-l); letter-spacing: 2px; }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; }
.nav a {
  display: block;
  padding: 0 9px;
  line-height: 78px;
  font-size: 13.5px;
  color: #2c3136;
  white-space: nowrap;
  position: relative;
}
.nav a:hover { color: var(--blue); }
.nav a.active { background: var(--blue-l); color: #fff; }
.nav a.active:hover { color: #fff; }

.burger {
  display: none; margin-left: auto;
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 4px;
  background: #fff; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink-2); position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink-2);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* ---------- 轮播 ---------- */
.banner {
  position: relative;
  height: 400px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: var(--r);
  background: #0a1a2b;
}
.banner-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .8s ease;
}
.banner-slide.on { opacity: 1; }
.banner-slide img {
  position: absolute; top: 0; right: 0;
  height: 100%; width: auto; min-width: 100%;
  object-fit: cover; object-position: right center;
}
.banner-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(96deg, rgba(6, 20, 38, .95) 0%, rgba(8, 30, 56, .82) 38%, rgba(10, 34, 62, .18) 72%, rgba(10, 34, 62, 0) 100%);
}
.banner-copy {
  position: relative; z-index: 3;
  padding: 0 0 0 128px;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff; max-width: 560px;
}
.banner-copy .tag {
  display: inline-block; align-self: flex-start;
  font-size: 12px; letter-spacing: 2px; color: #b7d7f2;
  border: 1px solid rgba(183, 215, 242, .45);
  padding: 3px 10px; border-radius: 2px; margin-bottom: 16px;
}
.banner-copy h2 { color: #fff; font-size: 34px; letter-spacing: 2px; line-height: 1.35; }
.banner-copy p { color: #c6d8e8; font-size: 14px; margin: 14px 0 26px; max-width: 420px; }
.banner-copy .btn-row { display: flex; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 22px; border-radius: 2px;
  font-size: 14px; line-height: 40px; cursor: pointer; border: 1px solid transparent;
  transition: all .2s;
}
.btn-main { background: var(--blue); color: #fff; }
.btn-main:hover { background: #1a5d95; color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-line { border-color: var(--line); color: var(--ink-2); background: #fff; }
.btn-line:hover { border-color: var(--blue); color: var(--blue); }

.banner-qr {
  position: absolute; left: 14px; top: 14px; z-index: 5;
  background: #fff; padding: 6px; border-radius: 2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.banner-qr img { width: 86px; height: 86px; }

.banner-dots {
  position: absolute; left: 128px; bottom: 26px; z-index: 5;
  display: flex; gap: 8px;
}
.banner-dots i {
  width: 26px; height: 3px; background: rgba(255, 255, 255, .35);
  cursor: pointer; transition: background .2s;
}
.banner-dots i.on { background: #fff; }

/* ---------- 板块标题 ---------- */
.sec { padding: 52px 0 10px; }
.sec-head { text-align: center; margin-bottom: 30px; }
.sec-head h3 {
  font-size: 25px; letter-spacing: 3px; font-weight: 700; color: #2b3238;
}
.sec-head .en {
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 4px; color: var(--gray-l); text-transform: uppercase;
}
.sec-head .en::before, .sec-head .en::after {
  content: ""; width: 26px; height: 1px; background: #d3dae1;
}
.sec-head .sub { color: var(--gray); font-size: 13px; margin-top: 10px; }
.sec-more { text-align: center; margin: 34px 0 8px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d5e2ec; }
.card .cover { position: relative; display: block; overflow: hidden; background: #eef1f4; }
.card .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.card:hover .cover img { transform: scale(1.04); }
.card .name {
  height: 44px; line-height: 44px; text-align: center;
  font-size: 14px; color: #4a5157; border-top: 1px solid var(--line-2);
  padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-32 { aspect-ratio: 3 / 2; }

.badge {
  position: absolute; left: 10px; top: 10px; z-index: 3;
  background: rgba(214, 48, 48, .94); color: #fff;
  font-size: 11px; letter-spacing: 1px; padding: 3px 8px; border-radius: 2px;
  display: inline-flex; align-items: center; gap: 5px;
}
.badge i {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: pulse 1.2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }

.meta-tip {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  background: rgba(12, 20, 28, .72); color: #fff;
  font-size: 11px; padding: 2px 7px; border-radius: 2px;
}

/* ---------- 页头（内页） ---------- */
.page-hero {
  background: linear-gradient(120deg, #0f2d4c 0%, #1f6fb2 72%, #2f8ad4 100%);
  color: #fff;
  padding: 40px 0 36px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 68%);
}
.page-hero h1 { color: #fff; font-size: 26px; letter-spacing: 2px; font-weight: 700; }
.page-hero .en { font-size: 11px; letter-spacing: 3px; color: #a9cbe6; text-transform: uppercase; margin-top: 6px; }
.page-hero .crumb { font-size: 12px; color: #c3d9ea; margin-top: 14px; }
.page-hero .crumb a { color: #c3d9ea; }
.page-hero .crumb a:hover { color: #fff; }

/* ---------- 文档正文 ---------- */
.doc-wrap { padding: 44px 0 60px; }
.doc {
  font-size: 14.5px;
  color: #4a5157;
  line-height: 1.95;
}
.doc h4 {
  font-size: 16px; color: var(--ink); margin: 30px 0 12px;
  padding-left: 12px; border-left: 3px solid var(--blue); line-height: 1.4;
}
.doc h4:first-child { margin-top: 0; }
.doc p { margin: 0 0 12px; }
.doc ol, .doc ul { margin: 0 0 14px; padding-left: 4px; }
.doc ol { counter-reset: n; }
.doc ol > li {
  counter-increment: n; position: relative; padding-left: 26px; margin-bottom: 8px;
}
.doc ol > li::before {
  content: counter(n) "."; position: absolute; left: 0; top: 0;
  color: var(--blue); font-weight: 700;
}
.doc ul > li { position: relative; padding-left: 18px; margin-bottom: 8px; }
.doc ul > li::before {
  content: ""; position: absolute; left: 4px; top: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--blue-l);
}
.doc .note {
  background: var(--soft); border: 1px solid var(--line);
  padding: 14px 16px; border-radius: 3px; font-size: 13.5px; color: var(--gray);
  margin: 18px 0;
}
.doc .note b { color: var(--ink); }
.doc strong { color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 13.5px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--soft); color: var(--ink); font-weight: 700; }

.layout-side { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: start; }
.side {
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden; position: sticky; top: 16px;
}
.side .side-t {
  background: var(--blue-soft); color: var(--blue-d);
  font-size: 14px; font-weight: 700; padding: 12px 16px; letter-spacing: 1px;
}
.side a {
  display: block; padding: 11px 16px; font-size: 13.5px; color: #4a5157;
  border-top: 1px solid var(--line-2);
}
.side a:hover { background: var(--soft); color: var(--blue); }
.side a.on { color: var(--blue); font-weight: 700; background: #f5fafd; box-shadow: inset 3px 0 0 var(--blue); }

/* ---------- 播放器 ---------- */
.player-layout { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }
.player-box {
  background: #0c1420; border-radius: 4px; overflow: hidden; position: relative;
  box-shadow: 0 14px 34px rgba(12, 28, 44, .16);
}
.player-box video { width: 100%; display: block; background: #000; aspect-ratio: 16 / 9; }
.player-cap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: #0c1420; color: #cfd9e3; font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.player-cap .t { color: #fff; font-size: 14px; }
.player-cap .t small { display: block; color: #8fa3b6; font-size: 12px; margin-top: 2px; font-weight: 400; }

.anchor-card { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.anchor-card .top { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line-2); }
.anchor-card .avatar {
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  border: 2px solid #e8f1f8; background: #eef1f4;
}
.anchor-card .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.anchor-card .who strong { display: block; font-size: 15px; color: var(--ink); }
.anchor-card .who span { font-size: 12px; color: var(--gray-l); }
.anchor-card .body { padding: 14px 16px; font-size: 13px; color: var(--gray); }
.kv { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.kv:last-child { border-bottom: 0; }
.kv b { color: var(--ink-2); font-weight: 400; }
.kv span { color: var(--gray-l); }

.replay-list { margin-top: 34px; }
.replay-list h4 { font-size: 16px; margin-bottom: 14px; padding-left: 10px; border-left: 3px solid var(--blue); line-height: 1.2; }
.replay-item {
  display: flex; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 3px;
  margin-bottom: 10px; background: #fff; cursor: pointer; transition: all .2s;
}
.replay-item:hover { border-color: #cfe0ee; box-shadow: 0 6px 18px rgba(20, 50, 80, .07); }
.replay-item.on { border-color: var(--blue); background: #f6fbfe; }
.replay-item .thumb { width: 150px; flex: 0 0 auto; aspect-ratio: 16/9; overflow: hidden; border-radius: 2px; background: #eef1f4; }
.replay-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.replay-item .info { flex: 1; min-width: 0; }
.replay-item .info strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.replay-item .info span { font-size: 12px; color: var(--gray-l); }

.tips-bar {
  margin-top: 26px; background: #fffaf2; border: 1px solid #f7e3c4;
  color: #8a6320; font-size: 13px; padding: 12px 16px; border-radius: 3px; line-height: 1.8;
}
.tips-bar b { color: #6d4c15; }

/* ---------- 漫画阅读器 ---------- */
.reader {
  position: fixed; inset: 0; z-index: 200; background: #0a0e13;
  display: none; flex-direction: column;
}
.reader.open { display: flex; }
.reader-top {
  height: 54px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; color: #dfe7ee; font-size: 13px; border-bottom: 1px solid rgba(255, 255, 255, .1);
  flex: 0 0 auto;
}
.reader-top strong { color: #fff; font-size: 14px; font-weight: 400; }
.reader-close {
  background: none; border: 1px solid rgba(255, 255, 255, .3); color: #dfe7ee;
  width: 34px; height: 30px; border-radius: 3px; cursor: pointer; font-size: 16px; line-height: 1;
}
.reader-close:hover { background: rgba(255, 255, 255, .12); }
.reader-body {
  flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 18px;
}
.reader-body img { max-width: min(1100px, 100%); height: auto; border-radius: 2px; }
.reader-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 74px; border: 0; border-radius: 3px;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; cursor: pointer;
}
.reader-nav:hover { background: rgba(255, 255, 255, .24); }
.reader-prev { left: 16px; }
.reader-next { right: 16px; }
.reader-bottom {
  padding: 10px 18px; text-align: center; color: #9fb0bf; font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, .1); flex: 0 0 auto;
}

/* ---------- 会员中心 ---------- */
.member-wrap { padding: 44px 0 64px; }
.panel {
  max-width: 460px; margin: 0 auto; border: 1px solid var(--line); border-radius: 4px;
  background: #fff; box-shadow: 0 12px 32px rgba(20, 40, 60, .06); overflow: hidden;
}
.panel-head {
  padding: 18px 22px; border-bottom: 1px solid var(--line-2); background: var(--soft);
  display: flex; align-items: center; justify-content: space-between;
}
.panel-head strong { font-size: 16px; }
.panel-head .switch { font-size: 13px; }
.panel-body { padding: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--gray); margin-bottom: 6px; }
.field input {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid #dfe5ea; border-radius: 3px;
  font-size: 14px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 111, 178, .1); }
.field .hint { font-size: 12px; color: var(--gray-l); margin-top: 6px; }
.btn-block { width: 100%; justify-content: center; height: 44px; line-height: 44px; }
.form-msg { font-size: 13px; margin-top: 10px; min-height: 20px; color: #c0392b; }
.form-msg.ok { color: #1e8e4e; }

.user-card { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.user-card .head {
  background: linear-gradient(110deg, #12395c, #1f6fb2); color: #fff; padding: 22px;
  display: flex; align-items: center; gap: 14px;
}
.user-card .head .avatar {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .35);
}
.user-card .head strong { font-size: 17px; display: block; }
.user-card .head span { font-size: 12px; color: #c6dbec; }
.user-card .rows { padding: 6px 20px 16px; }
.user-card .rows .kv { padding: 12px 0; }

/* ---------- 数据统计条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stats div { background: #fff; padding: 22px 10px; text-align: center; }
.stats strong { display: block; font-size: 26px; color: var(--blue); letter-spacing: 1px; }
.stats span { font-size: 12.5px; color: var(--gray); }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.about-grid img { border-radius: 3px; }
.info-list li {
  display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.info-list li:last-child { border-bottom: 0; }
.info-list li::before { content: none; display: none; }
.info-list li { padding-left: 0; }
.info-list li b { flex: 0 0 84px; color: var(--gray); font-weight: 400; }
.info-list li span { color: var(--ink-2); }

/* ---------- 页脚 ---------- */
.footer { background: var(--top); color: #a9b2ba; padding: 30px 0 26px; margin-top: 54px; font-size: 12.5px; }
.footer .wrap { text-align: center; line-height: 2.05; }
.footer a { color: #a9b2ba; text-decoration: underline; text-underline-offset: 2px; }
.footer a:hover { color: #fff; }
.footer .copy { color: #8d959d; }
.footer .line-2 { color: #8d959d; }
.footer .sep { margin: 0 8px; color: #4a5157; }


/* ---------- 付费解锁 / 钻石 ---------- */
.btn-gold { background: linear-gradient(135deg, #f4b740, #e09112); color: #4a3208; }
.btn-gold:hover { background: linear-gradient(135deg, #efae32, #cf8108); color: #31210a; }

.unlock-tip {
  margin-top: 14px; font-size: 13px; color: var(--gray);
  background: #fffaf0; border: 1px solid #f6e2bd; border-radius: 3px;
  padding: 9px 13px; line-height: 1.7;
}
.unlock-tip.done { background: #f1faf3; border-color: #c8e8d2; color: #1e7a45; }

.meta-tip.free { background: rgba(30, 142, 78, .92); }
.meta-tip.lock { background: rgba(226, 145, 18, .94); }

.card.locked .cover::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: rgba(8, 18, 28, .45);
}
.card.locked .cover::before {
  content: ""; position: absolute; z-index: 3; left: 50%; top: 50%;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm-3 8V7a3 3 0 1 1 6 0v3H9z'/%3E%3C/svg%3E") no-repeat center/contain;
  opacity: .92;
}
.card.unlocked .cover::before, .card.unlocked .cover::after { display: none; }
.card.unlocked .meta-tip.lock { display: none; }

.dia-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, #eaf5fd, #d2e8f8);
  color: #12507d; border-radius: 20px; padding: 3px 12px;
  font-size: 13px; font-weight: 700;
}

/* 弹层 */
.modal {
  position: fixed; inset: 0; z-index: 220;
  background: rgba(9, 14, 20, .68);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 6px; width: 100%; max-width: 430px;
  overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
  animation: popIn .18s ease;
}
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head {
  padding: 17px 22px; font-size: 16px; font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--line-2); background: var(--soft);
}
.modal-body { padding: 20px 22px 6px; font-size: 14px; color: #4a5157; line-height: 1.8; }
.modal-body b { color: #c8860e; }
.modal-foot { display: flex; gap: 10px; padding: 14px 22px 20px; }
.modal-foot .btn { flex: 1; justify-content: center; height: 42px; line-height: 42px; }
.balance-line {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--soft); border: 1px solid var(--line); border-radius: 4px;
  padding: 10px 14px; margin-top: 14px; font-size: 13.5px; color: var(--gray);
}
.balance-line b { font-size: 18px; color: var(--blue-d); }

/* 充值套餐 */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.plan {
  border: 1px solid var(--line); border-radius: 4px; padding: 14px 10px;
  text-align: center; cursor: pointer; transition: all .2s; background: #fff;
}
.plan:hover { border-color: var(--blue); box-shadow: 0 8px 20px rgba(31, 111, 178, .12); transform: translateY(-2px); }
.plan strong { display: block; font-size: 19px; color: var(--ink); font-weight: 700; }
.plan strong span { font-size: 12px; color: var(--gray-l); font-weight: 400; margin-left: 3px; }
.plan em { display: block; font-style: normal; font-size: 12.5px; color: #c8860e; margin-top: 5px; }

@media (max-width: 620px) {
  .plans { grid-template-columns: 1fr; }
  .modal-foot { flex-direction: column-reverse; }
}

/* ---------- 移动端 ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .player-layout { grid-template-columns: 1fr; }
  .layout-side { grid-template-columns: 1fr; }
  .side { position: static; }
  .side a { display: inline-block; border-top: 0; border-bottom: 1px solid var(--line-2); }
}

@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 78px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
  }
  .nav.open { display: block; }
  .nav ul { flex-wrap: wrap; padding: 6px 10px; }
  .nav a { line-height: 44px; padding: 0 12px; font-size: 14px; }
  .burger { display: flex; }
  .banner { height: 300px; }
  .banner-copy { padding-left: 26px; max-width: 100%; }
  .banner-copy h2 { font-size: 22px; }
  .banner-copy p { display: none; }
  .banner-dots { left: 26px; bottom: 16px; }
  .banner-qr { display: none; }
  .topbar .hi { font-size: 12px; }
  .topbar .tel { font-size: 12px; }
  .grid-3, .grid-4, .grid-2, .about-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .sec { padding: 36px 0 6px; }
  .reader-nav { width: 38px; height: 60px; }
}

@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .topbar { height: 34px; line-height: 34px; }
  .topbar .hi { display: none; }
  .topbar .wrap { justify-content: center; }
  .page-hero { padding: 28px 0 24px; }
  .page-hero h1 { font-size: 21px; }
  .banner { height: 240px; }
  .banner-copy .btn-row { display: none; }
  .replay-item .thumb { width: 110px; }
}
