:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #dce3ee;
  --text: #172033;
  --muted: #657287;
  --accent: #0f8b8d;
  --accent-strong: #0b6f71;
  --blue: #2563eb;
  --green: #16a34a;
  --amber: #f59e0b;
  --red: #dc2626;
  --orange: #f97316;
  --shadow: 0 16px 42px rgba(28, 40, 68, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-bg {
  min-height: 100vh;
  padding: 24px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 42px auto;
}

.home-head {
  max-width: 1100px;
  margin: 20px auto 0;
}

.home-head h1 {
  margin: 0 0 10px;
  font-size: 28px;
}

.home-head p {
  margin: 0;
  color: var(--muted);
}

.entry-card {
  display: block;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 22px rgba(33, 46, 80, 0.07);
}

.entry-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--accent);
  font-weight: 800;
}

.entry-card h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.entry-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.mobile-stage {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background:
    linear-gradient(180deg, #eef7f6 0%, transparent 240px),
    var(--bg);
}

.phone {
  width: min(100vw, 430px);
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.mobile-top {
  padding: 18px 18px 10px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.mobile-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 8px;
  background: #0f8b8d;
  color: #fff;
  font-weight: 800;
}

.user-meta {
  min-width: 0;
  flex: 1;
}

.user-meta strong,
.line-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-meta span {
  color: var(--muted);
  font-size: 12px;
}

.mobile-main {
  height: calc(100vh - 122px);
  overflow: auto;
  padding: 14px 14px 84px;
}

.bottom-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
}

.nav-btn {
  border: 0;
  background: transparent;
  padding: 9px 8px 10px;
  color: var(--muted);
  font-size: 12px;
}

.nav-btn svg {
  display: block;
  margin: 0 auto 3px;
}

.nav-btn.active {
  color: var(--accent-strong);
  font-weight: 700;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 12px;
}

.section-title h2,
.panel h2 {
  margin: 0;
  font-size: 18px;
}

.section-title span {
  color: var(--muted);
  font-size: 12px;
}

.game-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(38, 52, 77, 0.06);
}

.game-icon {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-soft);
}

.game-body {
  min-width: 0;
}

.game-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.game-title h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-title small {
  flex: 0 0 auto;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid #cde4e3;
  border-radius: 6px;
  background: #edf8f7;
  color: #0b6f71;
  font-size: 12px;
}

.tag.alt {
  border-color: #fde3c5;
  background: #fff7ed;
  color: #a54d0c;
}

.game-desc {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.banner {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 8px;
  object-fit: cover;
  background: #e2e8f0;
}

.detail-head {
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-game {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  margin: 12px 0;
}

.detail-game h1 {
  margin: 0 0 6px;
  font-size: 19px;
}

.detail-game p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.screens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.screens img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.task-list,
.record-list {
  display: grid;
  gap: 10px;
}

.task-item,
.record-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.task-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: start;
  gap: 10px;
}

.step-dot {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #e5eef6;
  color: #385166;
  font-size: 12px;
  font-weight: 700;
}

.step-dot.done {
  background: #dcfce7;
  color: #15803d;
}

.task-item h4,
.record-item h4 {
  margin: 0 0 5px;
  font-size: 14px;
}

.task-item p,
.record-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.reward {
  color: var(--orange);
  font-weight: 800;
  white-space: nowrap;
}

.progress-wrap {
  margin: 12px 0 4px;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e5e7eb;
}

.progress-fill {
  height: 100%;
  width: var(--value, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--green));
  transition: width 0.2s ease;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 13px;
}

.btn:hover {
  background: var(--accent-strong);
}

.btn.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

.btn.secondary:hover {
  background: var(--surface-soft);
}

.btn.blue {
  background: var(--blue);
}

.btn.green {
  background: var(--green);
}

.btn.amber {
  background: var(--amber);
}

