/* 价格页面样式 */
.pricing-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.pricing-hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.pricing-hero .subtitle {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* 计费周期切换 */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 16px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.3);
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.save-badge {
  background: var(--accent-color);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  margin-left: 5px;
}

/* 价格方案区域 */
.pricing-plans {
  padding: 80px 20px;
  background: var(--light-bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 80px;
}

.pricing-card {
  background: var(--white);
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

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

.pricing-card .badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: white;
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}

.card-header {
  margin-bottom: 30px;
}

.card-header h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.plan-description {
  font-size: 14px;
  opacity: 0.8;
}

.price {
  margin-bottom: 30px;
}

.currency {
  font-size: 24px;
  vertical-align: top;
}

.amount {
  font-size: 48px;
  font-weight: bold;
}

.period {
  font-size: 16px;
  opacity: 0.8;
}

.features-list {
  list-style: none;
  margin-bottom: 30px;
  text-align: left;
}

.features-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pricing-card.featured .features-list li {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.features-list li.included {
  color: inherit;
}

.features-list li.excluded {
  opacity: 0.5;
}

.btn-block {
  display: block;
  width: 100%;
  padding: 15px;
  font-size: 16px;
}

/* 企业版区域 */
.enterprise-section {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 60px 20px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.enterprise-section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.enterprise-section > p {
  font-size: 16px;
  margin-bottom: 40px;
  color: #666;
}

.enterprise-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.enterprise-feature {
  padding: 20px;
}

.enterprise-feature .feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.enterprise-feature h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.enterprise-feature p {
  color: #666;
  line-height: 1.6;
}

/* FAQ区域 */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.faq-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  transition: background 0.3s;
}

.faq-question:hover {
  background: var(--light-bg);
}

.faq-toggle {
  font-size: 24px;
  color: var(--primary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 20px;
  background: var(--light-bg);
}

.faq-answer.active {
  max-height: 200px;
  padding: 20px;
}

.faq-answer p {
  line-height: 1.8;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .pricing-hero h1 {
    font-size: 28px;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }
  
  .enterprise-features {
    grid-template-columns: 1fr;
  }
}
