/**
 * 公共样式 - 手机网页版
 */

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background-color: #F2F2F7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 容器 */
.container {
  width: 100%;
  min-height: 100vh;
  padding-bottom: 60px; /* 为底部导航栏留出空间 */
}

/* 🖥️ 电脑端适配：参考writerpro.cn的设计 */
@media screen and (min-width: 768px) {
  /* 页面背景 - 渐变效果 */
  body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  }

  /* 容器 - Glassmorphism效果 */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-radius: 0;
  }

  /* 底部导航栏 - Glassmorphism效果 */
  .tabbar {
    width: 1200px !important;
    max-width: 1200px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    height: 60px;
    border-radius: 0;
  }

  .tabbar-item {
    padding: 12px 0;
    transition: all 0.2s ease;
  }

  .tabbar-item:hover {
    transform: translateY(-2px);
  }

  .tabbar-item .icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
  }

  .tabbar-item .label {
    font-size: 0.85rem;
    font-weight: 500;
  }
}

/* 🖥️ 桌面端（>=1024px）隐藏底部导航栏：大屏用顶部导航即可 */
@media screen and (min-width: 1024px) {
  .tabbar {
    display: none !important;
  }

  /* 去掉为 tabbar 预留的底部空间 */
  .container {
    padding-bottom: 0 !important;
  }
}

/* 底部导航栏 - 手机端显示 */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0 !important;
  right: 0 !important;
  height: 54px;
  background-color: rgba(255, 255, 255, 0.94);
  border-top: 1px solid #E5E5EA;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06);
  padding: 0 8px;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden;
  transform: none !important;
}

.tabbar-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #8E8E93;
  transition: all 0.3s ease;
  padding: 5px 2px;
  position: relative;
  min-width: 0;
  max-width: none;
}

.tabbar-item.active {
  color: #FFFFFF; /* 🎯 选中时文字变白色 */
}

/* 🎯 隐藏底部导航栏图标 */
.tabbar-icon {
  display: none;
}

.tabbar-text {
  font-size: 10px;
  margin-top: 0;
  padding: 5px 7px;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 🎯 选中状态：橙色椭圆背景 */
.tabbar-item.active .tabbar-text {
  background: linear-gradient(135deg, #FF7E5F 0%, #FF6B35 100%); /* 🎯 橙色渐变背景 */
  color: #FFFFFF; /* 🎯 白色文字 */
  font-weight: 600; /* 🎯 加粗文字 */
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3); /* 🎯 添加阴影 */
}

/* 微信适配器样式 */
.wx-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.wx-loading-content {
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}

.wx-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); }
}

