/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 背景图片优化 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/111.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.4;
    z-index: -2;
    filter: blur(1px);
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(240,240,240,0.85) 100%);
    z-index: -1;
}

.dark-theme .bg-overlay {
    background: linear-gradient(135deg, rgba(30,35,40,0.92) 0%, rgba(20,25,30,0.85) 100%);
}

/* 头部背景优化 */
header {
    position: relative;
    padding: 150px 0 60px;
    text-align: center;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/111.jpg') no-repeat center 25%;
    background-size: cover;
    opacity: 0.4;
    z-index: -1;
    filter: blur(0);
}

.dark-theme header::before {
    opacity: 0.3;
}

header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.8) 100%);
    z-index: -1;
}

.dark-theme header::after {
    background: linear-gradient(to bottom, rgba(30,35,40,0.9) 0%, rgba(20,25,30,0.8) 100%);
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.profile-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #555;
    margin-bottom: 15px;
}

.profile-content p {
    font-size: 1.1rem;
    color: #777;
}

/* 内容部分样式 */
main {
    padding: 50px 0;
}

section {
    margin-bottom: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.section-title {
    position: relative;
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    text-align: center;
    color: #333;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #1e50a2;
}

/* 关于我部分 */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* 工作经历部分 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background-color: #e0e0e0;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    position: absolute;
    left: -30px;
    top: 0;
    background-color: #1e50a2;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.timeline-content {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: #1e50a2;
}

.timeline-content p {
    margin-bottom: 15px;
    color: #666;
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content li {
    margin-bottom: 5px;
}

/* 技能部分 */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.skill-item h3 {
    margin-bottom: 10px;
    color: #555;
}

.skill-bar {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: #1e50a2;
    border-radius: 5px;
}

/* 联系方式部分 */
.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.contact-item i {
    color: #1e50a2;
    font-size: 1.3rem;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin: 10px 0;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #1e50a2;
}

.copyright {
    font-size: 0.9rem;
    color: #bbb;
}

/* 响应式布局 */
@media (max-width: 768px) {
    header {
        padding: 60px 0 40px;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .profile-content h1 {
        font-size: 2rem;
    }
    
    .profile-content h2 {
        font-size: 1.3rem;
    }
    
    section {
        padding: 30px 20px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-date {
        left: -20px;
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* 导航菜单样式优化 */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.dark-theme .main-nav {
    background: rgba(40, 44, 52, 0.9);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 15px 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    display: block;
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-color);
    background-color: rgba(30, 80, 162, 0.1);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary-color);
    background-color: rgba(30, 80, 162, 0.1);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    padding: 15px 20px;
    cursor: pointer;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 60px);
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .dark-theme .nav-menu {
        background: rgba(40, 44, 52, 0.98);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 0;
    }
    
    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .dark-theme .nav-menu a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu a::after {
        display: none;
    }
} 