/* 紫色统一主题 - AI生成+ 测算 */
:root {
  --red-main: #4c1d95;
  --red-dark: #1e3a8a;
  --gold: #6366f1;
  --gold-light: #a855f7;
  --beige: #eef2ff;
  --beige-dark: #e2e8f0;
  --cream: #f6f7ff;
  --text-dark: #1f2937;
  --brand-bg: #312e81;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Serif SC', 'SimSun', serif;
  background: var(--cream);
  background-image: 
    radial-gradient(ellipse at 20% 30%, rgba(201, 162, 39, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 70%, rgba(184, 42, 42, 0.06) 0%, transparent 45%),
    repeating-linear-gradient(96deg, transparent, transparent 40px, rgba(201, 162, 39, 0.03) 40px, rgba(201, 162, 39, 0.03) 41px);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: var(--text-dark);
}

/* 粒子光效 - 入场氛围（铺满视口，不阻挡点击） */
.particle-bg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* 一屏适配：整页在手机视口内缩放 */
.page-wrap {
  position: relative;
  z-index: 1;
  width: 100vw;
  min-height: 100vh;
  max-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
}

.app-scaler {
  transform-origin: top center;
  flex-shrink: 0;
}

.app {
  width: 520px;
  max-width: 520px;
  margin: 0;
  padding: 20px;
}

/* 顶部标识 */
.brand {
  margin-bottom: 24px;
}

.brand-text {
  display: inline-block;
  background: var(--brand-bg);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 14px;
  letter-spacing: 0.5px;
}

/* 祥云装饰 - 用圆角模拟云纹 */
.cloud {
  display: inline-block;
  width: 32px;
  height: 20px;
  background: var(--gold);
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  box-shadow: 
    4px 0 0 var(--gold-light),
    -4px 0 0 var(--gold-light),
    0 3px 0 var(--gold-light);
  vertical-align: middle;
  margin: 0 4px;
}

.cloud-left { transform: scaleX(-1); }
.cloud-right { }

/* 标题栏 */
.title-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--red-main) 0%, var(--red-dark) 100%);
  border: 2px solid var(--gold);
  border-radius: 6px;
  padding: 14px 20px;
  margin-bottom: 16px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}

.title-bar h1 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* 区块间装饰线 */
.section-divider {
  height: 2px;
  max-width: 160px;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--red-main) 50%, var(--gold) 80%, transparent);
  opacity: 0.7;
  border-radius: 1px;
}

/* 表单区块小标题 */
.form-section-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--red-dark);
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-align: center;
  font-family: inherit;
}

/* 表单外框 - 与页面红金米色统一（双层：外框 + 里层，左侧不叠加多余线条） */
.form-box {
  background: var(--beige-dark);
  border: 2px solid var(--red-main);
  border-radius: 8px;
  padding: 6px;
  margin-bottom: 24px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  position: relative;
}

/* 里层框架：左侧直角与右侧样式一致，仅右侧两角保留小圆角 */
.form-inner {
  background: var(--beige);
  border-radius: 0 2px 2px 0;
  padding: 20px 24px;
  border: 1px solid #dcc9a8;
  position: relative;
  margin: 0;
  box-sizing: border-box;
}

.form-row {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.form-row:last-of-type {
  margin-bottom: 0;
}

.form-row-birthday .birthday-group {
  flex: 1;
  min-width: 0;
}

.form-label {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
  min-width: 56px;
}

.form-input {
  flex: 1;
  min-width: 180px;
  padding: 10px 14px;
  border: 1px solid #dcc9a8;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: var(--cream);
  color: var(--text-dark);
}

.form-input::placeholder {
  color: #8a7a62;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.25);
}

.form-date {
  cursor: pointer;
}

.birthday-group {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.birthday-group select {
  flex: 1;
  min-width: 0;
  padding: 10px 8px;
  border-radius: 4px;
  border: 1px solid #dcc9a8;
  background: var(--cream);
  color: var(--text-dark);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.birthday-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.25);
}

.form-time {
  cursor: pointer;
  max-width: 200px;
}

.form-hint {
  font-size: 12px;
  color: #7a6a55;
  line-height: 1.55;
  margin: 0;
  padding: 0 0 4px 0;
  flex: 1 1 100%;
}

/* 单选组 */
.radio-group {
  display: flex;
  gap: 24px;
  align-items: center;
}

.radio-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.radio-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--red-main);
  border-radius: 50%;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.radio-item input:checked + .radio-custom {
  background: var(--red-main);
  border-color: var(--red-main);
}

