/* ============================================
   bio-info H5 — 小程序转 Web (SPA)
   来源: miniprogram wxss 文件合并 + rpx→px 转换
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* App shell — mobile viewport centered on desktop */
.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f5f5f5;
  position: relative;
}

/* --- Shared utilities --- */
.container { padding: 15px; padding-bottom: 80px; }
.card {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}
.loading-state {
  text-align: center;
  padding: 50px;
  color: #999;
  font-size: 14px;
}
.hidden { display: none !important; }

/* --- Tab Bar --- */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  display: flex;
  border-top: 1px solid #eee;
  z-index: 100;
}
.tab-item {
  flex: 1;
  text-align: center;
  padding: 8px 0 6px;
  cursor: pointer;
  color: #999;
  font-size: 10px;
  transition: color 0.2s;
}
.tab-item .tab-icon { font-size: 22px; display: block; margin-bottom: 2px; }
.tab-item.active { color: #07c160; }
.tab-create-btn {
  width: 48px; height: 48px;
  background: #07c160;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -12px auto 0;
  box-shadow: 0 4px 14px rgba(7,193,96,0.4);
  cursor: pointer;
}

/* --- Toast --- */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  transition: opacity 0.3s;
  pointer-events: none;
}
.toast.success { background: rgba(7,193,96,0.9); }
.toast.error { background: rgba(255,77,79,0.9); }
.toast.hide { opacity: 0; }

