/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f1e6;
    background-image: url('../images/BJ.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    color: #333;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px; /* 调整为1200px */
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 auto; /* 水平居中 */
    padding: 0 20px; /* 与父容器留边距 */
}

/* 顶部横幅区域 */
.banner-section {
    width: 100%;
    margin-bottom: 15px;
    position: relative;
}

.banner-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    /* 让图片完全显示，不裁剪 */
    object-fit: contain;
    object-position: center;
}

/* 欢迎区域 */

/* 欢迎区域 */
.welcome-section {
    width: 100%;
    max-width: 1200px; /* 调整为1200px */
    padding: 20px;
    text-align: center;
    background-color: transparent;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(195, 204, 170, 0.5);
}

/* 新欢迎区域样式 - 与价格表区域背景一致 */
.new-welcome-section {
    width: 100%;
    max-width: 1200px;
    padding: 15px;
    text-align: center;
    background-color: transparent;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(195, 204, 170, 0.5);
    margin-bottom: 15px;
}

.welcome-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.title-icon {
    width: 30px;
    height: 50px;
    object-fit: contain;
}

.welcome-main-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.welcome-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.feature-tag {
    background-color: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #d4a76a;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.welcome-categories {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}

.category-item {
    width: 22%;
    min-width: 150px;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 8px;
}

.category-label {
    background-color: #f0e6d2;
    color: #333;
    padding: 8px 0;
    border-radius: 0 0 8px 8px;
    font-weight: bold;
    margin-top: -4px;
    font-size: 0.9rem;
}

.welcome-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.welcome-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.welcome-notice {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

/* 游戏类型列表 */
.game-list {
    text-align: center;
    background-color: transparent;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.game-item {
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.game-label {
    font-weight: bold;
    margin-right: 5px;
}

.game-name {
    margin-right: 5px;
}

.game-desc {
    color: #666;
}

.blue-text {
    color: #1890ff;
    text-decoration: none;
}

/* 价格表区域 */
.price-section {
    width: 100%;
    max-width: 1200px; /* 调整为1200px */
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(195, 204, 170, 0.5);
    margin-bottom: 15px;
}

.price-header {
    display: flex;
    align-items: center;
    justify-content: center; /* 让标题居中 */
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.price-number {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #1890ff;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 0.8rem;
    margin-right: 10px;
}

.price-title {
    font-size: 1rem;
    color: #333;
    font-weight: bold;
}

/* 价格图标区域 */
.price-icons {
    display: flex;
    flex-wrap: nowrap; /* 不换行，保持水平排列 */
    justify-content: center; /* 水平居中 */
    gap: 30px;               /* 增大图标间距 */
    background-color: transparent;
    padding: 16px 12px;
    border-radius: 8px;
    margin-top: 15px;
    overflow-x: visible; /* 移除水平滚动 */
}

.center-icon {
    justify-content: center;
}

.price-icon-item {
    flex: 0 0 auto;          /* 不拉伸，保持内容宽度 */
    text-align: center;
    margin: 0;
    padding: 4px 0;
    transition: all 0.3s ease;
    min-width: 90px; /* 增大最小宽度适应更大的图标 */
    text-decoration: none;
}


.price-icon-item:hover {
    transform: translateY(-2px);
}

.icon-placeholder {
    width: 80px;             /* 增大图标尺寸 */
    height: 80px;
    border-radius: 50%;
    /* 移除固定背景色，改为继承父容器样式 */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 5px;
    color: #333;
    font-size: 0.85rem;
    text-align: center;
    padding: 5px;
}


.price-icon-text {
    font-size: 0.8rem;
    color: #333;
    text-align: center;
    margin-top: 5px;
    line-height: 1.2;
    word-break: keep-all;
}

.price-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin: 0 auto 5px;
    display: block;
}

/* 3X3区域/跑力专区专用图标样式 */
.wc-icon {
    width: 100px !important;
    height: 100px !important;
}

/* 大红单图标专用样式，增加宽度避免挤压 */
.red-order-icon {
    width: 120px !important;
    height: 100px !important;
}

.red-list-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 1px solid #ddd;
    margin: 0 auto 5px;
    display: block;
}

/* 老板权益专区特殊样式 */
.boss-rights-section {
    padding: 0; /* 移除内边距 */
}

.boss-rights-content {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.boss-rights-bg-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.boss-rights-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
}

.boss-rights-text {
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

.vip-icons {
    justify-content: center;
}

.vip-icon-item {
    width: 30%;
    max-width: 200px; /* 限制VIP图标最大宽度 */
}

.vip-icon-item .icon-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .price-icons {
        gap: 20px; /* 移动设备上减小间距 */
    }
    
    .price-icon-item {
        min-width: 80px;
    }
    
    .icon-placeholder {
        width: 70px;
        height: 70px;
        font-size: 0.75rem;
    }
    
    .price-icon-text {
        font-size: 0.75rem;
    }
    
    /* 新欢迎区域响应式设计 */
    .welcome-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .welcome-main-title {
        font-size: 1.5rem;
    }
    
    .welcome-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .category-item {
        min-width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .price-icons {
        gap: 15px; /* 小屏设备上进一步减小间距 */
    }
    
    .price-icon-item {
        min-width: 70px;
    }
    
    .icon-placeholder {
        width: 50px;
        height: 50px;
        font-size: 0.6rem;
    }
    
    .price-icon-text {
        font-size: 0.7rem;
    }
}

/* 推动式切换按键（红单/指定红单通用） */
.switch-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0 12px;
}
.segmented-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(195, 204, 170, 0.15);
  border: 1px solid rgba(195, 204, 170, 0.35);
  border-radius: 24px;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(195, 204, 170, 0.25);
}
.segmented-toggle .toggle-option {
  position: relative;
  z-index: 1;
  padding: 8px 16px;
  min-width: 110px;
  text-align: center;
  font-weight: 500;
  color: #666;
  background: transparent;
  border: none;
  border-radius: 18px;
  cursor: pointer;
}
.segmented-toggle .toggle-option.active {
  color: #fff;
}
.segmented-toggle .toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 8px);
  height: calc(100% - 8px);
  border-radius: 18px;
  background: #c3ccaa;
  box-shadow: 0 3px 10px rgba(195, 204, 170, 0.4);
  transition: transform 0.25s ease;
  transform: translateX(0);
}
@media (max-width: 768px) {
  .segmented-toggle .toggle-option { min-width: 90px; padding: 6px 12px; }
}

