@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap");
body {
    /* Orbitron是一款未来感强的无衬线字体，常用于科技、游戏或科幻主题网站 */
    /*font-family: 'Orbitron', sans-serif;*/
    font-family: "Noto Sans SC", sans-serif;
    background-color: #1a1a1a;
    color: #f5f5f5;
}
.nav-glass {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #8b0000;
}
.btn-primary {
    background-color: #8b0000;
    color: #f5f5f5;
}
.btn-primary:hover {
    background-color: #ff4500;
}
.btn-secondary {
    background-color: #333333;
    color: #f5f5f5;
}
.btn-secondary:hover {
    background-color: #555555;
}
.screenshot {
    transition: all 0.3s ease;
}
.screenshot:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #ff4500;
}
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.mobile-menu.active {
    max-height: 500px;
}
.modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.active {
    opacity: 1;
    visibility: visible;
}
/* 调整验证码输入框和按钮的样式 */
.code-input {
    width: 60%; /* 宽度占用5分之3 */
    height: 2.5rem; /* 高度与手机号输入框一致 */
}
.code-btn {
    width: 38%; /* 宽度占5分之2 */
    height: 2.5rem; /* 高度与手机号输入框一致 */
    margin-left: 2%;
}
/* 用户中心按钮样式 */
.user-center-btn {
    background-color: #8b0000;
    color: #f5f5f5;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.user-center-btn:hover {
    background-color: #ff4500;
}
/* 提示框样式 */
#messageBox {
    position: fixed;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#messageBox.active {
    opacity: 1;
    visibility: visible;
    animation: fade-in 0.3s ease-out forwards;
}

#messageBox.fade-out {
    animation: fade-out 0.3s ease-in forwards;
}

#messageBox .icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

#messageBox.success .icon {
    color: #28a745;
}

#messageBox.error .icon {
    color: #dc3545;
}

#messageBox.warning .icon {
    color: #ffc107;
}
/* 添加媒体查询以进一步优化不同屏幕尺寸下的显示效果 */
@media (max-width: 768px) {
    #videoModal .bg-[#2d2d2d] {
        width: 98vw; /* 在小屏幕上几乎占满整个屏幕 */
        height: 95vh; /* 增加高度占比 */
        padding: 2vw; /* 使用视口单位调整内边距 */
    }
}
/* 确保模态框中的内容居中显示 */
.modal {
    display: none; /* 默认隐藏 */
}