:root {
  --pay-bg: #f4f7fb;
  --pay-surface: rgba(255, 255, 255, 0.82);
  --pay-surface-strong: #ffffff;
  --pay-surface-muted: rgba(248, 250, 253, 0.92);
  --pay-line: #dbe3ef;
  --pay-text: #0f172a;
  --pay-muted: #64748b;
  --pay-primary: #2563eb;
  --pay-primary-strong: #1d4ed8;
  --pay-secondary: #0f766e;
  --pay-accent: #f97316;
  --pay-danger: #ef4444;
  --pay-shadow-lg: 0 28px 64px rgba(15, 23, 42, 0.12);
  --pay-shadow-md: 0 16px 34px rgba(15, 23, 42, 0.08);
  --pay-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
  --pay-radius-2xl: 34px;
  --pay-radius-xl: 26px;
  --pay-radius-lg: 20px;
  --pay-radius-md: 14px;
}

body.pay-page {
  font-family: "Aptos", "Segoe UI Variable Text", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  min-height: 100vh;
  color: var(--pay-text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 20%),
    linear-gradient(180deg, #f8fbff 0%, #eff4fb 44%, #f7f8fc 100%);
}

body.pay-page.pay-standalone {
  padding-bottom: 48px;
}

body.pay-page.pay-embedded {
  padding: 20px;
  min-height: auto;
}

.pay-page .wrapper {
  background: transparent;
}

.pay-page .header {
  left: 18px;
  right: 18px;
  top: 18px;
  height: 70px;
  padding: 0 22px;
  border-radius: 24px;
  background: rgb(0 0 0 / 72%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
}

.pay-page .header a {
  color: var(--pay-text);
}

.pay-page .header .header-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-left: 10px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--pay-line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--pay-text);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pay-page .header .header-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.pay-shell {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
}

.pay-page.pay-standalone .pay-shell {
  padding-top: 118px;
}

.pay-page.pay-embedded .pay-shell {
  width: min(1100px, 100%);
  padding-top: 0;
}

.pay-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 24px 28px 26px;
  border-radius: var(--pay-radius-2xl);
  background:
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.18), transparent 24%),
    linear-gradient(135deg, #081121 0%, #11233f 52%, #1f4aa4 100%);
  box-shadow: 0 30px 68px rgba(15, 23, 42, 0.22);
  color: #f8fbff;
}

.pay-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 28%),
    radial-gradient(circle at bottom left, rgba(249, 115, 22, 0.12), transparent 24%);
  pointer-events: none;
}

.pay-hero > * {
  position: relative;
  z-index: 1;
}

.pay-hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.pay-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.pay-hero p {
  max-width: 680px;
  margin: 10px 0 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 14px;
  line-height: 1.8;
}

.pay-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pay-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(248, 250, 252, 0.92);
  font-size: 13px;
  font-weight: 600;
}

.pay-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.pay-surface,
.pay-summary-card,
.pay-note-card {
  border-radius: var(--pay-radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: var(--pay-surface);
  box-shadow: var(--pay-shadow-lg);
  backdrop-filter: blur(18px);
}

.pay-surface {
  padding: 20px;
}

.pay-tabs .layui-tab-title {
  position: static;
  display: inline-flex;
  gap: 8px;
  height: auto;
  padding: 6px;
  border: none;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.92);
}

.pay-tabs .layui-tab-title li {
  min-width: 0;
  height: 42px;
  line-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--pay-muted);
  font-size: 13px;
  font-weight: 700;
}

.pay-tabs .layui-tab-title .layui-this {
  background: #ffffff;
  color: var(--pay-primary-strong);
  box-shadow: var(--pay-shadow-sm);
}

.pay-tabs .layui-tab-title .layui-this::after,
.pay-tabs .layui-tab-brief > .layui-tab-more li.layui-this::after,
.pay-tabs .layui-tab-brief > .layui-tab-title .layui-this::after {
  border: none !important;
}

.pay-tabs .layui-tab-content {
  padding: 18px 0 0;
}

.pay-section {
  margin-bottom: 18px;
}

.pay-section:last-child {
  margin-bottom: 0;
}

.pay-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pay-section-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pay-section-head p {
  margin: 0;
  color: var(--pay-muted);
  font-size: 12px;
  line-height: 1.7;
}

.pay-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(247, 250, 253, 0.88);
  border: 1px solid rgba(219, 227, 239, 0.72);
}

.pay-field label,
.pay-inline-label {
  display: block;
  margin-bottom: 8px;
  color: var(--pay-muted);
  font-size: 13px;
  font-weight: 700;
}

.pay-page .layui-input,
.pay-card-input,
.pay-money-display {
  height: 46px;
  line-height: 46px;
  border-radius: var(--pay-radius-md);
  border: 1px solid var(--pay-line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--pay-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.pay-page .layui-input:focus,
.pay-card-input:focus {
  border-color: rgba(37, 99, 235, 0.36) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.pay-money-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-weight: 700;
}

.pay-money-display strong {
  font-size: 24px;
  line-height: 1;
  color: var(--pay-primary-strong);
  letter-spacing: -0.04em;
}

.pay-money-display span {
  color: var(--pay-muted);
  font-size: 12px;
}

.pay-radio-hidden {
  display: none;
}

.pay-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pay-card-grid.pay-method-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.pay-option {
  position: relative;
  width: 100%;
  min-height: 168px;
  padding: 16px 16px 14px;
  border: 1px solid var(--pay-line);
  border-radius: var(--pay-radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 253, 0.92) 100%);
  text-align: left;
  box-shadow: var(--pay-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pay-option:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: var(--pay-shadow-md);
}

.pay-option.is-active {
  border-color: rgba(37, 99, 235, 0.32);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(238, 244, 255, 0.98) 100%);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.14);
}

