/* ============================================================================
   HKPC Donation — Standalone styles
   ============================================================================ */

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang HK', 'Microsoft JhengHei', Arial, sans-serif;
  background: #f5f7fa;
  color: #303133;
}

/* ---------- Layout ---------- */
.donate-layout { min-height: 100vh; }

.donate-header {
  background: #ffffff;
  border-bottom: 1px solid #e4e7ed;
  padding: 12px 0;
}
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  color: #303133;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}
.logo img { height: 40px; margin-right: 12px; }
.back-link { color: #909399; font-size: 14px; text-decoration: none; }
.back-link:hover { color: #409eff; }

.donate-steps {
  background: #ffffff;
  padding: 24px 0;
  border-bottom: 1px solid #e4e7ed;
}
.steps-inner { max-width: 900px; margin: 0 auto; padding: 0 24px; }

.donate-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px;
}

.donate-footer {
  text-align: center;
  color: #909399;
  font-size: 12px;
  padding: 24px;
  border-top: 1px solid #e4e7ed;
  background: #ffffff;
  margin-top: 48px;
}
.donate-footer p { margin: 4px 0; }
.donate-footer .small { font-size: 11px; }
.donate-footer a { color: #409eff; text-decoration: none; }

/* ---------- Common ---------- */
.page-title {
  font-size: 22px;
  color: #303133;
  margin: 0 0 24px 0;
  text-align: center;
}
.section-label {
  font-size: 15px;
  color: #606266;
  margin-bottom: 12px;
  font-weight: 500;
}
.hint { font-size: 12px; color: #909399; margin-left: 8px; font-weight: 400; }
.field-hint {
  font-size: 12px;
  color: #909399;
  line-height: 1.4;
  margin-top: 4px;
}
.mono { font-family: monospace; }

.cta-row {
  margin-top: 24px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.cta-row .el-button { min-width: 180px; }

/* ---------- Step 1 ---------- */
.step1, .step2, .step3, .donate-success { max-width: 720px; margin: 0 auto; }

.plan-tabs { text-align: center; margin-bottom: 24px; }
.plan-tabs .el-radio-button__inner { min-width: 160px; }

.amount-section { margin: 32px 0; }
.amount-presets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.amount-btn {
  padding: 16px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #606266;
  transition: all .2s;
  user-select: none;
}
.amount-btn:hover { border-color: #409eff; color: #409eff; }
.amount-btn.active {
  border-color: #409eff;
  color: #ffffff;
  background: #409eff;
}
.custom-amount {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.currency { color: #909399; }

/* ---------- Notices ---------- */
.notice {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 4px;
  margin: 16px 0;
  font-size: 14px;
}
.notice i { font-size: 20px; margin-top: 2px; }
.notice p { margin: 4px 0 0 0; }
.notice-info { background: #ecf5ff; border-left: 4px solid #409eff; color: #303133; }
.notice-info i { color: #409eff; }
.notice-success { background: #f0f9eb; border-left: 4px solid #67c23a; color: #303133; }
.notice-success i { color: #67c23a; }

/* ---------- Step 3 channels ---------- */
.summary-box {
  background: #f5f7fa;
  border-radius: 4px;
  padding: 16px 20px;
  margin: 16px 0 24px 0;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #e4e7ed;
  font-size: 14px;
}
.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: #909399; }
.summary-row .value { color: #303133; font-weight: 500; }
.summary-row .value.amount { color: #f56c6c; font-size: 18px; font-weight: 700; }

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.channel-card {
  padding: 16px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}
.channel-card i { font-size: 32px; color: #909399; display: block; margin-bottom: 8px; }
.channel-card .ch-label { font-weight: 500; color: #303133; margin-bottom: 4px; }
.channel-card .ch-hint { font-size: 12px; color: #909399; }
.channel-card:hover { border-color: #409eff; }
.channel-card.active {
  border-color: #409eff;
  background: #ecf5ff;
}
.channel-card.active i,
.channel-card.active .ch-label { color: #409eff; }

.channel-detail {
  padding: 16px;
  background: #fafafa;
  border-radius: 4px;
  margin-bottom: 24px;
}
.channel-detail h4 { margin: 0 0 12px 0; color: #303133; }
.channel-detail .info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
}
.channel-detail .info-row span { color: #909399; min-width: 80px; }
.channel-detail .hint { font-size: 12px; color: #909399; margin: 8px 0 0 0; display: block; }

.qr-wrap {
  text-align: center;
  margin: 16px 0;
}
.qr-wrap img {
  max-width: 220px;
  border: 1px solid #e4e7ed;
  padding: 8px;
  background: #ffffff;
}

.upload-section { margin: 24px 0; }

/* ---------- Success ---------- */
.status-icon {
  text-align: center;
  font-size: 72px;
  margin: 16px 0;
}
.status-icon.ok { color: #67c23a; }
.status-icon.wait { color: #e6a23c; }
.status-icon.err { color: #f56c6c; }
.status-title {
  text-align: center;
  font-size: 24px;
  color: #303133;
  margin: 0 0 8px 0;
}
.status-subtitle {
  text-align: center;
  color: #606266;
  font-size: 14px;
  margin: 0 0 24px 0;
}
.thank-you {
  text-align: center;
  margin: 24px 0;
  color: #606266;
  font-size: 15px;
}
.thank-you .signature { color: #909399; font-size: 13px; margin-top: 4px; }
.action-row {
  margin-top: 32px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.action-row .el-button { min-width: 180px; }
.share-hint {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e4e7ed;
  text-align: center;
  font-size: 13px;
  color: #909399;
}
.share-icons { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 4px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
}
.share-btn.fb { background: #1877f2; }
.share-btn.wa { background: #25d366; }
.share-btn:hover { opacity: .9; }
.error-state {
  text-align: center;
  padding: 40px 20px;
  color: #909399;
}
.error-state i { font-size: 60px; color: #e6a23c; }
.error-state h3 { color: #303133; margin: 16px 0 8px 0; }
.error-state p { margin: 0 0 24px 0; font-size: 14px; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .header-inner { padding: 0 12px; }
  .donate-body { padding: 16px 12px; }
  .cta-row, .action-row { flex-direction: column; }
  .cta-row .el-button, .action-row .el-button { width: 100%; min-width: 0; }
  .el-form-item__label { width: 90px !important; }
  .plan-tabs .el-radio-button__inner { min-width: 120px; }
}
