/* --- 全局 CSS 变量 --- */
:root {
    --primary-color: #2c3e50;  /* 主要颜色 (深蓝灰) */
    --secondary-color: #3498db; /* 次要/强调色 (亮蓝) */
    --accent-color: #e74c3c;   /* 点缀色 (红) */
    --light-bg-color: #f8f9fa; /* 浅色背景 */
    --white-color: #ffffff;    /* 白色 */
    --dark-text-color: #212529; /* 深色文本 */
    --muted-text-color: #6c757d;/* 柔和文本色 */
    --success-color: #28a745; /* 成功/完成 (绿色) */
    --warning-color: #ffc107; /* 警告/突出 (黄色) */
    --danger-color: #dc3545;  /* 危险/重要 (红色) */
    --info-color: #0dcaf0;    /* 信息/中性 (青色) */
}

/* --- 基础和全局样式 --- */
html {
    scroll-behavior: smooth; /* 平滑滚动效果 */
}

body {
    padding-top: 70px; /* 为固定的导航栏留出空间 (根据实际导航栏高度调整) */
    font-family: 'Helvetica Neue', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Microsoft YaHei"; /* 更广泛的字体栈 */
    line-height: 1.6;      /* 行高 */
    color: var(--dark-text-color); /* 默认文本颜色 */
    background-color: var(--white-color); /* 默认背景色 */
}

section {
    padding: 5rem 0; /* Section 上下内边距 (调整值以控制间距) */
    scroll-margin-top: 70px; /* 锚点跳转时顶部偏移量，匹配 body padding-top */
}
/* 交替 Section 背景色 */
section:nth-of-type(even):not(#home):not(#contact) { /* 偶数section (非首页/联系我) 使用浅色背景 */
     background-color: var(--light-bg-color);
}
section:nth-of-type(odd):not(#home) { /* 奇数section (非首页) 使用白色背景 */
     background-color: var(--white-color);
}
/* 特定 Section 背景覆盖 */
#home, #skills, #education, #projects, #contact { /* 明确指定背景色 */
     background-color: var(--light-bg-color);
}
#about, #experience {
    background-color: var(--white-color);
}


h1, h2, h3, h4, h5, h6 {
    font-weight: 600; /* 标题字重 */
    color: var(--primary-color); /* 标题颜色 */
}

/* 链接样式 */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Bootstrap 按钮样式覆盖 */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
}
.btn-primary:hover {
    background-color: #2980b9; /* 次要颜色加深 */
    border-color: #2980b9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-secondary {
    color: var(--muted-text-color);
    border-color: var(--muted-text-color);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
}
.btn-outline-secondary:hover {
    background-color: var(--muted-text-color);
    color: var(--white-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- 导航栏样式 --- */
.navbar.fixed-top { /* 明确选择器 */
    background: var(--white-color) !important; /* 强制白色背景 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* 导航栏阴影 */
    transition: all 0.3s ease;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar .navbar-brand img {
    max-height: 40px; /* Logo 最大高度 */
}

.navbar .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1); /* 切换按钮边框 */
}
.navbar .navbar-toggler-icon { /* 切换按钮图标颜色 */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 62, 80, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .navbar-nav .nav-link {
    color: var(--primary-color) !important; /* 导航链接颜色 */
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem; /* 链接内边距 */
    margin: 0 0.2rem;     /* 链接间距 */
    border-radius: 5px;   /* 链接圆角 */
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
    color: var(--secondary-color) !important; /* 悬停/焦点颜色 */
    background: rgba(0, 0, 0, 0.04);        /* 悬停/焦点背景 */
}
/* main.js 会添加/移除 active 类 */
.navbar .navbar-nav .nav-link.active {
    color: var(--secondary-color) !important; /* 当前激活链接颜色 */
    font-weight: 600;                      /* 激活链接字重 */
    background: rgba(52, 152, 219, 0.1);   /* 激活链接背景 */
}

/* --- 首页 Hero Section (#home) --- */
#home {
    padding: 0; /* 移除 section 默认 padding */
    /* background-color: var(--light-bg-color); 移动到全局交替样式 */
    height: 100vh; /* 占满视口高度 */
    display: flex; /* 使用 Flexbox */
    width: 100%;   /* 确保宽度100% */
    overflow: hidden; /* 防止内容溢出 */
}
#home .container-fluid, #home .row {
    height: 100%; /* 使容器和行也占满高度 */
    width: 100%;
}
/* 首页轮播项 */
#home .carousel-item {
    height: 100vh; /* 轮播项高度占满视口 */
}
/* 首页轮播图片 */
#home .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 覆盖方式填充 */
    object-position: center; /* 图片居中 */
    filter: brightness(0.85); /* 图片稍暗，突出文字 */
}
/* 首页右侧文字容器 */
#home .col-md-4 { /* 直接选择列 */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.92); /* 半透明背景 */
    height: 100%; /* 确保在桌面端占满高度 */
}
#home .text-content-wrapper { /* 包裹文本内容的 div */
    text-align: center;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    max-width: 90%; /* 限制最大宽度 */
}
#home .text-content-wrapper h1 {
    color: var(--primary-color);
}
#home .text-content-wrapper .fs-3.text-muted { /* 职位标题 */
    color: var(--muted-text-color) !important;
    margin-bottom: 1.5rem;
}
#home .text-content-wrapper p.lead { /* 引言 */
    color: var(--dark-text-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 400;
}

