/* =====================================================
   高境第一中学校园电竞
   完整 style.css
   仅修改/强化背景效果，其余功能保持兼容
===================================================== */


/* =====================================================
   全局
===================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        "Microsoft YaHei",
        "Noto Sans SC",
        Arial,
        sans-serif;

    color: #ffffff;

    min-height: 100vh;

    /* ==============================
       GJG 校园背景
       gjg-bg.jpg 与 style.css 同目录
    ============================== */

    background-image:
        linear-gradient(
            rgba(5, 8, 30, 0.28),
            rgba(5, 8, 30, 0.58)
        ),
        url("gjg-bg.jpg");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    background-color: #05081e;
}


/* 防止背景滚动时出现白色区域 */

body::before {
    content: "";

    position: fixed;

    left: 0;
    right: 0;
    top: 0;
    bottom: 0;

    z-index: -1;

    background:
        linear-gradient(
            rgba(5, 8, 30, 0.10),
            rgba(5, 8, 30, 0.20)
        );

    pointer-events: none;
}


/* =====================================================
   顶部导航
===================================================== */

.header {
    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 16px 5%;

    background:
        rgba(5, 8, 30, 0.82);

    backdrop-filter: blur(14px);

    -webkit-backdrop-filter: blur(14px);

    border-bottom:
        1px solid rgba(139, 92, 246, 0.35);

    box-shadow:
        0 5px 30px rgba(0, 0, 0, 0.35);
}


/* =====================================================
   Logo
===================================================== */

.logo {
    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 20px;

    font-weight: bold;

    white-space: nowrap;
}

.logo span {
    font-size: 26px;

    font-weight: 900;

    font-style: italic;

    color: #ffffff;

    text-shadow:
        0 0 8px #7c3cff,
        0 0 18px #7c3cff,
        0 0 30px rgba(124, 60, 255, 0.7);
}


/* =====================================================
   导航
===================================================== */

.nav {
    display: flex;

    align-items: center;

    gap: 35px;

    margin-left: auto;

    margin-right: 30px;
}

.nav a {
    color: rgba(255, 255, 255, 0.88);

    text-decoration: none;

    cursor: pointer;

    font-size: 15px;

    transition:
        color 0.25s ease,
        text-shadow 0.25s ease;
}

.nav a:hover {
    color: #ffffff;

    text-shadow:
        0 0 10px #8b5cf6;
}


/* =====================================================
   登录按钮
===================================================== */

.login-btn {
    border: none;

    padding: 11px 22px;

    border-radius: 22px;

    color: white;

    font-size: 14px;

    font-weight: bold;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #7c3cff,
            #a855f7
        );

    box-shadow:
        0 0 18px rgba(124, 60, 255, 0.45);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 0 28px rgba(124, 60, 255, 0.75);
}


/* =====================================================
   首页 Banner
===================================================== */

.banner {
    min-height: 330px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding:
        70px 8%
        55px;

    position: relative;

    overflow: hidden;
}


/* Banner 内部淡淡的光 */

.banner::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    left: -180px;
    top: -200px;

    border-radius: 50%;

    background:
        rgba(124, 60, 255, 0.16);

    filter: blur(80px);

    pointer-events: none;
}


.banner h1 {
    position: relative;

    margin: 0 0 15px;

    font-size: clamp(
        34px,
        5vw,
        64px
    );

    font-weight: 900;

    letter-spacing: 2px;

    text-shadow:
        0 0 12px rgba(139, 92, 246, 0.8),
        0 0 30px rgba(124, 60, 255, 0.5);
}


.banner p {
    position: relative;

    margin: 0;

    line-height: 1.9;

    color:
        rgba(255, 255, 255, 0.88);

    font-size: 18px;
}


/* =====================================================
   通用容器
===================================================== */

.container {
    width: 90%;

    max-width: 1400px;

    margin: 0 auto;
}


/* =====================================================
   标题
===================================================== */

.section-title {
    margin:
        20px 0 25px;

    font-size: 28px;

    font-weight: 800;

    text-shadow:
        0 0 12px
        rgba(139, 92, 246, 0.65);
}


/* =====================================================
   游戏卡片区域
===================================================== */

.games {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 22px;

    padding-bottom: 60px;
}


/* =====================================================
   游戏卡片
===================================================== */

