/* 1. 导航栏蓝紫渐变 */
.navbar {
    background: linear-gradient(135deg, #3366CC 0%, #6A5ACD 50%, #9933CC 100%);
    position: relative;
    overflow: hidden;          /* 闪粉不溢出 */
}

/* 2. 闪粉粒子 */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;               /* 足够宽，保证扫完全屏 */
    height: 100%;
    background: transparent
                radial-gradient(circle, rgba(255,255,255,0.8) 1px, transparent 1px)
                0 0 / 30px 30px;          /* 小白点 = 闪粉 */
    animation: sparkle 6s linear infinite;
    pointer-events: none;      /* 不影响按钮点击 */
}

/* 3. 让闪粉从左往右扫 */
@keyframes sparkle {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* 4. 文字保持白色可见 */
.navbar-brand,
.navbar-nav .nav-link {
    color: #fff !important;
    text-shadow: 0 0 4px rgba(0,0,0,.4);   /* 加一点阴影防渐变干扰 */
}
/* ===== 1. 流动蓝紫渐变背景 ===== */
.jumbotron {
    position: relative;
    overflow: hidden;               /* 动画不溢出 */
    background: linear-gradient(-45deg, #3366CC, #6A5ACD, #9933CC, #3366CC);
    background-size: 400% 400%;     /* 放大背景，方便移动 */
    animation: gradientFlow 8s ease infinite;
    color: #fff;                    /* 文字保持白色 */
}

/* 关键帧：背景左右移动形成流动感 */
@keyframes gradientFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* 全屏背景图 */
body {
    margin: 0;                          /* 去掉默认白边 */
    height: 100vh;                      /* 整屏高度 */
    background: url('../images/1st.jpg') no-repeat center center fixed;
    background-size: cover;             /* 永远铺满 */
    /* 下面 2 行防止滚动条闪 */
    overflow-x: hidden;
    overflow-y: auto;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.35);
    z-index: -1;
}
footer {
    font-size: 1.4rem;        /* 想再大改 1.6rem、1.8rem… */
    background: transparent;
    border-top: none;
}
/* 1. 全屏背景图不动 */
body {
    background: url('../images/1st.jpg') no-repeat center center fixed / cover;
    color: #fff;
}

/* 3. 卡片玻璃 */
.card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

/* 4. 按钮霓虹 */
.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.8);
    transition: 0.3s;
}
.btn-primary:hover {
    box-shadow: 0 0 20px rgba(102, 126, 234, 1);
    transform: scale(1.05);
}

/* 5. 文字对比 */
.jumbotron h1, .jumbotron p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* 故障排除文字黑色 */
.accordion-body,
.accordion-button {
    color: #000 !important;
}
.card-body, .card-header, .accordion-body, .accordion-button {
    color: #000 !important;
}