/* ==========================================================================
   luzhiob 直播录播 · 样式
   首页：单屏双 Tab（自助 / 人工），不产生纵向滚动
   ========================================================================== */

:root {
  --bg: #f7f6f2;
  --panel: #ffffff;
  --panel-2: #fbfaf7;
  --ink: #131311;
  --ink-2: #45453f;
  --muted: #7b7a70;
  --line: #e4e2d9;
  --line-2: #d2cfc3;
  --accent: #ff4d1f;
  --accent-soft: #ffece5;
  --ok: #0e7c57;
  --ok-soft: #e6f4ed;
  --radius: 14px;
  --radius-lg: 20px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(19, 19, 17, .04), 0 14px 34px -20px rgba(19, 19, 17, .26);
  --head-h: 62px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 10px 0;
  z-index: 99;
}
.skip:focus { left: 0; }

.mono { font-family: var(--mono); font-size: .92em; }
.tiny { font-size: 12px; color: var(--muted); line-height: 1.7; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 26px; }

/* ==========================================================================
   首页外壳：固定一屏
   ========================================================================== */
body.shell {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.topbar {
  flex: 0 0 auto;
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 242, .9);
  backdrop-filter: saturate(140%) blur(12px);
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-text { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.brand-text em {
  font-style: normal;
  font-weight: 400;
  font-size: 11.5px;
  color: var(--muted);
  padding-left: 8px;
  margin-left: 8px;
  border-left: 1px solid var(--line-2);
  letter-spacing: .04em;
}

.tabs {
  display: flex;
  gap: 3px;
  margin: 0 auto;
  padding: 4px;
  background: #eeede5;
  border-radius: 12px;
}
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  height: 34px;
  padding: 0 22px;
  border-radius: 9px;
  cursor: pointer;
  transition: color .16s, background .16s, box-shadow .16s;
  white-space: nowrap;
}
.tab:hover { color: var(--ink-2); }
.tab.is-on {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(19, 19, 17, .08), 0 4px 12px -8px rgba(19, 19, 17, .3);
}

.top-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--mono);
}
.top-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(14, 124, 87, .12);
}

.stage { flex: 1 1 auto; min-height: 0; }

.panel { display: none; height: 100%; }
.panel.is-on {
  display: flex;
  align-items: safe center;
  justify-content: center;
  padding: 18px 22px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.panel.is-on::-webkit-scrollbar { display: none; }

/* ==========================================================================
   自助录播
   ========================================================================== */
.self-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 22px;
  width: 100%;
  max-width: 1040px;
  align-items: stretch;
}

.sheet {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}
.sheet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.sheet-title { font-size: 19px; letter-spacing: -.025em; }
.sheet-step {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}

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

.field { display: block; margin-bottom: 16px; }
.lab {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.lab i { font-style: normal; color: var(--accent); font-family: var(--mono); }
.lab em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.field-hint {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* 支持平台：品牌图标（圆角矩形）+ 名称 */
.plats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
}
.plat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px 0 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  transition: border-color .14s, background .14s, box-shadow .14s;
}
.plat:hover {
  border-color: var(--line-2);
  background: #fff;
  box-shadow: 0 2px 10px -7px rgba(19, 19, 17, .5);
}
.plat-logo {
  display: block;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
}
.plat b {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: .01em;
  white-space: nowrap;
}
.plats-more {
  padding-left: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

.input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: border-color .14s, box-shadow .14s, background .14s;
}
.input::placeholder { color: #adaba0; }
.input:hover { border-color: var(--line-2); }
.input:focus {
  outline: none;
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(19, 19, 17, .06);
}

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 40px;
  padding: 0 15px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 13.5px;
  color: var(--ink-2);
  transition: all .14s;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover span { border-color: var(--line-2); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(19, 19, 17, .12); }
.chip-custom span { min-width: 76px; }
.input-mini { width: 84px; height: 36px; padding: 0 10px; font-size: 13.5px; }
[hidden] { display: none !important; }

.btn-pay {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  margin-top: 8px;
  border: 0;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .16s, transform .12s;
}
.btn-pay:hover { background: #000; }
.btn-pay:active { transform: translateY(1px); }
.btn-pay[disabled] { opacity: .62; cursor: progress; }
.btn-pay .amt {
  font-family: var(--mono);
  font-size: 13px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
}

/* 深色订单票 */
.ticket {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ink);
  color: #f4f2ec;
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
}
.ticket::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
}
.ticket-top { display: flex; align-items: center; justify-content: space-between; }
.ticket-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: rgba(244, 242, 236, .45);
}
.rec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: rgba(244, 242, 236, .5);
}
.rec i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 31, .5); }
  70% { box-shadow: 0 0 0 7px rgba(255, 77, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 31, 0); }
}