.wx-loading-text {
  color: #fff;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}

/* Toast样式 */
.wx-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wx-toast.show {
  opacity: 1;
}

.wx-toast-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.wx-toast-text {
  font-size: 14px;
  text-align: center;
}

/* Modal样式 */
.wx-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.wx-modal {
  background-color: #fff;
  border-radius: 12px;
  width: 80%;
  max-width: 300px;
  overflow: hidden;
}

.wx-modal-header {
  padding: 20px 20px 10px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  color: #000;
}

.wx-modal-content {
  padding: 10px 20px 20px;
  font-size: 14px;
  color: #666;
  text-align: center;
  line-height: 1.6;
}

.wx-modal-footer {
  display: flex;
  border-top: 1px solid #E5E5EA;
}

.wx-modal-btn {
  flex: 1;
  padding: 15px;
  border: none;
  background: none;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.wx-modal-btn.cancel {
  color: #666;
  border-right: 1px solid #E5E5EA;
}

.wx-modal-btn.confirm {
  color: #FF6B35;
  font-weight: 600;
}

.wx-modal-btn:active {
  background-color: #F2F2F7;
}

/* 通用按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

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

.btn-secondary {
  background-color: #F2F2F7;
  color: #333;
}

.btn-secondary:hover {
  background-color: #E5E5EA;
}

/* 卡片样式 */
.card {
  background-color: #fff;
  border-radius: 12px;
  padding: 16px;
  margin: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 输入框样式 */
.input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E5E5EA;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.input:focus {
  outline: none;
  border-color: #FF6B35;
}

/* 文本域样式 */
.textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E5E5EA;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.textarea:focus {
  outline: none;
  border-color: #FF6B35;
}

/* 隐藏类 */
.hidden {
  display: none !important;
}

/* 文本对齐 */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* 间距工具类 */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.ml-10 { margin-left: 10px; }
.mr-10 { margin-right: 10px; }

.pt-10 { padding-top: 10px; }
.pt-20 { padding-top: 20px; }
.pb-10 { padding-bottom: 10px; }
.pb-20 { padding-bottom: 20px; }
.pl-10 { padding-left: 10px; }
.pr-10 { padding-right: 10px; }

/* ========== 支付弹窗样式 ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.payment-modal-content {
  max-width: 450px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #E5E5EA;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #000;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 20px;
}

.payment-card-header {
  margin-bottom: 20px;
}

.payment-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-icon-wrapper {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.payment-title {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 0;
}

.payment-subtitle {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.qr-code-display-area {
  background: #F8F9FA;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-placeholder {
  text-align: center;
  color: #999;
}

.qr-code-placeholder svg {
  margin-bottom: 10px;
  opacity: 0.5;
}

.qr-code-placeholder p {
  margin: 5px 0;
  font-size: 14px;
}

.qr-code-container {
  text-align: center;
  width: 100%;
}

.qr-code-container img {
  width: 200px;
  height: 200px;
  margin: 0 auto 15px;
  display: block;
}

.qr-code-info {
  margin-bottom: 15px;
}

.qr-code-title {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin: 0 0 5px 0;
}

.qr-code-service {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.security-tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 15px;
}

.tip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #666;
}

.tip-item svg {
  color: #07C160;
}

.final-price-display {
  background: #F8F9FA;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  text-align: center;
}

.final-price-display p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

.final-price-display span {
  color: #FF3B30;
  font-size: 20px;
}

.agreement-section {
  margin: 15px 0;
}

.payment-methods {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.payment-method-btn {
  flex: 1;
  padding: 12px;
  border: 2px solid #E5E5EA;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: all 0.3s;
}

.payment-method-btn:hover {
  border-color: #8A2BE2;
}

.payment-method-btn.active {
  border-color: #8A2BE2;
  background: #F5F0FF;
  color: #8A2BE2;
}

.payment-method-btn.alipay.active {
  border-color: #00A0E9;
  background: #E6F7FF;
  color: #00A0E9;
}

.payment-method-btn.wechat.active {
  border-color: #07C160;
  background: #E6F9F0;
  color: #07C160;
}

.security-assurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #F8F9FA;
  border-radius: 8px;
  font-size: 12px;
  color: #666;
}

.security-assurance svg {
  color: #07C160;
}

/* ========== Reduce page checkout modal ========== */
body.page-reduce #paymentModal.payment-checkout-overlay {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(18px);
  padding: 24px;
  z-index: 20000;
}

body.page-reduce #paymentModal .payment-checkout-modal {
  width: min(760px, calc(100vw - 32px));
  max-width: 760px;
  max-height: min(760px, calc(100svh - 40px));
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.26);
}

body.page-reduce #paymentModal .payment-checkout-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

body.page-reduce #paymentModal .payment-checkout-header h3 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: 0;
}

body.page-reduce #paymentModal .payment-kicker {
  margin: 0;
  color: #2563eb;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: 0.08em;
}

body.page-reduce #paymentModal .modal-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

body.page-reduce #paymentModal .modal-close:hover {
  background: #f8fafc;
  border-color: rgba(100, 116, 139, 0.32);
  color: #0f172a;
}

body.page-reduce #paymentModal .payment-checkout-body {
  padding: 18px;
  max-height: calc(100svh - 116px);
  overflow-y: auto;
  background: #f8fafc;
}

body.page-reduce #paymentModal .payment-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 308px;
  gap: 14px;
  align-items: stretch;
}

body.page-reduce #paymentModal .payment-order-panel,
body.page-reduce #paymentModal .payment-qr-panel {
  min-width: 0;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

body.page-reduce #paymentModal .payment-order-panel {
  padding: 16px;
}

body.page-reduce #paymentModal .payment-card-header {
  margin: 0 0 14px;
}

body.page-reduce #paymentModal .payment-title-group {
  align-items: center;
  gap: 10px;
}

body.page-reduce #paymentModal .payment-icon-wrapper {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
}

body.page-reduce #paymentModal .payment-title {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 750;
}

body.page-reduce #paymentModal .payment-subtitle {
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

body.page-reduce #paymentModal .payment-summary-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

body.page-reduce #paymentModal .payment-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
}

body.page-reduce #paymentModal .payment-summary-row:last-child {
  border-bottom: 0;
}

body.page-reduce #paymentModal .payment-summary-row span {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}

body.page-reduce #paymentModal .payment-summary-row strong {
  min-width: 0;
  max-width: 70%;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-reduce #paymentModal .final-price-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 12px;
  background: #f8fbff;
  text-align: left;
}

body.page-reduce #paymentModal .final-price-display p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 650;
}

body.page-reduce #paymentModal .final-price-display strong {
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

