:root {
  --bg: #f2f2f2;
  --card: #ffffff;
  --line: #e4e4e4;
  --text: #282828;
  --muted: #666666;
  --light: #999999;
  --primary: #059fe9;
  --primary-strong: #0088cc;
  --success: #1fa63a;
  --danger: #c23a31;
  --warning-bg: #fff8df;
  --radius: 8px;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

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

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

.hidden {
  display: none !important;
}

.db {
  display: block;
}

.mt15 {
  margin-top: 15px;
}

.m15 {
  margin: 15px;
}

.p0-15 {
  padding: 0 15px 15px;
}

.bg_fff {
  background: #fff;
}

.fn {
  font-weight: normal;
}

.tc {
  text-align: center;
}

.f14 {
  font-size: 14px;
}

.lh28 {
  line-height: 28px;
}

.c6 {
  color: #666;
}

.info_list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info_list li {
  position: relative;
  height: 42px;
  padding: 0 15px 0 42px;
  border-bottom: 1px solid var(--line);
  line-height: 42px;
}

.info_list li:last-child {
  border-bottom: none;
}

.info_list li section {
  height: 42px;
}

.info_list li input[type="text"] {
  width: 100%;
  height: 42px;
  border: none;
  background: #fff;
  line-height: 42px;
  font-size: 14px;
}

.info_list li img {
  position: absolute;
  left: 12px;
  top: 12px;
  display: block;
  width: 18px;
  height: 20px;
}

.select_wrap {
  position: relative;
}

.select {
  width: 100%;
  border: none;
  background: none;
  line-height: 42px;
  font-size: 14px;
  -webkit-appearance: none;
  appearance: none;
}

.selectArrow {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 8px;
  height: 8px;
  margin-top: -7px;
  border-top: 1px solid #9d9d9d;
  border-right: 1px solid #9d9d9d;
  background-color: transparent;
  transform: rotate(135deg);
}

.btn {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 5px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  line-height: 42px;
  text-align: center;
  -webkit-appearance: none;
}

.title {
  height: 42px;
  line-height: 42px;
}

.title span {
  position: relative;
  display: inline-block;
  padding: 0 15px;
  background: var(--bg);
  color: #666;
  font-size: 16px;
}

.title span::before,
.title span::after {
  position: absolute;
  top: 50%;
  display: block;
  width: 30px;
  height: 1px;
  background-color: #d2d2d2;
  content: "";
}

.title span::before {
  left: -30px;
}

.title span::after {
  right: -30px;
}

.status_text {
  padding: 10px 12px;
  border-radius: 5px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.status_text.error {
  padding: 14px 16px;
  border: 1px solid rgba(194, 58, 49, 0.22);
  background: #fff1f0;
  color: var(--danger);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.status_text.warning {
  background: var(--warning-bg);
  color: #8f6610;
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.popup-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
}

.modal-dialog {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, 320px);
  margin: 34vh auto 0;
  padding: 18px 16px 16px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.modal-dialog h4 {
  margin: 0 0 10px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.modal-dialog p {
  margin: 0 0 16px;
  color: #333333;
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
}

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

.current_key_row {
  background: #fafafa;
}

.current_key_text {
  color: var(--muted);
  font-size: 13px;
}

.current_key_text span {
  color: var(--text);
}

.card {
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-highlight {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 2px solid #18a24f;
  border-radius: 5px;
  background: #f1fff6;
}

.result-highlight strong {
  display: block;
  color: #0b8a3d;
  font-size: 16px;
}

.result-highlight p {
  margin: 6px 0 0;
  color: #267046;
  font-size: 13px;
  line-height: 1.7;
}

.result-highlight.queried {
  border-color: #f0a000;
  background: #fff9eb;
}

.result-highlight.queried strong {
  color: #c97a00;
}

.result-highlight.queried p {
  color: #9a6a16;
}

.card li {
  margin-bottom: 15px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 8px #dedede;
}

.result-card-figure {
  position: relative;
  min-height: 60px;
  padding: 15px 15px 8px 105px;
}

.result-card-figure img {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 80px;
  height: 60px;
  border-radius: 6px;
}

.result-card-figure figcaption {
  font-size: 16px;
  line-height: 24px;
}

.result-card-figure figcaption span {
  display: inline-block;
  height: 18px;
  margin-left: 10px;
  padding: 0 5px;
  border-radius: 2px;
  background-color: #00a65a;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.result-tip {
  margin: 0 0 12px;
  color: #d92d20;
  font-size: 16px;
  font-weight: 700;
  line-height: 28px;
}

.result-tip-row {
  display: block;
  width: 100%;
  padding: 4px 0 10px;
  text-align: center;
}

.selected-scenic-row {
  margin-bottom: 10px;
  color: #333333;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

.selected-scenic-row span {
  color: #059fe9;
  font-weight: 700;
  font-size: 18px;
}

.result-card-body {
  padding: 0 15px 15px;
}

.result-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.result-card-body textarea {
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  resize: vertical;
}

.result-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.result-btn {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 5px;
  background: var(--primary);
  color: #fff;
}

.result-btn.secondary {
  background: #e9f6fd;
  color: var(--primary);
}

.tips_plain {
  margin: 0;
  padding-left: 18px;
}

.tips_plain li + li {
  margin-top: 2px;
}

.ticket-view-body {
  min-height: 100vh;
  background: #b6b6b6;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 0 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.ticket-view-shell {
  width: min(100%, 380px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ticket-overlay-card {
  position: relative;
  background: var(--card);
  width: calc(100% - 10px);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: none;
  margin: 0;
}

.ticket-info {
  display: block;
  padding: 12px 12px 12px;
  border-bottom: 1px solid var(--line);
}

.ticket-info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: start;
}

.ticket-head {
  display: flex;
  justify-content: flex-end;
}

.ticket-photo-frame {
  width: 96px;
  height: 122px;
  border: 1px solid #d8d8d8;
  background: #ffffff;
  overflow: hidden;
}

.ticket-photo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.info-list {
  display: grid;
  gap: 13px;
  padding-top: 0;
}

.info-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  font-size: 11px;
  line-height: 1.2;
}

.info-row span:first-child {
  color: #666666;
  letter-spacing: 0;
  white-space: nowrap;
  font-size: 10px;
}

.info-row span:last-child {
  color: #2f2f2f;
  font-size: 11px;
  font-weight: 500;
}

.qr-panel {
  padding: 8px 4px 18px;
}

.qr-frame {
  padding: 4px;
  border: 1px solid #dfdfdf;
  background: #ffffff;
  overflow: hidden;
}

.qr-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: fill;
}

.time-text {
  margin: 14px 0 10px;
  text-align: center;
  color: #d93025;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-kerning: none;
  text-shadow: none;
  white-space: normal;
}

.helper-text {
  margin: 0;
  text-align: center;
  color: #222222;
  font-size: 12px;
  line-height: 1.4;
}

.ticket-note {
  margin: 9px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.ticket-close {
  width: 44px;
  height: 44px;
  margin: 22px auto 0;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 30px;
  font-weight: 300;
  line-height: 0.95;
  cursor: pointer;
}

.ticket-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.expired-state {
  margin-top: 0;
  padding: 32px 16px 36px;
  text-align: center;
}

.expired-state h1 {
  margin: 0 0 10px;
  font-size: 24px;
}

.expired-state p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 420px) {
  .m15 {
    margin: 12px;
  }

  .ticket-info-layout {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 8px;
  }

  .ticket-photo-frame {
    width: 88px;
    height: 112px;
  }

  .time-text {
    font-size: 13px;
  }

  .result-actions {
    flex-direction: column;
  }
}