ul,li,ol{
    list-style: none;
}
a{
    text-decoration: none;
}
html{
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    font-family:
            "Times New Roman", /* Windows/macOS 共有，最严谨的对齐 */
            Times,             /* 旧版 macOS 兼容 */
            "Constantia",      /* Windows 现代衬线，数字等高且优美 */
            "Songti SC",       /* macOS 衬线 */
            "SimSun",          /* Windows 衬线 */
            serif;
}

@media screen and (max-width: 1440px) {
    html{
        font-size: 15px;
    }
}

@media screen and (max-width: 1280px) {
    html{
        font-size: 14px;
    }
}

@media screen and (max-width: 1120px) {
    html{
        font-size: 13px;
    }
}
body{
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* 保证至少有一屏的高度 */
    width: 100%;
    background-color: #f0f4f8; /* 加上微弱的背景色能让简历边缘更清晰，如果不喜欢可以删掉 */
}

/* 核心容器 */
.main-container{
    width: 85%; /* 稍微放大一点比例，在笔记本电脑上观感更好 */
    max-width: 1600px;
    height: 90vh;
    min-height: 700px; /* 【核心修复】：增加最小高度，防止屏幕过扁时压坏内部布局 */
    border-radius: 1.875rem;
    display: flex;
    gap: 1.25rem;
    box-sizing: border-box;
}

/* 左侧容器 */
.left-container{
    border-radius: 1.875rem;
    width: 28%; /* 稍微拓宽左侧空间，留给文字更多换行余地 */
    min-width: 260px;
    height: 100%;
    background: rgb(233, 245, 250);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto; /* 【核心修复】：屏幕高度不足时，允许左侧滚动 */
    padding-bottom: 2rem; /* 防止滚动到底部贴边 */
    box-sizing: border-box;
}

/* 隐藏左侧容器的滚动条（保持视觉整洁） */
.left-container::-webkit-scrollbar {
    width: 0px;
    display: none;
}

/*头像*/
.left-avatar{
    flex-shrink: 0; /* 防止被挤压 */
    width: 6.25rem;
    height: 6.25rem;
    background: rgb(142, 200, 231);
    font-size: 3.125rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 1.875rem;
    margin-top: 1.875rem;
}
/*左上容器*/
.left-name{
    flex-shrink: 0;
    margin-top: 1.875rem;
    width: 75%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 0.3125rem;
    color: rgb(17, 49, 70);
    font-size: 2rem;
    font-weight: bold;
}
.left-name :nth-child(2){
    font-size: 1.25rem;
    font-weight: normal;
}
.left-name :nth-child(3){
    font-size: 1rem;
    font-weight: lighter;
}

/*左侧通用卡片样式提取*/
.left-card {
    flex-shrink: 0;
    margin-top: 1.5rem;
    width: 75%;
    height: auto; /* 【核心修复】：取消固定高度，改由内部内容自动撑开 */
    border-radius: 0.625rem;
    background: white;
    transition: all 500ms cubic-bezier(0.075, 0.82, 0.165, 1);
    box-shadow: #838181 0.125rem 0 0.125rem 0;
    padding: 1rem 0.9375rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem; /* 使用 gap 代替内部元素的 margin-top */
    color: rgb(17, 49, 70);
    font-size: 1rem;
    box-sizing: border-box;
}
.left-card:hover {
    border-radius: 1.25rem;
    box-shadow: #838181 0.125rem 0.125rem 0.125rem 0;
}

/*联系方式容器*/
.left-phone {
    gap: 0.8rem; /* 给联系方式稍微大一点的行距 */
}
.left-phone>div{
    display: flex;
    align-items: center;
    text-align: center;
}
.left-phone-link{
    font-size: 0.75rem;
    background: rgb(234, 245, 250);
    padding: 0.125rem 0.3125rem;
    border-radius: 0.3125rem;
    cursor: pointer;
    box-shadow: #838181 0.125rem 0 0.125rem 0;
    transition: all 500ms cubic-bezier(0.075, 0.82, 0.165, 1);
}
.left-phone-link:hover{
    box-shadow: #838181 0.125rem 0.125rem 0.125rem 0;
}