/* --- 关于我 Section (#about) --- */
#about .img-fluid.rounded-circle {
    /* --- 修改这里的 width 和 height 使它们不相等 --- */
    width: 200px;  /* 例如，宽度设置得比高度大 */
    height: 240px; /* 高度保持或设置为一个不同的值 */
    /* --- 修改结束 --- */

    object-fit: contain; /* 保持 contain 以显示完整图片 */
    border: 6px solid var(--white-color); /* 白色边框 */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); /* 阴影 */
    background-color: var(--white-color); /* 白色背景填充 */
    /* border-radius: 50%; */ /* 确保有这一行，如果HTML中没有rounded-circle类的话 */
}
#about .lead {
    font-weight: 400;
    margin-bottom: 1.5rem;
}
#about h5 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
#about ul li {
    margin-bottom: 0.6rem; /* 列表项间距 */
    padding-left: 0.5rem;
    line-height: 1.7;
    display: flex; /* 对齐图标和文字 */
    align-items: flex-start;
}
#about ul li i { /* 列表项图标 */
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 0.9em;
    width: 1.2em; /* 固定宽度 */
    text-align: center;
    margin-top: 0.2em; /* 微调垂直位置 */
    flex-shrink: 0; /* 防止图标压缩 */
}

/* --- 技术栈 Section (#skills) --- */
.skill-card {
    background: var(--white-color);
    border-radius: 8px;
    padding: 1.8rem 1.5rem; /* 内边距 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07); /* 卡片阴影 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--secondary-color); /* 左侧装饰线 */
    /* height: 100% 移动到 .col > .skill-card 选择器 */
}
.col > .skill-card { /* 确保应用到直接子元素 */
    height: 100%; /* 卡片等高 */
}

.skill-card:hover {
    transform: translateY(-5px); /* 悬停上移 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* 悬停阴影加深 */
}
.skill-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.15rem;
}
.skill-card h4 i {
    margin-right: 10px; /* 标题图标间距 */
    color: var(--secondary-color); /* 标题图标颜色 */
    font-size: 1.1em;
}
.skill-card ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}
.skill-card ul li {
    margin-bottom: 0.6rem; /* 列表项间距 */
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}
.skill-card ul li i.fa-check { /* 对勾图标 */
    margin-right: 8px;
    color: var(--success-color); /* 绿色 */
    font-size: 0.9em;
}

