* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #fff;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-wrapper {
    width: 1400px;
    height: 970px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 头部标题区域 */
.header {
    width: 100%;
    height: 244px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
}

.title-image {
    width: 828px;
    height: 173px;
    background-image: url('../huishou-images/bt-01-huishou.png');
    background-size: cover;
    background-position: center;
    transition: all 0.4s ease-in-out;
}

.title-image:hover {
    transform: translate(0, 10px);
    filter: brightness(1.1);
}

/* 主要内容区域 */
.main-content {
    width: 100%;
    height: 726px;
    background-image: url('../huishou-images/huishou-bg-images.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 46px;
    transition: all 0.4s ease-in-out;
    position: relative;
    filter: drop-shadow(20px 20px 20px  rgba(0, 0, 0, 0.5));
}

.main-content:hover {
    transform: translate(0, 10px);
}

/* 导航区域 */
.navigation {
    width: 438px;
    height: 79px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.nav-btn {
    width: 150px;
    height: 60px;
    background-image: url('../huishou-images/huishou-nav.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply; /* 混合模式去除白色 */
    background-color: rgba(0,0,0,0.1); /* 添加深色底色 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    border: none;
    outline: none;
    position: relative;
}

/* 为导航按钮使用伪元素来保持背景图片 */
.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../huishou-images/huishou-nav.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    background-color: rgba(0,0,0,0.1);
    z-index: -1;
}

.nav-btn:hover {
    transform: translateX(10px);
    filter: brightness(1.5);
}

.nav-btn.nav-active {
    transform: translateY(-2px);
    filter: brightness(1.5);
}

.nav-btn:nth-child(2):hover {
    transform: translateX(-10px);
}

/* 内容区域容器 - 添加相对定位来容纳外部滚动按钮 */
.content-wrapper {
    width: 100%;
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

/* 内容区域 */
.content-container {
    width: 1104px;
    height: 468px;
    position: relative;
    overflow: hidden;
    border-radius: 0px;
}

.content-panel {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden; /* 隐藏滚动条 */
    padding: 20px;
    box-sizing: border-box;
}

.content-panel.active {
    opacity: 1;
    transform: translateX(0);
}

.content-panel.prev {
    transform: translateX(-100%);
}

/* 装备保值区域样式 */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, 260px);
    gap: 10px;
    justify-content: center;
    align-content: start;
    transition: transform 0.3s ease;
    position: relative;
}

.reward-grid {
    display: grid;
    grid-template-columns: repeat(2, 520px);
    gap: 10px;
    justify-content: center;
    align-content: start;
    transition: transform 0.3s ease;
    position: relative;
}

/* 外部滚动按钮样式 */
.external-scroll-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.external-scroll-controls.show {
    opacity: 1;
    visibility: visible;
}

/* 左侧滚动按钮 */
.left-scroll-controls {
    left: 50px;
}

/* 右侧滚动按钮 */
.right-scroll-controls {
    right: 50px;
}

.external-scroll-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #c86100, #ff992c);
    border: 3px solid #bd3c00;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    position: relative;
}

.external-scroll-btn::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.external-scroll-btn:hover {
    background: linear-gradient(45deg, #ffb744, #ff7746);
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(255, 153, 44, 0.6);
}

.external-scroll-btn:hover::before {
    opacity: 1;
}

.external-scroll-btn:active {
    transform: scale(1.05);
}

.external-scroll-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.equipment-item {
    width: 260px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reward-item {
    width: 520px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reward-price {
    font-size: 20px;
    color: #ffd700;
    margin-left: 5px;
    margin-top: 2px;
}

/* 滚动条美化 - 隐藏滚动条 */
.content-panel::-webkit-scrollbar {
    display: none;
}

.content-panel {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* 修复后的渐变文字样式 - 只应用到导航按钮 */
.nav-gradient-text {
    font-size: 16px;
    background: linear-gradient(to right, #fff176, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-gradient-text:hover {
    font-size: 17px;
    background: linear-gradient(to right, #fbc02d, #eeeeee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transform: scale(1.05);
}

/* 物品文字样式 - 使用渐变效果但不影响背景 */
.item-text {
    background: linear-gradient(135deg, #ffffff 0%, #fff176 50%, #ffd700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.item-text:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffeb3b 50%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transform: scale(1.02);
}

/* 为了确保背景图片显示，给容器添加伪元素背景 */
.equipment-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../huishou-images/huishou-bg-jiage.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.reward-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../huishou-images/huishou-bg-jiage-520.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* 通用样式类 */
.anniu {
    transition: all 0.4s ease-in-out;
}

.fangda {
    transition: all 0.4s ease-in-out;
}

.fangda:hover {
    transform: scale(1.08);
}

.suoxiao {
    transition: all 0.4s ease-in-out;
}

.suoxiao:hover {
    transform: scale(0.9);
}

.zuoyi {
    transition: all 0.4s ease-in-out;
}

.zuoyi:hover {
    transform: translate(0, 10px);
}

.zuoyi-1 {
    transition: all 0.4s ease-in-out;
}

.zuoyi-1:hover {
    transform: translateX(10px);
}

.zuoyi-2 {
    transition: all 0.4s ease-in-out;
}

.zuoyi-2:hover {
    transform: translate(0, -10px);
}

.zuoyi-3 {
    transition: all 0.4s ease-in-out;
}

.zuoyi-3:hover {
    transform: translateX(-10px);
}

.hover-image:hover {
    filter: brightness(1.5);
}

.hover-image-1:hover {
    filter: brightness(0.8);
}

.hover-image-2:hover {
    filter: brightness(1.1);
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .main-wrapper {
        width: 100%;
        max-width: 1400px;
        padding: 0 20px;
    }
    
    .content-container {
        width: 100%;
        max-width: 1104px;
    }
    
    .equipment-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    
    .reward-grid {
        grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
    }
    
    .left-scroll-controls {
        left: 20px;
    }
    
    .right-scroll-controls {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .navigation {
        width: 100%;
        max-width: 438px;
    }
    
    .equipment-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .reward-grid {
        grid-template-columns: 1fr;
    }
    
    .equipment-item {
        width: 100%;
        font-size: 14px;
    }
    
    .reward-item {
        width: 100%;
        font-size: 20px;
    }
    
    .left-scroll-controls {
        left: 10px;
    }
    
    .right-scroll-controls {
        right: 10px;
    }
    
    .external-scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}