#bk {
    z-index: -1;
    background-image: url('bk.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-color: blueviolet;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}
@font-face {
    font-family: "aaa";
    src: url("xVdcnyEXxRr8.woff") format("woff2"),
         url("xVdcnyEXxRr8.woff2") format("woff"); 
    font-weight: normal;
    font-style: normal;
}
*{
    font-family: "aaa", sans-serif;
}
#dark{
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.4);
}
body,html{
    margin:0px;
    padding: 0px;
}
#head{
    height: 400px;
    width: 100vw;
    display: flex;
    justify-content: center; 
    align-items: center;
    flex-wrap: wrap;
}
#nav {
    color:white;
    margin-top: 30px;
    margin-bottom: 30px;
    text-transform: uppercase;
    height: 40px;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;          
    background-color: rgba(0,0,0,0); 
    z-index: 1000; 
}
#nav ul {
    display: flex;
    list-style: none;
    width: 900px;   
    margin: auto;           
    padding: 0;         
    padding-top: 10px;
    padding-bottom: 10px;
    justify-content: center;
    align-items: center;
    border-top: 2px;
    border-bottom: 2px;
    border-left: 0px;
    border-right: 0px;
    border-style: solid;
    border-color: white; 
}
#nav li {
    margin-right: 10px;
}
ul li a {
    color: inherit;
}
#icon{
    width: 160px;
    height: 160px;
    background-color: white;
    border-radius: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#tpcnt{
    width: 250px;
    height: 160px;
    padding: 15px;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    gap:0px;
    background-color: rgba(0,0,0,0);
}
#name{
    margin-right: 20px;
    text-transform: uppercase;
    font-size: 30px;
    color: white;
    text-align: center;
}
#job{
    margin-right: 20px;
    font-size: 30px;
    text-align: center;
    color: rgb(106, 106, 106);
}
#pct{
    background-image: url('icon.jpg');
    background-position: center;
    background-size: cover;
    height: 80px;
    width: 150px;
    border-radius: 40px;
}
#cont{
    padding-top: 3vw;
    width: 100vw;
    height: 1000vh;
    background-color: white;
}
#cont p{
    width:70vw;
    margin: auto;
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 2vw;
    color: rgb(104, 104, 104);
}

#cont h1{
    margin:auto;
    width:70vw;
    padding-top: 15px;
    padding-bottom: 15px;
}
#cont h2{
    margin:auto;
    width:70vw;
    font-size: 2vw;
    font-weight: bold;
    color: rgb(104, 104, 104);
    padding-top: 15px;
    padding-bottom: 15px;
}
#cont ul{
    margin:auto;
    width:70vw;
    list-style: none;
    margin: auto;
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 2vw;
    color: rgb(104, 104, 104);
}
#cont ul li{
    text-decoration: none;
}
/* 父容器：桌面左右并列，允许换行 */
.work {
    width: 70vw;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;              /* 小屏时换行堆叠 */
    justify-content: space-between; /* 左右分散 */
    align-items: flex-start;
    gap: 2vw;
    padding-top: 15px;
    padding-bottom: 15px;
    box-sizing: border-box;
}

/* 子元素：统一为 flex 列布局，去掉 margin:auto（这是常见错误） */
.leftwork,.rightwork {
    display: flex;
    flex-direction: column;
    margin: 0;              /* ← 关键：不要用 margin:auto */
    box-sizing: border-box;
}

/* 使用 flex-basis / max-width 控制宽度（比 vw 更健壮） */
.leftwork {
    flex: 0 0 60%;          /* 桌面占比，调整为你想要的比例 */
    max-width: 60%;
}
.leftwork h2{
    max-width:100%;
    word-break: break-word;
}
.rightwork {
    flex: 0 0 35%;
    max-width: 35%;
}

/* 图片自适应父容器 */
.leftwork img,.rightwork img,.show img{
    width: 100%;
    height: auto;
    display: block;
}
.lwp{
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 2vw;
    color: rgb(104, 104, 104);
}
.rwp{
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 2vw;
    color: rgb(104, 104, 104);
}
.hr {
    width: 70vw;        /* 宽度与文本块一致 */
    margin: 0 auto;    /* 整个容器居中 */
    padding: 0px;
}
#showcase{
    width: 70vw;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;              /* 小屏时换行堆叠 */
    justify-content: space-between; /* 左右分散 */
    align-items: flex-start;
    gap: 2vw;
    padding-top: 15px;
    padding-bottom: 15px;
    box-sizing: border-box;
}
.show{
    flex: 0 0 48%;
    max-width: 48%;
}
.sp{
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 2vw;
    color: rgb(104, 104, 104);
    word-break: break-word;
}
.show p{
    width:20vw;
    margin: auto;
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 2vw;
    color: rgb(104, 104, 104);
}
.hr hr {
    width: 20%;        /* 横线的长度（自己调整） */
    height: 5px;
    margin: 20px 0;    /* 上下间距，左右不设，默认靠左 */
    padding: 0px;
    background-color: rgb(96, 81, 3);
}
#mnb{
    left: 20px;
    top: 20px;
    width: 60px;
    height: 60px;
    background-color: rgb(50, 123, 148);
    background-image: url("lst.png");
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px;
    position: fixed;
    box-shadow: 5px 5px 5px rgba(0,0,0,0.3);
}
#mnvbk{
    display: none;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    position: fixed;
    z-index: 1000; 
}
#mnv {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 50vh;
    background-color: white;
    margin: 0;
    color: inherit;
    font-size: 6vw;
    color: rgb(121, 121, 121);
    display: flex;
    justify-content: center;
    align-items: center;
}
#mnv ul{
    list-style: none;
}
#mnv ul li{
    margin-top: 4vw;
    border-bottom: 2px solid rgb(121, 121, 121);
    width: 60vw;
}
#mnv ul li a{
    text-decoration: none;
}
@media screen and (max-width:768px) {
    #nav{
        display: none;
    }
    #mnb{
        display:block;
    }
    #cont p,.lwp,.rwp,.sp{
        font-size: 4.5vw;
    }
    .name{
        font-size: 4.2vw;
    }
    #cont ul{
        font-size: 6vw;
    }
    #cont ul li{
        padding: 3vw;
        margin: auto;
    }
    #cont h2{
        font-size: 4.7vw;
    }
    #cont h1{
        font-size: 5.5vw;
    }
    .work {
        justify-content: center;
        gap: 4vw;
    }
    .leftwork,.rightwork,.show{
        flex: 0 0 100%;
        max-width: 100%;
        width: 70vw;   /* 你原来想要的宽度 */
        margin: 0 auto;
    }
    .leftwork img,.rightwork img,.show img{
        width: 100%;
    }
}
@media screen and (min-width:768px) {
    #nav{
        display:block;
    }
    #mnb{
        display: none;
    }
    #cont p,.lwp,.rwp,.sp{
        font-size: 1vw;
    }
    .name{
        font-size: 0.8vw;
    }
    #cont ul{
        font-size: 1.5vw;
    }
    #cont h2{
        font-size: 1.1vw;
    }
    #cont h1{
        font-size: 2vw;
    }
    .leftwork{
        width: 45vw;
    }
    .rightwork{
        width: 15vw;
    }
}