/* --- 教育经历 Section (#education) --- */
/* 通用设置 */
#education .timeline-title,
#education .accordion-title {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 2.5rem; /* 标题与下方内容的距离 */
}
/* 标题下的装饰线 */
#education .timeline-title::after,
#education .accordion-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* 左侧：时间轴样式 */
.education-timeline {
    position: relative;
    padding-left: 30px; /* 为线条和标记留出空间 */
    list-style: none;   /* 移除 ul 默认样式 */
    padding-top: 10px;  /* 顶部留白 */
}
.education-timeline::before { /* 时间轴主线 */
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    opacity: 0.3;
}
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem; /* 时间轴项目间距加大 */
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-marker { /* 时间轴标记 (圆点) */
    position: absolute;
    left: -9px; /* 调整位置，使其在主线上 */
    top: 5px;
    width: 18px;
    height: 18px;
    background-color: var(--secondary-color);
    border: 3px solid var(--light-bg-color); /* 使用浅背景色 */
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3); /* 添加辉光效果 */
}
.timeline-content.card { /* 时间轴内容卡片 */
    border: none;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}
.timeline-content.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}
.timeline-content .card-body {
    padding: 1.25rem 1.5rem; /* 卡片内边距 */
}
.timeline-content .timeline-icon {
    font-size: 1.6rem; /* 图标稍大 */
    width: 2em; /* 固定宽度对齐 */
    text-align: center;
}
.timeline-content .card-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}
.timeline-content .timeline-degree {
    font-style: normal; /* 不用斜体 */
    color: var(--muted-text-color);
    font-size: 0.95rem;
}
.timeline-content .timeline-date {
    font-size: 0.85em;
    color: var(--muted-text-color);
    margin-top: 0.25rem;
}

/* 右侧：手风琴样式 */
.accordion {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0; /* 边框颜色稍浅 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* 手风琴阴影 */
}
.accordion-item {
    border: none;
    border-bottom: 1px solid #e0e0e0;
}
.accordion-item:last-child {
    border-bottom: none;
}
.accordion-button {
    font-weight: 500;
    color: var(--primary-color);
    background-color: var(--white-color);
    padding: 1.1rem 1.25rem; /* 按钮内边距调整 */
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1.05rem; /* 按钮字体稍大 */
}
.accordion-button i.fa-fw { /* 按钮内图标 */
    margin-right: 0.75rem; /* 图标与文字间距 */
    font-size: 1em;
    width: 1.2em; /* 固定宽度 */
    text-align: center;
}
.accordion-button:not(.collapsed) {
    color: var(--secondary-color);
    background-color: #f7fcff; /* 展开时背景色更浅 */
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08);
    font-weight: 600;
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.2); /* 焦点效果调整 */
    border-color: transparent;
    z-index: 3;
}
.accordion-button::after { /* 手风琴箭头图标 */
    flex-shrink: 0;
    width: 1.25rem; height: 1.25rem; margin-left: auto; content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232c3e50'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-size: 1.25rem; transition: transform .2s ease-in-out;
}
.accordion-button:not(.collapsed)::after {
     background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233498db'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
     transform: rotate(-180deg);
}
.accordion-body {
    padding: 1.5rem 1.5rem; /* 内容区内边距 */
    background-color: var(--white-color); /* 内容区背景 */
}
.education-details-list li { /* 手风琴内部列表样式 */
    margin-bottom: 0.8rem; display: flex; align-items: flex-start; line-height: 1.7;
}
.education-details-list li:last-child { margin-bottom: 0; }
.education-details-list li i.fa-fw { /* 固定宽度图标 */
    width: 1.5em; text-align: center; margin-top: 0.2em; color: var(--secondary-color);
}
.publication-list { /* 论文列表特定样式 */
    padding-left: 0.5rem; /* 增加缩进 */
}
.publication-list li { line-height: 1.6; margin-bottom: 0.8rem; font-size: 0.95rem; }
.publication-title { font-weight: 500; color: var(--primary-color); display: block; margin-bottom: 0.2rem; }
.publication-list em { font-size: 0.9em; color: var(--muted-text-color); font-style: normal; }
.publication-list .badge { vertical-align: baseline; font-size: 0.7em; padding: 0.3em 0.5em; }
#collapseHonors .accordion-body p { /* 荣誉部分段落样式 */
    line-height: 1.8; margin-bottom: 0;
}
#collapseHonors .accordion-body p i.fa-fw { margin-top: 0.2em; color: var(--warning-color); }

