/* 订阅方案页面样式 */
.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.pricing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.pricing-description {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #555;
}

/* 付费方式切换 */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.pricing-toggle span {
  margin: 0 1rem;
  color: #555;
}

.discount {
  background: #3498db;
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

/* 开关样式 */
.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: #ccc;
  transition: 0.4s;
}

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

input:checked + .slider {
  background-color: #3498db;
}

input:focus + .slider {
  box-shadow: 0 0 1px #3498db;
}

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

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* 方案卡片 */
.pricing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.pricing-plan {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.pricing-plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.pricing-plan.popular {
  border: 2px solid #3498db;
  transform: scale(1.05);
}

.pricing-plan.popular:hover {
  transform: scale(1.05) translateY(-5px);
}

.popular-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #3498db;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: bold;
  border-bottom-left-radius: 8px;
}

.plan-header {
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.plan-header h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.plan-price {
  margin-bottom: 1rem;
}

.price {
  font-size: 2.5rem;
  font-weight: bold;
  color: #3498db;
}

.price.annual {
  display: none;
}

.period {
  font-size: 1rem;
  color: #777;
}

.plan-description {
  color: #555;
  font-size: 0.9rem;
}

.plan-features {
  padding: 2rem;
}

.plan-features ul {
  list-style: none;
}

.plan-features ul li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  padding-left: 1.5rem;
}

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

.plan-features ul li:before {
  content: "✓";
  color: #3498db;
  position: absolute;
  left: 0;
}

.plan-footer {
  padding: 0 2rem 2rem;
  text-align: center;
}

.plan-button {
  display: inline-block;
  background: #3498db;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  width: 100%;
}

.plan-button:hover {
  background: #2980b9;
}

/* 定制方案 */
.custom-plan {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
  margin-bottom: 3rem;
}

.custom-plan h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.custom-plan p {
  color: #555;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.custom-plan-button {
  display: inline-block;
  background: #2c3e50;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.custom-plan-button:hover {
  background: #1a252f;
}

/* FAQ部分 */
.pricing-faq {
  margin-bottom: 3rem;
}

.pricing-faq h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #2c3e50;
}

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

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #f0f0f0;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  background: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.1rem;
}

.faq-toggle {
  font-size: 1.5rem;
  color: #3498db;
  transition: transform 0.3s ease;
}

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

.faq-answer p {
  color: #555;
  margin-bottom: 1.5rem;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .pricing-container {
    padding: 1rem;
  }

  .pricing-plans {
    grid-template-columns: 1fr;
  }

  .pricing-plan.popular {
    transform: scale(1);
  }

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

  .custom-plan {
    padding: 2rem;
  }
}
