.ticket-test-page {
  background: #f6f8fb;
}

/* 测试页复用正式票页外壳，只保留中间的自定义选票组件。 */
.ticket-page[data-ticket-page] .ticket-widget-like {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.ticket-page[data-ticket-page] .ticket-select-widget {
  min-height: 0;
}

.ticket-page[data-ticket-page] .ticket-test-steps {
  margin-top: 0;
}

.ticket-page[data-ticket-page="success"],
.ticket-page[data-ticket-page="payment"] {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 107, 53, .08), transparent 30%),
    radial-gradient(circle at 84% 8%, rgba(139, 92, 246, .07), transparent 32%),
    #f6f8fb;
}

.ticket-success-main,
.ticket-payment-main {
  display: grid;
  align-items: start;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 112px 0 48px;
}

.ticket-success-container,
.ticket-payment-container {
  width: 100%;
  max-width: 1120px;
}

.ticket-success-widget {
  width: 100%;
}

.ticket-test-hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 64px;
  color: #fff;
  background: var(--primary-dark);
}

.ticket-test-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 640px 360px at 85% 0%, rgba(255, 107, 53, 0.22), transparent 65%),
    radial-gradient(ellipse 520px 300px at 10% 100%, rgba(139, 92, 246, 0.18), transparent 65%);
  pointer-events: none;
}

.ticket-test-hero .container {
  position: relative;
}

/* 选票页收紧导航栏与面包屑之间的留白 */
.ticket-page[data-ticket-page="select"] .ticket-hero {
  padding-top: 96px;
}

.ticket-test-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--ff-mono);
  font-size: 12px;
}

.ticket-test-breadcrumbs a {
  color: rgba(255, 255, 255, 0.76);
}

.ticket-test-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: end;
}

.ticket-test-kicker {
  margin-bottom: 10px;
  color: var(--brand);
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ticket-test-hero h1 {
  max-width: 760px;
  font-family: var(--ff-cn);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 700;
  line-height: 1.15;
}

.ticket-test-copy {
  max-width: 680px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.8;
}

.ticket-test-event,
.ticket-widget-like,
.ticket-test-summary {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: 0 18px 48px rgba(26, 31, 58, 0.08);
}

.ticket-test-event {
  padding: 22px;
  color: var(--ink);
}

.ticket-test-event .label {
  color: var(--muted);
  font-size: 12px;
}

.ticket-test-event h2 {
  margin-top: 6px;
  font-family: var(--ff-cn);
  font-size: 22px;
  line-height: 1.28;
}

.ticket-test-event ul {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  color: #526079;
  font-size: 13.5px;
  list-style: none;
}

.ticket-test-main {
  padding: 56px 0 72px;
}

.ticket-test-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
  max-width: 680px;
  margin: 0 auto 30px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(26, 31, 58, 0.06);
}

.ticket-test-steps-mobile {
  display: none;
}

.ticket-step {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ticket-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eef2f7;
  color: #7b8494;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ticket-step-text {
  margin-left: 8px;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.ticket-step.is-active {
  background: #fff2eb;
}

.ticket-step.is-active .ticket-step-num {
  background: var(--brand);
  color: #fff;
}

.ticket-step.is-active .ticket-step-text {
  color: var(--ink);
  font-weight: 700;
}

.ticket-step.is-completed .ticket-step-num {
  background: #1f2430;
  color: #fff;
}

.ticket-step.is-completed .ticket-step-text {
  color: var(--ink);
}

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

.ticket-test-panel {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.ticket-widget-like {
  overflow: hidden;
}

#ticket-selection,
#ticket-form-step,
#ticket-result {
  scroll-margin-top: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.ticket-widget-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.ticket-widget-head h2 {
  font-family: var(--ff-cn);
  font-size: 21px;
  line-height: 1.3;
}

.ticket-widget-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
}

.ticket-select-widget {
  border-radius: 6px;
  box-shadow: none;
}

.ticket-select-head {
  padding: 20px 24px 18px;
}

.ticket-list {
  overflow: visible;
}

.ticket-list-head,
.ticket-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(130px, .55fr) minmax(190px, .75fr) minmax(150px, .5fr);
  align-items: center;
}

.ticket-list-head {
  min-height: 58px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
  color: #1f2430;
  font-size: 14.5px;
}

.ticket-list-head > div,
.ticket-row > div {
  padding: 0 26px;
}

.ticket-list-head > div:nth-child(4),
.ticket-row > div:nth-child(4) {
  text-align: center;
}

.ticket-row {
  position: relative;
  min-height: 76px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  transition: background-color 0.2s ease;
  padding-left: 0;
  animation: rowFadeIn 0.3s ease backwards;
}

.ticket-row:nth-child(1) { animation-delay: 0.05s; }
.ticket-row:nth-child(2) { animation-delay: 0.1s; }
.ticket-row:nth-child(3) { animation-delay: 0.15s; }
.ticket-row:nth-child(4) { animation-delay: 0.2s; }
.ticket-row:nth-child(5) { animation-delay: 0.25s; }

@keyframes rowFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ticket-row:hover {
  background: #fafbfc;
}

