/* ============================================
   Usersafe · 全局通用样式
   ============================================ */

/* ---------- 全局重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8fafc;
    color: #0b1a2f;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    /* 强制滚动条始终显示，避免页面晃动 */
    overflow-y: scroll;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- 主布局 ---------- */
#main {
    display: flex;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 100vh;
    background: #ffffff;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.02);
}

/* ---------- 侧边栏 ---------- */
#menu {
    width: 260px;
    min-width: 260px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-right: 1px solid rgba(0, 0, 0, 0.03);
    padding: 32px 20px 28px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    /* 防止侧边栏自身滚动 */
    overflow-y: hidden;
}

#logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding-left: 4px;
}

#logo_ico {
    width: 64px;
    height: 64px;
    background-image: url(../image/logo.svg);
    background-repeat: no-repeat;
    background-size: 64px 64px;
    display: flex;
    
}

#logo_text h1 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.2;
    color: #0b1a2f;
}

#logo_text h1 small {
    display: block;
    font-weight: 400;
    font-size: 12px;
    color: #5e6f8d;
    letter-spacing: 0.2px;
    margin-top: 2px;
}

#menu_list {
    flex: 1;
    margin-top: 8px;
}

#menu_list ul li {
    padding: 10px 16px;
    margin-bottom: 4px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 15px;
    color: #1f2a44;
    transition: all 0.15s ease;
    cursor: default;
}

#menu_list ul li a {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    height: 100%;
    color: #1f2a44;
}

#menu_list ul li i {
    width: 22px;
    font-size: 18px;
    color: #5e6f8d;
    transition: color 0.15s;
}

#menu_list ul li:hover {
    background: #f1f4f9;
}

#menu_list ul li.active {
    background: #5663AC;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(11, 26, 47, 0.12);
}

#menu_list ul li.active a {
    color: #ffffff;
}

#menu_list ul li.active i {
    color: #ffffff;
}

/* ---------- 左侧广告 ---------- */
#menu_ads {
    margin-top: 10px;
    padding-top: 20px;
	width:200px;
	height:168px;
}

#menu_ads img {
    border-radius: 10px;
    filter: brightness(1.1);
}

/* ---------- 底部信息 ---------- */
#footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 11px;
    color: #8596b0;
    line-height: 1.8;
    letter-spacing: 0.2px;
    text-align: left;
}

#footer span {
    display: inline-block;
    margin-right: 6px;
}

/* ---------- 内容区 ---------- */
#content {
    flex: 1;
    padding: 32px 40px 60px;
    background: #ffffff;
    /* 内容区域独立滚动，不影响侧边栏 */
    overflow-y: auto;
    min-height: 100vh;
}

/* ---------- 面包屑导航 ---------- */
.breadcrumb {
    font-size: 14px;
    color: #5e6f8d;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: #0b1a2f;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    #menu {
        width: 220px;
        min-width: 220px;
        padding: 24px 14px;
    }
    #content {
        padding: 24px 20px;
    }
}

@media (max-width: 768px) {
    /* 移动端取消强制滚动条，恢复默认行为 */
    body {
        overflow-y: auto;
    }

    #main {
        flex-direction: column;
    }

    #menu {
        width: 100%;
        min-width: auto;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #edf2f7;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 16px 20px;
        backdrop-filter: none;
        background: #fff;
        overflow-y: visible;
    }

    #logo {
        margin-bottom: 0;
        flex: 1;
    }

    #menu_list ul {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    #menu_list ul li {
        padding: 6px 14px;
        font-size: 14px;
    }

    #footer {
        display: none;
    }

    #content {
        padding: 20px 16px;
        min-height: auto;
        overflow-y: visible;
    }
}