* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    color: #eaffff;
    overflow: hidden;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    background: #050b14;
}

/* ===== Header ===== */
header {
    height: 70px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 40px;
    height: 40px;
}

.site-name {
    font-size: 20px;
    font-weight: bold;
    color: #00ffff;
}

.login-btn {
    padding: 8px 22px;
    border-radius: 20px;
    border: 1px solid #00ffff;
    background: transparent;
    color: #00ffff;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn:hover {
    background: #00ffff;
    color: #000;
}

/* ===== Main Body ===== */
.main-body {
    height: calc(100vh - 70px - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.main-body h1 {
    font-size: 56px;
    color: #9dff4f;
    margin-bottom: 20px;
}


.main-body p {
    margin-top: 10px;
    color: #6ffcff;
    font-size: 18px;
}

/* ===== 功能按钮区 ===== */
.func-panel {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 200px);
    gap: 24px;
}

.func-btn {
    height: 90px;
    border-radius: 16px;
    border: 1px solid rgba(0,255,255,.6);
    background: rgba(0,30,40,.45);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .3s;
    box-shadow: 0 0 15px rgba(0,255,255,.15);
}

.func-btn span {
    font-size: 26px;
}

.func-btn p {
    margin-top: 6px;
    font-size: 14px;
}

.func-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 30px rgba(0,255,255,.6);
}

/* ===== Footer ===== */
footer {
    display: flex;
    height: 120px;
    padding: 20px;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1.8;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

footer a {
    color: #6ffcff;
    text-decoration: none;
    margin: 0 8px;
}

footer div img {
    width: 14px;
    height: 14px;
}

/* ===== Login Modal ===== */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal {
    width: 360px;
    padding: 30px;
    background: rgba(10, 20, 40, 0.95);
    border-radius: 10px;
    border: 1px solid #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}

.modal h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #00ffff;
}

.modal input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: #020b1a;
    border: 1px solid #00ffff;
    color: #eaffff;
    border-radius: 5px;
}

.modal button {
    width: 100%;
    padding: 10px;
    background: #00ffff;
    border: none;
    color: #000;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}


/* 禁用状态样式 */
.modal button:disabled {
    background-color: #c0c4cc; /* 禁用灰色 */
    color: #fff;
    cursor: not-allowed; /* 鼠标变成禁止图标 */
    opacity: 0.7; /* 透明度降低 */
    /* 禁用点击事件（HTML 的 disabled 属性已实现，CSS 只是视觉强化） */
    /* pointer-events: none;可选，防止触发 hover */
}