.ticket-row.is-selected {
  background: #fff8f4;
}

.ticket-row.is-upcoming,
.ticket-row.is-ended {
  color: #85888e;
}

.ticket-row-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-cn);
  font-size: 15.5px;
  line-height: 1.3;
}

.ticket-info {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid var(--brand);
  border-radius: 50%;
  color: var(--brand);
  font-family: var(--ff-mono);
  font-size: 12px;
  line-height: 1;
  cursor: help;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ticket-info:hover {
  background: var(--brand);
  color: #fff;
}

.ticket-tooltip {
  position: absolute;
  z-index: 20;
  top: 30px;
  left: -36px;
  display: none;
  width: min(320px, 72vw);
  padding: 11px 13px;
  border: 1px solid var(--brand);
  border-radius: 3px;
  background: #fff8f4;
  color: #5f636b;
  font-family: var(--ff-sans);
  font-size: 13.5px;
  line-height: 1.65;
  box-shadow: 0 12px 28px rgba(26, 31, 58, 0.12);
  animation: tooltipFadeIn 0.18s ease;
}

@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.ticket-tooltip::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 40px;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--brand);
  border-left: 1px solid var(--brand);
  background: #fff8f4;
  transform: rotate(45deg);
}

.ticket-info:hover .ticket-tooltip,
.ticket-info:focus .ticket-tooltip {
  display: block;
}

.ticket-row-price strong {
  color: var(--brand);
  font-family: var(--ff-cn);
  font-size: 15.5px;
  line-height: 1;
}

.ticket-row-price del {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 12px;
}

.ticket-row.is-upcoming .ticket-row-price strong,
.ticket-row.is-ended .ticket-row-price strong {
  color: #85888e;
}

.ticket-row-deadline {
  font-size: 15.5px;
}

.ticket-row-status {
  color: #85888e;
  font-size: 15.5px;
}

.ticket-stepper {
  display: inline-grid;
  grid-template-columns: 24px 30px 24px;
  align-items: center;
  gap: 7px;
  justify-self: center;
}

.ticket-stepper button,
.ticket-stepper span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  color: var(--ink);
  font-weight: 700;
}