.radio-item input:checked + .radio-custom::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}

.error-msg {
  width: 100%;
  margin-left: 56px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--red-main);
}

/* 立即测算按钮 */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: linear-gradient(180deg, var(--red-main) 0%, var(--red-dark) 100%);
  border: 2px solid var(--gold);
  border-radius: 6px;
  padding: 16px 24px;
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: transform 0.15s, box-shadow 0.15s;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.submit-btn:active {
  transform: translateY(0);
}

.btn-text {
  margin: 0 12px;
}

/* 测算结果区 - 弹窗蒙层 */
.result-box {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.32);
  z-index: 1000;
}

.result-box.is-open {
  display: flex;
}

/* 咨询详情弹窗蒙层，复用结果弹窗风格 */
.consult-box {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.32);
  z-index: 1001;
}

.consult-box.is-open {
  display: flex;
}

/* 详细测算报告弹窗 - 风格与结果/支付弹窗一致，弹窗与标题居中 */
.report-box {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.32);
  z-index: 1002;
  padding: 16px;
  box-sizing: border-box;
}

.report-box.is-open {
  display: flex;
}

.report-outer {
  max-height: calc(100vh - 32px);
  max-width: min(520px, calc(100vw - 32px));
  margin: auto;
}

.report-inner {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.report-box h2 {
  font-size: 16px;
  color: var(--red-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--beige-dark);
  text-align: center;
  width: 100%;
}

.report-content {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dark);
  margin-top: 6px;
}

.report-content-pdf {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  min-height: 1120px;
}

.report-pdf-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 18px;
  color: var(--red-dark);
}

.report-content-pdf .report-section {
  opacity: 1;
  transform: none;
  transition: none;
  page-break-inside: avoid;
}

.report-content-pdf .report-section-title {
  page-break-after: avoid;
}

.report-content .report-section {
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.report-content .report-section.report-inview {
  opacity: 1;
  transform: translateY(0);
}

.report-content .report-section:last-of-type {
  margin-bottom: 0;
}

.report-content .report-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--beige-dark);
}

.report-content .report-section p {
  margin-bottom: 6px;
  text-indent: 2em;
}

.report-content .report-section p:last-child {
  margin-bottom: 0;
}

.report-content .report-highlight {
  color: var(--red-main);
  font-weight: 600;
}

.report-content .report-quote {
  color: #6b5344;
  font-style: normal;
  padding-left: 1em;
  border-left: 3px solid var(--gold);
  margin: 8px 0;
  opacity: 0.95;
}

/* 八字命盘：八字依次旋转出现 */
.report-bazi-line .bazi-char {
  display: inline-block;
  opacity: 0;
  transform: rotateY(-90deg);
  animation: bazi-char-in 0.45s ease forwards;
}

@keyframes bazi-char-in {
  to {
    opacity: 1;
    transform: rotateY(0deg);
  }
}

/* 五行统计 SVG 柱状图 */
.report-section-wuxing-chart .report-section-title {
  margin-bottom: 10px;
}

.wuxing-chart-wrap {
  margin: 8px 0;
  padding: 4px 0;
}

.wuxing-chart-svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.report-content-pdf .wuxing-chart-svg {
  width: 240px;
  height: 120px;
  max-width: none;
}

.wuxing-bar-bg {
  fill: rgba(220, 201, 168, 0.4);
}

.wuxing-bar-fill {
  transition: none;
}

.wuxing-label {
  font-size: 13px;
  font-weight: 700;
  fill: var(--text-dark);
  font-family: inherit;
}

.wuxing-pct {
  font-size: 12px;
  fill: var(--red-dark);
  font-weight: 600;
  font-family: inherit;
}

.report-footer {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--beige-dark);
  font-size: 12px;
  color: #8a7a62;
  text-align: center;
  text-indent: 0;
}

.report-content-pdf .report-footer {
  margin-top: auto;
}

/* 运势指数：能量条递增动画 */
.score-block {
  margin: 12px 0 8px;
}

.score-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 6px;
}

