@import "./styles.css";


:root{
    --h-title-color:#3948d2;
}

.header {
    border-bottom: solid 2px var(--bs-blue);
    z-index: 10000;
}

.bg-bottom {
    background-color: var(--h-title-color);
}

.top-section {
    position: relative;
    padding: 10rem 0;
    background-position: center;
    background-size: cover;
    height: 25rem;
}

.top-section h2 {
    font-weight: 400;
}

.top-section .top-section-content {
    position: relative;
    z-index: 1;
}

section header h2{
    font-family: "Kanit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    color: var(--h-title-color);
    font-size: 2.3rem;
    line-height: 4rem;
}

section .main-body{
    font-size: 1.3rem;
    font-weight: 200;
    line-height: 2.4rem;
}


.bg-gradient-primary-to-secondary-light {
    background: linear-gradient(45deg, #fcfcfc, #ffffff) !important;
}

.bg-gradient-primary-to-secondary-gray {
    background: linear-gradient(45deg, #f0f0f0, #f1f1f1) !important;
}



.on-top {
    position: relative;
    z-index: 10000;
}

.top-bg {
    background-position: center;
    background-size: fill;
    width: 100%;
    height: 100%;
}

.top-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* --- 头像容器 (复刻图二：靠右跨坐版) --- */
#avatar {
    /* 1. 不再全屏居中，而是回归文档流 */
    display: block !important;
    
    /* 2. 让容器宽度跟随内容 */
    width: auto !important;
    
    /* 3. 关键：向右浮动 */
    float: right !important;
    
    /* 4. 位置微调：上拉跨坐 */
    margin-top: -100px !important; 
    
    /* 5. 加上右边距，防止贴边太紧 (根据需要调整) */
    margin-right: 50px !important; 
    
    /* 6. 层级与定位 */
    position: relative;
    z-index: 100 !important;
    
    /* 7. 清除 flex 影响 */
    justify-content: unset !important;
    align-items: unset !important;
}

/* 针对手机端的适配：手机上还是居中好看 */
@media (max-width: 768px) {
    #avatar {
        float: none !important;
        text-align: center !important;
        margin-right: auto !important;
        margin-left: auto !important;
        display: flex !important;
        justify-content: center !important;
    }
}

#avatar img {
    /* 1. 设置合适的大小 (根据您照片的比例，通常学术照是长方形) */
    /* 宽度保持不变，或者您可以根据需要微调，比如 160px */
    width: 160px; 
    height: auto; /* 高度自动，保持照片原始比例，避免变形 */
    
    /* 2. 矩形设定 */
    /* 设为 0 就是完全直角；设为 4px 稍微圆润一点点，看起来不那么尖锐 */
    border-radius: 4px; 
    
    /* 3. 核心：加上白色粗边框，把照片从背景里“抠”出来 */
    border: 6px solid #ffffff; 
    
    /* 4. 加上阴影，增加立体悬浮感 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); 
    
    /* 5. 确保背景不透 */
    background-color: #fff;
    
    transition: transform 0.3s ease;
}

/* 鼠标悬停微动效果 */
#avatar img:hover {
    transform: translateY(-5px); /* 鼠标放上去会上浮一点点 */
}

/* --- 强制去除所有背景遮罩 --- */
.top-section::before, 
.top-bg::before {
    display: none !important;
    background: none !important;
}
