

/* 价格模块整体样式（不变） */
.pricing-section {
  background-color: #f9fafb;
}

/* 标题样式（不变） */
.section-title {
  font-weight: 700;
  line-height: 1.2;
}

/* 方案头部容器：flex布局实现左右排列 */
.plan-header {
  display: flex;
  flex-wrap: wrap; /* 允许移动端换行 */
  align-items: center; /* 垂直居中对齐 */
  justify-content: space-between; /* 左右两端对齐 */
  margin-bottom: 2rem; /* 与下方功能列表的间距 */
}

/* 左侧标题和描述容器 */
.plan-info {
  flex: 1; /* 占据左侧可用空间 */
  min-width: 200px; /* 避免过窄挤压文字 */
}

/* 标题样式调整：减少底部间距 */
.plan-name {
  margin-bottom: 0.25rem; /* 缩小与描述的间距（原mb-2） */
}

/* 描述样式调整：取消底部margin（原mb-4） */
.plan-desc {
  margin-bottom: 0;
  font-size: 0.95rem; /* 略小字体，适配水平布局 */
}

/* 右侧价格容器 */
.plan-price {
  white-space: nowrap; /* 价格不换行 */
  display: flex;
  align-items: baseline;
}

/* 移动端适配（屏幕≤640px时） */
@media (max-width: 640px) {
  .plan-header {
    flex-direction: column; /* 移动端恢复垂直排列 */
    align-items: flex-start; /* 左对齐 */
  }
  
  .plan-price {
    margin-top: 0.75rem; /* 移动端价格与描述保持间距 */
    margin-left: 0; /* 取消左侧自动margin */
  }
}

.section-subtitle {
  font-weight: 400;
}

/* 卡片容器（加宽并调整间距） */
.pricing-cards {
  display: grid;
}

/* 卡片样式（核心：加宽卡片宽度） */
.pricing-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background-color: #ffffff;
  transition: all 0.3s ease;
  width: 100%; /* 确保卡片占满可用宽度 */
}

.pricing-card {
  /* 其他原有样式不变 */
  display: flex;
  flex-direction: column; /* 内部元素垂直排列 */
  height: 100%; /* 卡片高度占满父容器空间 */
}

/* 功能列表取消拉伸，保持自然高度 */
/* .plan-features {
  flex-grow: 1; 
} */

/* 按钮样式补充（确保底部无多余间距） */
.plan-button {
  margin-top: auto; /* 自动填充上方空间，固定在底部 */
}

.pricing-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 方案头部样式（不变） */
.plan-header {
  margin-bottom: 1.5rem;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 600;
}

.plan-desc {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* 价格容器：垂直排列并居中对齐 */
.plan-price {
  display: flex;
  flex-direction: column; /* 垂直排列子元素 */
  align-items: center; /* 水平方向居中（让From和价格对齐） */
  justify-content: center; /* 垂直方向居中 */
  white-space: nowrap;
}

/* 调整From的样式 */
.price-label {
  font-size: 0.9rem; /* 略小字体，与价格形成层次 */
}

/* 价格样式保持不变 */
.price-amount {
  font-size: 1.875rem;
  font-weight: 700;
}

.price-period {
  font-size: 1rem;
}

/* 功能列表样式（核心：两列布局） */
.plan-features {
  list-style-type: none;
  margin-bottom: 2rem;
  display: grid; /* 使用网格布局分两列 */
}

/* 列表项样式（适配两列布局） */
.feature-item {
  font-size: 0.975rem;
  line-height: 1.5;
  padding-right: 0.5rem; /* 避免文字贴边 */
}

/* 按钮样式（不变） */
.plan-button {
  width: 100%;
  padding: 0.75rem 1.25rem;
  background-color: #BE0F2D;
  font-weight: 500;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 1rem;
}

.plan-button:hover {
  background-color: #D1576C;
}

/* 响应式设计（核心：控制两列/单列切换） */
@media (max-width: 768px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .plan-features {
    grid-template-columns: 1fr; /* 移动端恢复单列 */
  }
  
  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  .section-subtitle {
    font-size: 0.95rem;
    padding: 0 1rem;
  }
  
  .pricing-card {
    padding: 1.5rem;
    max-width: 100%; /* 移动端卡片占满屏幕宽度 */
  }
}

@media (min-width: 769px) {
  .pricing-cards {
    grid-template-columns: 1fr 1fr; /* PC端两列卡片 */
  }
  
  .plan-features {
    grid-template-columns: 1fr 1fr; /* PC端功能列表分两列 */
    gap: 1rem 1.5rem; /* 列间距1.5rem，行间距1rem */
  }
}