.game-card {
    min-height: 190px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    cursor: pointer;

    border-radius: 18px;

    border:
        1px solid
        rgba(139, 92, 246, 0.55);

    background:
        linear-gradient(
            145deg,
            rgba(10, 15, 45, 0.90),
            rgba(22, 12, 55, 0.82)
        );

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 10px 35px
        rgba(0, 0, 0, 0.35),

        inset 0 0 25px
        rgba(124, 60, 255, 0.08);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.game-card:hover {
    transform:
        translateY(-8px)
        scale(1.02);

    border-color:
        #a855f7;

    box-shadow:
        0 15px 45px
        rgba(0, 0, 0, 0.45),

        0 0 30px
        rgba(124, 60, 255, 0.35);
}


/* =====================================================
   游戏图标
===================================================== */

.game-icon {
    font-size: 48px;

    margin-bottom: 12px;

    filter:
        drop-shadow(
            0 0 10px
            rgba(168, 85, 247, 0.7)
        );
}


.game-card h3 {
    margin:
        5px 0 8px;

    font-size: 20px;
}


.game-card p {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.65);

    font-size: 13px;
}


/* =====================================================
   社区页面
===================================================== */

.community-page {
    min-height: 75vh;

    padding:
        45px 0
        80px;
}


/* =====================================================
   返回按钮
===================================================== */

.back-btn {
    border: none;

    padding:
        10px 18px;

    border-radius: 18px;

    color: white;

    background:
        rgba(124, 60, 255, 0.28);

    border:
        1px solid
        rgba(139, 92, 246, 0.45);

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.back-btn:hover {
    background:
        rgba(124, 60, 255, 0.55);

    transform:
        translateX(-3px);
}


#gameTitle {
    margin:
        25px 0;

    font-size: 32px;

    text-shadow:
        0 0 12px
        rgba(139, 92, 246, 0.7);
}


/* =====================================================
   帖子
===================================================== */

.post {
    margin-bottom: 18px;

    padding: 22px;

    border-radius: 16px;

    background:
        rgba(7, 12, 38, 0.82);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    border:
        1px solid
        rgba(139, 92, 246, 0.30);

    box-shadow:
        0 8px 30px
        rgba(0, 0, 0, 0.25);
}


.post-user {
    color:
        #c084fc;

    font-weight: bold;

    margin-bottom: 12px;
}


.post-content {
    font-size: 16px;

    line-height: 1.8;

    color:
        rgba(255, 255, 255, 0.92);

    word-break: break-word;
}


.post-time {
    margin-top: 10px;

    color:
        #777;

    font-size: 12px;
}


/* =====================================================
   帖子操作
===================================================== */

.post-actions {
    margin-top: 18px;

    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}


.post-actions button {
    border: none;

    background:
        rgba(124, 60, 255, 0.25);

    color: white;

    padding:
        8px 14px;

    border-radius: 15px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.post-actions button:hover {
    background:
        #7c3cff;

    transform:
        translateY(-1px);
}


/* =====================================================
   评论
===================================================== */

.replies {
    margin-top: 15px;

    padding-left: 15px;

    border-left:
        2px solid
        rgba(139, 92, 246, 0.5);
}


.reply {
    padding: 10px;

    margin-top: 8px;

    background:
        rgba(255, 255, 255, 0.05);

    border-radius: 10px;

    line-height: 1.6;
}


.reply strong {
    color:
        #c084fc;

    margin-right: 10px;
}


.reply small {
    display: block;

    color: #888;

    margin-top: 5px;
}


/* =====================================================
   发布帖子
===================================================== */

.publish-box {
    margin-top: 30px;

    padding: 22px;

    border-radius: 18px;

    background:
        rgba(7, 12, 38, 0.86);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    border:
        1px solid
        rgba(139, 92, 246, 0.35);
}


.publish-box textarea {
    width: 100%;

    min-height: 130px;

    padding: 15px;

    resize: vertical;

    color: white;

    font-size: 15px;

    line-height: 1.7;

    border-radius: 12px;

    border:
        1px solid
        rgba(139, 92, 246, 0.35);

    outline: none;

    background:
        rgba(0, 0, 0, 0.28);

    font-family:
        "Microsoft YaHei",
        Arial,
        sans-serif;
}


.publish-box textarea:focus {
    border-color:
        #8b5cf6;

    box-shadow:
        0 0 15px
        rgba(124, 60, 255, 0.25);
}


.publish-box textarea::placeholder {
    color:
        rgba(255, 255, 255, 0.4);
}


.publish-box > button {
    margin-top: 15px;

    padding:
        11px 25px;

    border: none;

    border-radius: 20px;

    color: white;

    font-weight: bold;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #7c3cff,
            #a855f7
        );

    box-shadow:
        0 0 15px
        rgba(124, 60, 255, 0.3);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.publish-box > button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 0 25px
        rgba(124, 60, 255, 0.55);
}


