﻿/* 全局基础重置与字体 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: #f5f7fa;
  color: #2d3748;
  line-height: 1.5;
  min-height: 100vh;
}

/* 1. 非手机微信拦截层样式 */
.blocker-layer {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.blocker-card {
  max-width: 440px;
  width: 100%;
  text-align: center;
  padding: 36px 24px;
  background: #ffffff;
  border-radius: 16px;
}

.wechat-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  background: rgba(7, 193, 96, 0.1);
  border-radius: 50%;
  margin-bottom: 20px;
}

.blocker-card h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 12px;
}

.blocker-card .desc {
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
  margin-bottom: 24px;
}

.qr-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
}

.qr-placeholder {
  width: 190px;
  height: 190px;
  border: 2px dashed #cbd5e0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #718096;
  font-size: 13px;
  line-height: 1.6;
  padding: 16px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.tips-box {
  background: #ebf8ff;
  border: 1px solid #bee3f8;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #2b6cb0;
  text-align: left;
  line-height: 1.5;
  margin-top: 20px;
}

.dev-switch-wrap {
  margin-top: 24px;
}

.dev-btn {
  background: transparent;
  border: 1px dashed #a0aec0;
  color: #718096;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.dev-btn:hover {
  background: #edf2f7;
  color: #4a5568;
}

/* 2. 正常移动端缴费容器 */
.app-container {
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

/* 头部卡片 */
.header-card {
  background: linear-gradient(135deg, #108ee9 0%, #07C160 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(7, 193, 96, 0.15);
  position: relative;
  overflow: hidden;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.header-card h1 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.header-card .sub-title {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.amount-box {
  display: flex;
  align-items: baseline;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 16px;
  backdrop-filter: blur(6px);
}

.amount-box .currency {
  font-size: 18px;
  font-weight: 600;
  margin-right: 4px;
}

.amount-box .amount-num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.amount-box .amount-tag {
  font-size: 12px;
  background: #ffffff;
  color: #07C160;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: auto;
}

/* 表单卡片 */
.form-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 6px;
}

.form-group .required {
  color: #e53e3e;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "▼";
  font-size: 10px;
  color: #a0aec0;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

input[type="text"],
input[type="tel"],
select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background-color: #f8fafc;
  color: #2d3748;
  outline: none;
  transition: all 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
select:focus {
  border-color: #07C160;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.15);
}

.notice-bar {
  background: #f7fafc;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #718096;
  margin: 20px 0 24px;
  display: flex;
  align-items: center;
}

/* 提交按钮 */
.submit-btn {
  width: 100%;
  height: 50px;
  background: #07C160;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.submit-btn:active {
  transform: scale(0.98);
  background: #06ad56;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 3. 支付成功收据卡片 */
.receipt-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  text-align: center;
  margin-bottom: 20px;
}

.success-icon {
  margin-bottom: 14px;
}

.receipt-card h2 {
  font-size: 20px;
  color: #1a202c;
  margin-bottom: 6px;
}

.receipt-amount {
  font-size: 32px;
  font-weight: 800;
  color: #07C160;
  margin-bottom: 24px;
}

.receipt-details {
  border-top: 1px dashed #e2e8f0;
  border-bottom: 1px dashed #e2e8f0;
  padding: 16px 0;
  margin-bottom: 20px;
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-row span {
  color: #718096;
}

.detail-row strong,
.detail-row span:last-child {
  color: #2d3748;
  font-weight: 500;
}

.order-no-text {
  font-family: monospace;
  font-size: 13px;
}

.status-badge {
  background: #c6f6d5;
  color: #22543d;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.receipt-footer-tips {
  font-size: 12px;
  color: #718096;
  margin-bottom: 20px;
  line-height: 1.5;
}

.restart-btn {
  width: 100%;
  height: 44px;
  background: #edf2f7;
  color: #4a5568;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

/* 底部 */
.footer {
  margin-top: auto;
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
  color: #a0aec0;
}

.admin-link {
  color: #718096;
  text-decoration: underline;
  margin-top: 6px;
  display: inline-block;
}

/* 4. 模拟收银台弹窗 */
.mock-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  animation: fadeIn 0.2s ease;
}

.mock-modal {
  width: 100%;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  padding: 24px;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mock-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mock-tag {
  background: #feebc8;
  color: #c05621;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.mock-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #a0aec0;
  cursor: pointer;
}

.mock-mch-name {
  text-align: center;
  font-size: 14px;
  color: #718096;
}

.mock-amount {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  color: #1a202c;
  margin: 8px 0 16px;
}

.mock-info-list {
  background: #f7fafc;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

.mock-info-list div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.mock-info-list div:last-child {
  margin-bottom: 0;
}

.mock-tip {
  font-size: 12px;
  color: #e53e3e;
  line-height: 1.4;
  margin-bottom: 20px;
}

.mock-confirm-btn {
  width: 100%;
  height: 48px;
  background: #07C160;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