.score-energy-wrap {
  position: relative;
  height: 22px;
  border-radius: 11px;
  overflow: hidden;
  width: 100%;
  max-width: 200px;
}

.score-energy-bg {
  position: absolute;
  inset: 0;
  background: rgba(220, 201, 168, 0.5);
  border-radius: 11px;
}

.score-energy-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 11px;
  background: linear-gradient(90deg, var(--red-main), var(--gold));
  transition: none;
}

.score-energy-num {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  z-index: 1;
  text-shadow: 0 0 2px rgba(255,255,255,0.8);
}

/* 匹配度：星星逐个填满 */
.score-match .score-label {
  margin-bottom: 6px;
}

.score-stars {
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

.score-star {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  color: var(--gold);
}

.score-star-empty {
  opacity: 0.35;
}

.score-star-filled {
  opacity: 0;
  animation: score-star-fill 0.4s ease forwards;
}

@keyframes score-star-fill {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.score-stars-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--red-dark);
  vertical-align: middle;
}

/* 性格解读：3D 翻转卡片 */
.report-section-hint {
  font-size: 12px;
  color: #7a6a4d;
  margin-bottom: 12px !important;
  text-indent: 0 !important;
}

.flip-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.report-content-pdf .flip-cards {
  display: block;
}

.flip-card {
  flex: 1 1 140px;
  min-height: 100px;
  perspective: 1000px;
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.report-content-pdf .flip-card {
  perspective: none;
  cursor: default;
  margin-bottom: 12px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100px;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.report-content-pdf .flip-card-inner {
  position: static;
  min-height: 0;
  transform: none !important;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  min-height: 100px;
  backface-visibility: hidden;
  border-radius: 8px;
  border: 1px solid #dcc9a8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
}

.report-content-pdf .flip-card-front,
.report-content-pdf .flip-card-back {
  position: static;
  height: auto;
  min-height: 0;
  box-shadow: none;
}

.flip-card-front {
  background: linear-gradient(145deg, var(--beige) 0%, var(--beige-dark) 100%);
  color: var(--text-dark);
}

.flip-card-back {
  background: var(--beige);
  transform: rotateY(180deg);
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
}

.report-content-pdf .flip-card-front {
  display: none !important;
}

.report-content-pdf .flip-card-back {
  transform: none;
  overflow: visible;
}

.flip-card-back-inner {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-dark);
  text-align: left;
  overflow-y: auto;
  flex: 1;
}

.report-content-pdf .flip-card-back-inner {
  overflow: visible;
}

.flip-card-back-inner p {
  margin-bottom: 8px;
  text-indent: 2em;
}

.flip-card-back-inner p:last-child {
  margin-bottom: 0;
}

.flip-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--red-dark);
  display: block;
  margin-bottom: 6px;
}

.flip-card-tip {
  font-size: 11px;
  color: #8a7a62;
}

.report-content .report-quote.report-bazi-line {
  padding-left: 0;
  border-left: none;
}

.report-bazi-note {
  font-size: 13px;
  color: #6b5b45;
  line-height: 1.6;
  margin: 8px 0 0 0;
}

.report-bazi-error {
  font-size: 14px;
  color: #a61e1e;
  margin: 0 0 10px 0;
  padding: 10px 12px;
  background: rgba(166, 30, 30, 0.08);
  border-radius: 4px;
  border: 1px solid rgba(166, 30, 30, 0.2);
}

/* 测算结果弹窗 - 与表单/底部一致的双层边框 */
.result-outer {
  background: var(--beige-dark);
  border: 2px solid var(--red-main);
  border-radius: 6px;
  padding: 5px;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.35), 0 2px 8px rgba(0,0,0,0.06);
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.result-inner {
  background: var(--beige);
  border-radius: 4px;
  padding: 20px 24px 18px;
  border: 1px solid #dcc9a8;
  max-width: 380px;
  margin: 0 auto;
  text-align: left;
}

.result-box h2 {
  font-size: 16px;
  color: var(--red-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--beige-dark);
  text-align: center;
  width: 100%;
}

.consult-box h2 {
  font-size: 16px;
  color: var(--red-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--beige-dark);
  text-align: center;
  width: 100%;
}

.result-box p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dark);
}

.result-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dark);
  margin-top: 6px;
}

.result-line {
  margin-bottom: 6px;
}

.result-line-indent {
  text-indent: 2em;
}

