/* index.html的主要样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--outer-bg-color) !important;
    color: var(--text-color);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* 容器样式 */
.container {
    overflow-y: hidden !important;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 516px;
    margin: 0 auto;
    background-color:var(--background-color) !important;
}

/* 顶部导航栏 - 使用common-components.css中的.header样式 */
/* 仅保留特定于首页的header相关样式 */

/* 重要：强制设置header宽度 */
.header {
    width: 100%;
    max-width: 516px;
    margin: 0 auto;
}

/* 添加header-left样式 */
.header-left {
    display: flex;
    align-items: center;
    margin-left: .3rem;
}

.menu-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease !important;
}

.menu-btn.active {
    transform: rotate(180deg) !important;
}

.menu-btn-icon {
    width: 24px;
    height: 24px;
    fill: var(--secondary-color);
}

.menu-btn i {
    font-size: 20px;
    display: none; /* 隐藏FontAwesome图标 */
}

.menu-btn-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.menu-btn-icon.normal-icon {
    opacity: 1;
}

.menu-btn-icon.active-icon {
    opacity: 0;
}

.menu-btn.active .menu-btn-icon.normal-icon {
    opacity: 0;
}

.menu-btn.active .menu-btn-icon.active-icon {
    opacity: 1;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.logo {
    height: 50px; /* 从原来的40px增加到50px */
    display: block;
    margin: 0 auto;
    width: auto;
    max-width: 140px; /* 从原来的120px增加到140px */
    object-fit: contain;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.star-rating {
    display: flex;
    margin-top: 3px;
    justify-content: center;
}

.star-rating .star {
    color: var(--secondary-color);
    font-size: 12px;
    margin: 0 1px;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 150px;
}

.balance-display {
    display: flex;
    align-items: center;
    border-radius: 1.2rem;
    padding: 0.1rem;
    margin-right: 5px;
    height: 1.8rem;
    border: 0.1px solid var(--active-color);
}

/* 添加国旗样式 */
.currency-flag {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 0.1px solid var(--active-color);
}

.balance-amount {
    color: var(--amount-color);
    font-weight: bold;
    font-size: 0.9rem;
    margin-left: 5px;
    border-bottom: 1px solid var(--amount-color);
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
    margin-left: auto;
    margin-right: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 100%;
    width: auto;
    z-index: 1000;
    border-radius: 4px;
    right: 0;
    top: 100%;
    margin-top: 2px;
    white-space: nowrap;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    text-align: center;
    font-size: 0.9rem;
    white-space: nowrap;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px; /* 确保宽高相等 */
    position: relative;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px; /* 稍小于按钮本身 */
    height: 28px; /* 保持宽高相等 */
    background-color: rgba(255, 255, 255, 0.1); /* 透明白色背景 */
    border-radius: 50%; /* 圆形背景 */
    z-index: 0;
}

.search-btn i {
    color: var(--text-color);
    font-size: 18px;
    position: relative;
    z-index: 1; /* 确保图标在背景上方 */
}

.btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Banner轮播 */
.banner-slider {
    position: relative;
    height: 145px; /* PC浏览器下的固定高度 */
    overflow: hidden;
    border-radius: 20px;
    margin: 10px;
    width: calc(100% - 20px); /* 考虑左右margin */
    max-width: 496px; /* 516px - 左右margin */
    aspect-ratio: 3.42 / 1; /* 保持宽高比例一致 */
}

.banner-slide {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 24px;
    font-weight: bold;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s ease-in-out;
    will-change: transform; /* 优化性能 */
}

.banner-slide.active {
    display: flex;
    z-index: 2;
}

.banner-slide.prev,
.banner-slide.next {
    display: flex;
    z-index: 1;
}

/* 轮播指示器样式 */
.banner-indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.banner-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* 添加阴影使其在各种背景上都可见 */
}

.banner-indicator.active {
    background-color: #fff;
    transform: scale(1.2);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); /* 活动状态阴影更强 */
}