/* =====================================================
   登录 / 注册弹窗
===================================================== */

.modal {
    position: fixed;

    inset: 0;

    z-index: 3000;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.68);

    backdrop-filter: blur(7px);

    -webkit-backdrop-filter: blur(7px);
}


.modal-box {
    width: 100%;

    max-width: 420px;

    padding: 35px;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(13, 18, 50, 0.97),
            rgba(28, 14, 55, 0.97)
        );

    border:
        1px solid
        rgba(139, 92, 246, 0.55);

    box-shadow:
        0 20px 70px
        rgba(0, 0, 0, 0.65),

        0 0 35px
        rgba(124, 60, 255, 0.22);
}


.modal-box h2 {
    margin-top: 0;

    margin-bottom: 25px;

    text-align: center;

    font-size: 25px;
}


.modal-box input {
    width: 100%;

    padding:
        13px 15px;

    margin-bottom: 14px;

    border-radius: 10px;

    border:
        1px solid
        rgba(139, 92, 246, 0.35);

    outline: none;

    color: white;

    background:
        rgba(0, 0, 0, 0.28);

    font-size: 15px;
}


.modal-box input:focus {
    border-color:
        #8b5cf6;

    box-shadow:
        0 0 12px
        rgba(124, 60, 255, 0.25);
}


.modal-box input::placeholder {
    color:
        rgba(255, 255, 255, 0.42);
}


.modal-box button {
    width: 100%;

    margin-top: 8px;

    padding:
        12px;

    border: none;

    border-radius: 10px;

    color: white;

    font-weight: bold;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #7c3cff,
            #a855f7
        );

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.modal-box button:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 0 18px
        rgba(124, 60, 255, 0.45);
}


/* =====================================================
   Loading
===================================================== */

.loading {
    padding: 35px;

    text-align: center;

    color:
        rgba(255, 255, 255, 0.6);
}


/* =====================================================
   Footer
===================================================== */

footer {
    margin-top: 80px;

    padding:
        30px 20px;

    text-align: center;

    color:
        rgba(255, 255, 255, 0.5);

    background:
        rgba(4, 7, 25, 0.82);

    border-top:
        1px solid
        rgba(139, 92, 246, 0.25);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    line-height: 1.8;
}


/* =====================================================
   滚动条
===================================================== */

::-webkit-scrollbar {
    width: 8px;
}


::-webkit-scrollbar-track {
    background:
        rgba(0, 0, 0, 0.25);
}


::-webkit-scrollbar-thumb {
    background:
        rgba(124, 60, 255, 0.65);

    border-radius: 10px;
}


::-webkit-scrollbar-thumb:hover {
    background:
        rgba(168, 85, 247, 0.9);
}


/* =====================================================
   手机端
===================================================== */

@media (max-width: 1000px) {

    .header {
        padding:
            14px 4%;
    }


    .nav {
        gap: 18px;

        margin-right: 15px;
    }


    .nav a {
        font-size: 13px;
    }


    .games {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .banner {
        padding:
            55px 6%;
    }

}


@media (max-width: 650px) {

    .header {
        flex-wrap: wrap;

        gap: 12px;
    }


    .logo {
        font-size: 16px;
    }


    .logo span {
        font-size: 22px;
    }


    .nav {
        order: 3;

        width: 100%;

        justify-content: center;

        margin: 5px 0 0;

        gap: 18px;
    }


    .login-btn {
        padding:
            9px 16px;

        font-size: 13px;
    }


    .banner {
        min-height: 280px;

        padding:
            50px 7%;
    }


    .banner h1 {
        font-size: 34px;
    }


    .banner p {
        font-size: 15px;
    }


    .games {
        grid-template-columns:
            1fr;

        gap: 15px;
    }


    .game-card {
        min-height: 160px;
    }


    #gameTitle {
        font-size: 26px;
    }


    .modal-box {
        padding: 25px;
    }

}