/* Membership 页面样式 */
.membership-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.membership-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.btn-back {
  background: var(--gray);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.btn-back:hover {
  background: var(--light-gray);
}

.membership-info-card {
  background: var(--gray);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
}

/* 每日签到 */
.checkin-section {
  margin-bottom: 40px;
}

.checkin-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.checkin-info h3 {
  margin: 0 0 10px 0;
  font-size: 24px;
}

.checkin-done {
  color: #4CAF50;
  font-weight: 600;
  margin: 5px 0;
}

.checkin-pending {
  color: #FFD700;
  font-weight: 600;
  margin: 5px 0;
}

.consecutive-days {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin: 5px 0;
}

.btn-checkin {
  background: white;
  color: #667eea;
  border: none;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-checkin:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.btn-checkin:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkin-rewards {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.reward-item {
  background: var(--gray);
  padding: 15px 25px;
  border-radius: 8px;
  text-align: center;
}

.reward-item span {
  color: #FFD700;
  font-weight: 600;
  display: block;
  margin-top: 5px;
}

/* 积分充值 */
.points-recharge-section {
  margin-bottom: 40px;
}

.points-recharge-section h2 {
  margin-bottom: 20px;
}

.recharge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.recharge-card {
  background: var(--gray);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.recharge-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}

.recharge-points {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.recharge-price {
  font-size: 24px;
  color: var(--primary);
  font-weight: 600;
}

.recharge-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  text-transform: uppercase;
}


.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .label {
  color: var(--light-gray);
  font-size: 14px;
}

.info-row .value {
  font-size: 18px;
  font-weight: 600;
}

.info-row .value.points {
  color: #ffd700;
}

.info-row .value.coins {
  color: #ff6b6b;
}

.badge-free { background: #666; }
.badge-weekly { background: #4CAF50; }
.badge-monthly { background: #2196F3; }
.badge-quarterly { background: #9C27B0; }
.badge-yearly { background: #FF9800; }

/* 会员套餐 */
.plans-section {
  margin-bottom: 40px;
}

.plans-section h2 {
  margin-bottom: 20px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.plan-card {
  background: var(--gray);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-5px);
}

.plan-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  text-transform: uppercase;
}

.plan-card h3 {
  margin: 20px 0;
  font-size: 24px;
}

.plan-price {
  margin: 20px 0;
}

.current-price {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary);
}

.original-price {
  font-size: 18px;
  color: var(--light-gray);
  text-decoration: line-through;
  margin-left: 10px;
}

.plan-duration {
  color: var(--light-gray);
  margin-bottom: 20px;
}

.plan-features {
  text-align: left;
  margin: 20px 0;
}

.feature-item {
  padding: 8px 0;
  color: var(--light-gray);
}

.plan-bonus {
  color: #ffd700;
  font-weight: 600;
  margin: 15px 0;
}

.btn-subscribe {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-subscribe:hover {
  background: #c40812;
}

.btn-subscribe:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.payment-unavailable {
  background: #fff3cd;
  color: #856404;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: center;
  font-size: 14px;
}

.recharge-card.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* 交易记录 */
.transactions-section,
.orders-section {
  margin-bottom: 40px;
}

.transactions-section h2,
.orders-section h2 {
  margin-bottom: 20px;
}

.transactions-list,
.orders-list {
  background: var(--gray);
  border-radius: 12px;
  padding: 20px;
}

.transaction-item,
.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.transaction-item:last-child,
.order-item:last-child {
  border-bottom: none;
}

.tx-info,
.order-info {
  flex: 1;
}

.tx-reason,
.order-plan {
  font-size: 16px;
  margin-bottom: 5px;
}

.tx-time,
.order-time {
  font-size: 12px;
  color: var(--light-gray);
}

.tx-amount {
  font-size: 20px;
  font-weight: 600;
  min-width: 100px;
  text-align: right;
}

.tx-amount.positive {
  color: #4CAF50;
}

.tx-amount.negative {
  color: #ff6b6b;
}

.order-amount {
  font-size: 18px;
  font-weight: 600;
  margin: 0 20px;
}

.order-status {
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  text-transform: uppercase;
}

.status-completed {
  background: #4CAF50;
  color: white;
}

.status-pending {
  background: #FF9800;
  color: white;
}

.status-failed {
  background: #f44336;
  color: white;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--light-gray);
}

/* 响应式 */
@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .transaction-item,
  .order-item {
    flex-wrap: wrap;
  }

  .tx-amount,
  .order-amount {
    width: 100%;
    text-align: left;
    margin-top: 10px;
  }
}
