.communityNews{
    display: flex;
    justify-content: center;
    min-height: 1000px;
}

.communityNews-div{
    display: flex;
    justify-content: center
}

.communityNews-div-1{
    max-width: 964px;
    width: 100%;
}

.communityNews-div-2{
    width: 100%;
    background-color: #0c141d;
}

.communityNews-div-3{
    padding: 10px;
    width: 100%;
}

.communityNews-div-3-1{
    padding: 10px;
    width: 100%;
}

.communityNews-div-4{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    max-height: 100px;
    overflow: hidden;
}

.communityNews-div-4 p{
    margin: 0;

}

/* 月份标题 */
.month-separator {
    position: sticky; /* 滚动时月份会停留在顶部，非常有App感 */
    top: 0;
    z-index: 200;
    background-color: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(20px);
    padding: 20px 15px 10px 15px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;

    border-bottom: 1px solid #30363d;
    margin-bottom: 10px;
    margin-top: 20px;
}

.month-separator i{
    margin-right: 10px;
    color: #38bdf8;
}

/* 列表卡片 */
.news-card {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    cursor: pointer;
    padding: 10px;
    gap: 20px;
    border-radius: 5px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);

}

.news-card-1 {
    position: relative;
    width: 100%;
    min-height: 58px;
    height: auto;
    display: flex;
    cursor: pointer;
    padding: 10px;
    gap: 20px;
    border-radius: 5px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);

}


.news-card img{
    max-width: 310px;
    height: auto;
}

.game-header{
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    margin-bottom: 20px;
    padding: 10px;
    gap: 20px;
    border-radius: 5px;
    overflow: hidden;
    justify-content: center;
}

.game-ImageHeader{
    max-width: 940px;
    width: 100%;
    display: flex;
    gap: 20px;
}

