/* ========== 价格页面样式 ========== */

.page-hero {
  padding: 140px 24px 60px;
  background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
  text-align: center;
}

.page-hero-content h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.page-hero-content p {
  font-size: 18px;
  color: #00000;
}

.pricing-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 100px;
}

/* 套餐卡片 */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 80px;
  align-items: start;
}

.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  z-index: 2;
}

.pricing-card.popular:hover {
  transform: translateY(-6px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.pricing-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.currency { font-size: 18px; font-weight: 600; color: var(--text); }
.amount { font-size: 40px; font-weight: 800; color: var(--text); line-height: 1; }
.period { font-size: 14px; color: var(--text-secondary); }

.pricing-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.pricing-features {
  margin-bottom: 24px;
  flex: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.feature-item:last-child { border-bottom: none; }

.feature-item .check {
  color: #10b981;
  font-weight: 700;
  width: 20px;
}

.feature-item .cross {
  color: #cbd5e1;
  width: 20px;
}

.feature-item.disabled { color: #cbd5e1; }

.pricing-btn {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  margin-top: auto;
}

.btn-outline {
  border: 2px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  transform: translateY(-2px);
}


/* 对比表 */
.compare-section {
  margin-bottom: 80px;
}

.compare-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
}

.compare-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.compare-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.compare-table th.popular-col {
  background: rgba(14,176,133,0.08);
  color: var(--primary);
}

.compare-table td {
  padding: 14px 20px;
  font-size: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.compare-table td:first-child {
  font-weight: 500;
  color: var(--text);
}

.category-row td {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text);
  padding: 12px 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.yes { color: #10b981; font-weight: 700; }
.no { color: #cbd5e1; }
.limited { color: #f59e0b; font-size: 12px; }

.popular-col { background: rgba(14,176,133,0.03); }

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

.faq-section h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
}

.faq-q:hover { background: #f8fafc; }

.faq-arrow {
  transition: transform 0.3s ease;
  color: var(--text-secondary);
  font-size: 12px;
}

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

.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.faq-item.active .faq-a {
  padding: 0 24px 18px;
  max-height: 200px;
}

/* 响应式 */
@media (max-width: 1024px) {
  .pricing-cards {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 0 16px 20px;
    max-width: none;
    margin: 0 -16px 60px;
  }
  .pricing-cards::-webkit-scrollbar { display: none; }
  .pricing-card {
    flex: 0 0 65%;
    min-width: 65%;
    scroll-snap-align: start;
    padding: 28px 20px;
  }
  .pricing-card.popular { transform: none; }
  .pricing-card.popular:hover { transform: translateY(-6px); }
  .pricing-header h3 {
    font-size: 18px;
    white-space: nowrap;
  }
  .pricing-price {
    white-space: nowrap;
  }
  .pricing-desc {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .feature-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pricing-btn {
    white-space: nowrap;
  }
}

@media (max-width: 1200px) and (min-width: 1025px) {
  .pricing-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .pricing-card {
    padding: 28px 16px;
  }
  .pricing-header h3 {
    font-size: 18px;
  }
  .amount {
    font-size: 36px;
  }
  .feature-item {
    font-size: 13px;
    padding: 6px 0;
  }
}

@media (max-width: 768px) {
  .page-hero-content h1 { font-size: 32px; }
  .compare-title { font-size: 24px; }
  .faq-section h2 { font-size: 24px; }
}