/* ========================================
   定价模态框样式
   ======================================== */

.pricing-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pricing-modal.open {
  display: flex;
}

.pricing-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.pricing-modal-content {
  position: relative;
  background-color: white;
  border-radius: 1.5rem;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  .pricing-modal-content {
    background-color: #1f2937;
    color: white;
  }
}

.pricing-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.pricing-modal-title {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
}

@media (prefers-color-scheme: dark) {
  .pricing-modal-title {
    color: white;
  }
}

.pricing-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
  color: #6b7280;
}

.pricing-modal-close:hover {
  background-color: #f3f4f6;
}

@media (prefers-color-scheme: dark) {
  .pricing-modal-close {
    color: #9ca3af;
  }
  
  .pricing-modal-close:hover {
    background-color: #374151;
  }
}

.pricing-modal-close .material-symbols-outlined {
  font-size: 24px;
}

.pricing-modal-subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 2rem;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  .pricing-modal-subtitle {
    color: #9ca3af;
  }
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pricing-card {
  position: relative;
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
}

.pricing-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: #DC2626;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.pricing-card-header {
  margin-bottom: 1.5rem;
}

.pricing-card-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-card-price {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.pricing-card-price .price {
  font-size: 2rem;
  font-weight: 800;
}

.pricing-card-price .period {
  font-size: 1rem;
  opacity: 0.8;
  margin-left: 0.25rem;
}

.pricing-card-description {
  font-size: 0.875rem;
  opacity: 0.9;
}

.pricing-card-features {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.pricing-feature .feature-bullet {
  font-size: 1.25rem;
  font-weight: bold;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.pricing-card-button {
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  background-color: #DC2626;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.pricing-card-button:hover {
  background-color: #B91C1C;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* 渐变文字效果 */
.gradient-text {
  background: linear-gradient(to right, #40ffaa, #4079ff, #40ffaa, #4079ff, #40ffaa);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-animation 3s ease infinite;
  font-weight: 800;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
  100% {
    background-position: 0% center;
  }
}

.pricing-modal-footer {
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 1rem;
}

@media (prefers-color-scheme: dark) {
  .pricing-modal-footer {
    border-top-color: #374151;
  }
}

/* 响应式 */
@media (max-width: 768px) {
  .pricing-modal-content {
    padding: 1.5rem;
  }
  
  .pricing-modal-title {
    font-size: 1.5rem;
  }
  
  .pricing-cards {
    grid-template-columns: 1fr;
  }
  
  .pricing-card {
    min-height: auto;
  }
}

/* 动画 */
.pricing-modal.open .pricing-modal-content {
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

