* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "MiSans", "Lantinghei SC", "Noto Sans SC", "Microsoft YaHei", "HanHei SC", "Helvetica Neue", "Open Sans", "Hiragino Sans GB", 微软雅黑, STHeiti, "WenQuanYi Micro Hei", Arial, SimSun, sans-serif;
    font-weight: 400;
    line-height: 1;
    background-color: var(--background-color);
    color: #505050;
    font-size: 1rem;
    padding-left: 100px;
    padding-right: 100px;
}


/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;

    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    /* background-color: white; */
    padding: 20px 120px;
    color: #505050;
    font-size: 1.2rem;
    border-bottom: 1px solid #f0f0f0;
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
}

.avatar{
    display: inline-block;
    position: relative;
    line-height: 1;
    height: 50px;
    border-radius: 50%;
}
.avatar__img{
    width: 50px;
    height: 50px;
    display: block;
    border-radius: 50%;
}

/* 网站Logo样式 */
.logo {
    font-size: 24px;
    font-weight: bold;
}

/* 左侧头像和名字 */
.navbar-left {
    display: flex;
    align-items: center;
}
.name {
    margin-left: 10px;
    line-height: 1; /* 确保文字垂直居中 */
}


/* 右侧按钮 */
.navbar-right {
    display: flex;
    align-items: center;
}

.nav-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-left: 14px;
    border:1.5px solid #e7e7e9;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none; /* 去掉链接下划线 */
    color: inherit; /* 继承父元素颜色 */
}

.nav-button:hover {
    border:1.5px solid #dbdbdc;
}

.nav-button-2 {
    width: 160px;
    height: 50px;
    border-radius: 25px;
    margin-left: 14px;
    background-color: #0d0c22;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none; /* 去掉链接下划线 */
    color: inherit; /* 继承父元素颜色 */
}

.nav-button-2 p{
    color:#f0f0f0;
    font-size: 16px;
    font-weight: 700;
}

.nav-button-2:hover {
    background-color:#565563 ;
}

.nav-button i {
    font-size: 18px;
    color: #333333;
}

.container {
    padding-top: 140px;
    max-width: 1400px;
    margin: 0 auto;
}

.container img{
    width: 100%;
}



footer {
    background-color: var(--footer-background);
    text-align: center;
    padding: 20px 0;
    font-weight: 300;
    border-top: 1px solid #ddd;
    margin-top: 60px;
    font-size: 1.15rem;
    color: #707070;
}

footer a {
    color: var(--link-color);
    text-decoration: none;
}

footer a:hover {
    color: var(--link-hover-color);
}

footer p {
    margin-bottom: 7px;
}

@media (max-width: 1080px) {
    .container {
        width: 90%;
        padding: 10px;
    }

    header {
        padding: 10px 0;
        margin-bottom: 25px;
    }

    .profile-info p {
        font-size: 0.85rem;
    }

    .profile-info h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .carousel-container {
        width: 30%;
        height: auto;
        margin-top: 15px;
        position: relative;
    }

    .carousel-image {
        height: auto;
    }

    .prev,
    .next {
        top: 50%;
        transform: translateY(-50%);
    }

    main h2 {
        font-size: 1.2rem;
    }

    .details,
    .courses,
    .details-with-logo {
        margin-left: 20px;
    }

    .details h3,
    .details-with-logo h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .details p,
    .details-with-logo p {
        font-size: 0.9rem;
    }

    .details-with-logo p {
        margin-left: 0px;
    }

    .logo {
        margin-top: 0px;
    }

    .education-item,
    .experience-item,
    .project-item,
    .activity-item {
        flex-direction: column;
        gap: 10px;
    }

    body {
        font-size: 12px;
        line-height: 1.6;
    }
}