.btn.red {
  background: var(--red);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn.start-red.recruit-full,
.btn.start-red.recruit-full:disabled {
  background: #b8bdc7;
  color: #fff;
  opacity: 1;
}

.icon-btn {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
}

.status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 6px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 700;
}

.status.done {
  background: #dcfce7;
  color: #15803d;
}

.status.wait {
  background: #fef3c7;
  color: #92400e;
}

.status.off {
  background: #fee2e2;
  color: #991b1b;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(41, 54, 78, 0.06);
}

.panel-pad {
  padding: 16px;
}

.console {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  background: var(--bg);
}

.sidebar {
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 0 4px;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: #172033;
  color: #fff;
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 15px;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.side-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #4b5870;
  text-align: left;
}

.side-btn.active,
.side-btn:hover {
  background: #edf8f7;
  color: #0b6f71;
  font-weight: 700;
}

.console-main {
  min-width: 0;
  padding: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.topbar h1 {
  margin: 0;
  font-size: 23px;
}

.topbar p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

.stat strong {
  display: block;
  margin-top: 7px;
  font-size: 24px;
}

.stat.income strong {
  color: #f97316;
}

.stat.balance strong {
  color: #2563eb;
}

.income-total td {
  color: #e11d48;
  font-weight: 700;
}

.income-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.income-tools input[type="date"] {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: #39465b;
  background: #f8fafc;
  font-weight: 800;
}

.table-mini {
  min-width: 520px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: #39465b;
  font-size: 12px;
  font-weight: 700;
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.field textarea {
  min-height: 80px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.12);
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.18), transparent 32%),
    radial-gradient(circle at 88% 82%, rgba(249, 115, 22, 0.16), transparent 28%),
    #eef4ff;
}

.login-front {
  background: #6181ff;
}

.login-shell {
  width: min(100%, 1000px);
  height: 500px;
  min-height: 500px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 32px 0 rgba(87, 161, 249, 0.88);
}

.login-visual {
  min-height: 500px;
  background: #4ea2ff;
}

.login-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-front .login-box h1 {
  margin-bottom: 28px;
  font-size: 26px;
  text-align: center;
}

.login-submit {
  width: 100%;
  margin-top: 36px;
  height: 48px;
  border: 0;
  border-radius: 4px;
  background: #4a90fa;
  font-size: 16px;
}

.login-submit:hover {
  background: #4a90fa;
  opacity: 0.85;
}

