/* 权限控制样式 */
.permission-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
  vertical-align: middle;
}

.points-badge {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.limit-badge {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.vip-badge {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.permission-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.permission-modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  text-align: center;
}

.permission-modal h3 {
  margin-top: 0;
  color: #333;
}

.permission-modal p {
  margin-bottom: 20px;
  color: #666;
}

.permission-modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.permission-modal button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.permission-modal .btn-primary {
  background-color: #007bff;
  color: white;
}

.permission-modal .btn-secondary {
  background-color: #6c757d;
  color: white;
}

/* 产品页面权限提示 */
.product-permission-notice {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 20px;
}

.product-permission-notice.warning {
  background-color: #fff3cd;
  border-color: #ffeaa7;
}

.product-permission-notice.danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
}