@font-face {
    font-family: 'zi_ti';
    src: url('../fonts/DotGothic16-Regular.ttf');
    font-display: swap;
}
body {
    font-family: 'zi_ti', sans-serif;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 9999;
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
}
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh; 
    width: 100%;
}
body {
    background: linear-gradient(180deg, #1b2146 0%, #000000 100%) fixed;
    color: #8d31c2;
    padding: 40px;
    box-sizing: border-box;
    text-shadow: 0 0 5px #280030, 0 0 10px #8d31c2;
}
h1 {
    font-size: 3rem;
    color: #2a92b8;
    text-align: center;
    text-shadow: 0 0 5px #7e23bb, 0 0 10px #881da9, 0 0 20px #382493, 0 0 30px #150678;
    animation: flicker 3s infinite;
}
@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.7; }
}
/* --- 学习进度按钮美化 --- */
/* 已完成状态 */
.wancheng {
    background-color: #2d5a27;
    color: #e0e0e0;
    padding: 6px 12px;
    border: 2px solid #4a9540;
    display: inline-block;
    margin: 5px;
    position: relative;
    background-image: linear-gradient(
        45deg, 
        rgba(255, 255, 255, 0.05) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.05) 75%, 
        transparent 75%, 
        transparent
    );
    background-size: 8px 8px;
}
/* 未完成状态 */
.weiwancheng {
    background-color: #333333;
    color: #777777;
    padding: 6px 12px;
    border: 2px solid #555555;
    display: inline-block;
    margin: 5px;
}
/* 悬停效果 */
.wancheng:hover, .weiwancheng:hover {
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0px #000;
    cursor: pointer;
}
/* --- 终端美化 --- */
/* 终端外侧 */
.game-card {
    background-color: #222;
    border: 4px solid #fa00ed5e;
    padding: 20px;
    position: relative;
    color: #fff;
    border-radius: 0; 
    margin-bottom: 20px;
    outline: 4px solid #0c29ce;
}
/* 登录终端小箭头 */
.game-card::after {
    content: "▶";
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #4a9540;
    animation: blink 1s infinite;
}
    @keyframes blink {
    50% { opacity: 0; }
}
/* 登录终端美化 */
.login-terminal {
    display: flex;
    flex-direction: column;
    gap: 15px; 
    max-width: 300px; 
}
.input-group {
    display: flex;
    align-items: center;
}
.input-group label {
    width: 60px;
    font-size: 14px;
    color: #4a9540;
}
.input-group input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #4a9540;
    color: #fff;
    padding: 5px 10px;
    outline: none;
}
.input-group input:focus {
    box-shadow: 0 0 10px #4a9540;
}
/* 登录按钮美化 */
.login-btn {
    background-color: #2d5a27;
    color: #fff;
    border: 2px solid #4a9540;
    padding: 10px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
}
.login-btn:hover {
    background-color: #4a9540;
    color: #000;
    box-shadow: 0 0 15px #4a9540;
}
/* --- APlayer美化 --- */
/*播放器主体*/
.aplayer.aplayer-fixed .aplayer-body {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.5) !important;
    box-shadow: 0 0 15px rgba(65, 0, 228, 0.5) !important;
}
/*文字颜色*/
.aplayer .aplayer-info .aplayer-music .aplayer-title {
    color: #ffffff !important;
    text-shadow: 0 0 5px rgba(0, 55, 255, 0.3);
}
.aplayer .aplayer-info .aplayer-music .aplayer-author {
    color: #000000 !important;
}
/*播放列表*/
.aplayer .aplayer-list {
    background: rgba(10, 10, 15, 0.9) !important;
    border: 1px solid #2d043d !important;
}
.aplayer .aplayer-list ol li {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e74fad !important;
}
/*控制图标*/
.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon path {
    fill: #ff00a6 !important;
}
/*进度条*/
.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played {
    background: #e138f4 !important;
}
/*播放列表的悬停*/
.aplayer .aplayer-list ol li:hover {
    background: rgba(74, 149, 64, 0.2) !important;
    color: #4a9540 !important;
}
/*正在播放的曲目*/
.aplayer .aplayer-list ol li.aplayer-list-light {
    background: rgba(74, 149, 64, 0.3) !important; 
}
/* 邮箱链接 */
/* 1. 基础链接样式 */
.email-link {
    color: #4a9540;
    text-decoration: none;
    font-family: 'MyPixelFont', sans-serif;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #4a9540;
}
/* 2. 准备隐藏的邮箱地址 */
.email-link::after {
    content: " [2900502480@qq.com]"; 
    opacity: 0;
    margin-left: 10px;
    color: #fff;
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: inline-block;
    transform: translateX(-10px);
    pointer-events: none;
}
/* 3. 悬停时的动作 */
.email-link:hover {
    color: #fff;
    text-shadow: 0 0 10px #4a9540;
}
.email-link:hover::after {
    opacity: 1;
    transform: translateX(0);
    text-shadow: 0 0 8px #4a9540;
}
/* 4. 前面的 >> 符号加闪烁 */
.terminal-prefix {
    color: #4a9540;
    animation: blink 1s infinite;
}
/* 菜单 */
.center-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.center-overlay.active {
    opacity: 1;
    visibility: visible;
}
.center-window {
    background-image: url('../icon/ct.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 4px solid #702e6b;
    outline: 4px solid #6e3c85;
    width: 70vw;
    height: 60vh;
    position: relative;
    display: flex;
    flex-direction: column;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.center-overlay.active .center-window {
    transform: scale(1) translateY(0);
}
.window-header {
    background: #160546;
    color: #1100ff;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-family: monospace;
}
.window-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nav-links {
    list-style: none;
    padding: 0;
}
.nav-links li { margin: 25px 0; }

.nav-links a {
    color: #8d31c2; /* 你的暗紫色 */
    text-decoration: none;
    font-size: 1.8rem;
    transition: 0.3s;
    text-shadow: 0 0 5px #8d31c2;
}
.nav-links a:hover {
    color: #4a9540;
    text-shadow: 0 0 15px #4a9540;
    padding-left: 15px;
}
.window-footer {
    padding: 10px;
    color: #444;
    font-size: 0.8rem;
    border-top: 1px dashed #333;
}
/* 倒计时 */
.mission-timer {
    /* ========================================= */
    /* 🛠️ 位置调整区 (只需修改这里) */
    /* ========================================= */
    position: fixed;      /* fixed 是固定在屏幕，absolute 是固定在父容器 */
    bottom: 30px;         /* 距离底部距离 (设为 auto 则失效) */
    right: 30px;          /* 距离右侧距离 (设为 auto 则失效) */
    top: auto;            /* 距离顶部距离 */
    left: auto;           /* 距离左侧距离 */
    z-index: 10000;       /* 确保在所有东西最上面 */
    /* ========================================= */

    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #4a9540;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    min-width: 220px;
    box-shadow: 0 0 15px rgba(74, 149, 64, 0.3);
    backdrop-filter: blur(5px);
}

.timer-header {
    color: #4a9540;
    font-size: 11px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(74, 149, 64, 0.3);
    padding-bottom: 5px;
}

/* 模拟系统运行的小绿点闪烁 */
.status-dot {
    width: 6px;
    height: 6px;
    background: #4a9540;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.timer-body {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    color: #fff;
}

.time-unit span {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px #4a9540;
}

.time-unit small {
    color: #4a9540;
    font-size: 10px;
    margin-left: 2px;
}

.progress-container {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 12px;
}

#progress-bar {
    height: 100%;
    background: #4a9540;
    width: 0%;
    box-shadow: 0 0 8px #4a9540;
    transition: width 1s linear;
}