/* --- 教育经历 - 证书卡片网格样式 --- */
#education .border-top { /* 分割线 */
    border-top-color: #dee2e6 !important;
    margin-top: 3rem !important;
    padding-top: 3rem !important;
}
#education .col-12 h3 { /* 证书展示标题 */
    color: var(--primary-color);
    font-weight: 600;
}
#education .col-12 h3 i { /* 标题图标 */
    color: var(--secondary-color);
}
.certificate-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* 确保图片圆角生效 */
    background-color: var(--white-color); /* 确保背景色 */
}
.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important; /* 使用 !important 覆盖 shadow-sm */
}
.certificate-image { /* 卡片内图片样式 */
    height: 200px; /* 调整高度 */
    object-fit: contain; /* 保持图片比例完整显示 */
    background-color: #f8f9fa; /* 图片未填满区域的背景色 */
    padding: 5px; /* 图片周围留一点内边距 */
    border-bottom: 1px solid #eee; /* 图片下方细分隔线 */
    cursor: pointer; /* 提示用户图片可点击 */
    width: 100%; /* 确保宽度 */
}
.certificate-card .card-body {
    background-color: var(--white-color);
    padding: 0.5rem 0.75rem; /* 调整文字区域内边距 */
}
.certificate-card .card-text {
    margin-bottom: 0; /* 移除段落底部外边距 */
    color: var(--muted-text-color);
    font-size: 0.85rem; /* 调整字体大小 */
}

/* --- 工作经验 Section (#experience) --- */
.experience-card {
    background-color: var(--white-color);
    border: none; /* 移除默认边框，依赖阴影 */
    border-left: 4px solid var(--secondary-color); /* 左侧强调线 */
    margin-bottom: 2.5rem; /* 增加卡片间距 */
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}
.experience-card .card-header {
    background-color: #f8f9fa !important; /* 确保浅色背景 */
    border-bottom: 1px solid #dee2e6;
}
.experience-card .card-header h3 .badge {
    font-size: 0.75em; /* 事业编 Badge 字体缩小 */
    vertical-align: middle; /* 垂直居中 */
}
.experience-card .card-body {
    padding: 1.5rem; /* 调整内边距 */
}
/* 核心项目/项目/荣誉标题 */
.experience-card .h6.text-primary {
    padding-bottom: 0.25rem;
}
/* 单个项目块 (在经验卡片内部) */
.experience-card .project-block h5 .badge { /* 项目技术栈 Badge */
    font-size: 0.75em;
    vertical-align: baseline;
}
.experience-card .project-block .fst-italic { /* 项目价值描述 */
    color: var(--muted-text-color);
    line-height: 1.5;
}
/* 亮点/交付成果列表 (在经验卡片内部) */
.experience-card .highlight-list li {
    margin-bottom: 0.6rem; line-height: 1.6; display: flex; align-items: flex-start;
}
.experience-card .highlight-list li i {
    margin-top: 0.2em; width: 1.5em; flex-shrink: 0; color: var(--success-color); /* 直接使用成功色 */
    margin-right: 8px; text-align: center;
}