.login-box {
  width: auto;
  padding: 48px 42px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-box-admin {
  width: min(100%, 390px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.wait-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: 180px;
  padding: 28px 36px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #dbe7ff;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 800px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 180px;
  }
}

.login-box h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

.login-box p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.empty {
  padding: 22px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  background: #fff;
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  z-index: 80;
  max-width: min(280px, calc(100vw - 48px));
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.88);
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  transform: translate(-50%, -46%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.copy-box {
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  color: #334155;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  white-space: nowrap;
}

.mock-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-link-row .copy-box {
  flex: 1;
}

.kpi-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.kpi {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
}

.mt {
  margin-top: 14px;
}

.muted {
  color: var(--muted);
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 920px) {
  .home-grid,
  .stat-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .console {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 2;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .side-btn {
    justify-content: center;
    font-size: 12px;
  }
}

@media (max-width: 540px) {
  .app-bg,
  .console-main {
    padding: 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-grid {
    margin-top: 20px;
  }
}


.h5-phone {
  background: #f3f5f9;
}

.h5-main {
  height: calc(100vh - 58px);
  padding: 0 0 78px;
  background: #f3f5f9;
}

.hall-hero {
  padding: 16px 14px 12px;
  background: linear-gradient(135deg, #ff8a1a 0%, #ff4d2e 62%, #ff3355 100%);
  color: #fff;
}

.hall-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hall-hero-top p {
  margin: 0 0 4px;
  font-size: 12px;
  opacity: 0.86;
}

.hall-hero-top h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.hall-hero-earn {
  min-width: 88px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  text-align: right;
}

.hall-hero-earn span {
  display: block;
  font-size: 11px;
  opacity: 0.86;
}

.hall-hero-earn b {
  font-size: 18px;
}

.trial-banner-wrap {
  padding: 12px 14px 8px;
  background: #fff;
}

.trial-banner {
  display: block;
  width: 100%;
  max-height: 112px;
  border-radius: 8px;
  object-fit: cover;
  background: #e2e8f0;
}

.h5-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hall-hero .h5-search-row {
  padding: 0;
  background: transparent;
}

.h5-search-row .search-box {
  flex: 1;
  margin: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.96);
  color: #8a97aa;
  box-shadow: 0 8px 20px rgba(122, 32, 12, 0.12);
}

.hall-hero .icon-btn.light {
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.hall-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 14px 10px;
  background: #fff;
}

.hall-head h1 {
  margin: 0 0 4px;
  font-size: 22px;
}

.hall-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 10px;
  padding: 0 12px;
  min-height: 42px;
  border: 1px solid #d7e1ee;
  border-radius: 12px;
  background: #fff;
  color: #8a97aa;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
}

.hall-swiper {
  position: relative;
  margin: 12px 12px 0;
  overflow: hidden;
  height: 138px;
  border-radius: 16px;
  background: #111827;
  box-shadow: 0 12px 28px rgba(31, 41, 73, 0.16);
}

.hall-swiper-track {
  height: 100%;
}

.hall-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hall-slide.active {
  opacity: 1;
  transform: none;
}

.hall-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hall-slide-mask {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px 14px 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
  color: #fff;
}

.hall-slide-mask strong {
  display: block;
  font-size: 16px;
}

.hall-slide-mask span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.92;
}

.hall-swiper-dots {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  gap: 5px;
}

.hall-swiper-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hall-swiper-dots button.active {
  width: 16px;
  background: #fff;
}

.hall-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 12px 0;
  padding: 8px 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #fff7ed;
  box-shadow: 0 6px 16px rgba(255, 90, 31, 0.08);
}

.hall-ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ff5a1f;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.hall-ticker-mask {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.hall-ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  color: #c2410c;
  font-size: 12px;
  animation: hall-ticker 22s linear infinite;
}

.hall-ticker-track span {
  white-space: nowrap;
}

@keyframes hall-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 14px 4px;
  background: transparent;
}

.category-strip button {
  min-height: 30px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #516073;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(28, 40, 68, 0.06);
}

.category-strip button.active {
  background: #ff5a1f;
  color: #fff;
  font-weight: 800;
}

.hall-list {
  padding: 8px 12px 92px;
}

.hall-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 2px 10px;
}

.hall-section-title h2 {
  margin: 0;
  font-size: 16px;
}

.hall-section-title span {
  color: #ff5a1f;
  font-size: 12px;
  font-weight: 700;
}

.hall-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 12px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(42, 62, 96, 0.06);
}

.hall-card-top,
.hall-card-bottom {
  display: none;
}

.hall-icon {
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 14px;
  object-fit: cover;
  background: #eef2f7;
}

.hall-info {
  min-width: 0;
}

.hall-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hall-title h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.hall-title em {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fff1f0;
  color: #ff4d4f;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.hall-title strong {
  display: none;
}

.hall-info p {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  color: #8a94a6;
  font-size: 12px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.hall-meta {
  display: flex;
  gap: 8px;
  margin-top: 5px;
  color: #94a3b8;
  font-size: 11px;
}

.hall-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 0;
}

.hall-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f3f6fb;
  color: #64748b;
  font-size: 10px;
}

.hall-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.hall-side strong {
  color: #ff4d2e;
  font-size: 16px;
  white-space: nowrap;
}

.hall-side b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7a18, #ff3d2e);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.detail-blue {
  min-height: 236px;
  padding: 10px 12px 18px;
  background: linear-gradient(160deg, #1c64f2, #35a7ff);
  color: #fff;
}

.detail-nav {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  min-height: 38px;
  margin-bottom: 8px;
}

