:root {
  color-scheme: light;
  --green: #13c27f;
  --green-dark: #0eaa6d;
  --orange: #ff8a00;
  --ink: #333333;
  --muted: #999999;
  --line: #ededed;
  --page: #f6f6f6;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #e9e9e9; }
html.external-camera-mode { background: transparent; }
body {
  min-height: 100%; margin: 0; color: var(--ink); background: #e9e9e9;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.external-camera-mode { background: transparent; }
body.external-camera-mode .live-canvas {
  -webkit-mask-image: radial-gradient(circle 49px at calc(100% - 67px) 105px, transparent 0 49px, #000 50px);
  mask-image: radial-gradient(circle 49px at calc(100% - 67px) 105px, transparent 0 49px, #000 50px);
}
body.external-camera-mode::after {
  content: ""; position: fixed; z-index: 120; top: 52px;
  right: max(14px, calc((100vw - 720px) / 2 + 14px));
  width: 106px; height: 106px; border: 4px solid #fff; border-radius: 50%;
  box-shadow: 0 3px 13px rgba(0,0,0,.2), 0 0 0 2px var(--green);
  pointer-events: none;
}
button { font: inherit; -webkit-tap-highlight-color: transparent; }

.live-canvas {
  width: min(100%, 720px); min-height: 100vh; min-height: 100dvh; margin: 0 auto;
  overflow: clip; background: var(--page); box-shadow: 0 0 42px rgba(0,0,0,.08);
}

.mini-titlebar {
  position: sticky; top: 0; z-index: 30; display: grid; min-height: 60px;
  grid-template-columns: 92px 1fr 92px; align-items: center; padding: 7px 12px;
  border-bottom: 1px solid #f0f0f0; background: rgba(255,255,255,.98);
}

/* 订单广场的关键信息随订单列表固定在顶部，直播滚动时不丢失业务身份与今日数据。 */
.square-sticky-header {
  position: sticky; top: 0; z-index: 40; background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,.055);
}
.product-switch-shell { padding: 28px 28px 0; background: var(--white); }
.product-switch {
  display: flex; width: 462px; height: 64px; padding: 5px; overflow: hidden;
  border: 1px solid #e3e9e6; border-radius: 18px; background: #eef2f0;
  box-shadow: inset 0 1px 2px rgba(23,62,44,.035);
}
.product-switch button {
  width: 50%; height: 52px; padding: 0 13px; border: 0; border-radius: 14px;
  color: #4a514e; background: transparent; font-size: clamp(16px, 2.95vw, 21px);
  font-weight: 680; letter-spacing: .1px; white-space: nowrap; cursor: pointer;
}
.product-switch button.active {
  color: #fff; background: linear-gradient(135deg, #10b976, #13c985);
  box-shadow: 0 4px 12px rgba(12,170,108,.22);
}
.special-list-heading { min-height: 106px; padding: 20px 28px 22px; background: #fff; }
.camera-mode .special-list-heading { min-height: 139px; padding-right: 215px; }
.special-list-heading h1 { margin: 0; font-size: clamp(20px, 3.7vw, 27px); line-height: 1.2; }
.special-list-heading p { margin: 7px 0 0; color: #8a918e; font-size: clamp(12px, 2.3vw, 16px); }
.square-sticky-header .mini-titlebar {
  position: static; min-height: 44px; padding-top: 4px; padding-bottom: 4px;
}
.square-sticky-header .mini-titlebar > b { font-size: clamp(16px, 3.3vw, 23px); }
.square-sticky-header .mini-capsule { width: 78px; height: 30px; }
.square-sticky-header .mini-capsule i { font-size: 14px; }
.square-sticky-header .mini-capsule em { width: 15px; height: 15px; border-width: 2px; }
.mini-titlebar > b { overflow: hidden; font-size: clamp(17px, 3.8vw, 27px); text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.title-spacer { width: 42px; }
.mini-capsule {
  justify-self: end; display: flex; width: 88px; height: 36px; align-items: center; justify-content: space-around;
  border: 1px solid #ededed; border-radius: 999px; background: #fafafa;
}
.mini-capsule i { font-size: 17px; font-style: normal; letter-spacing: 2px; transform: translateY(-3px); }
.mini-capsule em { width: 18px; height: 18px; border: 3px solid #111; border-radius: 50%; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px #111; }
.mini-back { width: 42px; height: 42px; border: 0; color: #222; background: transparent; font-size: 40px; line-height: 36px; cursor: pointer; }

.driver-header { padding: 8px 14px 9px; background: var(--white); }
.camera-mode .square-sticky-header .driver-header { min-height: 132px; padding-right: 215px; }
.camera-mode .square-sticky-header .today-stats { column-gap: 12px; }
.greeting { font-size: clamp(14px, 3.2vw, 21px); line-height: 1.15; }
.team { margin-top: 2px; color: #666; font-size: clamp(11px, 2.6vw, 17px); line-height: 1.15; }
.today-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 7px; }
.today-stats span, .orders-summary span { display: block; color: #666; font-size: clamp(14px, 3.2vw, 22px); }
.today-stats b, .orders-summary b { display: block; margin-top: 2px; font-size: clamp(21px, 4.4vw, 31px); font-weight: 650; line-height: 1.05; }

.station-tab {
  display: flex; height: 38px; align-items: flex-end; justify-content: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white);
}
.station-tab span { padding: 0 2px 6px; border-bottom: 3px solid var(--green); color: var(--green); font-size: clamp(15px, 3.3vw, 22px); line-height: 1.05; }

.route-search { position: relative; padding: 10px 14px 8px; border-bottom: 1px solid #e7eee9; background: #fff; }
.route-filter-row { display: grid; grid-template-columns: 1fr 1fr .88fr; gap: 8px; }
.route-filter-row > button {
  display: grid; min-width: 0; min-height: 48px; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
  align-items: center; padding: 6px 9px; border: 1px solid #dfe9e3; border-radius: 11px; color: #294b39; background: #f7fbf9;
  text-align: left; cursor: pointer;
}
.route-filter-row small { grid-column: 1 / -1; color: #829087; font-size: 10px; line-height: 1; }
.route-filter-row b { min-width: 0; overflow: hidden; font-size: clamp(12px,2.7vw,18px); line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.route-filter-row i { color: var(--green); font-size: 14px; font-style: normal; }
.route-filter-result { display: flex; min-height: 28px; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.route-filter-result span { color: #315641; font-size: clamp(11px,2.4vw,16px); font-weight: 650; }
.route-filter-result button { flex: 0 0 auto; padding: 2px 8px; border: 0; color: #0c9f67; background: transparent; font-size: 12px; cursor: pointer; }
.route-search > p { margin: 1px 0 0; color: #919a95; font-size: 10px; line-height: 1.35; }
.route-filter-mask { position: fixed; z-index: 160; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(14,30,22,.45); }
.route-filter-panel { width: min(100%,720px); max-height: 68vh; padding: 18px 14px 82px; overflow: auto; border-radius: 20px 20px 0 0; background: #fff; box-shadow: 0 -10px 40px rgba(0,0,0,.18); }
.route-filter-panel header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.route-filter-panel header b { font-size: clamp(18px,3.8vw,27px); }
.route-filter-panel header button { width: 36px; height: 36px; border: 0; color: #666; background: #f2f4f3; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; }
.route-filter-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.route-filter-options button { display: flex; min-height: 46px; align-items: center; justify-content: space-between; padding: 8px 12px; border: 1px solid #e4e9e6; border-radius: 10px; color: #37443d; background: #fff; cursor: pointer; }
.route-filter-options button span { color: #89938d; font-size: 12px; }
.route-filter-options button.active { border-color: var(--green); color: #08764c; background: #eaf9f2; }
.route-filter-options button.active span { color: #08764c; }

.hall-list { display: grid; gap: 12px; padding: 14px 13px 92px; }
.order-card {
  position: relative; display: block; width: 100%; margin: 0; padding: 14px; overflow: hidden;
  border: 0; border-radius: 14px; outline: none; background: var(--white);
  box-shadow: 0 3px 12px rgba(0,0,0,.045); cursor: pointer;
}
.order-card:focus-visible { box-shadow: 0 0 0 3px rgba(19,194,127,.24); }
.order-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-header b { font-size: clamp(17px, 4vw, 28px); font-weight: 650; }
.order-header span { color: var(--orange); font-size: clamp(14px, 3.3vw, 23px); font-weight: 650; }
.order-body { position: relative; }
.price { position: absolute; z-index: 2; top: 15px; right: 0; color: var(--orange); font-size: clamp(22px, 5vw, 36px); font-weight: 650; }
.route-rows { margin-top: 11px; padding-right: 32%; }
.route-row { display: flex; min-width: 0; align-items: flex-start; gap: 10px; }
.route-row + .route-row { margin-top: 12px; }
.route-row > div { min-width: 0; }
.route-row b { display: block; overflow: hidden; font-size: clamp(18px, 4.2vw, 30px); font-weight: 650; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.route-row span { display: block; margin-top: 2px; color: var(--muted); font-size: clamp(13px, 3vw, 21px); }
.dot { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; }
.dot.green { background: var(--green); }
.dot.orange { background: var(--orange); }
.badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.badges span { padding: 6px 8px; border-radius: 6px; color: #666; background: #f6f6f6; font-size: clamp(11px, 2.7vw, 18px); }
.card-actions { display: grid; grid-template-columns: .78fr 1.82fr; gap: 8px; margin-top: 17px; padding: 0; }
.card-actions button { min-height: 43px; border-radius: 999px; font-size: clamp(15px, 3.5vw, 24px); font-weight: 650; cursor: pointer; }
.flight-btn { border: 1px solid var(--green); color: var(--green); background: #fff; }
.flight-btn:disabled { color: var(--green); background: #fff; opacity: 1; cursor: default; }
.grab-btn { border: 1px solid var(--green); color: #fff; background: var(--green); }
.grab-btn:active, .wide-green:active, .popup-grab:active { background: var(--green-dark); }

.special-hall-list { gap: 10px; padding-top: 12px; }
.special-order-card { min-height: 225px; padding: 15px 18px 14px; cursor: pointer; }
.special-order-header span {
  padding: 5px 11px; border-radius: 999px; color: #07945f; background: #eaf9f2;
  font-size: clamp(13px, 2.4vw, 17px); font-weight: 680;
}
.special-order-card .order-body { min-height: 164px; }
.special-route-rows { margin-top: 10px; padding-right: 34%; }
.special-route-rows .route-row + .route-row { margin-top: 9px; }
.special-route-rows .route-row b { font-size: clamp(18px, 3.8vw, 27px); }
.special-route-rows .route-row span { font-size: clamp(12px, 2.6vw, 18px); }
.special-price { position: absolute; z-index: 2; top: 18px; right: 0; text-align: right; }
.special-price small { display: block; color: #8a918e; font-size: clamp(11px, 2vw, 15px); }
.special-price b { display: block; margin-top: 4px; color: #ff7d00; font-size: clamp(25px, 5vw, 36px); line-height: 1; }
.special-order-card .badges { margin-top: 9px; }
.completed-detail-link { position: absolute; right: 18px; bottom: 17px; color: #08a46b; font-size: clamp(12px, 2.2vw, 16px); font-weight: 650; }
.special-calc-grid .orange-text { color: var(--orange); }
.completion-record { padding: 16px 18px; border-radius: 14px; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.045); }
.completion-record h2 { margin: 0 0 10px; font-size: clamp(19px, 4.2vw, 29px); }
.completion-record > div { display: flex; min-height: 44px; align-items: center; justify-content: space-between; border-top: 1px solid #f0f0f0; }
.completion-record span { color: #777; font-size: clamp(12px, 2.5vw, 17px); }
.completion-record b { font-size: clamp(15px, 3vw, 21px); }
.completion-record .highlight b { color: var(--orange); }
.detail-actions.single { grid-template-columns: 1fr; }

.bottom-nav {
  position: fixed; z-index: 50; bottom: 0; left: 50%; display: grid; width: min(100%, 720px); height: 66px;
  grid-template-columns: repeat(4, 1fr); transform: translateX(-50%); border-top: 1px solid var(--line); background: #fff;
}
.bottom-nav button { border: 0; color: #555; background: #fff; font-size: clamp(16px, 3.8vw, 26px); font-weight: 650; cursor: pointer; }
.bottom-nav button.active { color: var(--green); }

.orders-summary { display: grid; grid-template-columns: 1fr 1fr; padding: 18px 18px 12px; background: #fff; }
.orders-summary h2 { grid-column: 1 / -1; margin: 24px 0 2px; font-size: clamp(18px, 4vw, 28px); text-align: center; }
.personal-list { padding-top: 12px; }
.empty-box { display: grid; min-height: 210px; place-items: center; align-content: center; gap: 8px; border-radius: 14px; color: #777; background: #fff; }
.empty-box b { font-size: 18px; }
.empty-box span { color: #aaa; font-size: 13px; }
.simple-page { min-height: calc(100vh - 126px); padding: 18px 13px 90px; }
.simple-page section { padding: 22px; border-radius: 14px; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.04); }
.simple-page h2 { margin: 0 0 10px; font-size: 21px; }
.simple-page p { margin: 0 0 20px; color: #777; font-size: 14px; line-height: 1.7; }
.wide-green { width: 100%; min-height: 46px; border: 0; border-radius: 999px; color: #fff; background: var(--green); font-weight: 650; }
.profile { text-align: center; }
.avatar { display: grid; width: 72px; height: 72px; margin: 0 auto 14px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 30px; font-weight: 700; }

.detail-page { display: grid; gap: 13px; padding: 14px 13px 102px; }
.detail-page .order-card { cursor: default; }
.cost-card { padding: 16px 14px; border-radius: 14px; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.045); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-head h2 { margin: 0; font-size: clamp(19px, 4.2vw, 29px); }
.section-head span { display: block; margin-top: 3px; color: #999; font-size: 11px; }
.section-head button { padding: 8px 11px; border: 1px solid var(--green); border-radius: 8px; color: var(--green); background: #fff; font-size: 12px; }
.cost-summary { display: grid; grid-template-columns: 1fr 18px 1fr 18px 1.2fr; align-items: center; margin-top: 14px; padding: 13px 8px; border-radius: 10px; background: #fafafa; }
.cost-summary div { min-width: 0; text-align: center; }
.cost-summary span { display: block; color: #777; font-size: clamp(10px, 2.4vw, 16px); }
.cost-summary b { display: block; margin-top: 5px; overflow: hidden; font-size: clamp(17px, 3.8vw, 27px); text-overflow: ellipsis; white-space: nowrap; }
.cost-summary i { color: #aaa; font-size: 20px; font-style: normal; text-align: center; }
.cost-summary .orange-text { color: var(--orange); }
.cost-summary .net b { color: var(--green-dark); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.calc-grid div { padding: 11px; border: 1px solid #ededed; border-radius: 9px; background: #fff; }
.calc-grid span { display: block; color: #888; font-size: 11px; }
.calc-grid b { display: block; margin-top: 4px; font-size: clamp(17px, 4vw, 27px); }
.route-note, .route-error { margin: 12px 0 0; color: #888; font-size: 11px; line-height: 1.55; }
.route-error { margin-top: 4px; color: #c96a00; }
.detail-actions {
  position: fixed; z-index: 50; bottom: 0; left: 50%; display: grid; width: min(100%,720px); grid-template-columns: .8fr 1.5fr; gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%); border-top: 1px solid var(--line); background: #fff;
}
.detail-actions button { min-height: 46px; border: 1px solid #ddd; border-radius: 999px; color: #555; background: #fff; font-weight: 650; }
.detail-actions button.primary { border-color: var(--green); color: #fff; background: var(--green); }

.popup-mask { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.55); }
.popup-card { width: min(86vw, 520px); padding: 17px; border-radius: 17px; background: #fff; box-shadow: 0 16px 48px rgba(0,0,0,.28); animation: popup-in .2s ease; }
@keyframes popup-in { from { transform: scale(.88); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.popup-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.popup-header b, .popup-header span { color: #ff4d4f; font-size: clamp(20px, 4.5vw, 30px); font-weight: 700; }
.popup-progress { height: 5px; overflow: hidden; border-radius: 99px; background: #f0f0f0; }
.popup-progress i { display: block; height: 100%; background: linear-gradient(90deg,#ff7a45,#ff4d4f); transition: width 1s linear; }
.popup-card .order-card { margin-top: 12px; padding: 0; box-shadow: none; cursor: default; }
.popup-card .order-card.compact .route-rows { padding-right: 27%; }
.popup-card .order-card.compact .price { font-size: clamp(19px, 4.5vw, 30px); }
.popup-grab { width: 100%; min-height: 48px; margin-top: 13px; border: 0; border-radius: 999px; color: #fff; background: var(--green); font-size: 18px; font-weight: 700; }
.popup-grab.disabled { background: #ccc; }

.toast { position: fixed; z-index: 200; left: 50%; bottom: 82px; padding: 10px 17px; transform: translate(-50%,15px); border-radius: 99px; color: #fff; background: rgba(20,20,20,.9); font-size: 13px; opacity: 0; pointer-events: none; transition: .2s; }
.toast.is-visible { transform: translate(-50%,0); opacity: 1; }
.host-camera-bubble {
  position: fixed; z-index: 90; top: 68px;
  right: max(48px, calc((100vw - 720px) / 2 + 48px));
  width: 159px; height: 159px; overflow: hidden;
  border: 6px solid #fff; border-radius: 50%; background: #dfe9e4;
  box-shadow: 0 4px 16px rgba(0,0,0,.2), 0 0 0 3px var(--green);
  pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.host-camera-bubble video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); pointer-events: none; }
.host-camera-bubble canvas { display: none; }
.host-camera-bubble span {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 10px;
  color: #557067; background: #edf4f1; font-size: 12px; text-align: center;
}
.host-camera-bubble.is-live span { display: none; }
.host-camera-bubble.is-error { border-color: #fff; box-shadow: 0 3px 13px rgba(0,0,0,.16), 0 0 0 2px #c8c8c8; }
.loading-page { display: grid; min-height: 100vh; place-items: center; align-content: center; gap: 12px; color: #777; background: #fff; }
.loading-page.error b { color: #b84a43; }
.spinner { width: 28px; height: 28px; border: 3px solid #def4e9; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 430px) {
  .product-switch-shell { padding: 16px 10px 0; }
  .camera-mode .product-switch-shell { padding-right: 108px; }
  .product-switch { width: 100%; height: 52px; padding: 4px; border-radius: 14px; }
  .product-switch button { height: 42px; padding: 0 5px; border-radius: 11px; font-size: 13px; }
  .special-list-heading { min-height: 86px; padding: 15px 12px 17px; }
  .camera-mode .special-list-heading { padding-right: 108px; }
  .mini-titlebar { min-height: 54px; grid-template-columns: 76px 1fr 76px; padding-left: 8px; padding-right: 8px; }
  .square-sticky-header .mini-titlebar { min-height: 42px; }
  .mini-capsule { width: 74px; height: 32px; }
  .mini-capsule i { font-size: 14px; }
  .mini-capsule em { width: 16px; height: 16px; }
  .driver-header { padding: 7px 12px 8px; }
  .camera-mode .square-sticky-header .driver-header { min-height: 104px; padding-right: 108px; }
  .host-camera-bubble { top: 49px; right: 11px; width: 88px; height: 88px; border-width: 3px; }
  body.external-camera-mode .live-canvas {
    -webkit-mask-image: radial-gradient(circle 41px at calc(100% - 55px) 93px, transparent 0 41px, #000 42px);
    mask-image: radial-gradient(circle 41px at calc(100% - 55px) 93px, transparent 0 41px, #000 42px);
  }
  body.external-camera-mode::after { top: 49px; right: 11px; width: 88px; height: 88px; border-width: 3px; }
  .station-tab { height: 36px; }
  .route-search { padding-left: 10px; padding-right: 10px; }
  .hall-list { padding: 12px 10px 82px; }
  .order-card { padding: 12px; border-radius: 12px; }
  .special-order-card { min-height: 194px; }
  .route-rows { padding-right: 31%; }
  .card-actions { padding: 0 6%; }
  .bottom-nav { height: 60px; }
  .detail-page { padding-left: 10px; padding-right: 10px; }
}

@media (min-width: 721px) {
  body { padding: 16px 0; }
  .live-canvas { min-height: calc(100vh - 32px); border-radius: 22px; }
  .mini-titlebar { top: 16px; border-radius: 22px 22px 0 0; }
  .bottom-nav, .detail-actions { bottom: 16px; border-radius: 0 0 22px 22px; }
}

/* 观众端构图：720×1280。背景铺满，关键内容保持在x96..624。
   x72..648为本次20:9观众截图推算的裁后可见范围，并非平台固定规范。 */
body.audience-layout { min-width:720px; padding:0; background:#fff; }
.audience-layout .live-canvas { width:720px; max-width:none; border-radius:0; box-shadow:none; background:#f4f7f5; }
.broadcast-brand { height:250px; padding:32px 96px 0; background:linear-gradient(115deg,#e6f9ef 0%,#f4fff9 70%,#dbf5e8 100%); color:#164f36; overflow:hidden; }
.brand-name { display:flex; align-items:center; gap:18px; font-size:34px; font-weight:750; letter-spacing:2px; }
.brand-name span { font-size:18px; padding:3px 12px; border:1px solid #acd9be; border-radius:99px; letter-spacing:0; }
.broadcast-brand h1 { margin:12px 0 8px; font-size:42px; line-height:1.15; letter-spacing:2px; }
.broadcast-brand p { margin:0; font-size:21px; color:#3c7055; }
.brand-bottom { margin-top:23px; padding-top:14px; border-top:1px solid #c6e8d5; display:flex; justify-content:space-between; font-size:18px; color:#3c7055; }
.audience-header { position:sticky; top:250px; z-index:40; height:218px; background:#fff; box-shadow:0 3px 10px #123c2110; }
.audience-layout .product-switch-shell { padding:0 96px; background:#fff; }
.audience-layout .product-switch { width:528px; height:52px; padding:4px; border-radius:14px; }
.audience-layout .product-switch button { height:42px; font-size:24px; padding:0 12px; border-radius:10px; }
.audience-summary { height:166px; padding:24px 265px 16px 96px; }
.audience-summary h2 { font-size:27px; line-height:1.3; margin:0; white-space:nowrap; color:#214532; }
.audience-summary p { margin:9px 0 16px; font-size:19px; color:#65766a; }
.audience-stats { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 12px; font-size:17px; color:#607367; }
.audience-stats b { font-size:24px; color:#264c37; }
.audience-stats strong { color:#264c37; }
.audience-layout .route-search { width:720px; min-height:88px; padding:8px 96px 7px; }
.audience-layout .route-filter-row { gap:9px; }
.audience-layout .route-filter-row > button { min-height:45px; padding:5px 10px; }
.audience-layout .route-filter-row small { font-size:10px; }
.audience-layout .route-filter-row b { font-size:16px; }
.audience-layout .route-filter-result { min-height:24px; padding-top:4px; }
.audience-layout .route-filter-result span { font-size:14px; }
.audience-layout .route-search > p { font-size:11px; }
.audience-layout .route-filter-panel { width:720px; padding-left:96px; padding-right:96px; }
.audience-layout .hall-list { gap:12px; padding:12px 0 66px; }
.audience-layout .order-card { width:720px; padding:18px 104px; border-radius:0; box-shadow:0 1px 0 #e5eee8; min-height:300px; }
.audience-layout .order-header b { font-size:24px; }
.audience-layout .order-header span { font-size:19px; }
.audience-layout .route-rows { padding-right:188px; margin-top:14px; }
.audience-layout .route-row { gap:9px; }
.audience-layout .route-row b { font-size:27px; white-space:normal; overflow-wrap:anywhere; line-height:1.25; }
.audience-layout .route-row span { font-size:17px; overflow-wrap:anywhere; }
.audience-layout .route-row + .route-row { margin-top:12px; }
.audience-layout .price { top:48px; right:0; font-size:38px; white-space:nowrap; }
.audience-layout .badges { gap:6px; margin-top:14px; }
.audience-layout .badges span { font-size:18px; padding:4px 5px; }
.audience-layout .card-actions { padding:0; gap:9px; grid-template-columns:112px 1fr; margin-top:15px; }
.audience-layout .card-actions button { font-size:19px; min-height:44px; }
.audience-layout .route-empty { width:528px; margin:0 auto; }
.audience-layout .special-order-card { min-height:290px; padding-bottom:50px; }
.audience-layout .special-order-card .order-body { min-height:174px; }
.audience-layout .special-price { top:30px; }
.audience-layout .special-price b { font-size:38px; }
.audience-layout .special-price small { font-size:17px; }
.audience-layout .completed-detail-link { right:104px; bottom:18px; font-size:20px; }
.audience-layout .bottom-nav { width:720px; padding:0 96px; bottom:0; border-radius:0; }
.audience-layout .bottom-nav button { font-size:23px; }
.audience-layout .mini-titlebar { position:relative; top:auto; min-height:56px; padding:6px 96px; grid-template-columns:48px 1fr 48px; border-radius:0; }
.audience-layout .mini-capsule { visibility:hidden; width:40px; }
.audience-layout .detail-page { padding:12px 0 100px; }
.audience-layout .cost-card,.audience-layout .completion-record { margin:0 96px; }
.audience-layout .detail-actions { width:720px; padding:10px 104px; bottom:0; border-radius:0; }
.audience-layout .detail-actions button { min-height:44px; font-size:22px; }
.audience-layout .cost-summary { grid-template-columns:1fr; gap:6px; }
.audience-layout .orders-summary,.audience-layout .simple-page { padding-left:104px; padding-right:104px; }
.audience-layout .popup-mask { align-items:start; padding:490px 0 0; }
.audience-layout .popup-card { width:528px; padding:18px 20px; }
.audience-layout .popup-card .order-card { min-height:0; width:100%; padding:0; box-shadow:none; }
.audience-layout .popup-card .order-card.compact .route-rows { padding-right:172px; }
.audience-layout .popup-card .order-card.compact .price { font-size:34px; }
.audience-layout .popup-header b,.audience-layout .popup-header span { font-size:26px; }
.audience-layout .host-camera-bubble { top:315px; right:calc((100vw - 720px)/2 + 99px); width:138px; height:138px; }
body.audience-layout.external-camera-mode .live-canvas { -webkit-mask-image:radial-gradient(circle 63px at 552px 384px,transparent 0 63px,#000 64px); mask-image:radial-gradient(circle 63px at 552px 384px,transparent 0 63px,#000 64px); }
body.audience-layout.external-camera-mode::after { top:312px; right:calc((100vw - 720px)/2 + 96px); width:144px; height:144px; }
/* 品牌区与业务头分别固定，列表滚动后顶部仍有内容，不露出灰底。 */
.audience-layout .broadcast-brand { position:sticky; top:0; z-index:41; }

/* iPhone 桌面 Web App 使用真实设备宽度。正式 720 直播版保留在 Mac，
   手机端仅在窄屏覆盖固定宽度，避免横向滚动并让筛选弹层留在可视区。 */
@media (max-width: 720px) {
  html.phone-layout { width:100%; overflow-x:hidden; background:#fff; }
  body.audience-layout.phone-layout { min-width:0; width:100%; overflow-x:hidden; padding:0; }
  .phone-layout .live-canvas { width:100%; max-width:100%; overflow-x:hidden; }

  .phone-layout .broadcast-brand { height:174px; padding:21px 18px 0; }
  .phone-layout .brand-name { gap:9px; font-size:24px; letter-spacing:1px; }
  .phone-layout .brand-name span { padding:2px 8px; font-size:12px; }
  .phone-layout .broadcast-brand h1 { margin:8px 0 5px; font-size:30px; letter-spacing:1px; }
  .phone-layout .broadcast-brand p { font-size:15px; }
  .phone-layout .brand-bottom { margin-top:15px; padding-top:9px; font-size:12px; }

  .phone-layout .audience-header { top:174px; height:154px; }
  .phone-layout .product-switch-shell { padding:0 14px; }
  .phone-layout .product-switch { width:100%; height:52px; padding:4px; }
  .phone-layout .product-switch button { height:42px; padding:0 8px; font-size:16px; }
  .phone-layout .audience-summary { height:102px; padding:12px 116px 10px 14px; }
  .phone-layout .audience-summary h2 { font-size:19px; white-space:normal; }
  .phone-layout .audience-summary p { margin:4px 0 7px; overflow:hidden; font-size:13px; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
  .phone-layout .audience-stats { gap:4px 7px; font-size:12px; }
  .phone-layout .audience-stats b { font-size:17px; }

  .phone-layout .route-search { width:100%; min-height:91px; padding:8px 10px 7px; }
  .phone-layout .route-filter-row { grid-template-columns:1fr 1fr .9fr; gap:6px; }
  .phone-layout .route-filter-row > button { min-height:50px; padding:5px 7px; touch-action:manipulation; }
  .phone-layout .route-filter-row b { font-size:14px; }
  .phone-layout .route-filter-result { min-height:23px; padding-top:4px; }
  .phone-layout .route-filter-result span { font-size:12px; }
  .phone-layout .route-search > p { font-size:9px; }
  .phone-layout .route-filter-mask { inset:0; width:100%; }
  .phone-layout .route-filter-panel { width:100%; max-height:70vh; padding:16px 12px calc(80px + env(safe-area-inset-bottom)); }
  .phone-layout .route-filter-options { grid-template-columns:1fr 1fr; gap:8px; }
  .phone-layout .route-filter-options button { min-height:48px; touch-action:manipulation; }

  .phone-layout .hall-list { gap:10px; padding:10px 0 calc(64px + env(safe-area-inset-bottom)); }
  .phone-layout .order-card { width:100%; min-height:238px; padding:14px 16px; border-radius:0; box-shadow:0 1px 0 #e5eee8; }
  .phone-layout .order-header b { font-size:20px; }
  .phone-layout .order-header span { font-size:16px; }
  .phone-layout .route-rows { margin-top:11px; padding-right:35%; }
  .phone-layout .route-row b { font-size:22px; }
  .phone-layout .route-row span { font-size:14px; }
  .phone-layout .price { top:39px; right:0; font-size:30px; }
  .phone-layout .badges { gap:5px; margin-top:11px; }
  .phone-layout .badges span { padding:4px 5px; font-size:13px; }
  .phone-layout .card-actions { grid-template-columns:92px 1fr; gap:8px; margin-top:12px; }
  .phone-layout .card-actions button { min-height:42px; font-size:16px; }
  .phone-layout .route-empty { width:calc(100% - 24px); }

  .phone-layout .special-order-card { min-height:230px; padding:14px 16px 42px; }
  .phone-layout .special-order-card .order-body { min-height:145px; }
  .phone-layout .special-price { top:25px; }
  .phone-layout .special-price b { font-size:30px; }
  .phone-layout .special-price small { font-size:13px; }
  .phone-layout .completed-detail-link { right:16px; bottom:14px; font-size:15px; }

  .phone-layout .bottom-nav { width:100%; height:60px; padding:0 12px; bottom:0; }
  .phone-layout .bottom-nav button { font-size:18px; touch-action:manipulation; }
  .phone-layout .mini-titlebar { min-height:54px; padding:6px 12px; grid-template-columns:42px 1fr 42px; }
  .phone-layout .orders-summary,
  .phone-layout .simple-page { padding-left:12px; padding-right:12px; }
  .phone-layout .detail-page { padding:12px 10px 96px; }
  .phone-layout .cost-card,
  .phone-layout .completion-record { margin:0; }
  .phone-layout .detail-actions { width:100%; padding:9px 12px calc(9px + env(safe-area-inset-bottom)); }

  .phone-layout .popup-mask { align-items:center; width:100%; padding:18px; }
  .phone-layout .popup-card { width:min(92vw,520px); padding:16px; }
  .phone-layout .popup-card .order-card { min-height:0; width:100%; padding:0; }
  .phone-layout .popup-card .order-card.compact .route-rows { padding-right:31%; }
  .phone-layout .popup-card .order-card.compact .price { font-size:27px; }
  .phone-layout .popup-header b,
  .phone-layout .popup-header span { font-size:22px; }

  .phone-layout .host-camera-bubble { top:222px; right:14px; width:92px; height:92px; border-width:3px; }
  body.phone-layout.audience-layout.external-camera-mode .live-canvas { -webkit-mask-image:none; mask-image:none; }
  body.phone-layout.audience-layout.external-camera-mode::after { top:222px; right:14px; width:92px; height:92px; border-width:3px; }
}