/* 荣誉区域 (在经验卡片内部) */
.awards-block .h6.text-primary { /* 荣誉标题 */
     padding-bottom: 0.25rem;
}
.awards-block .award-item {
    display: flex; flex-direction: column; justify-content: space-between;
    background-color: #fdfdfd;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 6px !important; /* 确保内部项也有圆角 */
}
.awards-block .award-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.award-certificate-thumb { /* 荣誉证书缩略图 */
    height: 100px; width: auto; max-width: 100%; object-fit: contain;
    background-color: #f0f0f0; cursor: pointer; padding: 3px; border: 1px solid #ddd;
}
.awards-block .award-item .badge { /* 荣誉文字 Badge */
    white-space: normal; text-align: center; padding: 0.5em 0.6em; font-size: 0.8rem;
}
.awards-block .badge i {
    vertical-align: text-bottom;
    margin-right: 4px;
}

/* --- 项目经历 Section (#projects) - 新增/修改样式 --- */

/* 移除旧的图片列背景和特定布局样式 */
.project-image-col {
    background-color: transparent; /* 移除背景色 */
    display: block; /* 恢复默认 */
    align-items: initial;
    justify-content: initial;
}
/* 移除旧的项目图片固定高度和 object-fit */
.project-image {
    /* height: auto; */ /* 不再需要固定高度 */
    /* object-fit: contain; */ /* 不再需要 */
    border-radius: 0 !important; /* 移除之前的圆角 */
    /* 其他样式如 cursor, transition, opacity:hover 可以保留 */
}


/* 项目卡片内的缩略图区域 */
.project-thumbnails {
    background-color: #f1f3f5; /* 比 bg-light 稍深一点的背景 */
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem; /* 调整内边距 */
    border-bottom-left-radius: 0.375rem; /* 底部圆角，匹配卡片 */
    border-bottom-right-radius: 0.375rem;
}
.thumbnails-title { /* "项目图片" 小标题 */
    font-weight: 500;
    color: var(--muted-text-color);
}

/* 缩略图本身 */
.project-thumbnail-img {
    display: block; /* 确保是块级元素 */
    width: 100%;    /* 宽度充满列 */
    /* --- 修改这里的高度值 --- */
    height: 150px;  /* 例如，从 100px 增加到 150px (您可以尝试其他值，如 180px) */
    object-fit: cover; /* 裁剪以填充，保持统一外观 */
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--white-color); /* 图片加载时的背景 */
}
.project-thumbnail-img:hover {
    transform: scale(1.05); /* 悬停放大 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 调整项目详情内边距 (如果需要) */
.project-details {
     padding: 1.5rem 1.5rem 1rem 1.5rem; /* 底部可以留少一点空间给缩略图区域 */
}

/* 响应式调整 (主要是缩略图高度) */
@media (max-width: 767.98px) { /* 小于 md */
    .project-thumbnail-img {
        /* --- 修改这里的高度值 --- */
       height: 120px; /* 例如，从 80px 增加到 120px */
   }
     .project-details {
        padding: 1.2rem 1.2rem 0.8rem 1.2rem;
    }
}
@media (max-width: 575.98px) { /* 小于 sm */
    .project-thumbnail-img {
        /* --- 修改这里的高度值 --- */
       height: 100px; /* 例如，从 70px 增加到 100px */
   }
     .project-details {
        padding: 1rem 1rem 0.6rem 1rem;
    }
    .project-thumbnails {
        padding: 0.8rem;
    }
}

/* --- 联系我 Section (#contact) --- */
#contact h2 {
    color: var(--primary-color); margin-bottom: 1.5rem;
}
#contact p.text-muted {
    color: var(--muted-text-color); max-width: 600px; margin-left: auto; margin-right: auto; margin-bottom: 3.5rem;
}
.contact-card {
    background-color: var(--white-color); border: none; border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; overflow: hidden;
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}
.contact-card .icon-wrapper i { margin-bottom: 1rem; }
.contact-card h4 { color: var(--primary-color); font-weight: 600; }
.contact-card .lead { font-size: 1.15rem; font-weight: 500; word-break: break-all; }
.contact-link { color: var(--dark-text-color); text-decoration: none; transition: color 0.3s ease; }
.contact-link:hover { color: var(--secondary-color); text-decoration: underline; }
#contact .small { font-size: 0.9em; }

