/* 套餐卡片网格 - 响应式 */
.plan-cards { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 16px; 
  margin: 16px 0; 
}

@media (min-width: 640px) {
  .plan-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .plan-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #e2e8f0;
  transition: all .3s;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.plan-card.recommended { 
  border-color: #2563eb; 
  box-shadow: 0 4px 16px rgba(37,99,235,0.08);
}

.plan-card .tag {
  position: absolute;
  top: -1px;
  right: 16px;
  background: #2563eb;
  color: #fff;
  padding: 3px 12px;
  border-radius: 0 0 10px 10px;
  font-size: 0.7rem;
  font-weight: 600;
}

.plan-name { 
  font-size: 1.1rem; 
  font-weight: 600; 
  margin-bottom: 8px; 
  color: #0f172a; 
}

.plan-price { 
  font-size: 1.7rem; 
  color: #ef4444; 
  font-weight: 700; 
  margin-bottom: 6px; 
}

.plan-price span { 
  font-size: .85rem; 
  color: #64748b; 
  font-weight: normal; 
}

.plan-desc { 
  font-size: .85rem; 
  color: #64748b; 
  margin-bottom: 16px; 
  line-height: 1.6; 
  flex: 1;
}

.plan-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-size: .95rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  margin-top: auto;
}

.plan-btn:hover { 
  background: #1d4ed8; 
  transform: translateY(-1px); 
}

/* 支付方式弹窗 */
.pay-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: none;
}

.pay-modal.show { 
  display: block; 
}

.pay-modal-mask {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  animation: fadeIn 0.25s ease;
}

.pay-modal-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  animation: slideUp 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.pay-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.pay-modal-header h3 { 
  margin: 0; 
  font-size: 1.1rem; 
  color: #0f172a; 
  font-weight: 600; 
}

.pay-modal-header .close {
  width: 36px; 
  height: 36px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 1.2rem;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.pay-modal-header .close:hover { 
  background: #cbd5e1; 
}

.pay-options { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  color: #334155;
  -webkit-tap-highlight-color: transparent;
}

.pay-option:active { 
  transform: scale(0.98); 
  background: #f8fafc; 
}

.pay-option .icon {
  width: 42px; 
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
}

.pay-option.alipay .icon { 
  background: #1677ff; 
}

.pay-option.wxpay .icon { 
  background: #07c160; 
}

.pay-option .name { 
  flex: 1; 
  text-align: left; 
  font-weight: 500; 
}

.pay-option .arrow { 
  color: #94a3b8; 
  font-size: 1.4rem; 
}

@keyframes fadeIn { 
  from { opacity: 0; } 
  to { opacity: 1; } 
}

@keyframes slideUp { 
  from { transform: translateY(100%); } 
  to { transform: translateY(0); } 
}