/* 奖池显示 */
.jackpot-container {
    text-align: center;
    padding: 0;
    margin: 10px auto;
    background-image: url('/assets/img/frontend/common/jackpot-bg.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border-radius: 20px;
    position: relative;
    width: calc(100% - 20px); /* 考虑左右边距 */
    max-width: 496px; /* 516px - 左右边距 */
    height: 112px; /* PC浏览器下的固定高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    aspect-ratio: 4.43 / 1; /* 保持宽高比例一致 (496/112) */
}

.jackpot-amount {
    font-size: 42px;
    color: var(--jackpot-color);
    position: relative;
    z-index: 1;
    text-shadow: -1px -1px 0 var(--jackpot-border-color),1px -1px 0 var(--jackpot-border-color),-1px 1px 0 var(--jackpot-border-color),1px 1px 0 var(--jackpot-border-color);
    font-weight: 700;
    padding-top: 30px;
    letter-spacing: 0.5px; /* 增加字母间距使分隔符更清晰 */
    transition: font-size 0.3s, padding-top 0.3s; /* 添加过渡效果 */
}

/* 公告栏 */
.notice-bar {
    display: flex;
    align-items: center;
    position: relative;
    background-color: transparent !important;
    height: 30px; /* PC浏览器下的固定高度 */
    width: calc(100% - 20px); /* 考虑左右边距 */
    max-width: 496px; /* 516px - 左右边距 */
    margin: 1rem auto;
    box-sizing: border-box;
}

.notice-icon {
    width: 30px; /* 减小宽度 */
    margin-right: 8px; /* 减小右边距 */
    z-index: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s, margin-right 0.3s; /* 添加过渡效果 */
}

.notice-icon-img {
    width: 20px; /* 减小图标宽度 */
    height: 20px; /* 减小图标高度 */
    object-fit: contain;
    animation: blink 1s infinite;
    transition: width 0.3s, height 0.3s; /* 添加过渡效果 */
}

/* 中间容器 - 限制公告内容的显示范围 */
.notice-content-container {
    flex: 1;
    position: relative;
    overflow: hidden; /* 关键：隐藏溢出内容 */
    height: 20px; /* 适应notice-bar的高度 */
    transition: height 0.3s; /* 添加过渡效果 */
}

/* 公告内容样式 - 增加选择器特异性并使用!important */
html body .notice-content {
    white-space: nowrap;
    color: var(--secondary-color) !important; /* 使用专门的变量并添加!important */
    font-size: 0.8rem; /* 减小字体大小 */
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center; /* 居中显示 */
    animation: notice-scroll-confined 15s linear infinite;
    line-height: 20px; /* 设置行高与容器高度一致 */
    transition: font-size 0.3s, line-height 0.3s; /* 添加过渡效果 */
}

/* 确保所有子元素也使用正确的颜色 */
.notice-content * {
    color: var(--secondary-color) !important;
}

.notice-mail {
    width: 30px; /* 减小宽度 */
    margin-left: 8px; /* 减小左边距 */
    cursor: pointer;
    z-index: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s, margin-left 0.3s; /* 添加过渡效果 */
}

.notice-mail-img {
    width: 20px; /* 减小图标宽度 */
    height: 20px; /* 减小图标高度 */
    object-fit: contain;
    transition: width 0.3s, height 0.3s; /* 添加过渡效果 */
}

/* 公告滚动动画 - 只在容器内滚动 */
@keyframes notice-scroll-confined {
    0% {
        transform: translateX(100%); /* 从容器右边界开始 */
    }
    10% {
        transform: translateX(0); /* 滚动到容器左边 */
    }
    90% {
        transform: translateX(0); /* 在容器内停留 */
    }
    100% {
        transform: translateX(-100%); /* 滚动到容器左边界外 */
    }
}

/* 公告项样式 */
.notice-item {
    display: inline-block;
    padding: 0 5px;
}

.notice-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
}

/* 游戏分类标签 */
.horizontal-tabs {
    display: flex;
    justify-content: space-around;
    /* background-color: var(--horizontal-tabs-bg-color); */
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    margin: 0 auto;
    width: 100%;
    max-width: 516px;
    box-sizing: border-box;
}

.horizontal-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tab {
    flex: 1;
    text-align: center;
    padding-top: 0.4rem;
    padding-bottom: 0.6rem;
    color: var(--secondary-color); /* 未激活状态使用底部导航未激活颜色 */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    opacity: 1; /* 移除透明度 */
}

.tab.active {
    color: var(--active-color);
    font-weight: bold;
    opacity: 1;
    cursor: default; /* 改变鼠标样式，表示不可点击 */
    pointer-events: none; /* 禁用点击事件 */
}