.game-header-text{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-header-text-1{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-header-text-1 h2{
    font-weight: 200;
    color: #fff;
    margin: 0;
    overflow: hidden;
    font-size: 35px;
    line-height: 41px;
    word-break: break-word;
    white-space: normal;
}

.game-header-text-1 p{
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 25px;
    color: #fff;
}


.game-ImageHeader img{
    max-width: 290px;
}

.BackGround-header{
    background: center / cover no-repeat;
    filter: blur(40px) brightness(80%);
    opacity: 0.6;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.BackGround {
    background: center / cover no-repeat;
    filter: blur(40px) brightness(40%);
    opacity: 0.6;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    transition: filter 0.4s ease;
}

.card-image{
    z-index: 100;
}

.card-image-1{
    z-index: 100;
    align-items: center;
    display: flex;
}

.card-image-1 img{
    max-width: 177px;
}

.card-image-1 i{
    display: none;
    font-size: 30px;
    color: #6b7685;
}

.news-card:hover .BackGround {
    filter: blur(80px) brightness(50%);
    background-color: rgba(255, 255, 255, 0.3);
    background-blend-mode: overlay;
    opacity: 1;
}

.news-title{
    color: white;
    z-index: 100;
}

.news-title-1{
    color: white;
    z-index: 100;
}

.news-title h2{
    font-size: 20px;
    line-height: 22px;
    color: #fff;
    font-weight: 500;
    word-break: break-word;
    flex: none;
    margin: 0;
}

.news-title p{
    font-size: 12px;
    font-weight: 300;
    line-height: 19px;
    color: #e4e8ec;
    word-wrap: break-word;
    word-break: break-word;
    margin-top: 15px;
}

.news-title-1 h2{
    font-size: 20px;
    line-height: 22px;
    color: #fff;
    font-weight: 500;
    word-break: break-word;
    flex: none;
    margin: 0;
}

.news-title-1 p{
    color: #909da7;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 12px;

    line-height: 19px;
    word-wrap: break-word;
    word-break: break-word;
    margin-top: 15px;
}


/* 遮罩层：独立于 body 布局 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;  /* 使用视口宽度 */
    height: 100vh; /* 使用视口高度 */
    z-index: 1000; /* 确保在最顶层 */
    display: none;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 40px 0;
    background: rgba(0,0,0,0.6);
}


.newsModal {
    /* 距离两边 10px */
    width: calc(100% - 20px);
    max-width: 900px;

    margin-left: auto;
    margin-right: auto;


    backdrop-filter: blur(10px);
    border-radius: 4px;
    position: relative;
    box-sizing: border-box;
    padding: 20px;
    background-image: radial-gradient(ellipse at top left, #5c5c5c, #25282e);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    color: white;
    animation: steamFadeIn 0.3s ease-out;


    font-size: 15px;
    font-weight: 300;

}

@keyframes steamFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* 独立固定的关闭按钮 */
.close-btn {
    position: fixed;
    /* 核心修改：基于 900px 的最大宽度计算位置
       1. 50% 是屏幕中心
       2. 450px 是模态框最大宽度的一半 (900/2)
       3. 15px 是留出的间隙
    */
    left: min(calc(50% + 450px + 15px), calc(100% - 65px));

    top: 60px;
    width: 50px;
    height: 50px;
    background-color: #25282e;
    border-radius: 50%;
    background-image: radial-gradient(ellipse at top left, #42454c, #25282e);
    backdrop-filter: blur(10px);
    color: #fff;

    /* display 由 JS 控制，但初始布局设为 flex 以便居中文字 */
    display: none;
    justify-content: center;
    align-items: center;

    cursor: pointer;
    z-index: 2001; /* 确保比 overlay (1000) 高 */
    font-size: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/*##########################  对应新闻 状态  #################*/
.bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 0;
    justify-content: end;
}
.bar-container a{
    text-decoration: none;
}
.active-item-color{
    color: #38bdf8;
}
.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #7d8590;
}


.action-item:hover {
    color: #ffffff;
}

/* 点赞图标特殊色值 */
.fa-thumbs-up {
    transition: color 0.2s;
}

.action-item:hover .fa-thumbs-up {
    color: #ffffff;
}

.count {
    font-size: 16px;
    font-weight: 500;
}

/* 更多操作按钮 */
.more-btn {
    background-color: #30363d;
    color: #7d8590;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.more-btn:hover {
    color: #ffffff;
}

.fa-ellipsis {
    font-size: 16px;
}








/* 响应式调整：当屏幕变窄，calc 无法支撑外部显示时 */
@media (max-width: 900px) {
    .close-btn {
        /* 窄屏下强制固定在右侧内部 */
        left: auto;
        right: 15px;

    }
}

::-webkit-scrollbar { width: 14px; }
::-webkit-scrollbar-track { background: #171a21; }
::-webkit-scrollbar-thumb {
    background: #3d4450;
    border-radius: 10px;
    border: 3px solid #171a21;
}


@media (max-width: 700px) {

    .newsModal{
        padding: 0;
    }

    .news-card{
        flex-direction: column-reverse;
    }

    .news-card img{
        max-width: 100%;
        width: 100%;
    }

    .news-title p{
        font-size: 13px;
        line-height: 17px;
        color: #b1bec8;
    }

    .news-title h2{
        font-size: 20px;
        font-weight: 500;
        line-height: 1.3;
    }

    .game-ImageHeader img{
        max-width: 142px;
    }

    .game-header-text-1 p{
        display: none;
    }

    .game-header-text-1 h2{
        font-size: 24px;
        line-height: 24px;
    }

    .bar-container{
        justify-content: space-evenly;
        padding: 15px;
    }

    .communityNews-div-4{
        max-height: 400px;
    }

    .news-title-1 p{
        display: none;
    }

    .news-title-1 h2{
        font-size: 14px;
        line-height: 1.3;
        margin-top: 10px;
    }

    .card-image-1 img{
        display: none;
    }

    .card-image-1 i{
        display: block;
    }
}