:root {
  --bg: #0b0d12;
  --bg-2: #141821;
  --gold: #d4b57a;
  --gold-2: #f0e2c2;
  --text: #f4efe6;
  --mute: #9aa3b2;
  --line: rgba(232, 213, 163, .12);
  --card: #171c26;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #07080c; color: var(--text); }
html { height: 100%; }
body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: .02em;
  min-height: 100%;
  min-height: 100dvh;
  overscroll-behavior-y: none;
}
a { color: inherit; text-decoration: none; }
.app {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background:
    radial-gradient(520px 240px at 80% -8%, rgba(212, 181, 122, .16), transparent 55%),
    linear-gradient(180deg, #12161f 0%, var(--bg) 28%);
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}
.app-top {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: linear-gradient(180deg, rgba(11,13,18,.96), rgba(11,13,18,.78));
  backdrop-filter: blur(14px);
}
@media (display-mode: standalone) {
  .app-top { padding-top: calc(12px + max(env(safe-area-inset-top, 0px), 28px)); }
}
.app-brand {
  grid-column: 2;
  justify-self: center;
  display: flex; align-items: center; gap: 10px;
}
.app-brand img, .app-mark {
  width: 32px; height: 32px; border-radius: 10px; object-fit: cover;
  box-shadow: 0 8px 18px rgba(184, 137, 61, .28);
}
.app-mark {
  background: linear-gradient(145deg, #ead7a8, #b8893d);
  position: relative;
}
.app-mark::after {
  content: ""; position: absolute; inset: 8px;
  border: 1.4px solid rgba(28, 25, 23, .45); border-radius: 5px;
}
.app-brand strong { font-size: 16px; font-weight: 650; color: var(--gold-2); }
.app-back {
  grid-column: 1;
  justify-self: start;
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--gold-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
html.has-back .app-back { display: flex; }
.app-back svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-search {
  grid-column: 3;
  justify-self: end;
  font-size: 12px; color: var(--gold);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; background: rgba(255,255,255,.03);
}
.app-notice {
  margin: 0 16px 8px; padding: 8px 12px; border-radius: 10px;
  background: rgba(212, 181, 122, .12); color: var(--gold-2); font-size: 12px;
}
.app-main { padding: 8px 16px 24px; }
.app-tab {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(430px, 100%);
  margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: rgba(10, 13, 20, .98);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, .4);
  backdrop-filter: blur(16px);
  padding: 6px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  pointer-events: auto;
}
.app-tab a {
  text-align: center; font-size: 12px; color: var(--mute); padding: 8px 0; font-weight: 600;
}
.app-tab a.on { color: var(--gold-2); }
.nav-tabs {
  display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 14px;
  scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tabs a { color: var(--mute); font-size: 15px; white-space: nowrap; font-weight: 600; }
.nav-tabs a.on { color: var(--gold-2); position: relative; }
.nav-tabs a.on::after {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: -6px; height: 2px;
  background: var(--gold); border-radius: 99px;
}
.cat-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 0 2px 12px;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a {
  flex: 0 0 auto; font-size: 12px; color: var(--mute); font-weight: 600;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.cat-tabs a.on { color: #1c1917; background: linear-gradient(90deg, #ead7a8, #c49a4e); border-color: transparent; }
.cat-tabs.sub { padding-top: 0; padding-bottom: 14px; }
.pager {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 18px 0 8px; font-size: 13px; color: var(--mute);
}
.pager a { color: var(--gold-2); font-weight: 600; }
.feed-more {
  text-align: center; color: var(--mute); font-size: 12px;
  padding: 18px 0 8px;
}
.feed-more.end { opacity: .55; }
.hero {
  display: block; position: relative; border-radius: 18px; overflow: hidden;
  margin-bottom: 16px; min-height: 168px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.hero-cover {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, hsl(calc(var(--i, 1) * 47), 38%, 22%), #0c1017 70%);
}
.hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-meta {
  position: relative; z-index: 1; padding: 78px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(8,10,14,.92) 70%);
}
.hero-meta em { font-style: normal; font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.hero-meta h2 { margin: 6px 0 4px; font-size: 22px; }
.hero-meta p { margin: 0; color: var(--mute); font-size: 12px; }
.grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px;
}
.card-drama { display: block; min-width: 0; max-width: 100%; }
.card-drama h3 {
  margin: 8px 0 2px; font-size: 13px; font-weight: 650; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-drama p { margin: 0; color: var(--mute); font-size: 11px; }
.card-tags {
  margin: 6px 0 0; color: var(--mute); font-size: 11px; font-weight: 500;
  display: flex; flex-wrap: wrap; gap: 6px;
  line-height: 1.3;
}
.card-tags span {
  color: var(--gold-2);
  background: rgba(212, 181, 122, .14);
  border: 1px solid rgba(212, 181, 122, .22);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
}
.cover {
  position: relative; aspect-ratio: 3 / 4; width: 100%; max-width: 100%; min-width: 0;
  border-radius: 12px; overflow: hidden;
  background:
    linear-gradient(160deg, hsl(calc(var(--i, 3) * 41), 36%, 24%), #10131a 78%);
  display: block;
  color: var(--gold-2); font-size: 13px; text-align: center;
  box-shadow: inset 0 0 0 1px var(--line);
}
.cover.lg {
  width: 108px; max-width: 32%; height: auto;
  flex: 0 0 auto; aspect-ratio: 3 / 4;
}
.cover span {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.cover img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; max-width: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.cover .tag, .cover i.tag {
  position: absolute; left: 6px; top: 6px; z-index: 2; font-style: normal;
  background: linear-gradient(90deg, #ead7a8, #c49a4e); color: #1c1917;
  font-size: 10px; padding: 2px 6px; border-radius: 6px; font-weight: 700;
}
.cover .tag.pin, .cover i.tag.pin {
  left: auto; right: 6px;
  background: #dc2626; color: #fff;
}
.cover .tag.end, .cover i.tag.end,
.cover .tag.ing, .cover i.tag.ing {
  left: auto; right: 6px; top: auto; bottom: 6px;
  font-size: 10px; padding: 2px 7px;
}
.cover .tag.end, .cover i.tag.end {
  background: rgba(12, 14, 18, .72); color: #ead7a8;
}
.cover .tag.ing, .cover i.tag.ing {
  background: rgba(185, 28, 28, .9); color: #fff;
}
.play-acts { display: flex; gap: 8px; margin: 10px 0 12px; }
.play-acts .act {
  border: 1px solid var(--line); background: var(--card); color: var(--mute);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 650;
}
.play-acts .act.on { border-color: rgba(212,181,122,.55); color: var(--gold-2); background: rgba(212,181,122,.12); }
.sub-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.sub-head a { color: var(--gold); font-size: 13px; }
.sub-head h1 { margin: 0; font-size: 18px; }
.order-list { display: flex; flex-direction: column; gap: 8px; }
.order-item {
  display: flex; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
.order-item b { display: block; }
.order-item .muted { display: block; margin-top: 2px; }
.order-right { text-align: right; flex-shrink: 0; }
.order-right em { display: block; font-style: normal; color: var(--gold-2); font-weight: 700; }
.order-right .st { display: inline-block; margin-top: 6px; font-size: 11px; font-style: normal; color: var(--mute); }
.order-right .st-1 { color: #86efac; }
.order-right .st-0 { color: var(--gold); }
.inv-btns { display: flex; flex-direction: column; gap: 8px; }
.poster-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.78);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px;
}
.poster-mask.hide, canvas.hide { display: none; }
.poster-mask img { width: min(320px, 86vw); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.poster-acts { display: flex; gap: 10px; margin-top: 14px; }
.detail-hero { display: flex; align-items: flex-start; gap: 14px; margin: 8px 0 18px; min-width: 0; }
.detail-hero > div { flex: 1; min-width: 0; }
.detail-hero h1 { margin: 0 0 8px; font-size: 20px; }
.intro { font-size: 13px; color: #d7dbe3; line-height: 1.65; }
.cat-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.cat-tags a {
  font-size: 12px; color: var(--gold-2); font-weight: 600;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(212,181,122,.08);
}
.muted { color: var(--mute); font-size: 12px; }
.sec { font-size: 15px; margin: 8px 0 10px; }
.ep-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ep {
  min-width: 48px; height: 40px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 13px; color: var(--text);
}
.ep.on, .ep.free { border-color: rgba(212,181,122,.45); color: var(--gold-2); }
.ep em { font-style: normal; font-size: 10px; color: var(--gold); }
.player {
  position: relative; background: #000; border-radius: 14px; overflow: hidden;
  aspect-ratio: 16/9; margin-bottom: 14px;
}
.player video { width: 100%; height: 100%; display: block; background: #000; }
.player-empty, .paywall {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: rgba(8,10,14,.78); color: var(--gold-2); text-align: center; padding: 16px;
}
.paywall.hide { display: none; }
.play-meta h1 { font-size: 18px; margin: 0 0 4px; }
.play-meta p { margin: 0 0 14px; color: var(--mute); font-size: 13px; }
.btn {
  border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 650;
  background: #2a3140; color: var(--text); cursor: pointer; font-size: 13px;
}
.btn.gold { background: linear-gradient(90deg, #ead7a8, #c49a4e); color: #1c1917; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--gold-2); }
.me-card {
  background: linear-gradient(135deg, #2a2418, #151922);
  border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; margin-bottom: 16px;
}
.me-card h1 { margin: 4px 0 0; font-size: 26px; }
.me-logo { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; margin-bottom: 8px; }
.me-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.me-grid a, .plan, .me-links a {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
}
.me-grid b { display: block; font-size: 18px; color: var(--gold-2); }
.me-grid span, .plan span { color: var(--mute); font-size: 12px; }
.plan-list { display: flex; flex-direction: column; gap: 10px; }
.plan { display: flex; align-items: center; justify-content: space-between; }
.plan strong { display: block; margin-bottom: 4px; }
.me-links { display: flex; flex-direction: column; gap: 8px; }
.me-links a { display: block; }
.tip { color: var(--mute); font-size: 12px; line-height: 1.6; margin-top: 16px; }
.tip a { color: var(--gold); }
.search-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.search-bar input {
  flex: 1; border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 12px; padding: 10px 12px; outline: none;
}
.search-bar button {
  border: 0; border-radius: 12px; padding: 0 14px;
  background: linear-gradient(90deg, #ead7a8, #c49a4e); color: #1c1917; font-weight: 650;
}
.search-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 48px 8px;
  background: linear-gradient(180deg, rgba(11,13,18,.96), rgba(11,13,18,.86));
}
@media (display-mode: standalone) {
  .search-head { padding-top: calc(12px + max(env(safe-area-inset-top, 0px), 28px)); }
  .search-back { top: calc(8px + max(env(safe-area-inset-top, 0px), 28px)); }
}
.search-head h1 { margin: 0; font-size: 17px; font-weight: 650; }
.search-back {
  position: absolute; left: 10px; top: calc(8px + env(safe-area-inset-top, 0px));
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: var(--text);
}
.search-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.search-hero { position: relative; margin: 6px 0 18px; }
.search-hero .search-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; fill: none; stroke: #8b93a2; stroke-width: 2; stroke-linecap: round;
  pointer-events: none;
}
.search-hero input {
  width: 100%; border: 0; outline: none; color: var(--text); font-size: 14px;
  background: #1a2030; border-radius: 999px; padding: 12px 16px 12px 40px;
}
.search-hero input::placeholder { color: #6f7788; }
.hot-box {
  background: #151922; border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 12px 8px; margin-bottom: 22px;
}
.hot-box h2 {
  margin: 0 0 6px; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.hot-ico { font-size: 14px; }
.hot-row {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 4px;
}
.hot-row + .hot-row { border-top: 1px solid rgba(255,255,255,.05); }
.hot-n {
  width: 28px; flex-shrink: 0; font-size: 14px; font-weight: 800; font-style: italic;
  color: #6f7788; font-family: ui-sans-serif, system-ui, sans-serif;
}
.hot-n.top { color: #f5c451; }
.hot-title {
  flex: 1; min-width: 0; font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hot-play {
  flex-shrink: 0; font-size: 11px; color: var(--mute);
  display: flex; align-items: center; gap: 3px;
}
.hot-play svg { width: 12px; height: 12px; fill: currentColor; }
.sec-title { font-size: 16px; font-weight: 700; margin: 4px 0 12px; }
.empty { text-align: center; color: var(--mute); padding: 48px 12px; font-size: 13px; }

.inv-hero { margin-bottom: 16px; }
.inv-kicker { color: var(--gold); letter-spacing: .18em; font-size: 11px; margin: 0 0 6px; }
.inv-hero h1 { margin: 0 0 6px; font-size: 24px; }
.inv-stats { grid-template-columns: 1fr 1fr; }
.inv-stats > div {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
}
.inv-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; margin-bottom: 14px;
}
.inv-label { color: var(--mute); font-size: 12px; margin-bottom: 8px; }
.inv-link { font-size: 13px; word-break: break-all; color: var(--gold-2); margin-bottom: 12px; }
.inv-bind { display: flex; gap: 8px; }
.inv-bind input {
  flex: 1; border: 1px solid var(--line); background: #12151c; color: var(--text);
  border-radius: 12px; padding: 10px 12px;
}
.inv-rates { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 8px 0 4px; }
.inv-rate {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 8px; text-align: center;
}
.inv-rate em { display: block; font-style: normal; color: var(--mute); font-size: 11px; }
.inv-rate b { display: block; color: var(--gold-2); font-size: 20px; margin: 4px 0; }
.inv-rate span { color: var(--mute); font-size: 11px; }
.inv-h { font-size: 15px; margin: 18px 0 10px; }
.inv-team { display: flex; flex-direction: column; gap: 8px; }
.inv-member {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
.inv-member b { display: block; }
.inv-member em { font-style: normal; color: var(--gold); font-size: 12px; }
.app-tab a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  font-size: 11px;
  color: var(--mute);
  padding: 7px 0 4px;
  font-weight: 600;
}
.app-tab a .ico {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-tab a.on { color: var(--gold-2); }
.me-grid a {
  display: flex;
  align-items: center;
  gap: 12px;
}
.me-stat b { display: block; font-size: 18px; color: var(--gold-2); }
.me-stat span { color: var(--mute); font-size: 12px; }
.me-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 181, 122, .14);
  flex-shrink: 0;
}
.me-ico svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.me-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.me-links a > span:not(.me-ico) {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}
.me-links a em {
  width: 7px;
  height: 7px;
  border-right: 1.6px solid var(--mute);
  border-top: 1.6px solid var(--mute);
  transform: rotate(45deg);
  font-style: normal;
  flex-shrink: 0;
}
.me-mini {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.me-mini a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 4px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}
.me-mini .me-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.me-mini .me-ico svg {
  width: 15px;
  height: 15px;
}
.cs-dot {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 99px;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  vertical-align: middle;
}
.cs-wrap {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 132px);
  margin: 0 -16px;
}
.cs-log {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cs-msg { max-width: 82%; display: flex; flex-direction: column; gap: 4px; }
.cs-msg.is-me { align-self: flex-end; }
.cs-msg.is-staff { align-self: flex-start; }
.cs-bubble {
  border-radius: 16px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
}
.cs-msg.is-me .cs-bubble {
  background: linear-gradient(90deg, #ead7a8, #c49a4e);
  color: #1c1917;
  border: 0;
}
.cs-bubble p { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.cs-bubble img { display: block; max-width: 220px; border-radius: 10px; margin-top: 6px; }
.cs-msg time { font-size: 11px; color: var(--mute); }
.cs-msg.is-me time { text-align: right; }
.cs-quick {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 8px;
}
.cs-quick button {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--gold-2);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
}
.cs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(11,13,18,.92);
  border-top: 1px solid var(--line);
}
.cs-bar input {
  flex: 1;
  border: 0;
  outline: none;
  background: #1a2030;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
}
.cs-bar button[type=submit] {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #ead7a8, #c49a4e);
  color: #1c1917;
  font-weight: 700;
}
.cs-pic {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.cs-pic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cs-pending {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 0;
}
.cs-pending img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.cs-pending button {
  border: 0; background: transparent; color: var(--gold); font-size: 12px;
}
.auth-card {
  margin: 12px 16px 24px;
  padding: 22px 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.auth-card h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-2);
}
.auth-lead, .auth-warn, .auth-promo {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--mute);
}
.auth-warn { color: #e8b4a0; }
.auth-promo { color: var(--gold); }
.auth-form label {
  display: block;
  margin: 12px 0 6px;
  font-size: 13px;
  color: var(--gold-2);
}
.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  background: #12161f;
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}
.auth-form input:focus { border-color: rgba(212,181,122,.45); }
.auth-form > button[type=submit] {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: linear-gradient(90deg, #ead7a8, #c49a4e);
  color: #1c1917;
  font-size: 16px;
  font-weight: 700;
}
.auth-code__row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.auth-code__row input { flex: 1; }
.auth-code__btn {
  flex: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 12px;
  background: #1a2030;
  color: var(--gold);
  font-size: 13px;
  white-space: nowrap;
}
.auth-err {
  margin: 12px 0 0;
  font-size: 13px;
  color: #f0a8a8;
}
.auth-err.is-ok { color: #b7e4c7; }
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--gold);
}

.appdl-hero h1 { font-size: 22px; }
.appdl-icon { width: 64px; height: 64px; border-radius: 18px; display: block; margin-bottom: 10px; }
.appdl-list { display: flex; flex-direction: column; gap: 12px; }
.appdl-list.is-ios .appdl-ios,
.appdl-list.is-android .appdl-android { order: -1; }
.appdl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.appdl-card.is-current { border-color: rgba(212, 181, 122, .55); }
.appdl-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.appdl-os { font-size: 11px; letter-spacing: .16em; color: var(--gold); font-weight: 700; }
.appdl-kicker em {
  font-style: normal;
  font-size: 11px;
  color: #1c1917;
  background: linear-gradient(90deg, #ead7a8, #c49a4e);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
}
.appdl-card h2 { margin: 0 0 6px; font-size: 18px; }
.appdl-card p { margin: 0 0 12px; color: var(--mute); font-size: 13px; line-height: 1.65; }
.appdl-btn {
  display: block;
  width: 100%;
  text-align: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: linear-gradient(90deg, #ead7a8, #c49a4e);
  color: #1c1917;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
}
.appdl-card ol { margin: 0; padding-left: 18px; color: var(--text); font-size: 13px; line-height: 1.65; }
.appdl-card li + li { margin-top: 6px; }
.appdl-card ol.is-focus { outline: 1px solid rgba(212, 181, 122, .7); border-radius: 12px; padding: 10px 10px 10px 28px; }
.appdl-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(212, 181, 122, .12);
  color: var(--gold-2);
  font-size: 13px;
  line-height: 1.6;
}
.appdl-desk { margin-top: 14px; }
.appdl-desk p { margin: 0 0 10px; color: var(--mute); font-size: 13px; }
#appdl-qr {
  width: fit-content;
  background: #f3e6c4;
  border-radius: 16px;
  padding: 12px;
}
#appdl-qr img, #appdl-qr canvas { display: block; }

.splash {
  position: fixed; inset: 0; z-index: 80;
  background: #07080c;
  display: flex; align-items: center; justify-content: center;
}
.splash[hidden] { display: none !important; }
html.has-splash, html.has-splash body { overflow: hidden; }
.splash-hit { display: block; width: 100%; height: 100%; }
.splash-hit img, .splash-hit video {
  width: 100%; height: 100%; object-fit: contain; background: #07080c;
}
.splash-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px; z-index: 2;
  min-width: 64px; min-height: 36px;
  padding: 8px 14px;
  border: 0; border-radius: 999px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 13px; letter-spacing: .04em;
}
@media (display-mode: standalone) {
  .splash-close { top: calc(12px + max(env(safe-area-inset-top, 0px), 28px)); }
}

.pay-mask {
  display: none; position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.55);
  align-items: flex-end; justify-content: center;
}
.pay-mask.show { display: flex; }
.pay-sheet {
  width: min(480px, 100%);
  background: #151922;
  border: 1px solid rgba(255,255,255,.08);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
}
.pay-sheet h3 { margin: 0 0 4px; font-size: 16px; }
.pay-sheet p { margin: 0 0 14px; color: #8b93a2; font-size: 12px; }
.pay-opt {
  width: 100%; display: flex; align-items: center; gap: 12px;
  background: #1c212c; border: 1px solid rgba(255,255,255,.08); color: #f4f1ea;
  border-radius: 14px; padding: 14px; margin-bottom: 8px;
  font-size: 15px; font-weight: 650; cursor: pointer; text-align: left;
}
.pay-opt .mark {
  width: 28px; height: 28px; border-radius: 8px; flex: 0 0 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff; font-weight: 700;
}
.pay-opt .mark.ali { background: #1677ff; }
.pay-opt .mark.wx { background: #07c160; }
.pay-cancel {
  width: 100%; margin-top: 4px; background: transparent; border: 0;
  color: #8b93a2; padding: 10px; font-size: 14px; cursor: pointer;
}
