/* 页面基础样式 */
*,::after,::before {
    box-sizing: border-box;
}

html, body {
    height: 100%; /* 确保页面占满全屏 */
    margin: 0;
    padding: 0;
    overflow: hidden; /* 全局禁止滚动 */
}

/* 关键：将body设置为flex容器，垂直排列子元素 */
body {
    display: flex;
    flex-direction: column; /* 子元素垂直排列 */
    background-color: #fff;
    color: #212529;
    text-align: left;
    font-weight: 400;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

/* 布局组件 */
.container {
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
    width: 100%;
}
@media (min-width: 1280px) {
    .container {
        max-width: 1024px;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    align-items: center;
    margin-top: 0 !important; /* 移除原有margin */
}

.col {
    position: relative;
    padding-right: 15px;
    padding-left: 15px;
    width: 100%;
    min-height: 1px;
    max-width: 100%;
    flex-basis: 0;
    flex-grow: 1;
}

/* 工具类 */
.float-right {
    float: right !important;
}
.text-center {
    text-align: center !important;
}

/* 链接与按钮 */
.underline-effect {
    position: relative;
    text-decoration: none;
}
.underline-effect:hover::after {
    width: 100%;
}
.underline-effect::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-image: linear-gradient(to right, #38383880, #86ffa2cc);
    transition: width 0.5s ease;
}
a:hover {
    color: #61c794;
}

.btn {
    vertical-align: middle;
    user-select: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}
.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    border-radius: 0.2rem;
}
.btn-filled {
    background-image: none;
    box-shadow: none;
}
.btn-primary {
    display: inline-block;
    color: #ffffffcc;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    line-height: 1;
}

/* 页面结构（核心调整） */
/* 顶部导航：从页面顶面开始（贴顶） */
.top-wrap {
    position: fixed; /* 固定定位 */
    top: 10px; /* 距离页面顶部0（从顶面开始算） */
    left: 0;
    right: 0;
    z-index: 99; /* 确保在最上层 */
    padding: 10px 0; /* 保留内部间距 */
    background: transparent; /* 透明背景，避免遮挡星空 */
    
}

/* 内容容器：在top-wrap和foot中间上下居中 */
.content-wrapper {
    flex: 1; /* 占据top和foot之外的所有空间 */
    display: flex; /* 内部使用flex布局 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    padding: 0 20px; /* 左右内边距 */
    margin-top: 60px; /* 避开top-wrap高度 */
    margin-bottom: 60px; /* 避开foot高度 */
}

/* 核心内容区：适配居中布局 */
.main-wrapper {
    width: 100%; /* 占满content-wrapper宽度 */
    text-align: center; /* 内容文本居中 */
    display: contents;
}

/* 底部信息：从页面底面开始（贴底） */
.foot {
    position: fixed; /* 固定定位 */
    bottom: 10px; /* 距离页面底部0（从底面开始算） */
    left: 0;
    right: 0;
    z-index: 99; /* 确保在最上层 */
    padding: 10px 0; /* 保留内部间距 */
    background: transparent; /* 透明背景，避免遮挡星空 */
}
.foot .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.Toxic-Chicken-Soup-of-MoZixi {
    padding: 0 20px;
    font-size: 1.2rem;
}
a.btn.btn-primary.btn-filled.btn-xs {
    text-decoration: none;
}

/* 移动端适配样式（屏幕宽度≤768px） */
@media (max-width: 768px) {
    .row {
        flex-direction: column; /* 纵向排列，logo在上，链接在下 */
        align-items: center; /* 整体内容居中对齐 */
        gap: 50px; /* 缩小间距 */
    }
    .float-right {
        float: none !important; /* 取消浮动 */
        display: flex; /* 链接横向排列 */
        gap: 10px; /* 链接之间的间距 */
        justify-content: center;
    }
    .col:first-child { /* logo列居中 */
        text-align: center;
    }
    img {
        max-width: 120px; /* 限制logo宽度 */
    }
    /* 隐藏移动端滚动条 */
    body::-webkit-scrollbar {
        display: none;
    }
}