/* 独立收银台 — 样式源自 Checkout.vue */
.checkout-page {
  min-height: 100vh;
  background: #fff;
  color: #333;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.site-header {
  border-bottom: 1px solid #ebebeb;
  padding: 18px 24px;
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5c518;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #111;
}

.header-checkout {
  font-size: 15px;
  color: #555;
}

.steps-wrap {
  padding: 28px 24px 8px;
  border-bottom: 1px solid #f0f0f0;
}

.steps-inner {
  max-width: 680px;
  margin: 0 auto;
}

.step-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 10px;
}

.track-line {
  position: absolute;
  top: 14px;
  height: 3px;
  z-index: 0;
}

.track-done {
  left: calc(16.66% + 14px);
  right: 50%;
  background: #7fb800;
}

.track-pending {
  left: 50%;
  right: calc(16.66% + 14px);
  background: #e0e0e0;
}

.step-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 33.33%;
  text-align: center;
}

.node-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: #e8e8e8;
  color: #888;
  border: 2px solid #e8e8e8;
}

.step-node.done .node-circle {
  background: #7fb800;
  border-color: #7fb800;
  color: #fff;
}

.step-node.active .node-circle {
  background: #333;
  border-color: #333;
  color: #fff;
}

.node-label {
  font-size: 12px;
  color: #999;
  max-width: 120px;
  line-height: 1.3;
}

.step-node.done .node-label { color: #7fb800; font-weight: 600; }
.step-node.active .node-label { color: #333; font-weight: 600; }

.checkout-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
  gap: 48px;
  align-items: start;
}

.section-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  color: #222;
}

.section-gap {
  margin-top: 28px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.label-text {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.req {
  color: #e2401c;
  margin-right: 2px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  font-size: 14px;
  color: #333;
  background: #fff;
  border: 1px solid #e8ddd0;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #d4b896;
  box-shadow: 0 0 0 1px rgba(212, 184, 150, 0.35);
}

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

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.order-card {
  margin-bottom: 24px;
}

.order-items {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.order-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.item-thumb {
  width: 48px;
  height: 48px;
  background: #ececec;
  border-radius: 2px;
}

.item-name {
  font-size: 14px;
  color: #444;
}

.item-price {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}

.order-totals {
  background: #f7f7f7;
  border-radius: 4px;
  padding: 14px 16px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: #555;
}

.total-row.grand {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid #e8e8e8;
}

.payment-card {
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 20px 18px 18px;
  background: #fff;
}

.pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  margin-bottom: 8px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.pay-row.selected {
  border-color: #d4b896;
  background: #fffcf8;
}

.pay-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.pay-left input[type='radio'] {
  accent-color: #f5c518;
  width: 16px;
  height: 16px;
}

.paypal-logo {
  font-size: 16px;
  font-weight: 800;
  font-style: italic;
  color: #003087;
}

.card-logos {
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: 10px;
  row-gap: 8px;
  justify-items: center;
}

.card-logos img {
  height: 24px;
  max-width: 38px;
  object-fit: contain;
}

.brand-icon-single img {
  height: 20px;
  max-width: 32px;
  object-fit: contain;
}

.card-panel {
  margin: 12px 0 16px;
  padding-top: 4px;
}

.secure-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: #666;
}

.bank-card-heading {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.input-with-icons {
  position: relative;
}

.input-with-icons input {
  padding-right: 12px;
}

.input-with-icons.has-brand-icon input {
  padding-right: 52px;
}

.input-with-icons.has-cvc-hint input {
  padding-right: 44px;
}

.input-with-icons.has-reject-flash input {
  padding-right: 40px;
  color: #ea5455;
  border-color: #ea5455;
  box-shadow: 0 0 0 1px rgba(234, 84, 85, 0.2);
}

.inline-icons {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.card-reject-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ea5455;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.cvc-hint svg {
  width: 32px;
  height: 20px;
  opacity: 0.7;
}

.input-invalid {
  border-color: #ea5455 !important;
  box-shadow: 0 0 0 1px rgba(234, 84, 85, 0.2);
}

.field-error {
  margin: 6px 0 0;
  font-size: 12px;
  color: #ea5455;
  line-height: 1.4;
}

.privacy-note {
  margin: 16px 0;
  font-size: 12px;
  color: #888;
  line-height: 1.6;
}

.place-order-btn {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 4px;
  background: #7fb800;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}

.place-order-btn:hover {
  background: #6fa300;
}

.place-order-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

.trust-item {
  font-size: 10px;
  color: #999;
}

.trust-pay {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 2px;
  color: #fff;
}

.trust-pay.visa { background: #1a1f71; }
.trust-pay.mc { background: #eb001b; }
.trust-pay.pp { background: #003087; font-style: italic; }

.testimonial-card {
  margin-top: 24px;
  padding: 18px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 4px;
}

.testimonial-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.testimonial-text {
  margin: 0 0 8px;
  font-size: 13px;
  color: #666;
  font-style: italic;
  line-height: 1.6;
}

.testimonial-author {
  margin: 0;
  font-size: 12px;
  color: #999;
}

.hidden { display: none !important; }

/* 处理页 */
.processing-screen {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.processing-inner {
  width: min(92vw, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 8vw, 48px);
}

.progress-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.progress-track {
  width: min(88vw, 360px);
  height: 10mm;
  min-height: 10mm;
  background: #e8e4f3;
  transform: skewX(-14deg);
  overflow: hidden;
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.progress-track.waiting .progress-fill {
  animation: progress-pulse 1.6s ease-in-out infinite;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #5b6fd8 0%, #6b5ce7 55%, #7c6cf0 100%);
  transition: width 0.12s linear;
  border-radius: 1px;
}

@keyframes progress-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.brand-logo img {
  height: clamp(56px, 12vw, 110px);
  max-width: min(85vw, 320px);
  object-fit: contain;
}

.waiting-hint {
  margin: 12px 0 0;
  font-size: 14px;
  color: #666;
  text-align: center;
}

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6000;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  max-width: 90vw;
}

.toast-warning { background: #fff8e6; color: #8a6d00; border: 1px solid #ffe58f; }
.toast-error { background: #fff5f5; color: #c0392b; border: 1px solid #ea5455; }

@media (max-width: 960px) {
  .checkout-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .field-row-2 {
    grid-template-columns: 1fr;
  }
}
