/**
 * Lsky Pro - SM.MS Style Theme
 * 完整整合版：包含对齐修正、颜色修复及置底逻辑
 */

/* 1. 基础环境设置 */
html, body {
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f6f8fa !important;
}

/* 2. 顶部导航栏布局 */
.smms-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-bottom: 1px solid #d0d7de;
    z-index: 100;
    display: flex;
    justify-content: center;
}

.nav-content {
    /* 严格对齐下方的 smms-card 宽度 */
    width: 90%;
    max-width: 1000px;
    padding: 0; /* 移除 padding 确保边缘绝对对齐 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-side {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-center {
    flex: 1;
    text-align: center;
}

.nav-links {
    justify-content: flex-end;
    /* 抵消右侧组件可能自带的微量内边距 */
    margin-right: -10px; 
}

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    color: #24292f;
    text-decoration: none;
    white-space: nowrap;
}

/* 3. 页面主体包裹层 (Flex置底逻辑) */
.smms-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;      /* 确保撑满全屏 */
    padding-top: 100px;     /* 为固定导航留出空间 */
    align-items: center;
    box-sizing: border-box;
}

.smms-card {
    width: 90%;
    max-width: 1000px;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    box-sizing: border-box;
}

/* 4. 页脚样式 (置底逻辑) */
.smms-footer {
    margin-top: auto;       /* 核心：将页脚推至底部 */
    padding: 20px 0 10px 0;
    text-align: center;
    width: 100%;
}

.footer-desc {
    font-size: 15px;
    color: #57606a;
    margin-bottom: 12px;
}

.footer-copy {
    font-size: 12px;
    color: #8c959f;
}

.footer-copy a {
    color: #8c959f;
    text-decoration: none;
}

/* 5. 导航栏组件颜色深度修复 (通知+头像) */

/* 彻底清除所有按钮背景及其交互产生的深色块 */
.nav-side button,
.nav-links [class*="bg-gray-"], 
#user-menu-button { 
    background-color: transparent !important; 
    background-image: none !important;
    color: #24292f !important;
    box-shadow: none !important;
    border: none !important;
    --tw-bg-opacity: 0 !important;
    --tw-ring-offset-width: 0px !important;
    transition: none !important;
}

/* 针对通知图标和下拉箭头 */
.nav-side svg {
    color: #57606a !important;
    fill: currentColor;
}

/* 针对用户信息文字 */
.nav-links .text-gray-300,
.nav-links .text-white,
#user-menu-button span {
    color: #24292f !important;
}

/* 鼠标悬停统一反馈 */
.nav-side button:hover,
#user-menu-button:hover,
.nav-links a:hover {
    background-color: #f3f4f6 !important;
    color: #0969da !important;
    border-radius: 6px;
}

/* 针对用户头像图片微调 */
#user-menu-button img {
    border: 1px solid #d0d7de;
}

/* 6. 下拉菜单容器美化 (白底深色字) */
.nav-links .origin-top-right {
    background-color: #ffffff !important;
    border: 1px solid #d0d7de !important;
    box-shadow: 0 8px 24px rgba(140,149,159,0.2) !important;
}

.nav-links .origin-top-right a, 
.nav-links .origin-top-right button {
    color: #24292f !important;
}

/* 7. 兼容移动端微调 */
@media (max-width: 768px) {
    .smms-wrapper {
        padding-top: 80px;
    }
    .nav-content, .smms-card {
        width: 95%;
    }
    .nav-side:first-child { 
        display: none; /* 移动端隐藏左侧通知以腾出空间给标题 */
    }
    .smms-card {
        padding: 20px;
    }
}