/* 恢复科技页面样式 */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
  background: #f6f6f6;
  color: #333;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px 40px;
}
.notice-bar {
  position: relative;
  overflow: hidden;
  background: #f0f5ff;
  color: #6b8cff;
  border: 1px solid #e6ecff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 12px;
}
.notice-content {
  position: relative;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 12s linear infinite;
}
@keyframes marquee {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  padding: 8px 12px;
  margin-top: 14px;
}
.form-item { margin: 10px 0; }
.select, .input {
  width: 100%;
  border: none;
  background: #f7f7f8;
  border-radius: 12px;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}
.textarea {
  width: 100%;
  border: none;
  background: #f7f7f8;
  border-radius: 12px;
  min-height: 100px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  resize: vertical;
}
.select:focus, .input:focus { box-shadow: 0 0 0 2px rgba(24,198,65,.2); }
.agree {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 13px;
  padding: 8px 0 2px;
}
.agree a { color: #ff8c00; text-decoration: none; }
.btn-primary {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 22px;
  background: #18c641;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.footer {
  text-align: center;
  color: #8c8c8c;
  font-size: 12px;
  margin-top: 18px;
}
.footer a { color: #3a76f0; text-decoration: none; margin: 0 6px; }
.footer .copyright { margin-top: 6px; }

/* 弹窗 */
.modal-mask {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(0,0,0,.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal {
  width: 86%;
  max-width: 420px;
  min-height: 420px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  padding: 14px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.modal .title { font-weight: 600; text-align: center; }
.modal .price, .modal-price { text-align: center; font-size: 24px; margin: 10px 0 14px; }
.pay-list { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; }
.pay-btn {
  height: 40px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #f8f8f8;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; cursor: pointer; font-weight: 500;
}
.cancel-btn { margin-top: 12px; height: 36px; width: 100%; background: #fff; border: 1px solid #ddd; border-radius: 8px; cursor: pointer; }
.tips { color: #f04444; font-size: 12px; margin-top: 6px; text-align: center; }
#supportInfo { text-align: center; }

/* 加载动画样式 */
.loader {
  width: 40px;
  height: 40px;
  margin: 12px auto;
  border: 4px solid #e0e0e0;
  border-top-color: #3a76f0;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 关闭按钮 */
.modal .close-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #666;
  cursor: pointer;
}

/* 支付二维码页优化样式 */
.pay-panel { text-align: center; }
.pay-header { padding: 8px 0 4px; }
.pay-header .brand { display:inline-flex; align-items:center; gap:6px; color:#18c641; font-weight:600; }
.pay-header .pay-product { color:#666; font-size:14px; margin-top:6px; }
.pay-header .pay-price { color:#18c641; font-size:26px; font-weight:700; margin:8px 0; }
.pay-header .pay-tip { color:#e53935; font-size:13px; font-weight:600; }
.qr-box img { max-width: 260px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.pay-footer { margin-top: 12px; background:#2b2d33; color:#fff; border-radius:10px; padding:12px; }
.pay-footer .countdown { font-size:14px; }
.pay-footer .countdown .mm, .pay-footer .countdown .ss { color:#ff3b30; font-weight:700; font-size:18px; padding:0 4px; }
.pay-footer .order { margin-top:8px; font-size:13px; }
.pay-footer .cta-btn { margin-top:10px; width:100%; height:36px; border:none; border-radius:8px; background:#3a76f0; color:#fff; font-weight:600; }
.btn-primary.small { height:36px; }

/* 适配移动端安全区 */
.safe-bottom { padding-bottom: env(safe-area-inset-bottom); }