/*
        * Globals
        */

/* Links */
a,
a:focus,
a:hover {
    color: #fff;
}

/* Custom default button */
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus {
    color: #333;
    text-shadow: none;
    /* Prevent inheritance from `body` */
    background-color: #fff;
    border: 0.05rem solid #fff;
}

/*
        * Base structure
        */

html,
body {
    height: 100%;
    background-image: url("/assets/dbj.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

body {
    display: -ms-flexbox;
    display: flex;
    color: #fff;
    font-weight: 700;
    text-shadow: 
        -0.0625rem -0.0625rem 0 #000,  
        0.0625rem -0.0625rem 0 #000,   
        0.0625rem 0.0625rem 0 #000,    
        -0.0625rem 0.0625rem 0 #000;  
}

.cover-container {
    max-width: 42em;
    position: relative; /* 新增 */
    z-index: 2; 
}

/*
        * Header
        */
.masthead {
    margin-bottom: 2rem;
}

.masthead-brand {
    margin-bottom: 0;
}

.nav-masthead .nav-link {
    padding: 0.25rem 0;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    background-color: transparent;
    border-bottom: 0.25rem solid transparent;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
    border-bottom-color: rgba(255, 255, 255, 0.25);
}

.nav-masthead .nav-link + .nav-link {
    margin-left: 1rem;
}

.nav-masthead .active {
    color: #fff;
    border-bottom-color: #fff;
}

@media (min-width: 48em) {
    .masthead-brand {
        float: left;
    }

    .nav-masthead {
        float: right;
    }
}

/*
        * Cover
        */
.cover {
    padding: 0 1.5rem;
}

.cover .btn-lg {
    padding: 0.75rem 1.25rem;
    font-weight: 700;
}

/*
        * Footer
        */
.mastfoot {
    color: rgba(255, 255, 255, 0.5);
}

footer {
    background-color: #0e0e0e;
}

.waf-card {
    /*box-shadow: inset 0 0 5rem rgba(0, 0, 0, 0.5);*/
    /*background-color: rgba(0, 0, 0, 0.2);*/
}

body {
    position: relative; /* 新增 */
    overflow: hidden;   /* 新增 */
}

/* 星空效果层（添加到原有body样式之后） */
.star-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* 允许点击穿透 */
    z-index: 1; /* 位于背景图之上，内容之下 */
}

/* 基础星点 */
.star {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: twinkle 1.5s infinite;
}

/* 不同大小的星点 */
.star.small {
    width: 1px;
    height: 1px;
}
.star.medium {
    width: 2px;
    height: 2px;
}
.star.large {
    width: 3px;
    height: 3px;
}

/* 闪烁动画 */
@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}