.result-line-focus {
  margin-top: 4px;
}

.result-line-suggest {
  margin-top: 2px;
}

.result-content .result-line:last-child {
  margin-bottom: 0;
}

.result-text-focus {
  color: var(--red-main);
  font-weight: 600;
}

.result-text-suggest {
  color: var(--red-main);
  font-weight: 600;
}

.result-text-disclaimer {
  color: var(--text-dark);
}

.result-line-consult {
  margin-top: 8px;
  color: #0a8f3b;
  font-size: 14px;
  font-weight: 600;
}

.result-close-wrap {
  text-align: center;
  margin-top: 16px;
}

.result-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 28px;
  border-radius: 20px;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, #fef7e5 0%, #f0e0b8 100%);
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.result-close-btn:active {
  transform: translateY(1px);
}

.result-download-btn {
  margin-left: 12px;
}

.report-master-wrap {
  text-align: center;
  margin-top: 12px;
}

.result-consult-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  margin-left: 12px;
  border-radius: 20px;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, #fef7e5 0%, #f0e0b8 100%);
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.result-consult-btn:active {
  transform: translateY(1px);
}

.report-master-btn {
  text-decoration: none;
}

/* 支付页面布局 */
.pay-content {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-dark);
}

.pay-product {
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 8px;
}

.pay-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pay-price-label {
  color: var(--text-dark);
}

.pay-price-value {
  color: var(--red-main);
  font-size: 18px;
  font-weight: 700;
}

.pay-method-title {
  margin-top: 4px;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.pay-method {
  flex: 1;
  width: 100%;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid #dcc9a8;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  background: #fffef9;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.pay-method:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.pay-method-wechat {
  color: #0aa344;
}

.pay-tip {
  margin-top: 4px;
  font-size: 12px;
  color: #7a6a4d;
}

.pay-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pay-actions-single {
  justify-content: center;
}

.pay-actions-single .result-close-btn {
  min-width: 120px;
}

.pay-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  border-radius: 20px;
  border: 1px solid var(--red-main);
  background: linear-gradient(180deg, var(--red-main) 0%, var(--red-dark) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.pay-submit-btn:active {
  transform: translateY(1px);
}

/* 底部说明 - 与表单板块一致的双层边框 */
.footer-note {
  margin-top: 20px;
  background: var(--beige-dark);
  border: 2px solid var(--red-main);
  border-radius: 6px;
  padding: 5px;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.35), 0 2px 8px rgba(0,0,0,0.06);
}

.footer-note-inner {
  background: var(--beige);
  border-radius: 4px;
  padding: 16px 16px 18px;
  border: 1px solid #dcc9a8;
  text-align: center;
}

.footer-line {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--red-main) 50%, var(--gold) 85%, transparent);
  margin: 0 auto 12px;
  max-width: 120px;
  opacity: 0.85;
}

.footer-note .footer-line:last-of-type {
  margin-top: 12px;
  margin-bottom: 0;
}

.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red-dark);
  letter-spacing: 1px;
  margin: 0 auto;
  text-shadow: 0 0 1px rgba(201, 162, 39, 0.3);
  max-width: min(100%, 560px);
  text-align: left;
}

.footer-brand > span {
  display: block;
  flex: 1;
  min-width: 0;
  text-align: left;
  line-height: 1.65;
}

.footer-logo {
  display: inline-block;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.6), 0 2px 6px rgba(0, 0, 0, 0.18);
}

@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-label { min-width: auto; }
  .form-input { min-width: 100%; }
  .birthday-group {
    flex-direction: column;
    width: 100%;
  }
  .error-msg { margin-left: 0; }
}

/* 微信支付二维码弹窗 */
.payqr-box {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.payqr-box.is-open {
  display: flex;
}

.payqr-inner {
  background: #fff9f0;
  border-radius: 10px;
  padding: 16px 18px 18px;
  width: 260px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border: 2px solid var(--red-main);
}

.payqr-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  position: relative;
}

.payqr-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--red-dark);
  text-align: center;
}

.payqr-close-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  color: var(--text-dark);
}

.payqr-body {
  text-align: center;
}

.payqr-qrcode {
  width: 200px;
  height: 200px;
  margin: 0 auto 10px;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payqr-tip {
  font-size: 12px;
  color: rgba(0,0,0,0.7);
}

