/* ===== 龙虎哥工作室 · H5 样式 ===== */
:root {
  --bg: #0d0f14;
  --card: #161a22;
  --card2: #1d222c;
  --line: #262c38;
  --text: #e9ecf1;
  --muted: #8a93a5;
  --gold: #f0b90b;
  --gold2: #ffd45e;
  --red: #e5484d;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px;
  padding-bottom: 70px;
}
a { color: var(--gold2); text-decoration: none; }
.tiny { font-size: 12px; color: var(--muted); }
.hidden { display: none !important; }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }
.hint { font-size: 12px; color: var(--muted); margin: 8px 0 14px; line-height: 1.5; }

/* ===== 顶部 ===== */
/* ===== 顶部信息条 ===== */
.top-sticky {
  position: sticky; top: 0; z-index: 45;
  background: rgba(13,15,20,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.info-row {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 7px 14px; font-size: 12px; color: var(--muted); text-align: center;
  background: linear-gradient(180deg, rgba(240,185,11,.08), rgba(240,185,11,0));
}
.info-clock {
  color: var(--gold); font-weight: 700; font-size: 13px;
  font-variant-numeric: tabular-nums; letter-spacing: .5px;
}
.info-item { white-space: nowrap; }
.notice-bar {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px 8px;
  border-top: 1px solid var(--line); background: rgba(240,185,11,.04);
}
.notice-label {
  flex: none; font-size: 11px; padding: 2px 7px; border-radius: 6px;
  background: rgba(240,185,11,.14); color: var(--gold);
}
.notice-viewport { flex: 1; overflow: hidden; }
.notice-track {
  display: inline-block; white-space: nowrap; font-size: 12px; color: var(--muted);
  padding-left: 100%; animation: scroll-left 26s linear infinite;
}
.notice-viewport:hover .notice-track { animation-play-state: paused; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.app-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; background: transparent;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), #d9822b);
  color: #1a1205; font-weight: 800; font-size: 13px;
}
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: .5px; }
.head-right { display: flex; align-items: center; gap: 8px; }
.vip-badge {
  padding: 5px 12px; border-radius: 20px; cursor: pointer; font-size: 12px;
  border: 1px solid var(--gold); color: var(--gold); background: rgba(240,185,11,.1);
}
.head-qr-btn {
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 700;
  border: 1px solid var(--line); background: var(--card2); color: var(--gold); transition: .15s;
}
.head-qr-btn:hover { border-color: var(--gold); background: rgba(240,185,11,.12); }

.app-main { max-width: 640px; margin: 0 auto; padding: 14px 14px 30px; }

/* ===== 通用 ===== */
.sec-title { font-size: 15px; margin: 18px 0 10px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.sec-head .sec-title { margin: 0; }
.page { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }

.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 20px 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, #3b2a09, #1b1f28 70%);
  border: 1px solid #40330f;
}
.banner h2 { font-size: 20px; color: var(--gold2); }
.banner p { margin-top: 6px; font-size: 12px; color: var(--muted); }
.banner-qr {
  width: 88px; height: 88px; flex: none; padding: 5px;
  border-radius: 10px; background: #fff; cursor: pointer; transition: .15s;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.banner-qr:hover { transform: scale(1.05); }

.btn-solid, .btn-line, .btn-mini {
  border-radius: 10px; cursor: pointer; font-size: 13px; transition: .15s;
}
.btn-solid {
  padding: 10px 16px; border: none; font-weight: 600;
  background: linear-gradient(135deg, var(--gold), #d9822b); color: #1a1205;
}
.btn-line {
  padding: 10px 16px; border: 1px solid var(--line); background: transparent; color: var(--text);
}
.btn-mini {
  padding: 6px 12px; border: 1px solid var(--gold); background: transparent; color: var(--gold);
  font-size: 12px;
}
.btn-solid:hover, .btn-mini:hover { filter: brightness(1.08); }

.input {
  width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 14px;
  border: 1px solid var(--line); background: var(--card2); color: var(--text); outline: none;
}
.input:focus { border-color: var(--gold); }
.area { min-height: 100px; resize: vertical; font-family: inherit; }
.field-label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 6px; }

/* ===== 导航按钮 ===== */
.nav-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  color: var(--text); cursor: pointer; transition: .15s;
}
.nav-item:hover { border-color: var(--gold); }
.nav-ico {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), #c9761f); color: #1a1205; font-weight: 800; font-size: 14px;
}
.nav-ico.big { width: 42px; height: 42px; font-size: 17px; }
.nav-label { font-size: 11px; text-align: center; line-height: 1.2; }