.tab.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    color: var(--active-color);
}

.tab .tab-icon {
    display: block;
    margin: 0 auto 5px;
    position: relative;
}

.tab .icon-normal,
.tab .icon-selected {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s;
}

.tab .icon-normal {
    opacity: 1;
}

.tab .icon-selected {
    opacity: 0;
}

.tab.active .icon-normal {
    opacity: 0;
}

.tab.active .icon-selected {
    opacity: 1;
}

/* 游戏列表 */
.game-container {
    position: relative;
    min-height: 100px; /* 减少最小高度 */
    padding-bottom: 0px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0px 5px;
}

.game-category-title {
    font-size: 22px; /* PC设备上的文字大小为22px */
    font-weight: bold;
    display: flex;
    align-items: center;
}

.game-category-title img {
    width: 37px; /* PC设备上的图标宽度为37px */
    height: 28px; /* PC设备上的图标高度为28px */
    margin-right: 2px; /* 减小右边距，使文字更靠近图标 */
    object-fit: contain;
}

.category-icon {
    margin-right: 5px;
    color: var(--active-color);
}

.view-all {
    color: var(--secondary-color);
    font-size: 12px;
    cursor: pointer;
}

.view-all:hover {
    text-decoration: underline;
}

/* 动画效果 */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 公告栏滚动动画 - 从右往左移动 */
@keyframes notice-scroll-confined {
    0% {
        transform: translateX(100%); /* 从容器右边界开始 */
    }
    10% {
        transform: translateX(100%); /* 短暂停留 */
    }
    45% {
        transform: translateX(0); /* 滚动到容器中间 */
    }
    55% {
        transform: translateX(0); /* 在中间停留一段时间 */
    }
    90% {
        transform: translateX(-100%); /* 滚动到容器左边界 */
    }
    100% {
        transform: translateX(-100%); /* 结束于容器左边界 */
    }
}

/* 保留原始动画定义，以防其他地方使用 */
@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 选项2：渐变淡入淡出效果 - 取消注释使用 */
/*
@keyframes fade-scroll {
    0% {
        transform: translateX(30%);
        opacity: 0;
    }
    10% {
        transform: translateX(0);
        opacity: 1;
    }
    90% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-30%);
        opacity: 0;
    }
}
*/

/* 选项3：弹跳效果 - 取消注释使用 */
/*
@keyframes bounce-scroll {
    0% { transform: translateX(100%); }
    10% { transform: translateX(0); }
    15% { transform: translateX(5px); }
    20% { transform: translateX(0); }
    80% { transform: translateX(0); }
    85% { transform: translateX(-5px); }
    90% { transform: translateX(-100%); }
    100% { transform: translateX(-100%); }
}
*/

/* 响应式设计 */
/* PC浏览器 */
@media (min-width: 516px) {
    /* 确保PC浏览器下banner-slider的固定高度 */
    .banner-slider {
        height: 145px;
        max-width: 496px;
    }

    /* PC浏览器下的轮播指示器样式 */
    .banner-indicators {
        bottom: 12px;
    }

    .banner-indicator {
        width: 10px;
        height: 10px;
        margin: 0 6px;
    }

    /* 确保PC浏览器下jackpot-container的固定高度 */
    .jackpot-container {
        height: 112px;
        max-width: 496px;
        width: calc(100% - 20px); /* 保留左右边距 */
    }

    /* PC浏览器下的jackpot-amount样式 */
    .jackpot-amount {
        font-size: 34px;
        padding-top: 30px;
    }

    /* PC浏览器下的notice-bar样式 */
    .notice-bar {
        height: 30px;
        max-width: 496px;
        width: 100%; /* 保留左右边距 */
    }

    .notice-content-container {
        height: 20px;
    }
    .notice-content {
        line-height: 20px;
    }

    .notice-icon,
    .notice-mail {
        width: 34px;
    }

    .notice-icon-img,
    .notice-mail-img {
        width: 31px;
        height: 28px;
    }
}

