
*, *::before, *::after {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;  /* 确保所有元素都使用 Inter */
}


html {
    scroll-behavior: smooth;  /* 平滑滚动 */
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background-color: #f7f7f7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-nav {
    padding-top: 80px;
    padding-bottom: 0;
}

/* 为有 id 的 section 设置 scroll-margin，确保锚点跳转位置正确 */
#about,
#projects,
#contact {
    scroll-margin-top: 80px;  /* 补偿 section 的 padding-top */
}

.section-last {
    padding-bottom: 0 !important;  /* 最后一个 section 底部没有 padding */
    margin-bottom: 0 !important;   /* 确保没有 margin */
}

.container {
    margin: 0 160px;  
    display: flex;
    justify-content: flex-start; 
}

.project-section-container {
    flex-direction: column;
}

.nav-container {
    display: flex;
    gap: 32px;
    justify-content: flex-start;
}

.nav-button {
    background-color: transparent;
    width: fit-content; 
    height: fit-content;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;  /* 移除链接下划线 */
    color: inherit;  /* 继承文字颜色 */
    cursor: pointer;  /* 鼠标指针样式 */
}

.nav-button:hover {
    text-decoration: underline;
}

.nav-font {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.04em;
}


.hero {
    display: flex;
    flex-direction: column;  
    gap: 20px;  
}

.hero-title {
    font-size: 36px;
    font-weight: 550;  /* semi-bold */
    letter-spacing: -0.04em;
    margin: 0;  /* 移除默认 margin */
    letter-spacing: -0.04em;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    margin: 0;  /* 移除默认 margin */
    letter-spacing: -0.04em;
}

.hero-text {
    font-size: 16px;
    font-weight: 300;
    margin: 0;  /* 移除默认 margin */
    line-height: 1.5;
    letter-spacing: -0.04em;
}

.project-container {

    display: flex;
    gap: 16px;
    justify-content: space-between;
    width: 100%; 
}

.project-card-featured {
    display: flex;
    flex-direction: column;  
    flex: 7;  
    height: 400px;
    border: 1px solid #E5E7EB;
    padding: 16px;
    border-radius: 16px;
    justify-content: flex-start;
    gap: 8px;
    text-decoration: none;  /* 移除链接下划线 */
    color: inherit;  /* 继承文字颜色 */
    cursor: pointer;  /* 鼠标指针样式 */
    transition: transform 0.2s, box-shadow 0.2s, background-image 0.3s;  /* 添加过渡效果 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.project-card-featured:hover {
    background-image: var(--hover-bg-image, url('path/to/your/image.jpg'));  /* 使用CSS变量，可在HTML中通过style="--hover-bg-image: url('...')"设置 */
}

/*
.project-card-featured:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);  
    z-index: 0;
    border-radius: 16px;
}
*/

.project-card-featured .card-title,
.project-card-featured .card-subtitle {
    position: relative;
    z-index: 1;  /* 确保文字在遮罩层之上 */
}

.project-card-featured-secondary {
    display: flex;
    flex: 5;
    height: 400px;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 16px;
    border-radius: 16px;
    justify-content: flex-start;
    gap: 8px;
    flex-direction: column;
    text-decoration: none;  /* 移除链接下划线 */
    color: inherit;  /* 继承文字颜色 */
    cursor: pointer;  /* 鼠标指针样式 */
    transition: transform 0.2s, box-shadow 0.2s, background-image 0.3s;  /* 添加过渡效果 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.project-card-featured-secondary:hover {
    background-image: var(--hover-bg-image, url('path/to/your/image.jpg'));  /* 使用CSS变量，可在HTML中通过style="--hover-bg-image: url('...')"设置 */
}

/*
.project-card-featured-secondary:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); 
    z-index: 0;
    border-radius: 16px;
}
*/

.project-card-featured-secondary .card-title,
.project-card-featured-secondary .card-subtitle {
    position: relative;
    z-index: 1;  /* 确保文字在遮罩层之上 */
}


.project-card-normal {
    display: flex;
    height: 400px;
    flex: 1;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 16px;
    border-radius: 16px;
    justify-content: flex-start;
    gap: 8px;
    flex-direction: column;
    text-decoration: none;  /* 移除链接下划线 */
    color: inherit;  /* 继承文字颜色 */
    cursor: pointer;  /* 鼠标指针样式 */
    transition: transform 0.2s, box-shadow 0.2s, background-image 0.3s;  /* 添加过渡效果 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.project-card-normal:hover {
    background-image: var(--hover-bg-image, url('path/to/your/image.jpg'));  /* 使用CSS变量，可在HTML中通过style="--hover-bg-image: url('...')"设置 */
}

/*
.project-card-normal:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 0;
    border-radius: 16px;
}
*/


.project-card-normal .card-title,
.project-card-normal .card-subtitle {
    position: relative;
    z-index: 1;  /* 确保文字在遮罩层之上 */
}


.project-card-gap {
    height: 16px;
}

.project-title {
    font-size: 20px;
    font-weight: 400;
    margin: 0;  
    letter-spacing: -0.04em;
}

.card-title {
    font-size: 16px;
    font-weight: 400;
    margin: 0;   
}

.card-subtitle {
    font-size: 14px;
    font-weight: 300;
    margin: 0;
    color: #878787;
}

.connect-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

.connect-logo {
    width: 32px;
    height: 32px;
    background-color: #000000;
}

.connnect-text {
    font-size: 16px;
    font-weight: 300px;
}

.connect-button {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    align-items: center;
    text-decoration: none;  /* 移除链接下划线 */
    color: inherit;  /* 继承文字颜色 */
    cursor: pointer;  /* 鼠标指针样式 */
}

.connect-container {
    display: flex;
    gap: 16px;
    flex-direction: column;
}

.footer-container {
    display: flex;
    justify-content: center;
}

.footer-text {
    font-size: 14px;
    font-weight: 300;
    margin: 0;
    color: #878787;
    
}