.nav-full { display: grid; gap: 10px; }
.nav-card {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  color: var(--text); cursor: pointer; text-align: left; transition: .15s;
}
.nav-card:hover { border-color: var(--gold); }
.nav-card-text { flex: 1; }
.nav-card-text b { font-size: 14px; }
.nav-sub { margin-top: 3px; word-break: break-all; }
.nav-go { font-size: 12px; color: var(--gold); }

/* ===== 帖子 ===== */
.tabs { display: flex; gap: 8px; margin: 10px 0; }
.tab-chip {
  padding: 6px 14px; border-radius: 20px; font-size: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
}
.tab-chip.active { border-color: var(--gold); color: var(--gold); background: rgba(240,185,11,.1); }

.post-list { display: grid; gap: 10px; }
.post-card {
  padding: 14px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--card); cursor: pointer; transition: .15s;
}
.post-card:hover { border-color: #3a4251; }
.post-card.locked { border-style: dashed; }
.post-head { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), #c9761f); color: #1a1205; font-weight: 800; font-size: 13px;
}
.post-head > div { flex: 1; }
.level-tag {
  font-size: 11px; padding: 3px 8px; border-radius: 20px;
  border: 1px solid var(--gold); color: var(--gold);
}
.level-tag.free { border-color: #3f8f5b; color: #4cc38a; }
.post-title { font-size: 15px; margin: 10px 0 6px; line-height: 1.4; }
.post-body { font-size: 13px; color: #b9c0cd; line-height: 1.6; }
.post-lock {
  font-size: 13px; color: var(--muted); padding: 14px; margin-top: 6px;
  background: var(--card2); border-radius: 8px; text-align: center;
}
.post-foot { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.read-more { margin-left: auto; color: var(--gold); }

.detail-title { font-size: 17px; margin: 12px 0 10px; }
.detail-body { font-size: 14px; line-height: 1.75; color: #c8cfdb; }
.detail-actions { margin: 14px 0; }
.comment { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.comment b { font-size: 13px; }
.comment p { font-size: 13px; color: #b9c0cd; margin-top: 3px; }
.comment-box { display: flex; gap: 8px; margin-top: 12px; }
.comment-box .input { flex: 1; }

/* ===== 视频 ===== */
.tool-row { display: flex; gap: 8px; }
.tool-row .btn-solid, .tool-row .btn-line { flex: 1; }
.video-list { display: grid; gap: 10px; }
.video-card {
  display: flex; gap: 12px; padding: 10px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: .15s;
}
.video-card:hover { border-color: var(--gold); }
.video-card.locked { opacity: .75; }
.video-thumb {
  position: relative; width: 108px; height: 64px; flex: none; border-radius: 8px;
  background: linear-gradient(135deg, #2a3140, #1a1f28); display: grid; place-items: center;
}
.play-ico { font-size: 18px; color: var(--gold2); }
.video-badge {
  position: absolute; left: 4px; bottom: 4px; font-size: 10px; padding: 2px 6px;
  border-radius: 6px; background: rgba(0,0,0,.5); color: #dfe4ec;
}
.video-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.video-info b { font-size: 14px; line-height: 1.4; }

/* ===== 直播 ===== */
.live-stage {
  width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #000; border: 1px solid var(--line); display: grid; place-items: center;
}
.live-stage .stage-empty { color: var(--muted); font-size: 13px; padding: 20px; text-align: center; }
.live-frame { width: 100%; height: 100%; border: 0; background: #000; }
.live-form { margin-top: 12px; }
.live-form-actions { display: flex; gap: 8px; margin-top: 8px; }
.live-form-actions .btn-solid, .live-form-actions .btn-line { flex: 1; }

.rec-box { padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.rec-preview {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: #000; object-fit: cover;
}
.rec-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.rec-actions button { flex: 1; min-width: 100px; }
.rec-actions button:disabled { opacity: .45; cursor: not-allowed; }
.btn-line.full { width: 100%; margin-top: 8px; }
.hint.err { color: var(--red); }
.rec-list { display: grid; gap: 8px; margin-top: 10px; }
.rec-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
}
.rec-item-actions { display: flex; gap: 6px; flex: none; }

/* ===== 会员 ===== */
.vip-current {
  padding: 18px; border-radius: var(--radius); text-align: center;
  background: linear-gradient(135deg, #3b2a09, #1b1f28 70%); border: 1px solid #40330f;
}
.vip-current h2 { font-size: 20px; color: var(--gold2); margin: 6px 0; }
.vip-tiers { display: grid; gap: 10px; }
.tier { padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.tier.current { border-color: var(--gold); background: rgba(240,185,11,.08); }
.tier-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.tier-price { font-size: 16px; font-weight: 800; color: var(--gold); }
.tier-btn { margin-top: 10px; width: 100%; }

/* ===== 底部 tabbar ===== */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; background: rgba(13,15,20,.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px); padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  flex: 1; padding: 8px 0 10px; border: none; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted);
}
.tab i {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--card2); font-style: normal; font-size: 13px; font-weight: 700;
}
.tab span { font-size: 11px; }
.tab.active { color: var(--gold); }
.tab.active i { background: linear-gradient(135deg, var(--gold), #c9761f); color: #1a1205; }

/* ===== 弹窗 ===== */
.mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.6);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto;
  background: var(--card); border-radius: 16px 16px 0 0; padding: 18px 16px 26px;
  animation: up .22s ease;
}
@keyframes up { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet h3 { font-size: 16px; margin-bottom: 12px; }
.sheet .input { margin-bottom: 10px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 14px; }
.sheet-actions button { flex: 1; }

.player-sheet .player-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.player-head h3 { margin: 0; flex: 1; font-size: 15px; }
.player-box {
  margin-top: 12px; width: 100%; aspect-ratio: 16 / 9; background: #000;
  border-radius: 10px; overflow: hidden;
}
.player-video, .player-frame { width: 100%; height: 100%; border: 0; background: #000; }
.player-fallback {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--muted);
}

/* ===== 发布器 ===== */
.publish-title { text-align: center; }
.publish-area { min-height: 140px; font-size: 15px; }
.toolbar {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.tb {
  width: 36px; height: 36px; border-radius: 8px; border: none; cursor: pointer;
  background: transparent; color: var(--muted); font-size: 17px; transition: .15s;
}
.tb:hover { background: var(--card2); color: var(--gold); }
.tb-toggle {
  display: flex; align-items: center; gap: 6px; margin-left: auto;
  font-size: 12px; color: var(--muted); cursor: pointer;
}
.tb-toggle input { accent-color: var(--gold); }
.emoji-row { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 0; }
.emoji {
  width: 34px; height: 34px; border: none; border-radius: 8px; cursor: pointer;
  background: transparent; font-size: 18px;
}
.emoji:hover { background: var(--card2); }
.img-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.img-thumb { position: relative; width: 64px; height: 64px; }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.img-thumb i {
  position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; font-style: normal;
  border-radius: 50%; background: var(--red); color: #fff; font-size: 12px;
  display: grid; place-items: center; cursor: pointer;
}
.attach-chips { display: flex; gap: 8px; margin-bottom: 8px; }
.chip {
  font-size: 12px; padding: 5px 10px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--card2); color: var(--muted);
}
.chip i { font-style: normal; color: var(--red); cursor: pointer; margin-left: 4px; }
.paid-row { padding: 10px; border-radius: 10px; background: rgba(240,185,11,.06); margin-bottom: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }

/* 帖子里的媒体 */
.post-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; position: relative; }
.post-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.post-imgs.big { grid-template-columns: repeat(3, 1fr); }
.img-more {
  position: absolute; right: 6px; bottom: 6px; padding: 2px 8px; border-radius: 12px;
  background: rgba(0,0,0,.6); font-size: 12px; color: #fff;
}
.post-video-chip {
  margin-top: 10px; padding: 8px 12px; border-radius: 8px; font-size: 13px;
  background: var(--card2); color: var(--gold2); text-align: center;
}
.decl { margin-top: 8px; }
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.9);
  display: grid; place-items: center; cursor: zoom-out; padding: 20px;
}
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }

.pay-sheet { text-align: center; }
.pay-qr {
  width: 200px; height: 200px; margin: 6px auto 10px; padding: 10px;
  background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.pay-qr img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.pay-amount { font-size: 20px; font-weight: 800; color: var(--gold); margin-bottom: 4px; }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(10px);
  background: #1c212b; border: 1px solid var(--gold); color: var(--text);
  padding: 10px 18px; border-radius: 10px; font-size: 13px; opacity: 0;
  pointer-events: none; transition: .25s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