/* 价格页展示图容器统一规则（不限制尺寸比例） */
.image-container {
  position: relative;
  padding: 0; /* 无内边距 */
  overflow: visible; /* 允许自然高度显示 */
  max-width: 100%;
  text-align: center;
}

/* 价格页展示图改为相对定位/块级，自适应宽度保持比例 */
.red-order-image {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  margin: 0;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  background: white;
}

/* 移除容器的最小高度限制，改为自然高度 */
/* 删除 min-height: clamp(260px, 40vw, 560px); 规则 /* （已按需求取消容器最小高度限制） */
/* 统一容器样式：与 pc-red-order.html 保持一致，使所有页面的图片容器居中、充满可视高度 */
.container {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
}
/* 当图片紧跟在标题卡片之后时，收紧上下间距，避免视觉分离 */
.container:has(.price-section + .image-container) {
  gap: 0; /* 移除 container 的统一间距，仅针对此结构 */
}
/* 标题卡片移除背景与阴影（仅当后面紧跟图片时） */
.container:has(.price-section + .image-container) .price-section {
  display: contents;
}
.container:has(.price-section + .image-container) .price-section {
  box-shadow: none;        /* 取消卡片阴影 */
  background: transparent; /* 取消卡片背景 */
  border-radius: 0;        /* 取消圆角，避免与图片产生层级分离 */
  padding: 0;              /* 去掉内边距 */
  margin-bottom: 0;        /* 与图片紧贴 */
}
.container:has(.price-section + .image-container) .price-header {
  border-bottom: none;     /* 去掉下边线 */
  margin-bottom: 0;
  padding-bottom: 0;
}
.container:has(.price-section + .image-container) .price-header {
  margin-bottom: 8px; /* 保留少量内部间距以保持层次感 */
  padding-bottom: 8px;
}

/* 移动端图标自适应布局修正 */
@media (max-width: 768px) {
  .price-icons { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .price-icon-item { flex: 1 1 calc(33.333% - 16px); max-width: calc(33.333% - 16px); }
  .wc-icon { width: 80px !important; height: 80px !important; }
  .red-order-icon { width: 90px !important; height: 80px !important; }
}

@media (max-width: 480px) {
  .price-icons { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .price-icon-item { flex: 1 1 calc(50% - 12px); max-width: calc(50% - 12px); }
  .wc-icon { width: 70px !important; height: 70px !important; }
  .red-order-icon { width: 80px !important; height: 70px !important; }
}