/* plan-switch.css - 最终优化版 */

.plan-switch {
  display: inline-flex;
  gap: 6px;
  padding: 8px;
  border: 1px solid #dbe7ff;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 34px rgba(18, 104, 255, 0.1);
  margin: 0 auto 40px;
  width: fit-content;
  max-width: 100%;
}

.plan-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 14px 24px;
  border: 0;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #1268ff;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.plan-tab-btn:hover {
  color: #0a4ed4;
  background: rgba(18, 104, 255, 0.08);
}

.plan-tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #1268ff, #42a5ff);
  box-shadow: 0 10px 24px rgba(18, 104, 255, 0.3);
  transform: translateY(-1px);
}

/* 移动端切换按钮优化 */
@media (max-width: 640px) {
  .plan-switch {
    gap: 4px;
    padding: 7px;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .plan-switch::-webkit-scrollbar { display: none; }
  
  .plan-tab-btn {
    min-width: 105px;
    padding: 13px 18px;
    font-size: 15px;
    flex: 1;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .plan-tab-btn {
    min-width: 96px;
    padding: 12px 14px;
    font-size: 14.5px;
  }
}

/* ====================== 全局宽度 & 自适应布局 ====================== */
main {
  width: min(1680px, calc(100% - 32px)) !important;
  margin: 0 auto;
  padding: 54px 0 64px;
}

.pricing {
  max-width: 1680px !important;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.product-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 20px;
}

.plan-group {
  margin-bottom: 50px;
  width: 100%;
}

.plan-card {
  flex: 1 1 480px;
  min-width: 460px;
  max-width: 720px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.plan-card.featured {
  border: 2px solid #1268ff;
  box-shadow: 0 30px 70px rgba(18,104,255,.18);
}

/* 桌面端加强宽度 */
@media (min-width: 1200px) {
  .product-row {
    max-width: 1080px;
  }
  .plan-card {
    min-width: 480px;
  }
}

/* 移动端上下排列 */
@media (max-width: 1199px) {
  .product-row {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .plan-card {
    min-width: 92%;
    max-width: 640px;
    flex: none;
  }
}

.plan-tagline {
  font-weight: 700;
  font-size: 15px;
  margin: 6px 0 4px;
  text-align: left;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  text-align: left;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.45;
}

.plan-features li::before {
  content: none !important;
}

.plan-features li i {
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  margin-top: 3px;
  font-size: 13px;
}

.plan-features li.feature-included i {
  color: #22c55e;
}

.plan-features li.feature-excluded {
  color: #9aa4b2;
}

.plan-features li.feature-excluded i {
  color: #cbd5e1;
}