.ticket-stepper button {
  width: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  line-height: 0;
  padding: 0 0 1px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.ticket-stepper button:hover:not(:disabled) {
  background: var(--brand-deep);
  transform: scale(1.1);
}

.ticket-stepper button:active:not(:disabled) {
  transform: scale(0.92);
}

.ticket-stepper button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.ticket-stepper span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.ticket-checkout-panel {
  display: grid;
  justify-items: end;
  gap: 16px;
  min-height: 220px;
  padding: 28px 42px 34px;
  background: linear-gradient(180deg, #fbfcfe 0%, #fff 40%);
}

.ticket-coupon-box {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.ticket-coupon {
  color: var(--brand);
  font-size: 14.5px;
}

.ticket-coupon:hover {
  color: var(--brand-deep);
}

.ticket-coupon-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ticket-coupon-form input {
  width: 180px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
}

.ticket-coupon-form button {
  flex: 0 0 auto;
  height: 34px;
  min-width: 64px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.ticket-coupon-applied {
  color: #15803d;
  font-size: 13px;
  font-weight: 600;
}

.ticket-total-box span {
  color: #526079;
  font-size: 14px;
}

.ticket-total-box strong {
  color: var(--brand);
  font-family: var(--ff-cn);
  font-size: 36px;
  line-height: 1;
}

.ticket-submit-main {
  display: flex;
  width: 220px;
  height: 54px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
}

.ticket-submit-main:hover:not(:disabled) {
  background: var(--brand-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.ticket-submit-main:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.ticket-submit-main:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.buyer-card .ticket-form {
  max-width: 920px;
  padding: 0 24px 28px;
}

.buyer-card {
  scroll-margin-top: 88px;
}

.ticket-form {
  display: grid;
  gap: 16px;
}

.ticket-field label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
}

.ticket-field input,
.ticket-field textarea,
.ticket-field select {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ticket-field input:focus,
.ticket-field textarea:focus,
.ticket-field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

.ticket-field input::placeholder {
  color: #a0a8b5;
}

input[name$="_company"],
input[name$="_title"] {
  -webkit-text-security: none !important;
}

.ticket-field.has-error label {
  color: #dc2626;
}

.ticket-field.has-error input,
.ticket-field.has-error select {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.11);
}

.ticket-field-error {
  margin-top: 6px;
  color: #dc2626;
  font-size: 12.5px;
  line-height: 1.5;
}

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

.ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.attendee-tools {
  display: grid;
  gap: 12px;
  padding-top: 22px;
}

.bulk-entry {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.bulk-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 107, 53, 0.5);
  border-radius: 7px;
  background: #fffaf7;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.bulk-toggle:hover {
  border-color: var(--brand);
  background: #fff2eb;
}

.bulk-hint {
  color: var(--muted);
  font-size: 12.5px;
}

.bulk-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfcfe;
}

.bulk-panel textarea {
  min-height: 92px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.bulk-panel button {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.attendee-card {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: visible;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.attendee-card.is-open {
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.08);
}

.attendee-card-head {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 8px 8px 0 0;
  text-align: left;
  background: #fff;
  background-clip: padding-box;
}

.attendee-card-head span {
  color: var(--ink);
  font-weight: 700;
}

.attendee-card-head strong {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendee-card-head em {
  color: var(--brand);
  font-size: 13px;
}

.attendee-card.is-open .attendee-card-head {
  border-bottom: 1px solid var(--line-soft);
  background: #fbfcfe;
}

.attendee-card-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  padding: 22px 18px 24px;
  border-radius: 0 0 8px 8px;
  background-clip: padding-box;
  animation: cardBodyFadeIn 0.22s ease;
}

@keyframes cardBodyFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.attendee-card-body .ticket-field:first-child,
.attendee-card-body .ticket-field:nth-child(2),
.attendee-card-body .ticket-field:nth-child(3),
.attendee-card-body .ticket-field:nth-child(4),
.attendee-card-body .ticket-field:nth-child(5) {
  max-width: 420px;
}

.required-mark {
  margin-left: 6px;
  color: #ef4444;
}

.phone-field {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
}

.phone-country {
  position: relative;
}

.phone-country-toggle::before,
.phone-country-toggle::after {
  position: absolute;
  right: 10px;
  z-index: 1;
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  content: '';
  pointer-events: none;
}

.phone-country-toggle::before {
  top: calc(50% - 7px);
  border-bottom: 5px solid #8c96a3;
}

.phone-country-toggle::after {
  top: calc(50% + 3px);
  border-top: 5px solid #8c96a3;
}

.phone-country-toggle {
  position: relative;
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 9px 25px 9px 12px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
}

.phone-country-toggle:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

.country-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: grid;
  width: 204px;
  max-height: 176px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(26, 31, 58, 0.16);
}

.country-menu[hidden] {
  display: none;
}

.country-option {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  text-align: left;
}

.country-option span:first-child {
  color: inherit;
}

.country-option span:last-child {
  color: #505968;
}

.country-option:hover,
.country-option.is-selected {
  background: #fff2eb;
  color: var(--brand-deep);
  font-weight: 700;
}

.country-option:hover span:last-child,
.country-option.is-selected span:last-child {
  color: inherit;
}

.phone-country-toggle + input[type="hidden"] {
  display: none;
}

.phone-field input {
  border-radius: 0 8px 8px 0;
}

.ticket-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.ticket-btn:hover {
  background: var(--brand-deep);
}

.ticket-btn.secondary {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.ticket-btn.secondary:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

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

.ticket-test-summary {
  display: none;
}

.ticket-test-summary h2 {
  font-family: var(--ff-cn);
  font-size: 20px;
  line-height: 1.3;
}

.summary-empty,
.ticket-test-loading,
.ticket-test-empty,
.ticket-test-error {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.ticket-test-empty {
  padding: 24px;
}

.ticket-test-error {
  color: #b91c1c;
}

.ticket-inline-error {
  padding: 14px 24px 0;
}

.summary-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 12px;
  color: #526079;
  font-size: 13.5px;
}

.summary-list strong {
  color: var(--ink);
  text-align: right;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  color: var(--ink);
  font-weight: 700;
}

.summary-total strong {
  color: var(--brand);
  font-size: 24px;
}

.summary-submit {
  width: 100%;
  margin-top: 20px;
}

.order-confirm {
  display: grid;
  gap: 20px;
  padding: 22px 24px 24px;
}

.order-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 0;
}

.order-meta span:first-child {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.order-meta strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-family: var(--ff-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.order-section h3 {
  color: var(--ink);
  font-size: 15px;
}

.order-overview {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 16px;
  border-radius: 8px;
  background: #f8fafc;
}

.order-overview > div {
  display: grid;
  gap: 3px;
}

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

.order-overview > div > strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.order-overview-total {
  justify-items: end;
  flex: 0 0 auto;
}

.order-overview .order-overview-total strong {
  color: var(--brand);
  font-size: 20px;
  line-height: 1.1;
}

.order-attendees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
  gap: 10px;
  margin-top: 10px;
}

.order-attendee {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  row-gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.order-attendee strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.order-attendee > span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.order-attendee p {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.payment-panel {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
}

.payment-success-banner {
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:22px;
  padding:15px 16px;
  border:1px solid #cfe9d8;
  border-radius:10px;
  background:#f4fbf6;
}

.payment-success-mark {
  display:grid;
  flex:0 0 auto;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#28a65b;
  color:#fff;
  font-size:16px;
  font-weight:800;
}

.payment-success-banner strong { color:#1f6d3b; font-size:15px; }
.payment-success-banner p { margin-top:3px; color:#557262; font-size:12.5px; line-height:1.5; }

.payment-complete-page {
  display: grid;
  gap: 0;
}

.payment-complete-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 32px 28px;
  text-align: center;
}

.payment-complete-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #22ad5c;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(34, 173, 92, .18);
}

.payment-complete-hero h2 {
  color: var(--ink);
  font-size: 26px;
  line-height: 1.25;
}

.payment-complete-hero p {
  max-width: 520px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.payment-complete-actions {
  padding: 0 32px 32px;
}

.payment-complete-actions .invoice-entry {
  max-width: 100%;
  margin: 0 auto;
}

.ticket-payment-container { max-width:980px; }
.ticket-payment-widget { width:100%; }
.payment-checkout-page { overflow:hidden; }
.payment-checkout-head { display:grid; gap:22px; padding:28px 32px; border-bottom:1px solid var(--line); background:#fff; }
.payment-checkout-head > div { display:grid; gap:7px; }
.payment-checkout-kicker { color:var(--brand); font-family:var(--ff-mono); font-size:12px; font-weight:700; letter-spacing:.06em; }
.payment-checkout-head h2 { color:var(--ink); font-family:var(--ff-cn); font-size:28px; line-height:1.25; }
.payment-checkout-head p { max-width:620px; color:var(--muted); font-size:14px; line-height:1.7; }
.payment-checkout-grid { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr); align-items:stretch; }
.payment-modal-order { display:grid; gap:18px; padding:28px; background:#f6f8fb; }
.payment-modal-order h3,.payment-modal-method h3 { color:var(--ink); font-size:17px; }
.payment-modal-title { display:grid; gap:8px; }
.payment-order-code { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; gap:8px; color:var(--muted); font-size:12px; line-height:1.5; }
.payment-order-code span { white-space:nowrap; }
.payment-order-code strong { min-width:0; color:#526079; font-family:var(--ff-mono); font-size:12px; font-weight:500; letter-spacing:.02em; overflow-wrap:anywhere; word-break:break-all; }
.payment-modal-items { display:grid; gap:8px; color:var(--ink); font-size:13px; }
.payment-modal-items div,.payment-modal-total { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.payment-modal-items span { color:#526079; }
.payment-modal-items strong { color:var(--ink); font-size:13px; }
.payment-modal-benefits { display:grid; gap:8px; padding:12px 14px; border-radius:8px; background:#edf3fb; color:#526079; font-size:12.5px; line-height:1.45; }
.payment-modal-benefits span { position:relative; padding-left:15px; }
.payment-modal-benefits span::before { content:""; position:absolute; top:.55em; left:0; width:5px; height:5px; border-radius:50%; background:var(--brand); }
.payment-modal-total { padding-top:4px; }
.payment-modal-total span { color:var(--muted); font-size:13px; }
.payment-modal-total strong { color:var(--brand); font-size:28px; line-height:1; }
.payment-modal-method { position:relative; display:grid; align-content:start; gap:12px; padding:28px; }
.payment-modal-method .payment-option { width:100%; margin-top:4px; }
.payment-modal-method .payment-submit { margin-top:10px; }
.payment-return-hint { color:#64748b; font-size:12.5px; line-height:1.6; text-align:center; }
.payment-attendee-summary { display:grid; gap:10px; padding-top:2px; }
.payment-attendee-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.payment-attendee-head > div { display:grid; gap:3px; }
.payment-attendee-head h3 { font-size:14px; }
.payment-attendee-head span { color:var(--muted); font-size:12px; line-height:1.4; }
.payment-edit-link { display:inline-flex; align-items:center; justify-content:center; min-width:52px; min-height:44px; margin:-8px -10px -8px 0; padding:0 10px; border-radius:8px; color:var(--brand); font-size:13px; font-weight:700; touch-action:manipulation; transition:background-color .2s ease,color .2s ease; }
.payment-edit-link:hover,.payment-edit-link:focus-visible { background:#fff1eb; color:#d94812; }
.payment-attendee-row { overflow:hidden; border:1px solid #e5ebf4; border-radius:8px; background:#fff; }
.payment-attendee-row summary { display:grid; grid-template-columns:auto minmax(0,1fr) 16px; align-items:center; gap:12px; min-height:52px; padding:10px 14px; cursor:pointer; list-style:none; touch-action:manipulation; }
.payment-attendee-row summary::-webkit-details-marker { display:none; }
.payment-attendee-row summary::after { content:""; width:7px; height:7px; border-right:1.5px solid #8996aa; border-bottom:1.5px solid #8996aa; transform:rotate(45deg) translate(-2px,-2px); transition:transform .2s ease; }
.payment-attendee-row[open] summary::after { transform:rotate(225deg) translate(-1px,-1px); }
.payment-attendee-row summary > span { color:var(--muted); font-size:12px; }
.payment-attendee-row summary > strong { overflow:hidden; color:var(--ink); font-size:13.5px; text-align:right; text-overflow:ellipsis; white-space:nowrap; }
.payment-attendee-row[open] summary { border-bottom:1px solid #edf1f6; background:#fbfcfe; }
.payment-attendee-details { display:grid; gap:4px; padding:10px 14px 12px; }
.payment-attendee-details p { color:#526079; font-size:12.5px; line-height:1.5; overflow-wrap:anywhere; }
.payment-modal-error { margin:2px 0 0; color:#b91c1c; font-size:12.5px; line-height:1.5; }
.payment-modal-error[data-tone="pending"] { color:#64748b; }
.wechat-pay-qr { display:grid; grid-template-columns:112px 1fr; align-items:center; gap:14px; margin-top:8px; padding:14px; border:1px solid #dce5f2; border-radius:8px; background:#f8fbff; }
.wechat-pay-qr img { display:block; width:112px; height:112px; border-radius:6px; background:#fff; }
.wechat-pay-qr div { display:grid; gap:5px; }
.wechat-pay-qr strong { color:var(--ink); font-size:14px; }
.wechat-pay-qr span { color:var(--muted); font-size:12.5px; line-height:1.55; }
.payment-mobile-bar { display:none; }

.payment-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.payment-panel-head h3 {
  color: var(--ink);
  font-size: 16px;
}

.payment-panel-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.payment-status {
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.payment-status.is-paid,
.invoice-status {
  color: #16803c;
}

.invoice-entry {
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.invoice-entry-head,
.invoice-entry.is-submitted {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.invoice-entry h3 {
  color: var(--ink);
  font-size: 15px;
}

.invoice-entry p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.ticket-text-btn {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.invoice-modal-backdrop {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 27, 50, 0.42);
}

.invoice-modal {
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(18, 27, 50, 0.24);
}

.invoice-modal-head {
  position: relative;
  flex: 0 0 auto;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}

.invoice-modal-head h3 {
  color: var(--ink);
  font-size: 17px;
}

.invoice-modal-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.invoice-modal-close {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.invoice-modal-close:hover {
  background: #f5f7fb;
  color: var(--ink);
}

body.has-ticket-modal {
  overflow: hidden;
}

.invoice-form {
  display: grid;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 18px 22px 22px;
  border: 0;
}

.invoice-form-topline,
.invoice-choice-grid,
.invoice-fieldset {
  grid-column: 1 / -1;
}

.invoice-form-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}

.wechat-invoice-import {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #16803c;
  font-size: 12.5px;
  font-weight: 700;
}

.wechat-invoice-import img {
  width: 18px;
  height: 18px;
}

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

.invoice-choice-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.invoice-choice {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.invoice-choice.is-selected {
  border-color: var(--brand);
  background: #fff8f4;
}

.invoice-choice-static {
  cursor: default;
}

.invoice-choice strong {
  font-size: 12.5px;
}

.invoice-choice small {
  color: var(--muted);
  font-size: 11.5px;
}

.invoice-fieldset {
  display: flex;
  align-items: center;
  gap: 16px;
}

.invoice-fieldset > span {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}

.invoice-service-select {
  display:grid;
  grid-template-columns:108px minmax(0, 1fr);
  align-items:center;
  gap:16px;
  color:var(--ink);
  font-size:12.5px;
  font-weight:700;
}

.invoice-service-select select {
  width:100%;
  height:36px;
  padding:0 34px 0 11px;
  border:1px solid var(--line);
  border-radius:7px;
  appearance:none;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2376879f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;
  color:var(--ink);
  font:inherit;
  font-size:12.5px;
}

.invoice-service-select select:focus { outline:0; border-color:var(--brand); box-shadow:0 0 0 3px rgba(255,93,31,.1); }

.invoice-radio-group {
  display: flex;
  gap: 8px;
}

.invoice-radio {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.invoice-radio.is-selected {
  border-color: rgba(255, 93, 31, 0.35);
  background: #fff1eb;
  color: var(--brand);
  font-weight: 700;
}

.invoice-settings,
.invoice-details,
.invoice-form-actions,
.invoice-error {
  grid-column:1 / -1;
}

.invoice-settings {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px 20px;
  padding:18px;
  border:1px solid #e8edf4;
  border-radius:9px;
  background:#fafbfd;
}

.invoice-settings-head,
.invoice-setting-type {
  grid-column:1 / -1;
}

.invoice-settings-head,
.invoice-details-head,
.invoice-form-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.invoice-settings h4,
.invoice-details h4 {
  color:var(--ink);
  font-size:14px;
}

.wechat-invoice-import {
  padding:5px 0;
  color:#16803c;
  font-size:12px;
}

.invoice-setting {
  display:grid;
  gap:8px;
  min-width:0;
}

.invoice-setting-label {
  color:#62718a;
  font-size:12px;
  font-weight:700;
}

.invoice-choice-grid { gap:8px; }

.invoice-choice {
  min-height:52px;
  padding:10px 12px;
  border-radius:7px;
}

.invoice-choice strong { font-size:13px; }
.invoice-choice small { font-size:11.5px; }

.invoice-radio-group { gap:0; }

.invoice-radio {
  flex:1;
  min-height:36px;
  padding:0 10px;
  border-radius:0;
  background:#fff;
  font-size:12px;
}

.invoice-radio:first-child { border-radius:7px 0 0 7px; }
.invoice-radio:last-child { margin-left:-1px; border-radius:0 7px 7px 0; }

.invoice-service-select {
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}

.invoice-service-select select { width:100%; height:38px; }

.invoice-details {
  padding:2px 0 0;
}

.invoice-details-head { margin-bottom:12px; }

.invoice-details-head span {
  color:#8996aa;
  font-size:11.5px;
}

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

.invoice-details-grid label {
  display:grid;
  gap:6px;
  color:var(--ink);
  font-size:12px;
  font-weight:700;
}

.invoice-label-text {
  display:inline-flex;
  align-items:center;
  gap:3px;
  width:max-content;
}

.invoice-details-grid label i {
  color:var(--brand);
  font-style:normal;
}

.invoice-details-grid input {
  height:38px;
  border-radius:7px;
}

.invoice-phone-control {
  grid-template-columns:76px minmax(0,1fr);
  width:100%;
  max-width:none;
}

.invoice-phone-control .phone-country-toggle,
.invoice-phone-control input {
  min-height:38px;
  height:38px;
}

.invoice-phone-control input {
  min-width:0;
}

.invoice-form-actions {
  margin-top:2px;
  padding-top:16px;
  border-top:1px solid var(--line-soft);
}

.invoice-form-actions > span {
  color:#8996aa;
  font-size:11.5px;
  line-height:1.5;
}

.invoice-submit {
  flex:0 0 auto;
  min-width:112px;
  min-height:40px;
  margin:0;
}

.wechat-invoice-qr-backdrop {
  position:fixed;
  z-index:10030;
  inset:0;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(18,27,50,.48);
}

.wechat-invoice-qr-modal {
  position:relative;
  display:grid;
  justify-items:center;
  width:min(350px,100%);
  padding:30px 30px 26px;
  border-radius:10px;
  background:#fff;
  box-shadow:0 24px 64px rgba(18,27,50,.28);
  text-align:center;
}

.wechat-invoice-qr-modal .invoice-modal-close { position:absolute; top:12px; right:12px; }
.wechat-invoice-qr-logo { width:106px; height:auto; margin-bottom:16px; }
.wechat-invoice-qr-modal h3 { color:var(--ink); font-size:17px; }
.wechat-invoice-qr-modal p { margin-top:8px; color:var(--muted); font-size:12.5px; line-height:1.65; }
.wechat-invoice-qr-code { display:grid; place-items:center; width:184px; height:184px; margin:18px 0 10px; padding:9px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.wechat-invoice-qr-code img { display:block; width:100%; height:100%; object-fit:contain; }
.wechat-invoice-qr-code span { color:#8996aa; font-size:12px; }
.wechat-invoice-qr-modal small { color:#8996aa; font-size:11.5px; }
.wechat-invoice-qr-modal .wechat-invoice-error { color:#b91c1c; }
.wechat-invoice-return { min-width:128px; min-height:38px; margin-top:20px; padding:0 18px; border:1px solid var(--brand); border-radius:999px; color:var(--brand); background:#fff; font-size:13px; font-weight:700; }
.wechat-invoice-return:hover { background:#fff3ed; }

.invoice-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}

.invoice-form input {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
}

.invoice-form input:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 93, 31, 0.1);
}

.invoice-error {
  grid-column: 1 / -1;
  margin: 0 !important;
  color: #d14343 !important;
}

.invoice-submit {
  grid-column: 1 / -1;
  justify-self: start;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.payment-option:hover,
.payment-option.is-selected {
  border-color: var(--brand);
  background: #fff8f4;
}

.payment-option > span:last-child {
  display: grid;
  gap: 2px;
}

.payment-option strong {
  color: var(--ink);
  font-size: 13.5px;
}

.payment-option small {
  color: var(--muted);
  font-size: 11.5px;
}

.payment-logo {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.payment-notice {
  margin-top: 12px;
  padding: 9px 10px;
  border-radius: 6px;
  background: #fff2eb;
  color: #9a3412;
  font-size: 12.5px;
  line-height: 1.6;
}

.payment-submit {
  width: 100%;
  margin-top: 16px;
}

@media (max-width: 960px) {
  .ticket-test-hero-grid,
  .ticket-test-layout {
    grid-template-columns: 1fr;
  }

  .ticket-test-summary {
    position: static;
  }

}

@media (max-width: 640px) {
  .ticket-success-main {
    align-items: start;
    padding: 92px 0 32px;
  }

  .ticket-success-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .ticket-test-hero {
    padding: 108px 0 48px;
  }

  .ticket-test-main {
    padding: 32px 0 52px;
  }

  .ticket-test-steps {
    display: none;
  }

  .ticket-test-steps-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    margin: 0 0 20px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--muted);
    box-shadow: 0 8px 22px rgba(26, 31, 58, 0.05);
    font-size: 13px;
  }

  .ticket-test-steps-mobile strong {
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .ticket-test-steps-mobile span {
    margin-left: auto;
    color: var(--ink);
    font-weight: 700;
  }

  .ticket-step {
    justify-content: flex-start;
    padding: 0 12px;
    font-size: 12px;
  }

  .ticket-step-num {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .ticket-step-text {
    font-size: 12px;
  }

  .ticket-widget-head,
  .buyer-card .ticket-form,
  .ticket-test-summary,
  .ticket-test-event {
    padding: 18px;
  }

  .ticket-select-widget {
    border-radius: 0;
    overflow: hidden;
  }

  .ticket-select-head {
    padding: 18px 16px;
    background: #fff;
  }

  .ticket-list-head {
    display: none;
  }

  .ticket-list {
    display: grid;
    gap: 0;
    padding: 0;
    background: #fff;
  }

  .ticket-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name action"
      "price action"
      "deadline action";
    gap: 2px 12px;
    min-height: 0;
    margin: 0;
    padding: 16px;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    box-shadow: none;
  }

  .ticket-row > div {
    padding: 0;
  }

  .ticket-row:hover {
    background: #fff;
  }

  .ticket-row.is-selected {
    background: #fffaf7;
  }

  .ticket-row-name {
    grid-area: name;
    gap: 6px;
    align-self: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
  }

  .ticket-row-price {
    grid-area: price;
  }

  .ticket-row-price strong {
    font-size: 21px;
    line-height: 1.15;
  }

  .ticket-row-price del {
    margin-top: 4px;
  }

  .ticket-row-deadline {
    grid-area: deadline;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
  }

  .ticket-stepper,
  .ticket-row-status {
    grid-area: action;
    align-self: center;
    justify-self: end;
  }

  .ticket-row-status {
    min-width: 56px;
    padding: 0;
    background: transparent;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
  }

  .ticket-stepper {
    grid-template-columns: 44px 24px 44px;
    width: auto;
    gap: 8px;
  }

  .ticket-stepper button,
  .ticket-stepper span {
    height: 44px;
  }

  .ticket-stepper button {
    width: 44px;
    border: 6px solid transparent;
    background-clip: padding-box;
    font-size: 19px;
    touch-action: manipulation;
  }

  .ticket-stepper button:hover:not(:disabled) {
    transform: none;
  }

  .ticket-stepper button:active:not(:disabled) {
    transform: scale(0.96);
  }

  .ticket-stepper span {
    font-size: 17px;
  }

  .ticket-info {
    display: none;
  }

  .buyer-card .ticket-form {
    max-width: none;
    padding: 0;
    gap: 0;
  }

  .buyer-card .ticket-widget-head {
    padding: 18px 16px 16px;
  }

  .attendee-tools {
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line-soft);
  }

  .bulk-entry {
    display: block;
  }

  .bulk-toggle {
    min-height: 44px;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .bulk-toggle:hover {
    border-color: transparent;
    background: transparent;
    color: var(--brand-deep);
  }

  .bulk-hint {
    line-height: 1.45;
  }

  .bulk-panel {
    padding: 12px 0 4px;
    border: 0;
    border-top: 1px solid var(--line-soft);
    border-radius: 0;
    background: transparent;
  }

  .attendee-card {
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }

  .attendee-card.is-open {
    border-color: var(--line-soft);
    box-shadow: none;
  }

  .buyer-card.is-single-attendee .attendee-tools {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .attendee-card.is-single {
    border-bottom: 0;
  }

  .attendee-card.is-single .attendee-card-body {
    padding-top: 8px;
  }

  .attendee-card-body {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 16px 22px;
    border-radius: 0;
  }

  .attendee-card-body .ticket-field {
    max-width: none !important;
  }

  .attendee-card-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 58px;
    padding: 0 16px;
    border-radius: 0;
  }

  .attendee-card-head strong {
    grid-column: auto;
    grid-row: auto;
  }

  .attendee-card.is-open .attendee-card-head {
    background: #fff;
  }

  .buyer-card .ticket-actions {
    padding: 16px;
  }

  .buyer-card .ticket-actions .ticket-btn {
    width: 100%;
  }

  .ticket-checkout-panel {
    margin-top: 0;
    min-height: 0;
    gap: 14px;
    padding: 16px 18px 20px;
    justify-items: stretch;
    border-top: 1px solid var(--line-soft);
    background: #fff;
  }

  .ticket-coupon-box {
    justify-items: start;
  }

  .ticket-coupon-form {
    width: 100%;
  }

  .ticket-coupon-form input {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 44px;
  }

  .ticket-coupon-form button {
    height: 44px;
    min-width: 64px;
  }

  .ticket-total-box {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px;
  }

  .ticket-total-box strong {
    font-size: 32px;
  }

  .ticket-submit-main {
    width: 100%;
    margin: 2px 0 0;
  }

  .payment-panel {
    padding: 16px;
  }

  .payment-complete-hero {
    padding: 38px 18px 30px;
  }

  .payment-complete-mark {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }

  .payment-complete-actions {
    padding: 0 18px 22px;
  }

  .ticket-payment-main { padding:88px 0 calc(112px + env(safe-area-inset-bottom)); }
  .ticket-payment-container { padding-right:12px; padding-left:12px; }
  .payment-checkout-page { overflow:visible; }
  .payment-checkout-head { gap:0; padding:18px 18px 16px; }
  .payment-checkout-head > div { gap:5px; }
  .payment-checkout-head h2 { font-size:23px; }
  .payment-checkout-head p { font-size:13px; line-height:1.6; }
  .payment-checkout-grid { grid-template-columns:1fr; }
  .payment-modal-order { gap:14px; padding:16px; }
  .payment-modal-method { gap:10px; padding:16px; }
  .payment-modal-method { border-top:1px solid var(--line); }
  .payment-modal-title { gap:7px; }
  .payment-modal-title h3 { font-size:15px; }
  .payment-order-code { grid-template-columns:1fr; gap:2px; }
  .payment-order-code strong { letter-spacing:0; }
  .payment-modal-benefits { display:none; }
  .payment-modal-total { display:none; }
  .payment-attendee-head h3 { font-size:15px; }
  .payment-attendee-row summary { min-height:56px; }
  .payment-modal-method .payment-option { min-height:54px; margin-top:0; }
  .payment-modal-method .payment-submit,.payment-return-hint { display:none; }
  .wechat-pay-qr { grid-template-columns:92px 1fr; }
  .wechat-pay-qr img { width:92px; height:92px; }
  .payment-mobile-bar { position:fixed; z-index:10010; right:0; bottom:0; left:0; display:grid; grid-template-columns:minmax(0,1fr) minmax(144px,44%); align-items:center; gap:16px; padding:10px 16px calc(10px + env(safe-area-inset-bottom)); border-top:1px solid #e1e6ee; background:rgba(255,255,255,.96); box-shadow:0 -10px 30px rgba(18,27,50,.10); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); }
  .payment-mobile-bar > div { display:grid; gap:2px; min-width:0; }
  .payment-mobile-bar span { color:var(--muted); font-size:12px; }
  .payment-mobile-bar strong { color:var(--brand); font-size:22px; font-variant-numeric:tabular-nums; line-height:1.15; }
  .payment-mobile-bar .ticket-btn { width:100%; min-height:50px; margin:0; padding:0 14px; border-radius:999px; font-size:15px; }

  .payment-options {
    grid-template-columns: 1fr;
  }

  .order-confirm {
    padding: 18px;
  }

  .order-attendees {
    grid-template-columns: 1fr;
  }

  .invoice-entry-head,
  .invoice-entry.is-submitted {
    align-items: flex-start;
  }

  .invoice-form {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .invoice-choice-grid {
    grid-template-columns: 1fr;
  }

  .invoice-settings,
  .invoice-details-grid {
    grid-template-columns:1fr;
  }

  .invoice-settings { gap:14px; padding:16px; }
  .invoice-details-grid .invoice-phone-field { grid-column:auto; }

  .invoice-form-actions {
    align-items:stretch;
    flex-direction:column;
  }

  .invoice-submit { width:100%; }

  .invoice-form-topline,
  .invoice-fieldset {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .invoice-service-select select { height:38px; }

  .invoice-service-select select,
  .invoice-phone-control { max-width:none; width:100%; }

  .invoice-modal-backdrop {
    display: flex;
    align-items: flex-end;
    padding: max(8px, env(safe-area-inset-top)) 0 0;
  }

  .invoice-modal {
    width: 100%;
    max-height: calc(100vh - 8px);
    max-height: calc(100dvh - max(8px, env(safe-area-inset-top)));
    border-radius: 14px 14px 0 0;
  }

  .invoice-modal-head {
    padding: 12px 12px 10px 16px;
    box-shadow: 0 1px 0 var(--line-soft);
  }

  .invoice-modal-head h3 { font-size:16px; }

  .invoice-modal-close {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #f8fafc;
  }

  .invoice-form {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  /* 测试流程页移动端：隐藏 hero 大标题，减少首屏信息 */
  .ticket-page[data-ticket-page] .ticket-hero h1 {
    display: none;
  }

  .ticket-page[data-ticket-page="select"] .ticket-hero {
    padding-top: 84px;
  }

  /* 选票页移动端：结算栏吸底，合计与报名按钮始终可见 */
  .ticket-page[data-ticket-page="select"] .ticket-checkout-panel {
    position: fixed;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 12px;
    z-index: 9000;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px 10px;
    padding: 14px 18px;
    border: 1px solid #e1e6ee;
    border-radius: 20px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 10px 36px rgba(18, 27, 50, .14);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  /* 优惠码入口放在报名按钮左侧，展开后的输入框独占一行 */
  .ticket-page[data-ticket-page="select"] .ticket-coupon-box {
    display: contents;
  }

  .ticket-page[data-ticket-page="select"] .ticket-total-box {
    grid-column: 1;
    grid-row: 1;
    gap: 7px;
  }

  .ticket-page[data-ticket-page="select"] .ticket-coupon {
    grid-column: 2;
    grid-row: 1;
    font-size: 13.5px;
    white-space: nowrap;
  }

  .ticket-page[data-ticket-page="select"] .ticket-submit-main {
    grid-column: 3;
    grid-row: 1;
  }

  .ticket-page[data-ticket-page="select"] .ticket-coupon-form,
  .ticket-page[data-ticket-page="select"] .ticket-coupon-applied {
    grid-column: 1 / -1;
  }

  .ticket-page[data-ticket-page="select"] .ticket-total-box strong {
    font-size: 23px;
  }

  .ticket-page[data-ticket-page="select"] .ticket-total-box span {
    font-size: 13px;
  }

  .ticket-page[data-ticket-page="select"] .ticket-submit-main {
    width: auto;
    height: 46px;
    margin: 0;
    padding: 0 22px;
    font-size: 15px;
  }

  .ticket-page[data-ticket-page="select"] .ticket-main {
    padding-bottom: 210px;
  }
}