.pay-option[data-group="假人程序"] .pay-option-badge {
  background: rgba(15, 118, 110, 0.12);
  color: var(--pay-secondary);
}

.pay-option[data-group="假人程序"].is-active {
  border-color: rgba(15, 118, 110, 0.24);
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 251, 248, 0.98) 100%);
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.12);
}

.pay-option-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pay-option-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--pay-primary-strong);
  font-size: 12px;
  font-weight: 700;
}

.pay-option.is-active .pay-option-badge {
  background: rgba(37, 99, 235, 0.16);
}

.pay-option-price {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--pay-primary-strong);
}

.pay-option strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.pay-option span {
  display: block;
  margin-top: 4px;
  color: var(--pay-muted);
  font-size: 13px;
  line-height: 1.7;
}

.pay-option em {
  display: block;
  margin-top: 10px;
  color: #475569;
  font-style: normal;
  font-size: 12px;
}

.pay-option-flag {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.pay-method-grid .pay-option strong {
  font-size: 16px;
}

.pay-method-grid .pay-option-price {
  font-size: 16px;
  color: var(--pay-secondary);
}

.pay-card-form {
  display: grid;
  gap: 18px;
}

.pay-card-note {
  padding: 16px 18px;
  border-radius: var(--pay-radius-lg);
  border: 1px dashed rgba(37, 99, 235, 0.22);
  background: rgba(238, 244, 255, 0.72);
  color: var(--pay-muted);
  font-size: 13px;
  line-height: 1.8;
}

.pay-card-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--pay-text);
  font-size: 14px;
}

.pay-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.pay-page .layui-btn,
.pay-submit-btn {
  height: 46px;
  line-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pay-primary) 0%, var(--pay-primary-strong) 100%);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.2);
  font-size: 15px;
  font-weight: 700;
}

.pay-inline-tip {
  color: var(--pay-muted);
  font-size: 12px;
}

.pay-summary-card,
.pay-note-card {
  padding: 20px 20px 18px;
}

.pay-summary-card {
  position: sticky;
  top: 118px;
}

.pay-page.pay-embedded .pay-summary-card {
  top: 20px;
}

.pay-side-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.pay-side-subtitle {
  margin: 8px 0 0;
  color: var(--pay-muted);
  font-size: 13px;
  line-height: 1.8;
}

.pay-summary-amount {
  margin: 20px 0 16px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #f8fbff;
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.18);
}

.pay-summary-amount span {
  display: block;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.76);
}

.pay-summary-amount strong {
  display: block;
  margin-top: 10px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.pay-summary-list {
  display: grid;
  gap: 12px;
}

.pay-summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pay-summary-row span {
  color: var(--pay-muted);
  font-size: 12px;
}

.pay-summary-row strong {
  text-align: right;
  font-size: 14px;
  line-height: 1.6;
}

.pay-divider {
  height: 1px;
  margin: 18px 0;
  background: linear-gradient(90deg, rgba(219, 227, 239, 0), rgba(219, 227, 239, 1), rgba(219, 227, 239, 0));
}

.pay-note-card {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.pay-note-card ul {
  margin: 14px 0 0;
  padding-left: 16px;
}

.pay-note-card li {
  margin-bottom: 10px;
  color: var(--pay-muted);
  font-size: 13px;
  line-height: 1.8;
}

.pay-helper-link {
  color: var(--pay-primary-strong);
  font-weight: 700;
}

.pay-plan-groups {
  display: grid;
  gap: 16px;
}

.pay-plan-group {
  padding: 14px;
  border-radius: 22px;
  background: rgba(247, 250, 253, 0.78);
  border: 1px solid rgba(219, 227, 239, 0.68);
}

.pay-plan-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pay-plan-group-head p {
  margin: 0;
  color: var(--pay-muted);
  font-size: 12px;
  line-height: 1.7;
}

.pay-plan-group-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--pay-primary-strong);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.pay-plan-group-badge.is-secondary {
  background: rgba(15, 118, 110, 0.12);
  color: var(--pay-secondary);
}

.pay-plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pay-page .layui-layer-content .loadtip {
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .pay-option,
  .pay-page .header .header-nav a {
    transition: none !important;
  }
}

@media screen and (max-width: 1024px) {
  .pay-shell {
    width: min(100%, calc(100% - 28px));
  }

  .pay-board {
    grid-template-columns: 1fr;
  }

  .pay-summary-card {
    position: static;
  }

  .pay-plan-group-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 768px) {
  body.pay-page.pay-standalone {
    padding-bottom: 32px;
  }

  .pay-page .header {
    left: 12px;
    right: 12px;
    top: 12px;
    height: auto;
    padding: 14px;
    border-radius: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .pay-page .header .header-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .pay-page .header .header-nav a {
    margin-left: 0;
  }

  .pay-page.pay-standalone .pay-shell {
    padding-top: 132px;
  }

  .pay-page.pay-embedded {
    padding: 12px;
  }

  .pay-hero,
  .pay-surface,
  .pay-summary-card,
  .pay-note-card {
    border-radius: 22px;
  }

  .pay-hero {
    padding: 22px 20px;
  }

  .pay-surface {
    padding: 18px;
  }

  .pay-field-grid,
  .pay-card-grid {
    grid-template-columns: 1fr;
  }

  .pay-plan-grid {
    grid-template-columns: 1fr;
  }

  .pay-tabs .layui-tab-title {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .pay-tabs .layui-tab-title li {
    padding: 0 10px;
    text-align: center;
  }

  .pay-summary-amount strong {
    font-size: 32px;
  }
}