.detail-nav strong {
  text-align: center;
  font-size: 16px;
}

.icon-btn.light {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.detail-game-blue {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.detail-icon {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  object-fit: cover;
}

.detail-game-blue h1 {
  margin: 0 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

.detail-game-blue p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}

.light-tags span {
  background: #1ed2a4;
}

.big-reward {
  text-align: right;
  white-space: nowrap;
}

.big-reward span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
}

.big-reward strong {
  color: #fff0af;
  font-size: 18px;
}

.trial-notice {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #ef4444;
}

.trial-notice b {
  color: #ef4444;
  font-size: 14px;
}

.trial-notice p {
  margin: 4px 0;
  color: #f97316;
  font-size: 12px;
  line-height: 1.45;
}

.trial-notice span {
  color: #2563eb;
  font-size: 12px;
}

.reward-panel {
  min-height: calc(100vh - 260px);
  padding: 0 0 92px;
  background: #fff;
}

.reward-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 48px;
  border-bottom: 1px solid #eef2f7;
}

.reward-tabs button {
  position: relative;
  border: 0;
  background: #fff;
  color: #8a94a6;
  font-size: 14px;
}

.reward-tabs button.active {
  color: #111827;
  font-weight: 800;
}

.reward-tabs button.active::after {
  content: "";
  position: absolute;
  right: 30%;
  bottom: 0;
  left: 30%;
  height: 3px;
  border-radius: 999px;
  background: #ff3b30;
}

.reward-list {
  padding: 4px 12px 8px;
}

.reward-task {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid #eef2f7;
}

.reward-index {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #ff4d43;
  border-radius: 50%;
  color: #ff3b30;
  font-size: 12px;
}

.reward-index.done {
  border-color: #22c55e;
  color: #16a34a;
}

.reward-task strong {
  display: block;
  color: #ff4d43;
  font-size: 18px;
}

.reward-task p {
  margin: 1px 0;
  color: #111827;
  font-size: 13px;
}

.reward-task small {
  display: block;
  overflow: hidden;
  color: #8a94a6;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-task em {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #8a94a6;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.reward-task em.done {
  background: #dcfce7;
  color: #16a34a;
}

.screens.compact {
  padding: 0 12px 20px;
}

.detail-action-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px 84px;
  gap: 8px;
  padding: 8px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.btn.start-red {
  min-height: 46px;
  background: #ff4d43;
  font-size: 16px;
}

.btn.start-red:hover {
  background: #ef3c32;
}

.btn.helper {
  min-height: 46px;
  background: #2563eb;
}

.download-line {
  position: absolute;
  right: 8px;
  bottom: 62px;
  left: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 12px;
}

.download-line span {
  display: block;
  margin-top: 5px;
}

.red-fill {
  background: linear-gradient(90deg, #ff4d43, #f97316);
}

.mine-panel {
  min-height: calc(100vh - 78px);
  padding: 46px 18px 90px;
  background: #fff;
  text-align: center;
}

.avatar.big {
  width: 70px;
  height: 70px;
  margin: 0 auto 12px;
  border-radius: 18px;
  font-size: 26px;
}

.mine-panel h1 {
  margin: 0 0 6px;
  font-size: 22px;
}

.mine-panel p {
  margin: 0;
  color: var(--muted);
}

.mine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}

.mine-grid span {
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
}

.mine-grid b {
  display: block;
  margin-bottom: 4px;
  color: #172033;
  font-size: 18px;
}

.actions.center {
  justify-content: center;
}

.dev-float {
  position: absolute;
  right: 12px;
  bottom: 78px;
  z-index: 5;
  width: min(310px, calc(100% - 24px));
  padding: 11px 38px 11px 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.dev-float strong,
.dev-float span,
.dev-float p {
  display: block;
}

.dev-float strong {
  font-size: 13px;
}

.dev-float span,
.dev-float p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
}

.dev-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
}