.ticket-name {
  margin-top: 18px;
  font-size: 25px;
  letter-spacing: -.025em;
  color: #fff;
  word-break: break-all;
  line-height: 1.2;
}
.ticket-room {
  margin-top: 5px;
  font-size: 12px;
  color: rgba(244, 242, 236, .5);
  word-break: break-all;
}

.ticket-list { margin: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .11); }
.ticket-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  font-size: 12.5px;
}
.ticket-list dt { color: rgba(244, 242, 236, .5); }
.ticket-list dd { margin: 0; font-family: var(--mono); font-size: 12.5px; }

.ticket-sum {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 20px;
}
.ticket-sum > span { font-size: 12.5px; color: rgba(244, 242, 236, .5); }
.ticket-sum strong {
  font-size: 38px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.04em;
  color: #fff;
  display: flex;
  align-items: baseline;
}
.ticket-sum strong i { font-style: normal; font-size: 18px; color: var(--accent); margin-right: 3px; }
.ticket-sum strong b { font-weight: 600; }

.ticket-note {
  margin-top: 10px;
  font-size: 11.5px;
  color: rgba(244, 242, 236, .42);
  line-height: 1.6;
}

/* ==========================================================================
   人工录播 · 原站样式（全部限定在 .manual-origin 内）
   ========================================================================== */
.panel[data-panel="manual"].is-on {
  background: #fff;
  padding: 10px;
  align-items: stretch;
  justify-content: flex-start;
}

.manual-origin {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  line-height: normal;
}

.manual-origin .marquee-container {
  margin: 10px 0;
  width: 100%;
  overflow: hidden;
}
.manual-origin .marquee-text {
  display: inline-block;
  font-weight: bold;
  font-size: clamp(18px, 3vw, 32px);
  color: red;
  background-color: #fff;
  padding: 5px;
  white-space: nowrap;
  animation: marquee-run var(--marquee-duration, 30s) linear infinite;
  will-change: transform;
}
@keyframes marquee-run {
  from { transform: translate3d(var(--marquee-from, 100vw), 0, 0); }
  to { transform: translate3d(var(--marquee-to, -100%), 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .manual-origin .marquee-text { animation: none; }
}

.manual-origin .image-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 10px auto;
}
.manual-origin .image {
  width: 240px;
  height: auto;
  max-width: 100%;
}

.manual-origin .id1,
.manual-origin .id2 {
  text-align: center;
}
.manual-origin .id1 h1,
.manual-origin .id2 h1 {
  font-size: clamp(16px, 2.5vw, 24px);
  margin: 5px 0;
  line-height: normal;
}

.manual-origin .text {
  text-align: center;
  padding: 10px;
}
.manual-origin .text h1 {
  font-size: clamp(14px, 2.5vw, 20px);
  margin: 10px 0;
  line-height: 1.3;
}

.manual-origin .red-text,
.manual-origin .wechat {
  color: red;
}

.manual-origin a {
  color: #0000ee;
  text-decoration: underline;
}

/* ==========================================================================
   结果页 / 订单页（沿用原设计）
   ========================================================================== */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 246, 242, .86);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; gap: 22px; height: 64px; }
.head-inner .nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; color: var(--ink-2); }
.head-inner .nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s, border-color .16s, color .16s;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 36px; padding: 0 15px; font-size: 13.5px; }