/* --- 页脚 Footer --- */
footer {
    background-color: var(--dark-text-color);
    color: var(--muted-text-color);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9em;
}
footer a { color: var(--secondary-color); }
footer a:hover { color: var(--white-color); }

/* --- 通用模态框样式 --- */
#imageModal .modal-body img {
    max-height: 80vh; /* 限制模态框图片最大高度 */
    width: auto;
    max-width: 100%;
}
#imageModal .modal-header .modal-title {
    color: var(--primary-color); /* 模态框标题颜色 */
    font-size: 1.1rem; /* 调整标题大小 */
}

/* --- 响应式设计调整 --- */
@media (max-width: 991.98px) { /* 小于 lg */
    body {
        /* padding-top 保持 70px 或根据实际情况调整 */
    }
    section {
        /* padding: 4rem 0; 可选，减小间距 */
    }
    /* 教育经历时间轴响应式 */
    .education-timeline::before { left: 0px; }
    .timeline-item { padding-left: 30px; }
    .timeline-marker { left: -9px; }
    /* 证书卡片网格 */
    .certificate-image { height: 180px; } /* 减小证书图片高度 */
    /* 项目经历卡片 */
    .project-card .row { display: flex; flex-direction: column; } /* 堆叠 */
    .project-image { height: 250px; border-radius: 0.375rem 0.375rem 0 0 !important; } /* Bootstrap 5.3 默认 rounded-top */
    .project-details { padding: 1.5rem; }
}

@media (max-width: 767.98px) { /* 小于 md */
    body {
        padding-top: 56px; /* 导航栏变矮后调整 */
    }
    section {
        padding: 3.5rem 0; /* 减小 Section 间距 */
        scroll-margin-top: 56px;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }

    /* 首页响应式 */
    #home { height: auto; }
    #home .row { flex-direction: column; }
    #home .col-md-8, #home .col-md-4 { height: auto; width: 100%; }
    #home .carousel-item, #home .carousel-item img { height: 60vh; }
    #home .text-content-wrapper { margin: 2rem 1rem; padding: 2rem; }
    #about .img-fluid.rounded-circle { width: 180px; height: 180px;}

    /* 教育经历标题 */
    #education .timeline-title,
    #education .accordion-title { text-align: center; }
    #education .timeline-title::after,
    #education .accordion-title::after { left: 50%; transform: translateX(-50%); }
    .certificate-image { height: 160px; }

    /* 工作经验卡片 */
    .experience-card .card-header .d-flex { flex-direction: column; align-items: flex-start !important; }
    .experience-card .card-header i { margin-bottom: 0.5rem; }
    .experience-card .card-body { padding: 1rem; }
    .experience-card .highlight-list li { font-size: 0.9rem; }
    .awards-block .award-certificate-thumb { height: 80px; } /* 缩小荣誉证书缩略图 */

    /* 项目经历 */
     .project-image { height: 200px; }
     .project-details { padding: 1.2rem; }
     .details-heading { font-size: 1rem; }
     .project-card .work-list .sub-list, .project-card .skills-list { font-size: 0.9rem; }

}

@media (max-width: 575.98px) { /* 小于 sm */
     section { padding: 3rem 0; }
     h1 { font-size: 1.8rem; }
     h2 { font-size: 1.5rem; }
     h3 { font-size: 1.3rem; }

     #home .carousel-item, #home .carousel-item img { height: 55vh; }
     #home .text-content-wrapper { padding: 1.5rem; }
     #about .img-fluid.rounded-circle { width: 150px; height: 150px;}

     .skill-card { padding: 1.2rem 1rem; }

     .certificate-image { height: 140px; } /* 进一步减小 */

     .experience-card { padding: 1rem; } /* 减少经验卡片内边距 */

     .project-image { height: 180px; } /* 进一步减小项目图片 */
     .project-details { padding: 1rem; }
     .contact-card { padding: 1.5rem !important; } /* 减小联系卡片内边距 */
}