/*教育经历*/
.left-edu :nth-child(1){
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}
.left-edu :nth-child(2){
    font-size: 0.875rem;
    font-weight: normal;
}
.left-edu :nth-child(3){
    font-size: 1rem;
    font-weight: normal;
}
.left-edu .edu-year{
    font-size: 0.75rem;
    font-weight: lighter;
    margin-left: 0.3125rem;
}

/*工作经历*/
.left-work :nth-child(1){
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}
.left-work :nth-child(2){
    font-size: 1rem;
    font-weight: normal;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* 允许年份换行 */
}
.left-work :nth-child(3){
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    padding: 0.4rem;
    background: rgb(222, 240, 251);
    border-radius: 0.625rem;
    box-shadow: 2px 3px 15px rgba(0,0,0,0.08);
}
.left-work :nth-child(4){
    font-size: 0.85rem;
    font-weight: normal;
    line-height: 1.5; /* 增加行高，提升阅读体验 */
}
.left-work .work-year{
    font-size: 0.75rem;
    margin-left: 0.3125rem;
}

/*为了复用上面的 .left-card 代码，给原有的这三个元素组合加上左侧基础类*/
.left-phone, .left-edu, .left-work {
    @extend .left-card; /* 这里不使用预处理器，直接通过下面的多类选择器合并 */
}


/* --- 右侧容器 --- */
.right-container{
    background: rgb(247, 251, 254);
    border-radius: 1.875rem;
    flex: 1; /* 占据剩余全部宽度 */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.875rem;
    gap: 1.25rem;
    overflow-y: scroll;
    overflow-x: hidden;
    box-sizing: border-box;
}
.right--base-card{
    flex-shrink: 0;
    width: 97%;
    min-height: 6.25rem;
    background: white;
    border-radius: 1.875rem;
    border: rgb(219, 233, 242) 0.0625rem solid;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    box-sizing: border-box;
}
.right-title{
    font-size: 1.25rem;
    font-weight: bold;
    color: rgb(15, 48, 69);
    margin-bottom: 0.5rem;
}
.right-profile{
    color: rgb(17, 49, 70);
    display: flex;
    background: rgb(222, 240, 251);
    width: 100%;
    border-radius: 1.3rem;
    padding: 1.25rem;
    box-sizing: border-box;
}
.right-profile>div div{
    margin: 0.55rem 0;
    line-height: 1.6;
}

/* 技术栈卡片容器 */
.right-skill-cards{
    width: 100%;
    height: auto; /* 【核心修复】：取消死高度，避免挤压 */
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap; /* 允许卡片折行显示 */
    gap: 1rem; /* 使用 gap 代替 justify-content: space-between 的坑 */
    line-height: 1.6;
}
.skill-container{
    flex: 1 1 calc(33.333% - 1rem); /* 【核心修复】：确保每一行放3个，且自适应宽度 */
    min-width: 200px; /* 防止无限变窄 */
    min-height: 6rem;
    border: rgb(223, 237, 245) solid 0.08rem;
    background: rgb(248, 252, 255);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5rem;
    cursor: default;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}
.skill-container:hover{
    transform: translateY(-3px); /* 改成轻微上浮代替缩放，交互更自然且不遮挡 */
    border: rgb(202, 226, 243) solid 0.1rem;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.08);
}
.skill-container>.title{
    color: rgb(17, 49, 70);
    font-size: 1rem;
    font-weight: bold;
}
.skill-container>.content{
    color: rgb(71, 85, 104);
    font-size: 0.8rem;
    font-weight: normal;
}