.admin-console {
  grid-template-columns: 210px minmax(0, 1fr);
  background: #edf1f6;
}

.admin-console .sidebar {
  padding: 0;
  background: #2c4057;
  color: #dce7f3;
}

.admin-console .brand {
  min-height: 46px;
  margin: 0;
  padding: 0 18px;
  background: #25384f;
}

.admin-console .brand-mark {
  width: 28px;
  height: 28px;
  background: #1d4ed8;
}

.admin-console .brand strong {
  color: #fff;
}

.admin-console .brand span {
  color: #b9c7d7;
}

.admin-console .side-nav {
  gap: 0;
  padding-top: 8px;
}

.admin-console .side-btn {
  min-height: 56px;
  padding: 0 22px;
  border-radius: 0;
  color: #dce7f3;
}

.admin-console .side-btn:hover,
.admin-console .side-btn.active {
  background: #213348;
  color: #fff;
}

.side-exit {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 28px);
  min-height: 38px;
  margin: 18px 14px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: transparent;
  color: inherit;
}

.admin-console .console-main {
  padding: 0;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid #dbe2eb;
  background: #fff;
}

.crumb,
.admin-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.crumb b {
  color: #111827;
}

.admin-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  min-height: 36px;
  padding: 6px 10px;
  border-bottom: 1px solid #dbe2eb;
  background: #fff;
}

.admin-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  flex: 0 0 auto;
  padding: 0 9px;
  border: 1px solid #cfd8e5;
  border-radius: 5px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
}

.admin-tabs button.active {
  border-color: #3182ff;
  background: #3182ff;
  color: #fff;
}

.admin-page-head {
  margin: 0;
  padding: 22px 16px 8px;
}

.admin-page-head h1 {
  font-size: 18px;
}

.admin-block-title {
  margin: 16px 16px 12px;
  font-size: 15px;
  font-weight: 700;
}

.admin-console .stat-grid,
.admin-console .grid-2,
.admin-console .grid-3,
.admin-console .panel {
  margin-right: 16px;
  margin-left: 16px;
}

.stat-grid.wide {
  grid-template-columns: repeat(8, minmax(130px, 1fr));
}

.admin-console .stat {
  min-height: 88px;
  border: 0;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.admin-console .stat strong {
  color: #0f172a;
  font-size: 22px;
}

.admin-game-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(460px, 0.88fr);
}

.wide-panel {
  margin-right: 16px;
  margin-left: 16px;
}

.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-section-head.compact {
  display: block;
}

.admin-section-head h2 {
  margin: 0;
}

.admin-section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.readonly-box {
  display: flex;
  min-height: 38px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
}

.check-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #344256;
  font-size: 13px;
  font-weight: 600;
}

.check-line input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #2563eb;
}

.switch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 14px;
}

.switch-row .days-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #39465b;
  font-size: 13px;
  font-weight: 700;
}

.switch-row .days-field input {
  width: 88px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.46);
}

.modal-panel {
  width: min(980px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.game-config-modal {
  padding: 18px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-size: 18px;
}

.modal-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.task-admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  margin-right: 16px;
  margin-left: 16px;
}

.task-admin-layout .panel {
  margin-right: 0;
  margin-left: 0;
}

.game-picker {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.game-picker-btn {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #d7e1ee;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.game-picker-btn.active {
  border-color: #2f75ff;
  background: #eaf1ff;
}

.game-picker-btn strong,
.game-picker-btn span {
  display: block;
}

.game-picker-btn span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-add-form {
  padding: 12px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: #f8fafc;
}

.group-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.group-switches label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #dce3ee;
  border-radius: 7px;
  background: #f8fafc;
  color: #344256;
  font-size: 13px;
}

.copy-box.inline {
  display: inline-block;
  max-width: 220px;
  padding: 6px 8px;
}

.asset-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.asset-card img {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 7px;
  object-fit: cover;
  background: #e2e8f0;
}

.asset-card strong,
.asset-card span {
  display: block;
  margin-top: 8px;
}

.asset-card span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-toggle {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid #cfd8e5;
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
}

.mini-toggle.on {
  border-color: #22c55e;
  background: #dcfce7;
  color: #15803d;
  font-weight: 800;
}

.table-input {
  width: 150px;
  min-height: 30px;
  padding: 5px 7px;
  border: 1px solid #d7e1ee;
  border-radius: 6px;
  outline: none;
}

.table-input.wide {
  width: 220px;
}

.table-input.money {
  width: 86px;
}

.mini-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .stat-grid.wide {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }

  .admin-game-grid {
    grid-template-columns: 1fr;
  }

  .form-grid.three,
  .task-admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .admin-console .sidebar {
    position: static;
  }

  .admin-console .side-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-console .side-btn {
    min-height: 42px;
    padding: 0 8px;
  }
}