/* 中等屏幕设备 */
@media (min-width: 481px) and (max-width: 515px) {
    /* 中等屏幕设备的banner-slider */
    .banner-slider {
        height: calc((100vw - 20px) / 3.2); /* 稍微调整宽高比 */
        max-width: 100%;
    }

    /* 中等屏幕设备的jackpot-container */
    .jackpot-container {
        height: calc((100vw - 20px) / 4.43); /* 根据宽高比计算高度 */
        width: calc(100% - 20px);
        max-width: 100%;
    }

    /* 中等屏幕设备的jackpot-amount样式 */
    .jackpot-amount {
        font-size: 32px;
        padding-top: 28px;
    }

    /* 中等屏幕设备的notice-bar样式 */
    .notice-bar {
        height: 28px;
        width: 100%;
        max-width: 100%;
    }

    .notice-content-container {
        height: 18px;
    }

    .notice-content {
        line-height: 18px;
    }

    .notice-icon,
    .notice-mail {
        width: 28px;
    }

    .notice-icon-img,
    .notice-mail-img {
        width: 18px;
        height: 18px;
    }

    /* 中等屏幕设备的游戏分类标题样式 */
    .game-category-title {
        font-size: 20px; /* 中等屏幕设备上的文字大小 */
    }

    .game-category-title img {
        width: 32px; /* 中等屏幕设备上的图标宽度 */
        height: 24px; /* 中等屏幕设备上的图标高度 */
        margin-right: 4px; /* 减小右边距，使文字更靠近图标 */
    }
}

@media (max-width: 516px) {
    /* 确保小屏幕宽度控制 */
    .container, .fixed-header-section, .scrollable-content, .bottom-nav {
        width: 100%;
    }

    /* 响应式banner-slider */
    .banner-slider {
        height: calc((100vw - 20px) / 3.42); /* 根据宽高比计算高度 */
        width: calc(100% - 20px);
        max-width: 100%;
    }

    /* 小屏幕设备的jackpot-container */
    .jackpot-container {
        width: calc(100% - 20px); /* 保留左右边距 */
        max-width: 100%;
        height: calc((100vw - 20px) / 4.43); /* 根据宽高比计算高度 */
        max-height: none;
    }

    /* 小屏幕设备的jackpot-amount样式 */
    .jackpot-amount {
        font-size: 34px;
        padding-top: 30px;
    }

    /* 小屏幕设备的notice-bar样式 */
    .notice-bar {
        height: 26px;
        width: 100%;
        max-width: 100%;
    }

    .notice-content-container {
        height: 16px;
    }

    .notice-content {
        line-height: 16px;
    }

    .notice-icon,
    .notice-mail {
        width: 26px;
        margin-right: 6px;
        margin-left: 6px;
    }

    .notice-icon-img,
    .notice-mail-img {
        width: 16px;
        height: 16px;
    }

    /* 小屏幕设备的游戏分类标题样式 */
    .game-category-title {
        font-size: 18px; /* 小屏幕设备上的文字大小 */
    }

    .game-category-title img {
        width: 28px; /* 小屏幕设备上的图标宽度 */
        height: 21px; /* 小屏幕设备上的图标高度 */
        margin-right: 3px; /* 减小右边距，使文字更靠近图标 */
    }
}

@media (max-width: 370px) {
    /* 超小屏幕设备上的banner-slider */
    .banner-slider {
        height: calc((100vw - 20px) / 3); /* 调整宽高比，使高度稍大一些 */
    }

    /* 超小屏幕设备上的轮播指示器样式 */
    .banner-indicators {
        bottom: 6px;
    }

    .banner-indicator {
        width: 6px;
        height: 6px;
        margin: 0 4px;
    }

    /* 超小屏幕设备的jackpot-container */
    .jackpot-container {
        height: calc((100vw - 20px) / 4); /* 超小屏幕上调整宽高比 */
        width: calc(100% - 20px); /* 保留左右边距 */
    }

    .jackpot-amount {
        font-size: 28px;
        padding-top: 28px;
    }

    .balance-amount {
        font-size: 12px;
    }

    /* 超小屏幕设备的notice-bar样式 */
    .notice-bar {
        height: 24px;
        width: 100%;
        max-width: 100%;
    }

    .notice-content-container {
        height: 14px;
    }

    .notice-content {
        line-height: 14px;
    }

    .notice-icon,
    .notice-mail {
        width: 22px;
        margin-right: 4px;
        margin-left: 4px;
    }

    .notice-icon-img,
    .notice-mail-img {
        width: 14px; /* 超小屏幕上更小 */
        height: 14px;
    }

    /* 超小屏幕设备的游戏分类标题样式 */
    .game-category-title {
        font-size: 16px; /* 超小屏幕设备上的文字大小 */
    }

    .game-category-title img {
        width: 24px; /* 超小屏幕设备上的图标宽度 */
        height: 18px; /* 超小屏幕设备上的图标高度 */
        margin-right: 2px; /* 减小右边距，使文字更靠近图标 */
    }
}

