@charset "UTF-8";

/* 公共部分 */
body {
    background: #e5e5e5 url(../../assets/images/background.png);
    width: 100%;
    overflow-x: hidden;
    padding: 1rem 0;
    padding-bottom: 0;
    box-sizing: border-box;
    font-size: .9em;
    margin: 0 auto; /* 确保body居中 */
}

.fa { margin-right: .3em; }

.info-unit {
    margin-bottom: 1rem;
}

.info-unit h2 {
    font-weight: 700;
    font-size: 1.2em;
}

.info-unit h3 {
    font-weight: 300;
    font-size: 1.1em;
}

/* 头部部分 */
.header { display: none; }

.site-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-align: center;
    font-size: 2.5em;
    color: #333;
}

/* 主体部分 */
.container .main {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 20px #bbb;
    padding: 2rem;
    position:relative;
    width: 100%; /* 确保占满容器 */
    max-width: 768px; /* 限制最大宽度，与你的设计匹配 */
    margin: 0 auto; /* 居中 */
}

.main .info-unit ul {
    padding: 0 0.8rem 0 1.2rem;
}

.main .info-unit ul li {
    margin-bottom: 1rem;
    list-style: disc;
}

.main .info-unit ul li h3 .link {
    font-size: .5rem;
    border: 1px solid #4db6ac;
    padding: 1px 3px;
    border-radius: 5px;
    margin-left: .5rem;
}

.main .info-unit ul li h3 time {
    float: right;
    text-align: right;
}

.main .info-unit ul li .info-content li {
    list-style: circle;
    margin: 0;
}

.info-unit h2 i {
    font-size: 1.25em;
    margin-right: 0.5em;
    vertical-align: middle;
}

.contact-content p {
    margin: 10px 0;
    font-size: 16px;
}

#zsxq {
    margin-top: 15px;
}

#zsxq img {
    max-width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

#zsxq img:hover {
    transform: scale(1.1);
}
/* 两列布局 */
.two-column {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    gap: 0.25rem; /* 控制列间距 */
}

.two-column li {
    flex: 1 1 calc(50% - 0.25rem); /* 每列占50%宽度，减去间距 */
    margin-bottom: 1rem;
    list-style: none; /* 移除默认列表样式 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .two-column li {
        flex: 1 1 100%; /* 小屏幕时恢复单列 */
    }
}

/* 调整红丝带样式 */
.ribbon {
    position: fixed; /* 使用固定定位，相对于视口 */
    top: 20px; /* 距离顶部20px */
    right: -40px; /* 初始向右偏移，调整角度后会贴合右上角 */
    background: #e63946;
    color: #fff;
    padding: 0.5rem 2rem;
    transform: rotate(45deg); /* 45度倾斜 */
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    width: 120px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* 确保在最上层 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    body {
        padding: 1rem 0; /* 仅上下 padding，确保左右无偏移 */
        margin: 0;
    }
    .container .main {
        width: 100%;
        max-width: 390px;
        margin: 1.5rem auto;
        padding: 1rem;
        box-sizing: border-box;
    }
    .ribbon {
        width: 70px;
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
        right: -20px;
        top: 10px;
    }
}

/* 文档底部 */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 30px 0;
}

.footer p {
    line-height: 2rem;
    text-align: center;
    font-size: 0.8rem;

}

.footer .social-links a {
    margin: 0 10px;
    color: #666;
    transition: color 0.3s;
}

.footer .social-links a:hover { color: #000; }

.social-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
}
/* 移动端适配 */
@media (max-width: 768px) {
    .footer {
        margin-top: 30px;
    }
    .footer::before {
        height: 2px;
    }
    .social-links {
        gap: 8px;
        flex-wrap: wrap;
    }
}
/* 自定义部分 */
hr { margin-bottom: .4em; }

aside {
    position: fixed;
    right: 0;
    top: 30%;
    z-index: 2;
}

aside ul li {
    margin-bottom: 10px;
    border-radius: 19px 0 0 10px;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.2), 0 1px 5px 0 rgba(0,0,0,0.12);
    background: #1abc9c;
}

aside ul li a {
    display: inline-block;
    width: 80px;
    height: 38px;
    line-height: 38px;
    padding-left: 10px;
    color: #fff;
}

progress {
    background-color: #f6f6f6;
    height: 1em;
}

progress::-webkit-progress-bar { background-color: #e0eaf0; }
progress::-webkit-progress-value { background-color: #1abc9c; }
progress::-moz-progress-bar { background-color: #e0eaf0; }
progress::-moz-progress-value { background-color: #708d9b; }

.progress-list { line-height: 2; }
mark { background: rgba(232,232,232,0.8); }

/* 响应式设计 */
@media (max-width: 1169px) {
    .container .info-unit h3 span { display: block; }
    .container .info-unit h3 span.link { display: inline; }
    .container .project h3 span { display: inline; }
    .container .project h3 time { display: block; }
    .main .info-unit ul li h3 time {
        float: none;
        text-align: left;
    }
}

@media (max-width: 1034px) {
    body { padding: 1rem 3%; }
}

@media (max-width: 768px) {
    .info-unit h2 { font-size: 1.5em; }
    #zsxq img { max-width: 120px; }
    .footer { margin-top: 30px; }
    .footer::before { height: 2px; }
    .social-links {
        gap: 15px;
        flex-wrap: wrap;
    }
}

@media (max-width: 414px) {
    .container .main {
        width: 95%;
        margin: 1.5rem auto 0;
    }
    #nav-m {
        display: none;
        position: fixed;
        width: 28px;
        height: 28px;
        right: 10px;
        bottom: 20px;
        box-shadow: 0 5px 20px #bbb;
        border-radius: 50%;
    }
    #nav-m svg {
        width: 28px;
        height: 28px;
    }
    aside { display: none; }
}

.aboutme { width: 100%; }
.aboutleft { float: left; width: 12%; height: 120px; }
.aboutright { float: right; width: 88%; }