.h5-phone .nav-btn.active {
  color: #ff5a1f;
}

.h5-phone .bottom-nav {
  background: rgba(255, 255, 255, 0.96);
}


.hall-top {
  display: flex;
  flex-direction: column;
  max-height: 50vh;
  overflow: hidden;
  padding: 8px 0 10px;
  background: linear-gradient(135deg, #ff8a1a 0%, #ff4d2e 62%, #ff3355 100%);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.hall-top .hall-hero {
  padding: 0 12px 8px;
  background: transparent;
}

.hall-top .h5-search-row .search-box {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(122, 32, 12, 0.1);
}

.hall-top .icon-btn.light {
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

.hall-top .hall-swiper {
  flex: 0 0 auto;
  height: min(20vh, 112px);
  max-height: calc(50vh - 52px);
  margin: 0 12px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(31, 41, 73, 0.14);
}

.detail-hero {
  padding: 8px 12px 24px;
}

.detail-hero .detail-nav {
  margin-bottom: 0;
}

.detail-hero .detail-nav strong {
  color: #fff;
}

.detail-hero .icon-btn.light {
  border-radius: 999px;
}

.detail-body {
  padding: 0 12px 96px;
}

.detail-summary {
  position: relative;
  z-index: 1;
  margin-top: -14px;
}

.detail-note {
  display: block;
  margin-bottom: 8px;
  padding: 8px 12px;
}

.detail-note .hall-section-title {
  margin: 0 0 2px;
}

.detail-note .hall-section-title h2 {
  font-size: 15px;
}

.detail-note p,
.detail-note .trial-copy {
  display: block;
  overflow: visible;
  margin: 0;
  color: #e6a100;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  -webkit-line-clamp: unset;
}

.trial-account {
  margin-top: 8px;
  color: #1677ff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  white-space: pre-wrap;
  word-break: break-word;
}

.trial-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #ffe7b0;
  color: #d4892a;
  font-size: 14px;
  font-weight: 700;
}

.trial-countdown b {
  min-width: 28px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e36b24;
  color: #fff;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.trial-countdown em {
  font-style: normal;
}

.detail-note small {
  color: #8a94a6;
  font-size: 12px;
}

.reward-panel {
  min-height: 0;
  margin-top: 4px;
  padding: 0;
  background: transparent;
}

.reward-tabs {
  margin-bottom: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(42, 62, 96, 0.06);
}

.reward-tabs button.active {
  color: #ff4d2e;
}

.reward-tabs button.active::after {
  background: #ff4d2e;
}

.reward-list {
  display: block;
  padding: 0;
}

.hall-card.reward-task {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  min-height: auto;
  border-bottom: 0;
}

.hall-card.reward-task p {
  color: #8a94a6;
  font-size: 12px;
}

.hall-card.reward-task .hall-side strong {
  font-size: 16px;
}

.reward-index {
  width: 24px;
  height: 24px;
}

.hall-side b.done {
  background: #e8f8ef;
  color: #16a34a;
}

.detail-action-bar {
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 20px rgba(42, 62, 96, 0.06);
}

.btn.start-red {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7a18, #ff3d2e);
}

.btn.start-red:hover {
  background: linear-gradient(135deg, #ff6a10, #ef3324);
}

.btn.helper,
.btn.helper.ghost {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #516073;
}

.btn.helper:hover,
.btn.helper.ghost:hover {
  background: #f8fafc;
}

.download-line {
  position: static;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  color: #516073;
  box-shadow: 0 8px 20px rgba(42, 62, 96, 0.06);
}


.maintain-page {
  display: grid;
  min-height: 70vh;
  place-items: center;
  padding: 32px 24px;
  text-align: center;
}

.maintain-page strong {
  display: block;
  margin-bottom: 10px;
  color: #ff4d2e;
  font-size: 28px;
}

.maintain-page p {
  max-width: 280px;
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.7;
}

.trial-status {
  margin-top: 14px;
  color: #ff4d2e;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 0;
}

.table-toolbar input {
  min-width: min(100%, 280px);
  flex: 1;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
}

.table-toolbar select {
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
}

.pager b {
  color: #0f172a;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
}

.switch i {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #d6dee8;
}

.switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.18s ease;
}

.switch.on {
  color: #16a34a;
}

.switch.on i {
  background: #22c55e;
}

.switch.on i::after {
  left: 18px;
}

.side-group {
  margin: 8px 8px 14px;
}

.side-group-title {
  padding: 6px 10px 8px;
  color: #8aa0b8;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.admin-console .side-group .side-btn {
  width: 100%;
}

.inline-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #516073;
  font-size: 12px;
}

