/* 各模块特色背景（首页由 home.css 单独控制，不在此文件内） */

body:not([data-page="home"]) {
    position: relative;
    background-color: #0f172a !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

body:not([data-page="home"])::before {
    display: block;
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

body:not([data-page="home"]) #site-header {
    position: relative;
    z-index: 10000;
}

body:not([data-page="home"]) main,
body:not([data-page="home"]) #site-footer {
    position: relative;
    z-index: 1;
}

/* 智能题库 — 书香学堂 */
body[data-page="question-bank"] {
    background-image: url('../images/backgrounds/question-bank.jpg') !important;
}

body[data-page="question-bank"]::before {
    background:
        linear-gradient(160deg, rgba(68, 42, 18, 0.55) 0%, rgba(15, 23, 42, 0.5) 55%, rgba(30, 41, 59, 0.45) 100%);
}

/* 科创成果 — 实验室 */
body[data-page="achievements"] {
    background-image: url('../images/背景12.jpg') !important;
}

body[data-page="achievements"]::before {
    background:
        linear-gradient(165deg, rgba(12, 30, 62, 0.58) 0%, rgba(15, 23, 42, 0.52) 50%, rgba(6, 78, 59, 0.35) 100%);
}

/* 科创榜样 — 星空励志 */
body[data-page="models"] {
    background-image: url('../images/backgrounds/models.jpg') !important;
}

body[data-page="models"]::before {
    background:
        linear-gradient(180deg, rgba(30, 27, 75, 0.62) 0%, rgba(15, 23, 42, 0.55) 45%, rgba(49, 46, 129, 0.4) 100%);
}

/* 前沿科普 — 数字宇宙 */
body[data-page="videos"] {
    background-image: url('../images/backgrounds/videos.jpg') !important;
}

body[data-page="videos"]::before {
    background:
        linear-gradient(155deg, rgba(8, 47, 73, 0.6) 0%, rgba(15, 23, 42, 0.54) 50%, rgba(22, 78, 99, 0.42) 100%);
}

/* 交流社区 — 协作共创 */
body[data-page="community"] {
    background-image: url('../images/backgrounds/community.jpg') !important;
}

body[data-page="community"]::before {
    background:
        linear-gradient(150deg, rgba(67, 20, 90, 0.45) 0%, rgba(15, 23, 42, 0.52) 45%, rgba(120, 53, 15, 0.38) 100%);
}

/* 个人中心 — 成长手账（书桌阅读场景） */
body[data-page="profile"] {
    background-image: url('../images/backgrounds/profile.jpg') !important;
    background-position: center 40% !important;
}

body[data-page="profile"]::before {
    background:
        linear-gradient(
            165deg,
            rgba(44, 36, 28, 0.82) 0%,
            rgba(42, 37, 32, 0.76) 48%,
            rgba(50, 42, 34, 0.8) 100%
        );
}

/* 登录 / 注册 */
body[data-page="auth"] {
    background-image: url('../images/背景22.jpg') !important;
}

body[data-page="auth"]::before {
    background:
        linear-gradient(
            165deg,
            rgba(15, 23, 42, 0.55) 0%,
            rgba(15, 23, 42, 0.45) 50%,
            rgba(30, 41, 59, 0.5) 100%
        );
}
