.container {
    max-width: 1200px;
    width: 90%; /* 在小屏幕上留出边距 */
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box; /* 确保padding不增加总宽度 */
    
    /* 响应式调整 */
    @media (max-width: 768px) {
        width: 95%;
        padding: 15px;
    }
    
    @media (max-width: 480px) {
        width: 100%;
        padding: 10px;
    }
}

/* 针对按钮容器的自适应调整 */
.buttons {
    display: flex;
    flex-wrap: wrap; /* 小屏幕时换行 */
    justify-content: center;
    gap: 15px; /* 替代margin间距 */
    margin-bottom: 40px;
    
    @media (max-width: 768px) {
        gap: 10px;
        margin-bottom: 30px;
    }
    
    @media (max-width: 480px) {
        gap: 8px;
        margin-bottom: 20px;
    }
}

.buttons a {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap; /* 防止按钮文字换行 */
    
    @media (max-width: 768px) {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    @media (max-width: 480px) {
        padding: 8px 16px;
        font-size: 0.85em;
    }
}


.image-gallery {
    display: flex;
    gap: 15px; /* 图片间距 */
    overflow-x: auto; /* 允许横向滚动 */
    scroll-snap-type: x mandatory; /* 启用滚动吸附 */
    padding-bottom: 10px; /* 防止滚动条遮挡 */
    -webkit-overflow-scrolling: touch; /* iOS 平滑滚动 */
    margin-bottom: 20px;
}

.image-gallery img {
    width: 260px; /* 固定宽度 */
    height: auto;
    scroll-snap-align: start; /* 滚动吸附对齐 */
    border-radius: 10px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    flex-shrink: 0; /* 防止图片被压缩 */
}

/* 在 PC 端（≥768px）时取消滚动，恢复水平排列 */
@media (min-width: 768px) {
    .image-gallery {
        overflow-x: visible; /* 取消滚动 */
        flex-wrap: wrap; /* 允许换行 */
        justify-content: center; /* 图片居中 */
    }
}
/* ===== 立即购卡 按钮 ===== */
.buycard-btn{
  display:block;
  width:100%;
  max-width:520px;
  margin:0 auto;
  padding:18px 40px;
  font-size:1.25em;
  font-weight:800;
  color:#fff;
  background:linear-gradient(135deg,#ff8a00,#ff2d55);
  border:none;
  border-radius:0;
  cursor:pointer;
  letter-spacing:2px;
  box-shadow:0 8px 24px rgba(255,45,85,.35);
  transition:transform .25s ease, box-shadow .25s ease;
}
.buycard-btn:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(255,45,85,.5);}
.buycard-btn:active{transform:translateY(0);}

/* ===== 购卡提示弹窗 ===== */
.buy-modal-mask{
  display:none;
  position:fixed;inset:0;
  background:rgba(15,15,25,.65);
  -webkit-backdrop-filter:blur(4px);
  backdrop-filter:blur(4px);
  z-index:9999;
  align-items:center;justify-content:center;
  padding:20px;
}
.buy-modal-card{
  position:relative;
  width:100%;max-width:400px;
  background:#fff;
  border-radius:20px;
  padding:30px 26px 26px;
  text-align:center;
  box-shadow:0 24px 70px rgba(0,0,0,.45);
  animation:buypop .32s cubic-bezier(.34,1.56,.64,1);
}
@keyframes buypop{from{opacity:0;transform:translateY(26px) scale(.92);}to{opacity:1;transform:translateY(0) scale(1);}}
.buy-modal-close{
  position:absolute;top:14px;right:14px;
  width:32px;height:32px;
  border:none;background:#f4f5f7;border-radius:50%;
  font-size:16px;color:#999;cursor:pointer;line-height:32px;
  transition:background .2s ease,color .2s ease;
}
.buy-modal-close:hover{background:#ececef;color:#555;}
.buy-modal-icon{
  width:64px;height:64px;border-radius:50%;
  margin:0 auto 14px;
  background:linear-gradient(135deg,#ff8a00,#ff2d55);
  display:flex;align-items:center;justify-content:center;
  font-size:30px;
  box-shadow:0 10px 24px rgba(255,45,85,.32);
}
.buy-modal-title{font-size:21px;font-weight:800;color:#1a1a2e;margin:0 0 6px;letter-spacing:1px;}
.buy-modal-sub{font-size:13.5px;color:#9aa0a8;margin:0 0 18px;}
.buy-modal-steps{
  background:#f7f8fa;
  border:1px solid #eef0f3;
  border-radius:14px;
  padding:16px 16px 6px;
  margin:0 0 20px;
  text-align:left;
}
.buy-step{
  display:flex;align-items:flex-start;gap:10px;
  margin-bottom:12px;
  font-size:14.5px;line-height:1.7;color:#4a4f57;
}
.buy-step-num{
  flex-shrink:0;
  width:22px;height:22px;border-radius:50%;
  background:linear-gradient(135deg,#ff8a00,#ff2d55);
  color:#fff;font-size:12.5px;font-weight:700;
  text-align:center;line-height:22px;
  margin-top:2px;
}
.buy-step strong{color:#ff2d55;font-weight:700;}
.buy-modal-confirm{
  width:100%;
  padding:14px;border:none;border-radius:50px;
  background:linear-gradient(135deg,#ff8a00,#ff2d55);
  color:#fff;font-size:16px;font-weight:700;letter-spacing:2px;cursor:pointer;
  box-shadow:0 10px 26px rgba(255,45,85,.38);
  transition:transform .25s ease, box-shadow .25s ease;
}
.buy-modal-confirm:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(255,45,85,.5);}
.buy-modal-confirm:active{transform:translateY(0);}
@media (max-width:480px){
  .buycard-btn{padding:16px 24px;font-size:1.1em;max-width:420px;}
  .buy-modal-card{padding:26px 18px 22px;border-radius:16px;}
  .buy-modal-title{font-size:19px;}
  .buy-step{font-size:13.5px;}
  .buy-modal-steps{padding:14px 12px 2px;}
}


/* ===== 用户评论卡片（最新动态） ===== */
.review-item{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:16px 18px;
  transition:transform .25s ease, border-color .25s ease, background .25s ease;
}
.review-item:hover{
  transform:translateY(-4px);
  border-color:rgba(120,160,255,.45);
  background:rgba(255,255,255,.07);
}
.review-head{ display:flex; align-items:center; gap:12px; }
.review-avatar{
  width:46px; height:46px; border-radius:50%;
  object-fit:cover; flex-shrink:0;
  border:2px solid rgba(255,255,255,.25);
  box-shadow:0 2px 8px rgba(0,0,0,.35);
}
.review-meta{ display:flex; flex-direction:column; line-height:1.3; min-width:0; }
.review-name{ font-weight:700; font-size:15px; color:#fff; }
.review-stars{ color:#ffcc33; font-size:14px; letter-spacing:2px; }
.review-time{ margin-left:auto; font-size:12px; color:rgba(255,255,255,.65); white-space:nowrap; }
.review-content{ margin:12px 0 0; font-size:14px; line-height:1.7; color:rgba(255,255,255,.82); }
.news-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:16px; }
@media (max-width:600px){
  .review-avatar{ width:40px; height:40px; }
  .review-content{ font-size:13.5px; }
  .news-grid{ grid-template-columns:1fr; }
}