/* 项目经历容器 */
.project-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1rem 0;
    background: rgb(248, 252, 255);
    border-radius: 1.25rem;
    border: rgb(219, 233, 242) 0.0625rem solid;
    color: rgb(17, 49, 70);
    padding: 1.25rem;
    box-sizing: border-box;
}
.project-container>.project-title{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.title-left {
    flex: 1; /* 让文本区域占据剩余空间 */
}
.project-name{
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}
.project-profile{
    font-size: 0.85rem;
    font-weight: normal;
    display: flex;
    line-height: 1.7;
    padding-right: 1rem;
    color: #44596b;
}
.project-container .title-right{
    min-height: 5.5rem;
    min-width: 5.5rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #999;
}
.title-right>img{
    width: 5.5rem;
    border-radius: 0.5rem;
}
.project-container>.project-content{
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.project-duty{
    color: rgb(4, 35, 55);
    font-size: 0.9rem;
    font-weight: normal;
    border: rgb(234, 245, 250) solid 0.1rem;
    padding: 0.5rem 0.8rem;
    border-radius: 0.5rem;
    cursor: default;
    transition: transform 0.2s ease-in-out;
    line-height: 1.6;
    background: white; /* 加上白底显得更有层次 */
}
.project-duty:hover{
    transform: translateX(3px); /* 改为向右轻微推移，避免放大引起的重叠 */
    box-shadow: 2px 3px 15px rgba(0,0,0,0.05);
}
.highlight{
    background:rgb(222, 240, 251);
    padding: 0.1rem 0.3rem;
    margin: 0 0.2rem;
    border-radius: 0.3rem;
    font-weight: bold; /* 高亮可以加上加粗 */
}

/* 兼容你原有的左侧多类组合样式（代替了上面的 @extend 功能） */
.left-phone, .left-edu, .left-work {
    flex-shrink: 0;
    margin-top: 1.5rem;
    width: 75%;
    height: auto;
    border-radius: 0.625rem;
    background: white;
    transition: all 500ms cubic-bezier(0.075, 0.82, 0.165, 1);
    box-shadow: #838181 0.125rem 0 0.125rem 0;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    color: rgb(17, 49, 70);
    font-size: 1rem;
    box-sizing: border-box;
}
.left-phone:hover, .left-edu:hover, .left-work:hover {
    border-radius: 1.25rem;
    box-shadow: #838181 0.125rem 0.125rem 0.125rem 0;
}
/* =========================================
   移动端适配 (视口宽度 <= 768px)
========================================= */
@media screen and (max-width: 768px) {
    /* 1. 基础重置：取消居中，让页面自然从上往下排布 */
    body {
        align-items: flex-start;
        background-color: #fff; /* 移动端建议纯白底色，更沉浸 */
    }

    /* 2. 核心容器：取消圆角和固定高度，改为上下排布 */
    .main-container {
        width: 100%;
        height: auto;
        min-height: auto;
        flex-direction: column;
        border-radius: 0;
        gap: 0;
    }

    /* 3. 左侧个人信息区：宽度 100%，取消内部滚动 */
    .left-container {
        width: 100%;
        border-radius: 0;
        padding: 2rem 1rem;
        overflow-y: visible; /* 让页面整体滚动，而不是局部滚动 */
    }

    /* 放大左侧卡片在移动端的宽度 */
    .left-name,
    .left-phone,
    .left-edu,
    .left-work {
        width: 95%;
        padding: 1rem;
    }

    /* 联系方式支持换行，防止屏幕过窄时溢出 */
    .left-phone > div {
        flex-wrap: wrap;
        text-align: left;
        justify-content: flex-start;
    }

    /* 4. 右侧详细信息区：紧接在左侧下方 */
    .right-container {
        width: 100%;
        border-radius: 0;
        padding: 1rem 0.5rem 2rem 0.5rem; /* 减小两侧留白 */
        overflow-y: visible;
    }

    /* 右侧卡片撑满屏幕 */
    .right--base-card {
        width: 100%;
        padding: 1.25rem 1rem;
        border-radius: 1rem;
    }

    /* 5. 技能列表：由一行三个改为单列显示 */
    .skill-container {
        flex: 1 1 100%;
    }

    /* 6. 项目经历标题区：文字与右侧二维码改为上下排列 */
    .project-container > .project-title {
        flex-direction: column;
        gap: 0.8rem;
    }

    /* 二维码占位符靠左对齐，适度缩小 */
    .project-container .title-right {
        align-self: flex-start;
        min-height: 4.5rem;
        min-width: 4.5rem;
    }

    /* 7. 细节微调：稍微缩小字号和内边距，适应小屏 */
    .project-duty {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    .project-name {
        font-size: 1.1rem;
    }
    .right-title {
        font-size: 1.15rem;
    }
}