:root {
    --primary-color: #1E88E5;
    --primary-light: #64B5F6;
    --primary-dark: #0D47A1;
    --secondary-color: #FF5722;
    --secondary-dark: #c43c00;
    --secondary-light: #ff9e40;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #888888;
    --text-white: #FFFFFF;
    --bg-color: #ffffff;
    --bg-light: #F5F5F5;
    --bg-dark: #212121;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-main: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    --font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-light);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 30px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

.nav-item a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-item a:hover {
    color: var(--primary-color);
}

.nav-item a:hover:after {
    width: 100%;
}

/* 导航项高亮状态 */
.nav-item a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-item a.active:after {
    width: 100%;
}

/* 移动端菜单项高亮 */
.mobile-menu ul li a.active {
    color: var(--primary-color);
    font-weight: 600;
    background-color: rgba(30, 136, 229, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
}

/* 主要内容区域 */
.main-content {
    margin-top: 70px;
    padding-bottom: 40px;
}

/* 简历头部样式 */
.resume-header {
    position: relative;
    padding: 100px 0;
    background-color: var(--bg-light);
    overflow: hidden;
}

.resume-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/caise.avif') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
    animation: bgShift 10s infinite alternate;
}

@keyframes bgShift {
    0% {
        background-position: center top;
        opacity: 0.08;
    }
    50% {
        opacity: 0.12;
    }
    100% {
        background-position: center bottom;
        opacity: 0.1;
    }
}

.resume-header .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.header-info h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.header-info .subtitle {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--text-secondary);
    font-weight: 600;
}

.header-info p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* 成就卡片样式 */
.key-achievements {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.achievement-item {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--box-shadow);
    flex: 1;
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid var(--primary-color);
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.achievement-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.achievement-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.header-avatar {
    display: flex;
    justify-content: center;
}

.avatar-wrap {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: var(--box-shadow);
}

.avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 简历部分样式 */
.resume-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--bg-dark);
}

.resume-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* 教育背景卡片 */
.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.education-card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 280px;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.education-card::before {
    content: none;
}

.edu-card-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.edu-card-header .edu-date {
    font-size: 14px;
    opacity: 0.8;
}

.edu-card-header .edu-title {
    font-size: 20px;
    font-weight: bold;
    margin: 5px 0;
}

.edu-card-header .edu-institution {
    font-size: 16px;
}

.edu-card-body {
    padding: 20px;
    flex-grow: 1;
    position: relative;
    z-index: 1;
    background-color: var(--bg-color);
}

.edu-card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.12;
    z-index: -1;
}

.education-card:nth-child(1) .edu-card-body::before {
    background-image: url('../img/edu-bg1.webp');
}

.education-card:nth-child(2) .edu-card-body::before {
    background-image: url('../img/edu-bg2.webp');
}

.education-card:nth-child(3) .edu-card-body::before {
    background-image: url('../img/edu-bg3.webp');
}

.education-card:nth-child(4) .edu-card-body::before {
    background-image: url('../img/edu-bg4.webp');
}

.education-card:nth-child(5) .edu-card-body::before {
    background-image: url('../img/edu-bg5.webp');
}

.education-card:nth-child(6) .edu-card-body::before {
    background-image: url('../img/edu-bg6.webp');
}

