/* 齐齐上水H5支付页 — 品牌样式 */
:root {
  --primary: #E85A2B;
  --primary-dark: #D24324;
  --deep-blue: #021E40;
  --navy: #063D82;
  --bg: #F5F0EB;
  --card-bg: #FFFFFF;
  --text: #333333;
  --text-light: #888888;
  --border: #E8E0D8;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 100px;
}

#app { max-width: 480px; margin: 0 auto; }

/* 品牌头部 */
.brand-header {
  background: linear-gradient(135deg, var(--deep-blue), var(--navy));
  padding: 32px 20px 24px;
  text-align: center;
}
.brand-logo {
  font-family: 'STXINGKA', '华文行楷', serif;
  font-size: 28px;
  color: #FFFFFF;
  letter-spacing: 4px;
}
.brand-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  letter-spacing: 1px;
}

/* 通用section */
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 12px;
  padding-left: 2px;
}

/* 订单信息 */
.order-info {
  background: var(--card-bg);
  margin: 12px;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.order-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 12px;
}
.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.order-item:last-child { border-bottom: none; }
.item-name { flex: 1; }
.item-qty { color: var(--text-light); margin: 0 12px; }
.item-price { font-weight: 600; color: var(--primary-dark); }

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--primary);
  font-size: 18px;
  font-weight: 700;
}
.order-total #total-price { color: var(--primary); }

/* 订单号 */
.order-no {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

/* 收货地址 */
.address-section {
  background: var(--card-bg);
  margin: 12px;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.address-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 8px;
  background: #FAFAFA;
  transition: border-color 0.2s;
}
.address-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: #FFF;
}
.region-row {
  display: flex;
  gap: 6px;
}
.region-row input { flex: 1; }

/* 地址只读展示 */
.addr-display {
  line-height: 1.6;
}
.addr-text {
  font-size: 14px;
  color: var(--text);
}

/* 支付方式只读展示 */
.pay-method-display {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  background: #FFF5F2;
}

/* 支付方式 */
.pay-method-section {
  background: var(--card-bg);
  margin: 12px;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method,
.pay-method-display {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.pay-method.active {
  border-color: var(--primary);
  background: #FFF5F2;
}
.pay-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.wechat-icon { background: #07C160; color: #FFF; }
.wechat-icon::before { content: '\2587'; font-weight: bold; }
.alipay-icon { background: #1677FF; color: #FFF; }
.alipay-icon::before { content: '\2588'; font-weight: bold; }
.unionpay-icon { background: #D40029; color: #FFF; }
.unionpay-icon::before { content: '\2593'; font-weight: bold; }
.pay-name { font-weight: 600; font-size: 15px; }
.pay-desc { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.pay-info { flex: 1; }

/* 提交按钮 */
.submit-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: #FFF;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
  z-index: 100;
}
.pay-btn {
  width: 100%;
  max-width: 448px;
  margin: 0 auto;
  display: block;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #FFF;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: opacity 0.2s;
}
.pay-btn:active { opacity: 0.85; }
.pay-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 底部客服 */
.footer {
  text-align: center;
  padding: 20px;
  color: var(--text-light);
  font-size: 13px;
  line-height: 2;
}

/* loading遮罩 */
.loading-mask {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #FFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 结果页 */
.result-page { text-align: center; padding: 60px 20px; }
.result-icon { font-size: 64px; margin-bottom: 16px; }
.result-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.result-desc { color: var(--text-light); font-size: 14px; margin-bottom: 24px; }
.result-btn {
  display: inline-block;
  padding: 10px 32px;
  background: var(--primary);
  color: #FFF;
  border-radius: 20px;
  text-decoration: none;
  font-size: 15px;
}
