/* 修复页面溢出问题 - Fix Overflow Issues */

/* 防止整体页面水平滚动 */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    padding-top: 65px; /* 为固定的header留出空间，防止遮住标题 */
}

/* 移动端菜单打开时，确保body不阻止显示 */
body.cool-a499 {
    overflow-y: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* 确保所有容器不会超出视口 */
* {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 容器修复 */
.soft_413a {
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
}

/* 图片自适应 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.content_23fa,
.component_lower_5586,
.short_6c0b img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Header 修复 - 允许菜单突破容器，紧凑布局 */
.panel-c350 {
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    padding: 0.5rem 0 !important;
}

.top_796d {
    padding: 0.5rem 0 !important;
}

.panel-c350 .soft_413a {
    overflow: visible !important;
    position: static !important;
}

/* 移动端和平板时header完全不限制overflow */
@media (max-width: 1023px) {
    .panel-c350 {
        overflow: visible !important;
        contain: none !important;
    }
    
    .panel-c350 .soft_413a {
        overflow: visible !important;
        position: static !important;
    }
    
    .top_796d {
        overflow: visible !important;
    }
}

.top_796d {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

/* 桌面端Header布局修复 - 按钮绝对靠右自适应 */
@media (min-width: 1024px) {
    .top_796d {
        flex-wrap: nowrap !important;
        gap: clamp(0.3rem, 1vw, 1rem);
        align-items: center;
        justify-content: space-between;
    }
    
    .box-green-594f {
        flex-shrink: 0;
        max-width: clamp(100px, 10vw, 140px);
    }
    
    .box-green-594f img {
        width: auto;
        height: auto;
        max-height: clamp(35px, 4vw, 45px);
        max-width: 100%;
        object-fit: contain;
    }
    
    .table_wide_1616 {
        flex: 0 1 auto;
        display: flex !important;
        min-width: 0;
    }
    
    .component_64e4 {
        flex-shrink: 0;
        display: flex !important;
        gap: clamp(0.4rem, 0.8vw, 0.75rem);
        margin-left: auto;
    }
    
    .component_64e4 .banner_in_c17a {
        padding: clamp(0.5rem, 0.7vw, 0.75rem) clamp(0.8rem, 1.2vw, 1.5rem);
        font-size: clamp(0.85rem, 0.9vw, 1rem);
        white-space: nowrap;
    }
    
    .banner-65fd,
    .preview_8624 {
        display: none !important;
    }
}

.box-green-594f img {
    max-width: 150px;
    height: auto;
    max-height: 40px;
    width: auto;
    object-fit: contain;
}


/* 导航菜单修复 - 完全自适应布局 */
.table_wide_1616 {
    overflow: visible;
    flex: 1;
    min-width: 0;
}

/* 隐藏分组标签，让所有导航项平铺 */
.preview_last_ed18 {
    display: none;
}

.outer_2550 {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    align-items: center;
    justify-content: flex-end;
}

.progress-steel-20a0 {
    display: flex;
}

.thumbnail_narrow_25d1 {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
}

.thumbnail_narrow_25d1 li {
    flex-shrink: 1;
    min-width: 0;
}

/* 桌面端导航 - 靠右对齐自适应 */
@media (min-width: 1024px) {
    .table_wide_1616 {
        display: flex !important;
        flex: 1;
        justify-content: flex-end;
    }
    
    .outer_2550 {
        display: flex;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }
    
    .highlight_e593 {
        white-space: nowrap;
        padding: 0.75rem clamp(0.25rem, 0.8vw, 0.8rem);
        display: block;
        font-size: clamp(0.85rem, 0.9vw, 1rem);
    }
}

/* Hero Section 修复 */
.content-d203 {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    /* 减少顶部padding，因为body已经有padding-top为header留出空间 */
    padding-top: 3rem !important;
}

.red_3b24 {
    width: 100%;
    max-width: 100%;
    display: grid;
    gap: 2rem;
}

.container_cool_ab64 {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.silver_eb0a {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 按钮修复 */
.banner_in_c17a,
.tiny_8189,
.module_ab06,
.label_1c11,
.image-9048,
.black_e751 {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: center;
}

.image_1eba,
.content-1e72 {
    width: 100%;
    max-width: 100%;
}

/* Promo Highlights 修复 */
.background-hot-e961 {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

.video-11fb {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

/* Featured Promos 修复 */
.alert_df71 {
    width: 100%;
    max-width: 100%;
}

.dirty_bcab {
    width: 100%;
    max-width: 100%;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.east-444d {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.feature_5cf2,
.feature-brown-a41f {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Loyalty Program 修复 */
.cold_d5b1 {
    width: 100%;
    max-width: 100%;
}

.tiny_6b0a {
    width: 100%;
    max-width: 100%;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.huge_8bd3 {
    flex: 1;
    min-width: 0;
}

.hard-832f {
    width: 100%;
    max-width: 100%;
}

.table_action_d05c {
    padding-left: 1.5rem;
    margin: 0;
}

.table_action_d05c li {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Weekly Events 修复 */
.frame_4939 {
    display: grid;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

.sidebar_d2de {
    width: 100%;
    max-width: 100%;
}

.warm-00d9 {
    width: 100%;
    max-width: 100%;
}

.message-steel-1e91,
.tertiary-dim-69ab {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Section Content 修复 */
.complex-15e8 {
    width: 100%;
    max-width: 100%;
    display: grid;
    gap: 2rem;
}

.box-pink-77b2,
.hovered-6931 {
    width: 100%;
    max-width: 100%;
}

/* Final CTA 修复 */
.avatar_87fc {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.grid-b150 {
    width: 100%;
    max-width: 100%;
}

.container-complex-8f5f {
    width: 100%;
    max-width: 100%;
}

.header-east-df14 {
    display: grid;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

.accent-13aa {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Footer 修复 */
.sort-80b4 {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.detail-fixed-fc12 {
    display: grid;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

.north-1e18 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.secondary-fast-9ccf {
    list-style: none;
    padding: 0;
    margin: 0;
}

.background-db96 {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.alert-stale-2be0 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* 响应式网格修复 */
@media (max-width: 639px) {
    /* 移动端 - 调整body顶部空间以适应header */
    body {
        padding-top: 60px;
    }
    
    /* 移动端菜单全屏展开 */
    .title-b47f {
        top: 60px !important;
        height: calc(100vh - 60px) !important;
        min-height: calc(100vh - 60px) !important;
        z-index: 10000 !important;
    }
    
    .title-b47f.fn-active-0051 {
        display: block !important;
        height: calc(100vh - 60px) !important;
        min-height: calc(100vh - 60px) !important;
    }
    
    /* 移动端Header布局 - 按钮和菜单横向对齐 */
    .top_796d {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center;
        gap: 0.5rem;
    }
    
    .box-green-594f {
        flex-shrink: 0;
        max-width: 100px;
    }
    
    .box-green-594f img {
        width: auto;
        height: auto;
        max-height: 35px;
        max-width: 100px;
        object-fit: contain;
    }
    
    .table_wide_1616 {
        display: none !important;
    }
    
    .banner-65fd {
        flex: 1;
        display: flex !important;
        justify-content: flex-end;
        margin-left: auto;
    }
    
    .static_c8d4 {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .preview_8624 {
        flex-shrink: 0;
        display: flex !important;
        padding: 0.5rem;
    }
    
    /* 移动端 - 减少hero-section顶部padding */
    .content-d203 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .soft_413a {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .red_3b24 {
        grid-template-columns: 1fr;
    }
    
    .complex-15e8 {
        grid-template-columns: 1fr;
    }
    
    .background-hot-e961 {
        flex-direction: column;
    }
    
    .frame_4939 {
        grid-template-columns: 1fr;
    }
    
    .header-east-df14 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-fixed-fc12 {
        grid-template-columns: 1fr;
    }
    
    .background-db96 {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    /* 平板 - 调整body顶部空间 */
    body {
        padding-top: 65px;
    }
    
    /* 平板菜单全屏展开 */
    .title-b47f {
        top: 65px !important;
        height: calc(100vh - 65px) !important;
        min-height: calc(100vh - 65px) !important;
        z-index: 10000 !important;
    }
    
    .title-b47f.fn-active-0051 {
        display: block !important;
        height: calc(100vh - 65px) !important;
        min-height: calc(100vh - 65px) !important;
    }
    
    /* 平板Header布局 - 按钮和菜单横向对齐 */
    .top_796d {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center;
        gap: 1rem;
    }
    
    .box-green-594f {
        flex-shrink: 0;
        max-width: 120px;
    }
    
    .box-green-594f img {
        width: auto;
        height: auto;
        max-height: 38px;
        max-width: 120px;
        object-fit: contain;
    }
    
    .table_wide_1616 {
        display: none !important;
    }
    
    .banner-65fd {
        flex: 1;
        display: flex !important;
        justify-content: flex-end;
        margin-left: auto;
    }
    
    .static_c8d4 {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .preview_8624 {
        flex-shrink: 0;
        display: flex !important;
        padding: 0.6rem;
    }
    
    /* 平板 - 调整hero-section padding */
    .content-d203 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .soft_413a {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .red_3b24 {
        grid-template-columns: 1fr;
    }
    
    .complex-15e8 {
        grid-template-columns: 1fr;
    }
    
    .background-hot-e961 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .frame_4939 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-east-df14 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .detail-fixed-fc12 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    /* 桌面端 - 调整body顶部空间 */
    body {
        padding-top: 70px;
    }
    
    /* 桌面端 - 隐藏移动菜单 */
    .title-b47f {
        display: none !important;
    }
    
    /* 桌面端 - 调整hero-section padding */
    .content-d203 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .soft_413a {
        max-width: 1000px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .red_3b24 {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .complex-15e8 {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .background-hot-e961 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    
    .frame_4939 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .header-east-df14 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .detail-fixed-fc12 {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* 针对1024-1199px的中等桌面屏幕优化 - 已使用clamp()自适应，不需要固定值 */

@media (min-width: 1200px) {
    body {
        padding-top: 72px;
    }
    
    .content-d203 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    .soft_413a {
        max-width: 1200px;
    }
    
    .frame_4939 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* 大屏幕Header优化 - 已使用clamp()自适应 */
}

@media (min-width: 1400px) {
    body {
        padding-top: 75px;
    }
    
    .content-d203 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
    
    .soft_413a {
        max-width: 1400px;
    }
    
    /* 超大屏幕Header优化 - 已使用clamp()自适应 */
}

/* 移动端菜单修复 - 全屏展开，完全独立于header */
.title-b47f {
    /* 默认隐藏 */
    display: none !important;
    /* 固定定位到viewport，不依赖父元素 */
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    /* 使用viewport单位，完全独立 */
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: calc(100vh - 60px) !important;
    height: calc(100vh - 60px) !important;
    max-height: calc(100vh - 60px) !important;
    /* 滚动设置 */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    /* 超高z-index确保在最上层 */
    z-index: 10000 !important;
    /* 背景样式 */
    background: rgba(26, 11, 46, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    /* 重置所有可能的限制 */
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    clip: auto !important;
    clip-path: none !important;
    contain: none !important;
    /* WebKit优化 */
    -webkit-overflow-scrolling: touch !important;
}

.title-b47f.fn-active-0051 {
    display: block !important;
    min-height: calc(100vh - 60px) !important;
    height: calc(100vh - 60px) !important;
    max-height: calc(100vh - 60px) !important;
    overflow-y: auto !important;
    transform: none !important;
    clip: auto !important;
    clip-path: none !important;
}

.block_medium_adcf {
    width: 100% !important;
    max-width: 100% !important;
    list-style: none !important;
    padding: 1.5rem 1rem !important;
    margin: 0 !important;
    min-height: 100vh !important;
    display: block !important;
}

.block_medium_adcf li {
    display: block !important;
    width: 100% !important;
    margin: 0.5rem 0 !important;
}

.prev-959a {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 1rem 1.5rem !important;
    text-decoration: none;
}

/* 文本溢出修复 */
h1, h2, h3, h4, h5, h6,
p, span, div, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* 表格修复 */
table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* 预格式化文本修复 */
pre, code {
    max-width: 100%;
    overflow-x: auto;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* 确保视频和 iframe 自适应 */
video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

/* 修复可能的负边距问题 */
.north-e91b,
.bronze_fd99,
.gradient-e57d {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}


/* css-noise: a066 */
.phantom-card-a5 {
  padding: 0.2rem;
  font-size: 14px;
  line-height: 1.1;
}