.edu-card-body p {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.5;
    position: relative;
    z-index: 2;
    color: var(--text-primary);
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* 技能特长样式 */
.section-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.skill-category {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px 20px;
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.skill-category i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
    text-align: center;
}

.skill-category h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.skill-category h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.skills-grid {
    display: grid;
    gap: 20px;
}

.skill-item {
    margin-bottom: 5px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.skill-level {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    margin-bottom: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    border-radius: 4px;
}

.skill-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 根据技能水平进行颜色区分 */
.skill-level {
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    background-color: rgba(0, 0, 0, 0.05);
}

.skill-info:has(.skill-level:contains("精通")) .skill-level {
    background-color: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
}

.skill-info:has(.skill-level:contains("熟练")) .skill-level {
    background-color: rgba(33, 150, 243, 0.15);
    color: #1565c0;
}

.skill-info:has(.skill-level:contains("熟悉")) .skill-level {
    background-color: rgba(255, 152, 0, 0.15);
    color: #e65100;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-intro {
        font-size: 15px;
        padding: 0 15px;
        margin-bottom: 30px;
    }
    
    .skill-category {
        padding: 20px 15px;
    }
    
    .skill-category h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .skill-name {
        font-size: 14px;
    }
    
    .skill-desc {
        font-size: 12px;
    }
}

/* 工作经历样式 */
.work-history {
    margin-top: 50px;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

/* 时间线顶部箭头 */
.timeline::after {
    content: '▲';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 16px;
}

/* 时间线底部圆点 */
.timeline-end {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    z-index: 1;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-color);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(odd)::after {
    left: auto;
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
    right: auto;
}

.timeline-content {
    background: var(--bg-color);
    box-shadow: var(--box-shadow);
    padding: 20px;
    border-radius: var(--border-radius);
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent var(--bg-color);
    right: -15px;
    top: 15px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 10px 15px 10px 0;
    border-color: transparent var(--bg-color) transparent transparent;
    left: -15px;
    top: 15px;
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 5px;
}

.timeline-content .company {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.timeline-content .period {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* 工作描述样式 */
.job-description {
    margin: 15px 0;
}

.responsibilities, .achievements {
    margin-bottom: 15px;
}

.responsibilities h4, .achievements h4 {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.responsibilities h4:before, .achievements h4:before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 50%;
}

.responsibilities h4:before {
    background-color: var(--primary-color);
}

.achievements h4:before {
    background-color: var(--success);
}

.responsibilities ul, .achievements ul {
    padding-left: 15px;
    list-style-type: none;
}

.responsibilities li, .achievements li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.responsibilities li:before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.achievements li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
}

.achievements {
    background-color: rgba(76, 175, 80, 0.08);
    border-radius: var(--border-radius);
    padding: 10px 15px;
}

.timeline-content .contact {
    font-style: italic;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* 项目经验样式 */
.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.project-card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.project-header {
    padding: 15px;
    background: var(--primary-color);
    color: white;
}

.project-header h3 {
    font-size: 16px;
    margin-bottom: 5px;
    line-height: 1.3;
}

.project-header .project-date {
    font-size: 13px;
    opacity: 0.8;
}

.project-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* 项目描述STAR法则样式 */
.project-description {
    margin-bottom: 15px;
}

.situation-task, .action, .result {
    margin-bottom: 10px;
}

.situation-task p, .action p, .result p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.situation-task strong, .action strong, .result strong {
    color: var(--primary-color);
    font-weight: 600;
}

.result {
    background-color: rgba(76, 175, 80, 0.1);
    border-left: 3px solid var(--success);
    padding: 8px 10px;
    border-radius: 0 4px 4px 0;
}

.result p {
    color: var(--text-primary);
    font-weight: 500;
}

.project-contact {
    margin-top: auto;
    margin-bottom: 10px;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 13px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.project-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-light);
    color: var(--text-secondary);
    border-radius: 12px;
    font-size: 11px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* 更多项目按钮样式 */
.more-projects {
    text-align: center;
    margin-top: 40px;
}

.more-projects .btn {
    font-size: 16px;
    padding: 12px 30px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.more-projects .btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* 大模型应用样式 */
.ai-applications {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.ai-card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ai-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.ai-card-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background-color: #f5f5f5;
    position: relative;
    cursor: pointer;
}

.ai-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    display: block;
    position: relative;
    z-index: 1;
}

.ai-card:hover .ai-card-image img {
    transform: scale(1.02);
}

.ai-card-header {
    background: var(--secondary-color);
    padding: 15px 20px;
    color: white;
}

.ai-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ai-card-body h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.ai-card-body ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.ai-card-body li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.ai-card-body li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.ai-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
}

.ai-tag {
    padding: 3px 10px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 12px;
    display: inline-block;
}

/* 证书展示样式 */
.certificates {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.certificate {
    width: 100%;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.certificate:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cert-img {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background-color: #f5f5f5;
    position: relative;
    cursor: pointer;
}

.cert-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.certificate:hover .cert-img img {
    transform: scale(1.05);
}

.cert-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cert-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.cert-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 3px;
    line-height: 1.4;
}

/* 大模型应用卡片图片交互 */
.ai-card-image {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ai-card-image::after {
    content: '点击查看';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    opacity: 0;
    transition: var(--transition);
}

.ai-card-image:hover::after {
    opacity: 1;
}

/* 图片查看器样式 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-viewer.active {
    opacity: 1;
    visibility: visible;
}

.image-viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    overflow: hidden;
}

.image-viewer-content img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    margin: 0 auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-viewer.active .image-viewer-content img {
    transform: scale(1);
}

.image-viewer-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
}

.image-viewer-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.image-viewer-caption {
    color: white;
    margin-top: 20px;
    font-size: 16px;
    text-align: center;
    max-width: 80%;
}

body.no-scroll {
    overflow: hidden;
}

/* 个人照片样式 */
.photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 50px auto 0;
}

.photo-item {
    width: 100%;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.photo-container {
    width: 100%;
    height: 0;
    padding-bottom: 125%; /* 保持4:5的长宽比 */
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.photo-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.photo-item:hover .photo-container img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.photo-container:hover .photo-overlay {
    opacity: 1;
}

.photo-caption {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.photo-actions {
    display: flex;
    justify-content: center;
}

.photo-actions a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

.photo-actions a:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 确保懒加载的图片有正确的显示样式 */
img.photo {
    opacity: 1; /* 改为默认可见 */
    transition: opacity 0.3s ease;
}

img.photo.image-loaded {
    opacity: 1;
}

/* 基础信息样式 */
.basic-info {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 0;
    margin-top: 50px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.info-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.info-group {
    padding: 30px;
    position: relative;
    transition: var(--transition);
    border-right: 1px solid rgba(0,0,0,0.05);
}

.info-group:last-child {
    border-right: none;
}

.info-group:hover {
    background-color: rgba(30, 136, 229, 0.03);
}

.info-group h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

.info-group h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.info-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
}

.info-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--text-secondary);
    flex: 0 0 40%;
    font-size: 15px;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    flex: 0 0 60%;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, var(--primary-dark), #2c3e50);
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 80px;
    position: relative;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-intro {
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    background: white;
    padding: 5px;
}

.footer-logo h3 {
    font-size: 24px;
    margin: 0;
    color: white;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-icon-sm:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.social-icon-sm img {
    width: 18px;
    height: 18px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
    color: white;
}

.footer-links h4:after,
.footer-contact h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links li a {
    display: inline-block;
    transition: var(--transition);
}

.footer-links li a:hover {
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact li i {
    width: 16px;
    text-align: center;
    color: var(--primary-color);
}

.footer-qrcode {
    margin-top: 20px;
    background: white;
    padding: 5px;
    border-radius: 5px;
    display: inline-block;
}

.footer-qrcode img {
    display: block;
    border-radius: 2px;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-badge {
    display: flex;
    gap: 15px;
}

.footer-badge a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-badge a:hover {
    color: white;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 20px;
    color: white;
    display: inline-block;
}

.back-to-top .icon-arrow-up:before {
    content: "\f062";
    display: inline-block;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .resume-header {
        padding: 60px 0;
    }
    
    .resume-header .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .header-avatar {
        order: -1;
    }
    
    .avatar-wrap {
        width: 200px;
        height: 200px;
        margin: 0 auto 30px;
    }
    
    .key-achievements {
        flex-direction: column;
        gap: 15px;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .header-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-info h1 {
        font-size: 36px;
    }
    
    .header-info .subtitle {
        font-size: 18px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .key-achievements {
        flex-wrap: wrap;
    }
    
    .achievement-item {
        flex: 0 0 calc(50% - 10px);
    }
    
    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 动画效果 */
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 联系方式部分样式优化 */
.contact-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.contact-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
}

.contact-item {
    display: flex;
    background-color: #f9fafc;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background-color: #f0f5ff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.contact-icon i {
    font-size: 24px;
    color: white;
}

.contact-detail h3 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #4a4a4a;
}

.contact-detail p {
    margin: 0 0 10px;
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

.contact-action .btn-link {
    color: #2575fc;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.contact-action .btn-link:hover {
    color: #6a11cb;
    text-decoration: underline;
}

.contact-action .btn-link i {
    margin-right: 5px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-item {
        padding: 15px;
    }
}

/* 博客文章栏目样式 */
.blog-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-item {
    margin-bottom: 30px;
}

.article-top {
    margin-bottom: 30px;
    position: relative;
}

.article-top::before {
    content: "置顶";
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 10px;
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    border-radius: 0 var(--border-radius) 0 var(--border-radius);
    z-index: 2;
}

.article-card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-header {
    padding: 20px 20px 0 20px;
}

.article-title {
    margin: 0 0 15px 0;
    font-size: 20px;
}

.article-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.article-category {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 2px 10px;
    border-radius: 20px;
    margin-right: 15px;
}

.article-date {
    margin-right: 15px;
}

.article-time {
    display: inline-flex;
    align-items: center;
}

.article-time i {
    margin-right: 5px;
}

/* 文章图片样式修复 */
.article-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-body {
    padding: 20px;
}

.article-summary {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-stats {
    display: flex;
    color: var(--text-secondary);
    font-size: 14px;
}

.article-stats span {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.article-stats i {
    margin-right: 5px;
}

.read-more {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    transition: var(--transition);
}

.read-more:hover {
    background: var(--primary-color);
    color: white;
}

.blog-pagination {
    margin-top: 40px;
}

.blog-pagination a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0 5px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-decoration: none;
    transition: var(--transition);
}

.blog-pagination a:hover,
.blog-pagination .current {
    background-color: var(--primary-color);
    color: white;
}

.blog-empty {
    padding: 100px 0;
    text-align: center;
}

.empty-message {
    font-size: 18px;
    color: var(--text-secondary);
}

.sidebar-section {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-left: 15px;
}

.sidebar-title:before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    height: 15px;
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.category-list a:hover {
    color: var(--primary-color);
}

.category-list span {
    color: var(--text-secondary);
    font-size: 14px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--bg-light);
    color: var(--text-secondary);
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.tag-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .blog-container {
        flex-direction: column;
    }
    
    .blog-list, .blog-sidebar {
        flex: auto;
    }
    
    .ai-applications {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 文章页面样式修复 */
.article-page {
    position: relative;
}

.article-page div:not([class]) {
    display: none !important;
}

.article-page .article-content {
    padding-top: 100px;
}

/* 页脚样式 */

/* 博客侧边栏样式 */
.blog-list {
    width: 100%;
}

.blog-empty {
    text-align: center;
    padding: 40px 0;
}

.empty-message {
    font-size: 18px;
    color: var(--text-secondary);
}

.blog-sidebar {
    width: 100%;
}

.sidebar-section {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.sidebar-title {
    font-size: 18px;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bg-light);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.category-list a:hover {
    color: var(--primary-color);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background: var(--bg-light);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.tag-item:hover {
    background: var(--primary-color);
    color: white;
}

/* 页脚样式 */ 
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-intro {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-intro {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-badge {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* 打印按钮样式 */
.print-button {
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.print-button:hover {
    color: var(--primary-color);
}

.print-button i {
    font-size: 16px;
}

.print-only-nav {
    position: relative;
}

.print-only-nav::after {
    content: '打印';
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.print-only-nav:hover::after {
    opacity: 1;
    transform: scale(1);
}

@media print {
    .print-only-nav {
        display: none !important;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .print-only-nav {
        margin-top: 15px;
    }
    .print-button {
        justify-content: center;
        padding: 8px 0;
    }
}

/* 图片懒加载样式 */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-loading {
    position: relative;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.image-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border-radius: 50%;
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
}

.image-loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.image-error {
    opacity: 0.5;
    filter: grayscale(100%);
    position: relative;
}

.image-error::after {
    content: '\f071';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #e53935;
}

.bg-loaded {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 下载简历按钮样式 */
.download-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.download-btn i {
    margin-right: 5px;
}

/* 移动端样式适配 */
@media (max-width: 768px) {
    .mobile-menu .download-btn {
        background-color: var(--primary-color);
        color: white !important;
        display: inline-block;
        margin-top: 10px;
        padding: 8px 15px;
        border-radius: 4px;
    }
} 