body.page-reduce #paymentModal .final-price-display span {
  color: inherit;
  font-size: inherit;
}

body.page-reduce #paymentModal .payment-method-label {
  margin: 14px 0 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

body.page-reduce #paymentModal .payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

body.page-reduce #paymentModal .payment-method-btn {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

body.page-reduce #paymentModal .payment-method-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

body.page-reduce #paymentModal .payment-method-btn.alipay.active {
  border-color: #1677ff;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.12);
}

body.page-reduce #paymentModal .payment-method-btn.wechat.active {
  border-color: #10b981;
  background: #ecfdf5;
  color: #047857;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.12);
}

body.page-reduce #paymentModal .payment-agreement-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}

body.page-reduce #paymentModal .payment-agreement-label input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: #2563eb;
}

body.page-reduce #paymentModal .balance-pay-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

body.page-reduce #paymentModal .balance-pay-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: none;
}

body.page-reduce #paymentModal .balance-pay-btn span:last-child {
  color: #a16207;
  font-size: 12px;
  font-weight: 650;
  text-align: right;
}

body.page-reduce #paymentModal .balance-pay-error {
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  line-height: 1.4;
}

body.page-reduce #paymentModal .payment-qr-panel {
  display: flex;
  flex-direction: column;
  padding: 16px;
}

body.page-reduce #paymentModal .payment-qr-heading {
  margin-bottom: 12px;
}

body.page-reduce #paymentModal .payment-qr-heading h3 {
  margin: 2px 0 4px;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 760;
}

body.page-reduce #paymentModal .payment-qr-heading span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

body.page-reduce #paymentModal .qr-code-display-area {
  flex: 1;
  min-height: 292px;
  margin: 0;
  padding: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.58);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

body.page-reduce #paymentModal .qr-code-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 238px;
  color: #64748b;
}

body.page-reduce #paymentModal .qr-code-placeholder svg {
  color: #94a3b8;
  opacity: 1;
}

body.page-reduce #paymentModal .qr-code-placeholder p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}

body.page-reduce #paymentModal .qr-code-container,
body.page-reduce #paymentModal .qr-code-wrapper {
  width: 100%;
  text-align: center;
}

body.page-reduce #paymentModal .qr-code-wrapper {
  padding: 6px 0 0 !important;
}

body.page-reduce #paymentModal .qr-code-container img,
body.page-reduce #paymentModal .qr-code-wrapper img,
body.page-reduce #paymentModal .qr-code-wrapper canvas {
  width: 196px !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto 12px !important;
  border: 8px solid #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.12);
}

body.page-reduce #paymentModal .qr-code-info {
  margin: 8px 0 0 !important;
}

body.page-reduce #paymentModal .qr-code-title {
  margin: 0;
  color: #0f172a !important;
  font-size: 16px !important;
  line-height: 1.25;
  font-weight: 760;
}

body.page-reduce #paymentModal .qr-code-service {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

body.page-reduce #paymentModal .countdown-timer {
  margin-top: 8px !important;
  color: #64748b !important;
  font-size: 12px !important;
}

body.page-reduce #paymentModal .security-tips {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

body.page-reduce #paymentModal .tip-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  line-height: 1.2;
}

body.page-reduce #paymentModal .tip-item svg {
  color: #10b981;
  flex: 0 0 auto;
}

body.page-reduce #paymentModal .security-assurance {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(16, 185, 129, 0.14);
  border-radius: 10px;
  background: #f0fdf4;
  color: #166534;
  font-size: 12px;
  line-height: 1.35;
}

body.page-reduce #paymentModal .security-assurance svg {
  flex: 0 0 auto;
  color: #10b981;
}

@media (max-width: 720px) {
  body.page-reduce #paymentModal.payment-checkout-overlay {
    align-items: flex-end;
    padding: 10px;
  }

  body.page-reduce #paymentModal .payment-checkout-modal {
    width: 100%;
    max-height: calc(100svh - 20px);
    border-radius: 18px 18px 12px 12px;
  }

  body.page-reduce #paymentModal .payment-checkout-body {
    padding: 12px;
    max-height: calc(100svh - 92px);
  }

  body.page-reduce #paymentModal .payment-checkout-grid {
    grid-template-columns: 1fr;
  }

  body.page-reduce #paymentModal .payment-qr-panel {
    order: -1;
  }

  body.page-reduce #paymentModal .qr-code-display-area {
    min-height: 246px;
  }

  body.page-reduce #paymentModal .qr-code-placeholder {
    min-height: 190px;
  }

  body.page-reduce #paymentModal .payment-summary-row strong {
    max-width: 66%;
  }
}