.inline-field select {
  min-height: 34px;
  min-width: 180px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-console .brand strong {
  font-size: 14px;
}

.admin-tabs {
  display: none;
}

.task-admin-layout {
  display: block;
}


.detail-action-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 8px;
}

.detail-action-bar .btn.start-red {
  width: 100%;
  justify-content: center;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.play-head {
  padding: 16px 14px 8px;
  background: #fff;
}

.play-list {
  padding-top: 8px;
}

.play-card {
  cursor: pointer;
}

.play-card .hall-info p,
.play-card .hall-meta,
.play-card .hall-tags {
  display: none;
}

.api-doc-card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.api-doc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.api-doc-head span {
  color: #ff4d2e;
  font-size: 12px;
  font-weight: 700;
}

html,
body {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body.h5-app {
  background: #f3f5f9;
  overscroll-behavior: none;
}

body.h5-app .mobile-stage {
  background: #f3f5f9;
}

body.h5-app .phone.h5-phone {
  width: 100%;
  max-width: none;
  box-shadow: none;
}

.h5-phone,
.h5-phone * {
  -webkit-tap-highlight-color: transparent;
}

.h5-phone button,
.h5-phone [data-action],
.h5-phone a {
  cursor: default;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.h5-phone input {
  -webkit-user-select: text;
  user-select: text;
}

.h5-phone button:focus,
.h5-phone [data-action]:focus,
.h5-phone a:focus {
  outline: none;
  box-shadow: none;
}

.h5-phone button:active,
.h5-phone [data-action]:active,
.h5-phone a:active,
.h5-phone .btn:active,
.h5-phone .btn.secondary:active,
.h5-phone .btn.start-red:active,
.h5-phone .icon-btn:active,
.h5-phone .hall-card:active,
.h5-phone .nav-btn:active {
  opacity: 1;
  filter: none;
  box-shadow: none;
  transform: none;
}

.h5-phone .btn:hover {
  background: var(--accent);
}

.h5-phone .btn.start-red:hover {
  background: #ff4d43;
}

.h5-phone .btn.start-red.recruit-full,
.h5-phone .btn.start-red.recruit-full:hover,
.h5-phone .btn.start-red.recruit-full:active,
.h5-phone .btn.start-red.recruit-full:disabled {
  background: #b8bdc7;
  color: #fff;
  opacity: 1;
}

.h5-phone .btn.secondary:hover {
  background: #fff;
  color: var(--text);
}

.h5-phone .btn.helper:hover,
.h5-phone .btn.helper.ghost:hover {
  background: #fff;
  color: #516073;
}

.h5-phone .icon-btn:hover {
  background: #fff;
}

.h5-phone .icon-btn.light:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.h5-phone .nav-btn:hover {
  background: transparent;
}

.h5-phone .category-strip button:hover {
  background: #fff;
  color: #516073;
}

.h5-phone .category-strip button.active:hover {
  background: #ff5a1f;
  color: #fff;
}

.h5-phone .reward-tabs button:hover {
  background: #fff;
}

.h5-phone .hall-card:hover {
  background: #fff;
}

.h5-phone .play-card {
  cursor: default;
}

.h5-main.h5-page-enter {
  animation: h5-page-in 0.32s ease;
}

.detail-action-bar {
  min-height: calc(66px + env(safe-area-inset-bottom, 0px));
  contain: layout paint;
}

.detail-action-bar .btn {
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  white-space: nowrap;
}

.detail-action-bar .btn.start-red {
  font-variant-numeric: tabular-nums;
}

.detail-body .download-line {
  display: none;
  min-height: 48px;
  margin-top: 8px;
  pointer-events: none;
  contain: layout paint;
}

.detail-body .download-line.show {
  display: block;
}

@keyframes h5-page-in {
  from {
    opacity: 0.28;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.h5-boot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f3f5f9;
}

.h5-boot-inner {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
}

.h5-page-loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(243, 245, 249, 0.42);
}

.h5-page-loader.show {
  display: flex;
}

.h5-page-loader-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 112px;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.h5-page-loader-card p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.h5-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  border-radius: 50%;
  animation: h5-spin 0.7s linear infinite;
}

.h5-spinner.dark {
  border-color: rgba(255, 90, 31, 0.18);
  border-top-color: #ff5a1f;
}

@keyframes h5-spin {
  to {
    transform: rotate(360deg);
  }
}

.agent-console {
  background: #f4f7fb;
}

.agent-console .sidebar {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-right: 0;
  background: linear-gradient(180deg, #6181ff 0%, #5474f8 58%, #58bdff 100%);
  color: #fff;
}

.agent-console .brand {
  margin: 0;
  padding: 22px 16px 14px;
}

.agent-console .brand-mark {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.agent-console .brand strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
}

.agent-console .side-nav {
  padding: 6px 12px;
}

.agent-console .side-btn {
  min-height: 42px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.agent-console .side-btn.active,
.agent-console .side-btn:hover {
  background: #fff;
  color: #4a90fa;
}

.agent-console .side-exit {
  width: auto;
  margin: auto 12px 16px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.agent-console .side-exit:hover {
  background: rgba(255, 255, 255, 0.22);
}

.agent-console .console-main {
  padding: 22px 24px 32px;
  background:
    linear-gradient(180deg, rgba(97, 129, 255, 0.16), rgba(88, 189, 255, 0) 220px),
    #f4f7fb;
}

.agent-console .topbar h1 {
  color: #1f2a44;
  font-size: 22px;
}

.agent-console .panel,
.agent-console .stat {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(87, 161, 249, 0.12);
}

.agent-console .panel h2 {
  color: #1f2a44;
}

.agent-console .btn {
  border-radius: 4px;
  background: #4a90fa;
}

.agent-console .btn:hover {
  background: #3b82f0;
}

.agent-console .btn.secondary {
  border-color: #d6e4ff;
  background: #fff;
  color: #4a90fa;
}

.agent-console .btn.secondary:hover {
  background: #f3f7ff;
}

.agent-console th {
  background: #f4f8ff;
  color: #3b5ccc;
}

.agent-console .field input:focus,
.agent-console .field select:focus,
.agent-console .field textarea:focus {
  border-color: #4a90fa;
  box-shadow: 0 0 0 3px rgba(74, 144, 250, 0.16);
}