/* --- Loading overlay --- */
.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}
.loading-overlay .spinner {
  width: 36px; height: 36px;
  border: 3px solid #eee;
  border-top-color: #07c160;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   PAGE: Login
   ============================================ */
.page-login .login-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #07c160 0%, #05a050 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.page-login .login-box {
  width: 100%;
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.page-login .logo-area { text-align: center; margin-bottom: 30px; }
.page-login .logo-placeholder {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #07c160, #05a050);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}
.page-login .title {
  font-size: 24px; font-weight: 700;
  text-align: center; color: #333;
  margin-bottom: 8px;
}
.page-login .subtitle {
  font-size: 13px; color: #999;
  text-align: center; margin-bottom: 30px;
}
.page-login .features { margin-bottom: 30px; }
.page-login .feature-row {
  display: flex; align-items: center;
  margin-bottom: 12px;
}
.page-login .feature-check {
  width: 20px; height: 20px; line-height: 20px;
  text-align: center; background: #07c160; color: #fff;
  border-radius: 50%; font-size: 12px;
  margin-right: 10px; flex-shrink: 0;
}
.page-login .feature-text { font-size: 13px; color: #666; }
.page-login .login-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 48px;
  background: #07c160; color: #fff;
  border: none; border-radius: 24px;
  font-size: 16px; cursor: pointer;
  margin-bottom: 20px;
  transition: opacity 0.2s;
}
.page-login .login-btn:active { opacity: 0.8; }
.page-login .login-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.page-login .agreement { text-align: center; font-size: 12px; color: #999; }
.page-login .agreement .link { color: #07c160; cursor: pointer; }

/* Invite modal (login page) */
.invite-modal-mask {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 30px; z-index: 500;
}
.invite-modal-box {
  width: 100%; max-width: 360px;
  background: #fff; border-radius: 16px;
  padding: 30px;
}
.invite-modal-box .modal-title {
  font-size: 20px; font-weight: 600;
  text-align: center; margin-bottom: 8px;
}
.invite-modal-box .modal-subtitle {
  font-size: 13px; color: #999;
  text-align: center; margin-bottom: 20px;
}
.invite-modal-box .invite-input {
  width: 100%; height: 48px;
  background: #f5f5f5; border: none;
  border-radius: 8px; padding: 0 15px;
  font-size: 16px; text-align: center;
  letter-spacing: 4px; margin-bottom: 20px;
  outline: none;
}
.invite-modal-box .modal-btns { display: flex; gap: 10px; }
.invite-modal-box .modal-btns button {
  flex: 1; height: 44px; line-height: 44px;
  border-radius: 22px; font-size: 15px;
  border: none; cursor: pointer;
}
.invite-modal-box .btn-skip { background: #f5f5f5; color: #666; }
.invite-modal-box .btn-confirm { background: #07c160; color: #fff; }

/* ============================================
   PAGE: Home (Index)
   ============================================ */
.page-home .user-card {
  display: flex; align-items: center; padding: 15px;
}
.page-home .avatar {
  width: 50px; height: 50px; border-radius: 50%;
  margin-right: 15px; object-fit: cover;
  background: #e8e8e8;
}
.page-home .nickname { font-size: 18px; font-weight: 600; margin-bottom: 6px; display: block; }
.page-home .quota-badge {
  display: inline-block; background: #f6ffed; color: #07c160;
  padding: 3px 10px; border-radius: 4px; font-size: 12px;
}
.page-home .feature-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 15px 0;
}
.page-home .feature-item {
  width: calc(50% - 5px);
  background: #fff; border-radius: 10px;
  padding: 20px 15px; text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  cursor: pointer; transition: opacity 0.2s;
}
.page-home .feature-item:active { opacity: 0.7; }
.page-home .feature-icon {
  width: 50px; height: 50px; line-height: 50px;
  border-radius: 50%; font-size: 24px;
  margin: 0 auto 10px;
}
.page-home .feature-icon.analysis { background: #e6f7ff; }
.page-home .feature-icon.tasks { background: #f6ffed; }
.page-home .feature-icon.invite { background: #fff2e8; }
.page-home .feature-name { display: block; font-size: 15px; font-weight: 600; color: #333; margin-bottom: 6px; }
.page-home .feature-desc { font-size: 12px; color: #999; }
.page-home .intro-item { display: flex; align-items: center; margin-bottom: 12px; }
.page-home .intro-num {
  width: 24px; height: 24px; line-height: 24px;
  text-align: center; background: #07c160; color: #fff;
  border-radius: 50%; font-size: 12px; margin-right: 10px; flex-shrink: 0;
}
.page-home .intro-text { font-size: 13px; color: #666; }
.page-home .tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.page-home .species-tag {
  padding: 6px 14px; background: #f5f5f5;
  border-radius: 16px; font-size: 12px; color: #666;
}

/* ============================================
   PAGE: Task List
   ============================================ */
.page-task-list .container { padding-bottom: 100px; }
.page-task-list .task-item { padding: 15px; margin-bottom: 15px; cursor: pointer; }
.page-task-list .task-item:active { opacity: 0.7; }
.page-task-list .task-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 10px;
}
.page-task-list .task-type { font-size: 16px; font-weight: 600; color: #333; }
.page-task-list .task-status {
  padding: 3px 10px; border-radius: 4px; font-size: 12px;
}
.page-task-list .status-created { background: #f5f5f5; color: #999; }
.page-task-list .status-pending { background: #fff2e8; color: #fa8c16; }
.page-task-list .status-running { background: #f6ffed; color: #07c160; }
.page-task-list .status-paused { background: #fff2e8; color: #fa8c16; }
.page-task-list .status-completed { background: #f6ffed; color: #52c41a; }
.page-task-list .status-failed { background: #fff1f0; color: #ff4d4f; }
.page-task-list .task-pipeline { font-size: 13px; color: #666; margin-bottom: 10px; }
.page-task-list .task-info { display: flex; justify-content: space-between; font-size: 12px; color: #999; margin-bottom: 10px; }
.page-task-list .payment-badge {
  display: inline-block; padding: 3px 10px; background: #fff2e8;
  color: #fa8c16; border-radius: 4px; font-size: 12px;
}
.page-task-list .completed-badge {
  display: inline-block; padding: 3px 10px; background: #f6ffed;
  color: #52c41a; border-radius: 4px; font-size: 12px;
}
.page-task-list .empty-state { text-align: center; padding: 60px 30px; }
.page-task-list .empty-icon {
  width: 80px; height: 80px; background: #f0f0f0;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 36px; margin: 0 auto 15px;
}
.page-task-list .empty-text { font-size: 15px; color: #333; margin-bottom: 8px; display: block; }
.page-task-list .empty-tip { font-size: 12px; color: #999; }

/* ============================================
   PAGE: Task Create
   ============================================ */
.page-task-create .container { padding-bottom: 80px; }
.page-task-create .section { margin-bottom: 15px; }
.page-task-create .price-tag {
  margin-top: 10px; padding: 10px; background: #fff2e8;
  border-radius: 6px; color: #fa8c16; font-size: 13px;
}
.page-task-create .price-tag .price-tip { font-size: 12px; color: #999; margin-left: 8px; }
.page-task-create .option-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.page-task-create .option-item {
  padding: 10px 20px; background: #f5f5f5; border-radius: 6px;
  font-size: 13px; color: #666; border: 1px solid transparent;
  cursor: pointer; transition: all 0.2s; user-select: none;
}
.page-task-create .option-item.active {
  background: #f6ffed; border-color: #07c160; color: #07c160;
}
.page-task-create .option-item-blue.active {
  background: #e6f7ff; border-color: #1890ff; color: #1890ff;
}
.page-task-create .pipeline-list { display: flex; flex-direction: column; gap: 10px; }
.page-task-create .pipeline-item {
  display: flex; align-items: center; padding: 15px;
  background: #f5f5f5; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer;
}
.page-task-create .pipeline-item.active { background: #f6ffed; border-color: #07c160; }
.page-task-create .pipeline-name { flex: 1; font-size: 14px; color: #333; }
.page-task-create .pipeline-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid #ddd; display: flex; align-items: center;
  justify-content: center; font-size: 12px; color: transparent;
}
.page-task-create .pipeline-item.active .pipeline-check {
  background: #07c160; border-color: #07c160; color: #fff;
}
/* Params */
.page-task-create .param-item {
  display: flex; align-items: center;
  justify-content: space-between; padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.page-task-create .param-item:last-child { border-bottom: none; }
.page-task-create .param-label { font-size: 13px; color: #666; }
.page-task-create .picker-btn {
  padding: 8px 15px; background: #f5f5f5;
  border-radius: 4px; font-size: 13px; color: #333;
  border: none; cursor: pointer;
}
.page-task-create .param-item input[type="number"] {
  width: 100px; padding: 8px 10px; background: #f5f5f5;
  border: none; border-radius: 4px; font-size: 13px; text-align: right; outline: none;
}
/* Results section */
.page-task-create .requirement-group { margin-bottom: 15px; }
.page-task-create .group-label { display: block; font-size: 13px; color: #666; margin-bottom: 8px; }
.page-task-create .tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.page-task-create .tag {
  padding: 6px 14px; background: #f5f5f5; border-radius: 16px;
  font-size: 12px; color: #666; border: 1px solid transparent;
  cursor: pointer; transition: all 0.2s;
}
.page-task-create .tag.active { background: #f6ffed; border-color: #07c160; color: #07c160; }
/* Submit */
.page-task-create .submit-bar {
  position: fixed; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  padding: 12px 15px; background: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  z-index: 50;
}
.page-task-create .submit-btn {
  width: 100%; height: 48px; line-height: 48px;
  background: #07c160; color: #fff; font-size: 16px;
  border: none; border-radius: 24px; cursor: pointer;
  transition: opacity 0.2s;
}
.page-task-create .submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.page-task-create .submit-btn:active:not(:disabled) { opacity: 0.8; }

/* Upload Box (used on task-create page) */
.upload-box {
  background: #f8f8f8; border: 1px dashed #ddd;
  border-radius: 8px; padding: 20px;
}
.upload-box .upload-area {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer; min-height: 80px;
}
.upload-box .upload-icon { font-size: 36px; margin-bottom: 8px; }
.upload-box .upload-text { font-size: 14px; color: #333; margin-bottom: 4px; }
.upload-box .upload-tip { font-size: 12px; color: #999; }
.upload-box .file-info {
  display: flex; align-items: center;
  padding: 10px; background: #fff; border-radius: 6px;
}
.upload-box .file-icon { width: 30px; height: 30px; margin-right: 10px; font-size: 24px; display: flex; align-items: center; }
.upload-box .file-detail { flex: 1; }
.upload-box .file-name { font-size: 13px; color: #333; word-break: break-all; display: block; }
.upload-box .file-size { font-size: 12px; color: #999; margin-top: 4px; display: block; }
.upload-box .delete-btn { cursor: pointer; font-size: 20px; color: #999; padding: 5px; }

/* Progress Bar (shared component) */
.progress-bar { padding: 10px 0; }
.progress-bar .progress-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 8px;
}
.progress-bar .progress-status { font-size: 13px; font-weight: 500; }
.progress-bar .progress-percent { font-size: 13px; color: #666; }
.progress-bar .progress-track {
  height: 6px; background: #e8e8e8; border-radius: 3px; overflow: hidden;
}
.progress-bar .progress-fill {
  height: 100%; border-radius: 3px; transition: width 0.3s ease;
}
.progress-bar .progress-message { margin-top: 8px; font-size: 12px; color: #999; display: block; }

/* ============================================
   PAGE: Task Detail
   ============================================ */
.page-task-detail .status-card { padding: 20px; margin-bottom: 15px; }
.page-task-detail .status-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px;
}
.page-task-detail .status-text { font-size: 20px; font-weight: 600; }
.page-task-detail .status-created { color: #999; }
.page-task-detail .status-pending { color: #fa8c16; }
.page-task-detail .status-running { color: #07c160; }
.page-task-detail .status-paused { color: #fa8c16; }
.page-task-detail .status-completed { color: #52c41a; }
.page-task-detail .status-failed { color: #ff4d4f; }
.page-task-detail .download-btn {
  padding: 8px 15px; background: #07c160; color: #fff;
  border-radius: 4px; font-size: 13px; border: none; cursor: pointer;
}
.page-task-detail .task-meta { margin-top: 15px; padding-top: 10px; border-top: 1px solid #f0f0f0; font-size: 13px; color: #999; }
.page-task-detail .task-meta span { display: block; margin-bottom: 4px; }
.page-task-detail .payment-section {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px; margin-bottom: 15px; background: #fff2e8; border-radius: 8px;
}
.page-task-detail .payment-amount { font-size: 18px; color: #ff4d4f; font-weight: 600; }
.page-task-detail .pay-btn {
  padding: 8px 20px; background: #ff4d4f; color: #fff;
  border-radius: 4px; font-size: 13px; border: none; cursor: pointer;
}
.page-task-detail .pause-card {
  padding: 20px; margin-bottom: 15px; background: #fffbe6;
  border: 1px solid #ffe58f; border-radius: 8px;
}
.page-task-detail .pause-title { font-size: 16px; font-weight: 600; color: #fa8c16; margin-bottom: 10px; }
.page-task-detail .pause-question { font-size: 13px; color: #666; margin-bottom: 15px; }
.page-task-detail .pause-options { display: flex; flex-wrap: wrap; gap: 10px; }
.page-task-detail .option-btn {
  padding: 8px 20px; background: #fff; border: 1px solid #d9d9d9;
  border-radius: 4px; font-size: 13px; color: #333; cursor: pointer;
}
.page-task-detail .detail-section { padding: 15px; margin-bottom: 15px; }
.page-task-detail .detail-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #f5f5f5;
}
.page-task-detail .detail-item:last-child { border-bottom: none; }
.page-task-detail .item-label { font-size: 13px; color: #666; }
.page-task-detail .item-value { font-size: 13px; color: #333; }

/* ============================================
   PAGE: Invite
   ============================================ */
.page-invite .invite-card {
  padding: 25px 20px; margin-bottom: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff; border-radius: 8px;
}
.page-invite .invite-title { text-align: center; font-size: 13px; opacity: 0.9; margin-bottom: 10px; }
.page-invite .invite-code { text-align: center; margin-bottom: 10px; cursor: pointer; }
.page-invite .code-text {
  display: block; font-size: 36px; font-weight: 700;
  letter-spacing: 4px; margin-bottom: 4px;
}
.page-invite .copy-hint { font-size: 12px; opacity: 0.8; }
.page-invite .invite-desc { text-align: center; font-size: 12px; opacity: 0.9; margin-bottom: 20px; }
.page-invite .invite-actions { display: flex; gap: 10px; }
.page-invite .invite-actions button {
  flex: 1; padding: 12px 0; border-radius: 6px;
  font-size: 13px; font-weight: 500; border: none; cursor: pointer;
}
.page-invite .share-btn { background: #fff; color: #667eea; }
.page-invite .poster-btn { background: rgba(255,255,255,0.2); color: #fff; }
.page-invite .stats-card { padding: 20px; margin-bottom: 15px; }
.page-invite .stats-row { display: flex; justify-content: space-around; }
.page-invite .stats-item { text-align: center; }
.page-invite .stats-num { display: block; font-size: 22px; font-weight: 700; color: #333; margin-bottom: 4px; }
.page-invite .stats-label { font-size: 12px; color: #999; }
.page-invite .rules-card { padding: 20px; margin-bottom: 15px; }
.page-invite .card-title { font-size: 15px; font-weight: 600; margin-bottom: 15px; color: #333; }
.page-invite .rule-item { display: flex; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.page-invite .rule-item:last-child { border-bottom: none; }
.page-invite .rule-icon { font-size: 20px; margin-right: 10px; }
.page-invite .rule-content { flex: 1; }
.page-invite .rule-title { display: block; font-size: 13px; font-weight: 500; color: #333; margin-bottom: 4px; }
.page-invite .rule-desc { font-size: 12px; color: #666; }
.page-invite .milestone-card { padding: 20px; }
.page-invite .milestone-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px; background: #f8f9fa; border-radius: 6px; margin-bottom: 10px;
}
.page-invite .milestone-item:last-child { margin-bottom: 0; }
.page-invite .milestone-item.claimed { opacity: 0.6; }
.page-invite .milestone-info { flex: 1; }
.page-invite .milestone-name { display: block; font-size: 13px; color: #333; margin-bottom: 4px; }
.page-invite .milestone-prize { font-size: 12px; color: #07c160; }
.page-invite .claim-btn {
  padding: 8px 16px; background: #07c160; color: #fff;
  border-radius: 4px; font-size: 12px; border: none; cursor: pointer;
}
.page-invite .claimed-text { font-size: 12px; color: #999; }
.page-invite .locked-text { font-size: 12px; color: #ccc; }

/* ============================================
   PAGE: Payment
   ============================================ */
.page-payment .container { padding-bottom: 100px; }
.page-payment .amount-card {
  padding: 30px 20px; margin-bottom: 15px; text-align: center;
  background: linear-gradient(135deg, #07c160 0%, #05a050 100%);
  color: #fff; border-radius: 8px;
}
.page-payment .amount-label { display: block; font-size: 13px; opacity: 0.9; margin-bottom: 10px; }
.page-payment .amount-value { display: block; font-size: 36px; font-weight: 700; }
.page-payment .methods-card { padding: 20px; margin-bottom: 15px; }
.page-payment .methods-title { font-size: 15px; font-weight: 600; margin-bottom: 15px; color: #333; }
.page-payment .method-item {
  display: flex; align-items: center; padding: 15px;
  border: 1px solid #e8e8e8; border-radius: 6px; margin-bottom: 10px;
  cursor: pointer; transition: all 0.2s;
}
.page-payment .method-item:last-child { margin-bottom: 0; }
.page-payment .method-item.selected { border-color: #07c160; background: #f6ffed; }
.page-payment .method-icon-placeholder {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; margin-right: 10px; flex-shrink: 0;
}
.page-payment .method-icon-placeholder.free { background: #07c160; }
.page-payment .method-icon-placeholder.coupon { background: #faad14; }
.page-payment .method-icon-placeholder.wechat { background: #07c160; }
.page-payment .method-info { flex: 1; }
.page-payment .method-name { display: block; font-size: 14px; color: #333; margin-bottom: 4px; }
.page-payment .method-desc { font-size: 12px; color: #999; }
.page-payment .method-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid #d9d9d9; display: flex; align-items: center;
  justify-content: center; font-size: 12px; color: transparent; flex-shrink: 0;
}
.page-payment .method-check.checked { background: #07c160; border-color: #07c160; color: #fff; }
.page-payment .info-card { padding: 20px; }
.page-payment .info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #f5f5f5;
}
.page-payment .info-row:last-child { border-bottom: none; }
.page-payment .info-row.total { margin-top: 10px; padding-top: 15px; border-top: 2px solid #f0f0f0; }
.page-payment .info-label { font-size: 13px; color: #666; }
.page-payment .info-value { font-size: 13px; color: #333; }
.page-payment .info-value.discount { color: #ff4d4f; }
.page-payment .info-value.total-amount { font-size: 20px; font-weight: 700; color: #ff4d4f; }
.page-payment .footer {
  position: fixed; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  padding: 12px 15px; background: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  z-index: 50;
}
.page-payment .pay-btn {
  width: 100%; height: 48px; line-height: 48px;
  background: #07c160; color: #fff; font-size: 16px;
  border: none; border-radius: 24px; cursor: pointer;
}
.page-payment .pay-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.page-payment .pay-btn:active:not(:disabled) { opacity: 0.8; }

/* ============================================
   SPA Page transitions
   ============================================ */
.spa-page { display: none; }
.spa-page.active { display: block; }

/* Custom input boxes for "其他" options */
.custom-input-box { margin-top: 12px; padding: 12px; background: #fafafa; border-radius: 8px; border: 1px solid #eee; }
.custom-input-box.hidden { display: none; }
.custom-input-box input,
.custom-input-box textarea {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px; font-size: 14px;
  border: 1px solid #ddd; border-radius: 6px;
  background: #fff; color: #333;
  font-family: inherit;
}
.custom-input-box textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.custom-input-box input:focus,
.custom-input-box textarea:focus { outline: none; border-color: #07c160; }
.custom-input-box.error input,
.custom-input-box.error textarea { border-color: #ff4d4f; }
.custom-hint {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 6px; font-size: 12px; color: #888;
}
.custom-hint .counter { color: #999; flex-shrink: 0; margin-left: 8px; }
.custom-hint .counter.over { color: #ff4d4f; }
.custom-rule { margin-top: 4px; font-size: 11px; color: #aaa; line-height: 1.5; }
.custom-input-box.error .custom-rule { color: #ff4d4f; }