/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f9;
    color: #333;
}

/* 滚动栏容器样式 */
.scroll-container {
    width: 100%; /* 宽度改小点 */
    max-width: 975px; /* 宽度改小点 */
    margin: 0 auto 20px;
    overflow: hidden;
    position: relative;
    /* 高度改小为原来的 2/3 */
    height: 270px; 
    /* 新增：在手机端允许触摸滚动 */
    -webkit-overflow-scrolling: touch;
}

/* 滚动内容样式 */
.scroll-content {
    white-space: nowrap;
    transition: transform 0.3s ease;
    display: flex;
    /* 让滚动内容高度与容器一致 */
    height: 100%;
    /* 新增：在手机端允许触摸滚动 */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

/* 滚动栏内方框样式 */
.scroll-box {
    min-width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    /* 让每个滚动框高度与容器一致 */
    height: 100%;
    /* 新增：滚动捕捉点 */
    scroll-snap-align: start;
}

/* 滚动栏内图片区域样式 */
.scroll-box-left {
    width: 50%;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 滚动栏内图片标题样式 */
.scroll-box-left h4 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color:#fa8722;
    text-align: center;
    font-weight: normal;
}

/* 滚动栏内图片样式 */
.scroll-box-left img {
    width: 80%;
    height: auto;
    margin-top: 10px;
    border-radius: 4px;
}

/* 滚动栏内详情区域样式 */
.scroll-box-right {
    width: 50%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 滚动栏内详情列表样式 */
.scroll-box-right ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* 滚动栏内详情列表项样式 */
.scroll-box-right li {
    line-height: 1.5;
    font-size: 1.4rem;
    color: #fa8722;
    margin-bottom: 3px;
}

/* 滚动按钮样式 */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    /* 新增：在手机端隐藏滚动按钮 */
    display: none;
}

.scroll-btn-left {
    left: 10px;
}

.scroll-btn-right {
    right: 10px;
}

/* 容器样式 */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 975px;
    margin: 0 auto;
    border:1px;
}

/* 方框样式 */
.sfbz-box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: calc(33.333% - 20px);
    box-sizing: border-box;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 300px; /* 固定高度 */
    position: relative;
    overflow-y: auto; /* 上下滑动 */
}

/* 标题和详情内容容器样式 */
.box-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* 标题样式 */
.sfbz-box h3 {
    margin-top: 0;
    font-size: 2.0rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    font-weight: normal;
}

/* 详情列表样式 */
.sfbz-box ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* 详情列表项样式 */
.sfbz-box li {
    display: flex;
    justify-content: space-between;
    line-height: 2.0;
    font-size: 1.4rem;
    color: #7f8c8d;
    margin-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
    display: flex; /* 设置为弹性容器 */
    align-items: center; /* 垂直居中对齐 */
}

/* 详情列表项左部分样式 */
.sfbz-box li .left {
    font-weight: normal;
    flex-basis: 70%; /* 分配 80% 的宽度 */
}
.sfbz-box li span:last-child {
    flex-basis: 30%; /* 分配 20% 的宽度 */
    text-align: right; /* 右对齐 */
}

/* 鼠标悬停效果 */
.sfbz-box:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* 媒体查询：手机端样式 */
@media (max-width: 768px) {
    .sfbz-box {
        width: 100%;
    }

    .scroll-box {
        width: calc(100% - 20px);
        flex-direction: column;
    }

    .scroll-box-left,
    .scroll-box-right {
        width: 100%;
    }

    /* 新增：在手机端允许触摸滚动 */
    .scroll-container {
        height: auto;
    }

    .scroll-content {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .scroll-box {
        min-width: 90%;
        margin-right: 10px;
    }
}