.narrow { max-width: 700px; margin: 0 auto; padding: 56px 0 80px; }
.result-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.result-head {
  padding: 28px 30px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 5px 13px;
  border-radius: 999px;
  background: #f0eee7;
  color: var(--ink-2);
  font-weight: 500;
}
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-paid { background: var(--ok-soft); color: var(--ok); }
.status-pending { background: var(--accent-soft); color: #b8330d; }
.result-title { font-size: 25px; letter-spacing: -.03em; }
.result-sub { margin-top: 7px; font-size: 13.5px; color: var(--muted); }
.result-body { padding: 24px 30px 28px; }
.kv { margin: 0; border-top: 1px solid var(--line); }
.kv-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.kv-row dt { color: var(--muted); margin: 0; }
.kv-row dd { margin: 0; word-break: break-all; }
.result-actions {
  padding: 20px 30px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.expiry-hl { color: var(--ok); font-weight: 600; }
.loading-bar { height: 2px; background: var(--line); overflow: hidden; }
.loading-bar i { display: block; height: 100%; width: 40%; background: var(--accent); animation: slide 1.4s infinite ease-in-out; }
@keyframes slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}
.notice {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-2);
}
.notice-error { border-color: #f3c2b4; background: #fff4f0; color: #8f2d10; }

.site-foot { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot-inner { display: grid; grid-template-columns: 1.2fr 1.4fr auto; gap: 34px; align-items: start; }
.foot-brand { display: flex; gap: 11px; align-items: flex-start; }
.foot-brand strong { font-size: 13.5px; font-weight: 600; }
.foot-brand p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.foot-meta p { font-size: 12.5px; color: var(--ink-2); }
.foot-meta .tiny { margin-top: 8px; max-width: 44ch; }
.foot-links { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 900px) {
  :root { --head-h: 56px; }

  .top-meta { display: none; }
  .topbar { padding: 0 14px; gap: 10px; }
  .brand-text { font-size: 14px; }
  .tab { padding: 0 16px; font-size: 13px; height: 32px; }

  .panel.is-on { padding: 12px 14px; }

  .self-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    height: auto;
    max-height: none;
  }
  .sheet { padding: 18px 18px 16px; }
  .sheet-head { padding-bottom: 11px; margin-bottom: 13px; }
  .sheet-title { font-size: 17px; }

  .f2 { gap: 10px; }
  .input { height: 42px; font-size: 16px; }
  .field { margin-bottom: 11px; }
  .lab { font-size: 12px; margin-bottom: 5px; }
  .plats { gap: 5px; margin-top: 7px; }
  .plat { height: 30px; padding: 0 8px 0 3px; gap: 5px; border-radius: 9px; }
  .plat-logo { width: 22px; height: 22px; border-radius: 7px; }
  .plat b { font-size: 11.5px; }
  .plats-more { font-size: 11px; }
  .chip span { height: 34px; min-width: 58px; padding: 0 11px; font-size: 13px; }
  .btn-pay { height: 46px; font-size: 14.5px; }

  .ticket { padding: 15px 18px; }
  .ticket-name { font-size: 18px; margin-top: 9px; }
  .ticket-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .11);
  }
  .ticket-list > div {
    display: block;
    padding: 8px 0 8px 0;
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, .1);
    text-align: center;
  }
  .ticket-list > div:first-child { text-align: left; }
  .ticket-list > div:last-child { border-right: 0; text-align: right; }
  .ticket-list dt { font-size: 10.5px; }
  .ticket-list dd { margin-top: 3px; font-size: 12px; }
  .ticket-sum { margin-top: 10px; }
  .ticket-sum strong { font-size: 26px; }
  .ticket-note { margin-top: 7px; font-size: 11px; }

  .foot-inner { grid-template-columns: 1fr; gap: 20px; }
  .narrow { padding: 32px 0 56px; }
}

@media (max-width: 480px) {
  .sheet { padding: 15px 14px 14px; }
  .f2 { grid-template-columns: minmax(0, 1fr); }
  .chip span { min-width: 54px; }
  .chip-custom span { min-width: 66px; }
}

@media (max-height: 700px) and (min-width: 901px) {
  .sheet { padding: 16px 22px; }
  .sheet-head { padding-bottom: 10px; margin-bottom: 12px; }
  .field { margin-bottom: 10px; }
  .input { height: 40px; }
  .plats { margin-top: 6px; gap: 5px; }
  .plat { height: 28px; padding: 0 8px 0 3px; gap: 5px; border-radius: 8px; }
  .plat-logo { width: 21px; height: 21px; border-radius: 6px; }
  .plat b { font-size: 11.5px; }
  .chip span { height: 33px; }
  .btn-pay { height: 44px; }
  .ticket-name { font-size: 20px; margin-top: 10px; }
  .ticket-list { margin-top: 10px; }
  .ticket-list > div { padding: 5px 0; }
  .ticket-sum { margin-top: 10px; }
  .ticket-sum strong { font-size: 28px; }
}

/* 人工录播：沿用原站 768px 断点 */
@media screen and (max-width: 768px) {
  .panel[data-panel="manual"].is-on { padding: 5px; }
  .manual-origin .image-container { flex-direction: row; align-items: center; }
  .manual-origin .image { width: 180px; }
}
