/* 基础样式调整 */
.site-content {
    padding-top: 0;
    padding-bottom: 0;
}

/* 头部区域样式 - 重点修复溢出问题 */
.custom-vip-new-header {
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  align-items: center;
  position: relative;
  /* 防止内容溢出容器 */
  overflow: hidden;
}

.custom-vip-new-header .van-container {
    position: relative;
    z-index: 2;
}

.header-content {
  color: #fff;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
  /* 限制内容宽度并防止溢出 */
  width: 100%;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.header-content h1 {
    font-size: 46px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: #FFFFFF;
}

.header-content p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 页面专属按钮组 */
.custom-vip-new-header .btn-group {
    /*display: flex;*/
    justify-content: center;
    gap: 30px; /* 按钮间距30px */
    flex-wrap: nowrap;
    /* 修复flex nowrap在部分浏览器的溢出问题 */
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  flex-wrap: wrap;
  /* 增加内边距防止按钮贴边 */
  padding: 0 10px;
}

/* 核心：头部按钮样式优化 - 兼容多浏览器 */
.custom-vip-new-header .btn {
  /* 固定宽高 + 响应式适配 */
  width: 160px;
  height: 50px;
  /* 优化样式 */
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  /* 过渡动画兼容 */
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  transition: all 0.3s ease;
  /* 文字居中兼容 */
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  justify-content: center;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-flex-shrink: 0;
  -moz-flex-shrink: 0;
  flex-shrink: 0; /* 防止压缩 */
  border: none;
  cursor: pointer;
  /* 防止按钮内文字溢出 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 主按钮样式优化 */
.custom-vip-new-header .btn-primary {
    background: #ff792d;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.custom-vip-new-header .btn-primary:hover {
    background: #e06a24;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 次按钮样式优化 */
.custom-vip-new-header .btn-secondary {
    background: rgba(255,255,255,0.9);
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.custom-vip-new-header .btn-secondary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 中间标题区域 */
.section-intro {
    padding: 50px 0 20px;
    margin: 10px; /* 与头部和卡片区域保持距离 */
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.intro-content p {
    font-size: 16px;
    color: #666;
}

/* 卡片区域样式 */
.cards-container {
    padding: 0px 0 40px;
}

.van-container {
    max-width: 1440px;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
    box-sizing: content-box;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* 行列间距30px */
}

.card-item-link {
    text-decoration: none;
    display: block;
}

.card-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.12);
}

.card-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-item:hover img {
    transform: scale(1.05);
}

.card-item h3 {
    padding: 20px 20px 10px;
    font-size: 18px;
    color: #333;
    margin: 0;
}

.card-item p {
    padding: 0 20px 20px;
    font-size: 14px;
    color: #666;
    margin: 0;
    flex-grow: 1;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 32px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .section-intro {
        padding: 40px 0;
    }
    
    .section-intro h2 {
        font-size: 24px;
    }
}