/* 丽柒排队系统双入口：纯色宝蓝 + 白，以留白和细线建立层级。 */
:root {
  --brand: #1d4fa3;
  --brand-2: #1d4fa3;
  --brand-deep: #153c7b;
  --brand-soft: #eef4fc;
  --bg: #ffffff;
  --card: #ffffff;
  --text: #14243b;
  --muted: #607087;
  --line: #d8e2f0;
  --danger: #ad3e53;
  --ok: #1d4fa3;
  --warn: #8b4b30;
}

body { background: #f4f7fc; color: var(--text); }
a { color: var(--brand); }
.card { box-shadow: none; border: 1px solid var(--line); border-radius: 16px; }
.btn { min-height: 46px; }
.btn.primary { background: var(--brand); background-image: none; color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--brand-deep); }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn.warn { background: #fff; color: var(--warn); border: 1px solid #cbaea3; }
.btn.ok { background: var(--brand-soft); color: var(--brand); border: 1px solid #bfd2ee; }
.btn.danger-ghost { background: #fff; color: var(--danger); border: 1px solid #dab9c1; }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #8eb7f0; outline-offset: 3px; }
input[type="tel"], input[type="password"], input[type="number"], input[type="text"] {
  background: #fff;
  border-color: #b8c9e1;
  min-height: 48px;
  font-size: 16px;
}
input:focus { border-color: var(--brand); }
.toast { background: rgba(16, 41, 79, .95); }
.modal { background: rgba(11, 33, 64, .58); }
.modal-box { border-radius: 18px; }

/* 同一个顾客入口：手机为取号页，电视以 ?screen=tv 显示叫号。 */
.customer-body { background: var(--brand); }
.customer-shell { display: flex; }
.tv-shell { display: none; }
.force-tv .customer-shell, .force-tv .modal, .force-tv .toast { display: none !important; }
.force-tv .tv-shell { display: flex; }
.customer-page {
  background: var(--brand);
  background-image: none;
  color: #fff;
  box-shadow: none;
}
.customer-page .topbar {
  background: transparent;
  min-height: 82px;
  padding: calc(14px + env(safe-area-inset-top)) 22px 8px;
  gap: 14px;
  align-items: flex-start;
}
.customer-page .brand { gap: 10px; font-size: 13px; font-weight: 500; line-height: 1.3; }
.customer-page .brand-dot { display: none; }
.brand-logo-white { width: 47px; height: 53px; object-fit: contain; flex: none; }
.customer-page .brand span:last-child { padding-top: 17px; }
.customer-page .clock { padding-top: 14px; font-size: 12px; color: rgba(255,255,255,.75); }
.customer-page main { padding: 0 18px 20px; }
.customer-page .view { gap: 15px; }
.customer-page .hero {
  background: transparent;
  border-radius: 0;
  padding: 24px 5px 30px;
  min-height: 176px;
}
.customer-page .hero-sub { display: none; }
.customer-page .hero h1 { font-family: inherit; font-weight: 650; font-size: clamp(27px, 7vw, 32px); letter-spacing: .02em; line-height: 1.35; }
.customer-page .hero-note { font-size: 13px; line-height: 1.7; margin-top: 12px; opacity: .9; }
.customer-page .take-card { color: var(--text); padding: 23px 19px 19px; border-radius: 16px; }
.take-card .field { margin-bottom: 20px; }
.take-card .field + .field { border-top: 1px solid var(--line); padding-top: 19px; }
.take-card .field-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 13px;
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
}
.take-card .field-title small { color: var(--muted); font-size: 12px; font-weight: 400; }
.take-card .step-badge {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 14px;
  font-weight: 600;
}
.take-card .chips { gap: 7px; }
.take-card .chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 58px;
  border: 1px solid #c9d7ea;
  border-radius: 12px;
  padding: 8px 3px;
  cursor: pointer;
  color: var(--text);
}
.take-card .chip:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.take-card .chip input { display: block; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.take-card .chip span, .take-card .chip input:checked + span {
  display: block;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.take-card input[type="tel"] { padding: 12px 14px; }
.take-card .btn.primary { min-height: 55px; font-size: 17px; border-radius: 13px; }
.take-card .tiny { font-size: 11px; margin-top: 10px; }
.customer-page .info-list { color: rgba(255,255,255,.9); padding: 0 5px; font-size: 12px; }
.customer-page .info-list a { color: #fff; text-decoration: underline; }
.customer-page .footer { color: rgba(255,255,255,.7); line-height: 1.6; }
.customer-page #view-waiting, .customer-page #view-called,
.customer-page #view-seated, .customer-page #view-skipped,
.customer-page #view-cancelled { padding-top: 28px; color: var(--text); }
.customer-page .status-card, .customer-page .called-card, .customer-page .done-card { border-radius: 16px; }
.customer-page .status-card { padding-block: 29px 22px; }
.customer-page .num-xl { color: var(--brand); }
.customer-page .ticket { background: var(--brand-soft); }
.customer-page .ticket-num { color: var(--brand); }
.customer-page .notice-card { border-radius: 16px; }
.customer-page .called-ring { background: var(--brand); }
.customer-page .done-icon { background: var(--brand-soft); color: var(--brand); }
.customer-page .skip-icon { background: #fff2ed; color: var(--warn); }
.customer-page #view-waiting > .danger-ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.65); }

/* 店员管理台：白色操作面，宝蓝主操作和标题区。 */
.admin-body { background: #f4f7fc; }
.admin-wrap { max-width: 1120px; gap: 18px; padding: 22px; }
.admin-wrap .card { border: 1px solid var(--line); border-radius: 18px; }
#admin-login { margin-top: min(10vh, 80px); padding: 26px; }
.admin-login-logo { display: block; width: 135px; height: auto; margin: 0 auto 18px; }
#admin-login h1 { color: var(--brand-deep); }
.admin-header {
  background: var(--brand);
  color: #fff;
  border-radius: 18px;
  padding: 13px 18px;
  gap: 14px;
}
.admin-heading { display: flex; align-items: center; gap: 12px; }
.admin-heading img { width: 40px; height: 44px; object-fit: contain; }
.admin-header h1 { color: #fff; font-size: 19px; }
.admin-header-right { color: rgba(255,255,255,.82); }
.admin-header .btn.ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.admin-wrap h2 { color: var(--brand-deep); font-size: 15px; }
.admin-grid { gap: 16px; }
.current-ticket, .row-num { color: var(--brand); }
.current-card { border-top: 4px solid var(--brand) !important; }
.row { border-color: var(--line); }
.tag.waiting { background: var(--brand-soft); color: var(--brand); }
.tag.called { background: #fff2ed; color: var(--warn); }
.tag.seated { background: #e6f0fc; color: var(--brand); }
.tag.skipped { background: #fbeff1; color: var(--danger); }
.tag.cancelled { background: #f0f3f8; color: var(--muted); }

/* 电视模式：左二维码，右上当前叫号，右下等候顺序。 */
.tv-shell {
  min-height: 100vh;
  width: 100%;
  flex-direction: column;
  background: var(--brand);
  color: #fff;
  overflow: hidden;
}
.tv-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(310px, 34%) minmax(0, 1fr);
  gap: 24px;
  padding: 24px 28px 0;
  min-height: 0;
}
.tv-left { box-shadow: none; border-radius: 16px; gap: 13px; padding: clamp(18px, 2vw, 30px); }
.tv-logo { width: min(42%, 170px); height: auto; max-height: 100px; object-fit: contain; }
.tv-brand { color: var(--brand); font-size: clamp(21px, 2.1vw, 29px); letter-spacing: .04em; }
.tv-qr-title { color: var(--brand-deep); font-size: clamp(23px, 2.2vw, 31px); }
.tv-qr { width: min(66%, 330px); border: 10px solid #fff; border-radius: 0; box-shadow: 0 0 0 1px var(--line); }
.tv-qr-help { color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); text-align: center; }
.tv-right { gap: 18px; }
.tv-now { gap: 10px; }
.tv-hint { color: rgba(255,255,255,.85); font-size: clamp(23px, 2.2vw, 32px); letter-spacing: .08em; }
.tv-number { color: #fff; text-shadow: none; font-size: clamp(100px, 17vw, 240px); font-weight: 700; }
.tv-waiting { color: rgba(255,255,255,.85); }
.tv-waiting strong { color: #fff; }
.tv-queue { height: 34vh; min-height: 195px; background: #fff; color: var(--text); border: 1px solid #fff; border-radius: 16px; padding: 17px 21px; }
.tv-queue-head { display: flex; justify-content: space-between; align-items: center; color: var(--brand-deep); font-size: 19px; letter-spacing: .03em; }
.tv-queue-head span:last-child { color: var(--muted); font-size: 13px; letter-spacing: 0; }
.tv-queue-row { background: transparent; border-top: 1px solid var(--line); border-radius: 0; justify-content: flex-start; gap: 18px; font-size: 21px; }
.tv-queue-order { color: var(--muted); min-width: 2em; }
.tv-queue-num { color: var(--brand); min-width: 5em; }
.tv-queue-party { color: var(--muted); margin-left: auto; }
.tv-queue .empty { color: var(--muted); }
.tv-footer { border-top: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.85); padding: 12px 28px 16px; font-size: 15px; }
.tv-foot-rule { color: rgba(255,255,255,.85); }
.tv-voice { color: #fff !important; background: transparent !important; border-color: rgba(255,255,255,.6) !important; }

@media (max-width: 600px) {
  .customer-page { box-shadow: none; }
  .admin-wrap { padding: 12px; }
  .admin-header { align-items: flex-start; flex-direction: column; }
  .admin-header-right { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .admin-heading img { width: 32px; height: 36px; }
  .admin-header h1 { font-size: 18px; }
  .admin-grid .btn-row { flex-wrap: wrap; }
  .admin-grid .btn-row .btn { min-width: 30%; }
}

@media (max-width: 360px) {
  .customer-page .topbar { padding-inline: 16px; }
  .customer-page main { padding-inline: 12px; }
  .customer-page .hero { padding-inline: 8px; }
  .customer-page .take-card { padding-inline: 13px; }
  .take-card .chip { gap: 3px; }
  .take-card .chip span { font-size: 12px; }
  .take-card .chip input { width: 16px; height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .customer-page .view, .called-ring, .tv-number.flash { animation: none !important; }
}