.login-btn {
    background-color: var(--active-color);
    color: var(--text-color-active);
    padding: 5px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-right: 0.5rem;
    border: 1px solid var(--active-color); /* 添加透明边框以保持对齐，或直接使用box-sizing */
}

.register-btn {
    color: var(--active-color);
    padding: 5px 15px;
    border-radius: 5px;
    text-decoration: none;
    border: 1px solid var(--active-color);
    /* margin-right: 10px; */
}

/* 添加关键路径CSS，确保元素尺寸在页面加载过程中不会突变 */
.header-left, .header-right, .logo-container, .balance-display, .dropdown, .search-btn {
    visibility: visible;
    opacity: 1;
    transition: none;
}

/* 禁用可能造成布局突变的CSS过渡效果 */
.header * {
    transition: none;
}

/* 强制预先渲染布局 */
.header-right.logged-in,
.header-right.logged-out {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-right: .3rem;
}

.header-right.logged-in.active,
.header-right.logged-out.active {
    display: flex;
    position: relative;
    top: auto;
    transform: none;
    margin-right: .3rem;
}

/* 固定头部和可滚动内容区样式 */
.fixed-header-section {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--background-color);
    width: 100%;
    max-width: 516px;
    margin: 0 auto;
}

.scrollable-content {
    flex: 1;
    overflow: visible; /* 取消滚动，让内容自然流动 */
    width: 100%;
    max-width: 516px;
    margin: 0 auto;
    /* margin-bottom: 60px; 添加底部边距等于bottom-nav高度 */
}



/* 确保.header元素宽度固定为516px */
/* 提高选择器优先级 */
body .header,
.fixed-header-section .header {
    max-width: 516px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 响应式设计调整 */
@media (max-width: 516px) {
    /* 确保小屏幕宽度控制 */
    .container, .fixed-header-section, .scrollable-content, .bottom-nav {
        width: 100%;
    }
}


/* middle-content 滚动区域样式 */
#middle-content {
    overflow-y: auto;
    height: calc(100vh - 60px); /* 设置高度为视口高度减去bottom-nav高度 */
    /* padding-bottom: 20px; 添加底部内边距，确保game-providers-section能完整显示 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */

    /* 添加顺滑滚动效果 */
    scroll-behavior: smooth;

    /* 添加滚动缓动效果 - 使用CSS滚动捕捉和动量滚动 */
    -webkit-overflow-scrolling: touch; /* iOS Safari 动量滚动 */

    /* 优化滚动性能 */
    will-change: scroll-position;
    transform: translateZ(0); /* 启用硬件加速 */

    /* 添加滚动边界行为 */
    overscroll-behavior: contain;

    /* 优化滚动条样式（如果需要显示） */
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* 隐藏Chrome, Safari和Opera的滚动条 */
#middle-content::-webkit-scrollbar {
    display: none;
}

/* 为滚动内容添加缓动动画效果 */
#middle-content > * {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 为移动设备优化触摸滚动 */
@media (hover: none) and (pointer: coarse) {
    #middle-content {
        /* 增强移动设备的滚动体验 */
        scroll-snap-type: y proximity;

        /* 减少滚动惯性，使滚动更精确 */
        overscroll-behavior-y: contain;
    }
}

/* 为桌面设备优化滚动 */
@media (hover: hover) and (pointer: fine) {
    #middle-content {
        /* 添加滚动时的微妙过渡效果 */
        transition: all 0.1s ease-out;
    }

    /* 鼠标悬停时的滚动条显示（可选） */
    #middle-content:hover::-webkit-scrollbar {
        /* display: block; */ /* 取消注释以在悬停时显示滚动条 */
        width: 4px;
    }

    #middle-content:hover::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }
}
