/* ===================== 智能控制中心 · 全站样式 ===================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    font-size: 14px;
    color: #dfe6ff;
    background-color: #060912;
    background-image: url('/assets/img/scifi-bg.svg'), linear-gradient(180deg, #050810 0%, #0a0e1a 55%, #060912 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: bottom center, center center;
    background-size: 100% auto, cover;
    background-attachment: scroll, scroll;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
h1, h2, h3, p, ul, li { margin: 0; padding: 0; }
ul { list-style: none; }

/* 静态网格底纹（无动画） */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(0deg, transparent 99.5%, rgba(0,212,255,0.05) 100%),
        linear-gradient(90deg, transparent 99.5%, rgba(0,212,255,0.05) 100%);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* ===================== 主窗口（主页与二级页共用） ===================== */
.window {
    position: relative;
    z-index: 1;
    width: 1200px;
    max-width: 95%;
    margin: 30px auto 40px;
    padding: 30px;
    background: rgba(0, 14, 30, 0.92);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 4px;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.10);
}
.corner {
    position: absolute;
    width: 16px; height: 16px;
    border: 2px solid #00d4ff;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.7);
    z-index: 10;
}
.corner.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.corner.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.corner.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.corner.br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(0, 212, 255, 0.2);
}
.title-wrap { flex: 1; text-align: center; }
.main-title {
    font-size: 2.1rem;
    font-weight: 100;
    letter-spacing: 14px;
    text-indent: 14px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    margin-bottom: 8px;
}
.main-sub { font-size: 0.78rem; letter-spacing: 5px; color: rgba(0, 212, 255, 0.6); }
.user-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 150px;
    white-space: nowrap;
    font-size: 0.9rem;
    color: rgba(127, 223, 255, 0.85);
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #00d4ff;
    border-radius: 3px;
    background: rgba(0, 212, 255, 0.05);
    color: #00d4ff;
    font-size: 0.9rem;
    font-family: inherit;
    letter-spacing: 1px;
    cursor: pointer;
}
.btn:hover { background: rgba(0, 212, 255, 0.15); box-shadow: 0 0 15px rgba(0, 212, 255, 0.3); }
.btn.logout { border-color: #ff4757; color: #ff4757; background: rgba(255, 71, 87, 0.05); }
.btn.logout:hover { background: rgba(255, 71, 87, 0.15); box-shadow: 0 0 15px rgba(255, 71, 87, 0.3); }
.btn-sm { padding: 4px 12px; font-size: 0.8rem; letter-spacing: 0; }

/* 欢迎条 */
.welcome-bar {
    margin-top: 20px;
    text-align: right;
    font-size: 0.88rem;
    letter-spacing: 1px;
    color: rgba(127, 223, 255, 0.75);
}

/* 主页菜单 */
.menu-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin: 30px 0; }
.menu-card {
    display: block;
    padding: 35px 15px;
    text-align: center;
    color: #ffffff;
    background: rgba(0, 212, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
}
.menu-card:hover { background: rgba(0, 212, 255, 0.10); border-color: #00d4ff; box-shadow: 0 0 30px rgba(0, 212, 255, 0.2); }
.menu-icon { display: block; font-size: 2.4rem; color: #00d4ff; margin-bottom: 12px; }
.menu-title { font-size: 1.05rem; font-weight: normal; letter-spacing: 2px; margin-bottom: 8px; }
.menu-desc { font-size: 0.72rem; line-height: 1.5; letter-spacing: 1px; color: rgba(127, 223, 255, 0.6); }

/* 底部状态栏 */
.sys-bar {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed rgba(0, 212, 255, 0.2);
    font-size: 0.82rem;
    letter-spacing: 1px;
    color: rgba(127, 223, 255, 0.7);
}

/* ===================== 登录页 ===================== */
.login-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-box {
    position: relative;
    width: 420px;
    max-width: 100%;
    padding: 45px 40px;
    background: rgba(0, 14, 30, 0.92);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.15);
}
.login-title {
    font-size: 1.75rem;
    font-weight: 100;
    letter-spacing: 8px;
    text-indent: 8px;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    margin-bottom: 10px;
}
.login-sub {
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 4px;
    color: rgba(0, 212, 255, 0.6);
    margin-bottom: 32px;
}
.login-error {
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #ff4757;
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.45);
    border-radius: 3px;
}
.form-item { margin-bottom: 20px; }
.form-item label { display: block; margin-bottom: 8px; font-size: 0.85rem; letter-spacing: 2px; color: rgba(127, 223, 255, 0.8); }
.form-item input {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #dfe6ff;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 3px;
    outline: none;
}
.form-item input:focus { border-color: #00d4ff; box-shadow: 0 0 15px rgba(0, 212, 255, 0.3); }
.form-item input::placeholder { color: rgba(127, 223, 255, 0.35); }
.login-btn { width: 100%; margin-top: 10px; padding: 12px; font-size: 1rem; letter-spacing: 6px; text-indent: 6px; }
