/* 价格页面 - 现代简洁设计 */

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #fafafa;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-primary: #0071e3;
  --color-primary-hover: #0077ed;
  --color-success: #10b981;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  background: var(--color-bg);
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-content > p {
  font-size: 20px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

/* 计费切换 */
.billing-switch {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.billing-option {
  padding: 10px 24px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.billing-option.active {
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.discount-badge {
  padding: 2px 8px;
  background: var(--color-success);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
}

/* Pricing Section */
.pricing-section {
  padding: 80px 0;
  background: var(--color-bg);
}

.pricing-section.alt-bg {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 18px;
  color: var(--color-text-muted);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Pricing Card */
.pricing-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.pricing-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--color-primary);
  border-width: 2px;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

/* Card Header */
.card-header {
  margin-bottom: 24px;
}

.card-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
}

.card-price {
  display: flex;
  align-items: baseline;
  margin-bottom: 8px;
}

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

.price-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 4px;
}

.price-period {
  font-size: 18px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.price-custom {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
}

.price-desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Card Features */
.card-features {
  list-style: none;
  margin: 0 0 32px 0;
  padding: 0;
  flex: 1;
}

.card-features li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.card-features li:last-child {
  border-bottom: none;
}

.feature-name {
  color: var(--color-text-muted);
  font-weight: 500;
}

.feature-value {
  color: var(--color-text);
  font-weight: 600;
  text-align: right;
}

/* Card Button */
.card-button {
  display: block;
  width: 100%;
  padding: 12px 24px;
  background: var(--color-text);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.card-button:hover {
  background: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured .card-button {
  background: var(--color-primary);
}

.pricing-card.featured .card-button:hover {
  background: var(--color-primary-hover);
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: var(--color-bg);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 24px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: var(--color-bg-alt);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.cta-button.primary {
  background: var(--color-primary);
  color: white;
  border: 2px solid var(--color-primary);
}

.cta-button.primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cta-button.secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.cta-button.secondary:hover {
  border-color: var(--color-text);
  transform: translateY(-2px);
}

/* 动画效果 */
.pricing-card.hiding {
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  transition: all 0.3s ease;
}

.pricing-card.hidden {
  display: none;
}

.pricing-card.showing {
  animation: cardFadeIn 0.5s cubic-bezier(0.34, 1.26, 0.64, 1) forwards;
}

@keyframes cardFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 空状态 */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 40px;
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
}

.empty-state h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content > p {
    font-size: 18px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px) scale(1);
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 60px 0 40px;
  }

  .pricing-section {
    padding: 60px 0;
  }

  .billing-switch {
    flex-direction: column;
    width: 100%;
  }

  .billing-option {
    width: 100%;
    justify-content: center;
  }

  .price-value {
    font-size: 40px;
  }
}
