/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局字体设置 */
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    scroll-behavior: smooth;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(44, 62, 80, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.navbar-logo {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-logo:hover {
    color: #3498db;
}

.navbar-menu {
    display: flex;
    list-style: none;
}

.navbar-menu li {
    margin-left: 30px;
}

.navbar-menu li a {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-menu li a:hover {
    color: #3498db;
}

.navbar-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.navbar-menu li a:hover::after {
    width: 100%;
}

/* 响应式导航栏 */
@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(44, 62, 80, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .navbar-menu li {
        margin: 10px 0;
    }

    .navbar-toggle {
        display: block;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
    }
}

@media (min-width: 769px) {
    .navbar-toggle {
        display: none;
    }
}

/* 头部样式 */
.header {
    background-color: #2c3e50;
    color: #fff;
    padding: 120px 0 60px;
    text-align: center;
    margin-bottom: 30px;
}

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

.header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.header p {
    font-size: 18px;
    font-weight: 300;
}

/* 主容器样式 - 双飞翼布局 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

/* 左侧边栏 */
.left-sidebar {
    width: 250px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-right: 15px;
}

/* 中间内容 */
.content {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* 右侧边栏 */
.right-sidebar {
    width: 220px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-left: 15px;
}

/* 边栏内容样式 */
.sidebar-content h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* 头像样式 */
.avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #2c3e50;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fff;
}

/* 信息列表样式 */
.info-list {
    list-style: none;
    margin-bottom: 30px;
}

.info-list li {
    margin-bottom: 12px;
    font-size: 14px;
}

.info-list li strong {
    color: #2c3e50;
}

/* 技能列表样式 */
.skill-list {
    list-style: none;
    margin-bottom: 30px;
}

.skill-list li {
    margin-bottom: 15px;
    font-size: 14px;
}

.skill-list li span {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: #3498db;
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.skill-list.animated .skill-progress {
    width: var(--skill-width, 0%);
}

/* 证书列表样式 */
.certificate-list {
    list-style: none;
    margin-bottom: 30px;
}

.certificate-list li {
    margin-bottom: 10px;
    font-size: 14px;
    padding-left: 20px;
    position: relative;
}

.certificate-list li:before {
    content: "•";
    color: #3498db;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: -2px;
}

/* 兴趣爱好列表样式 */
.hobby-buttons {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.hobby-btn {
    background-color: #f0f0f0;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans SC', sans-serif;
}

.hobby-btn:hover {
    background-color: #3498db;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 图片弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-container {
    position: absolute;
    background-color: #333;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    max-height: 80%;
    overflow: hidden;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1001;
}

.modal.show .modal-container {
    transform: scale(1);
    opacity: 1;
}

/* 聊天气泡尾巴 */
.modal-container::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #333;
}

.modal-content {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

#caption {
    text-align: center;
    color: #fff;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    background-color: #333;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1002;
}

.close:hover,
.close:focus {
    color: #ccc;
    text-decoration: none;
}

/* 响应式弹窗 */
@media only screen and (max-width: 700px) {
    .modal-container {
        max-width: 80%;
        max-height: 60%;
    }
}

@media only screen and (max-width: 480px) {
    .modal-container {
        max-width: 90%;
        max-height: 50%;
    }
}

/* 保持原有的hobby-list样式，以防其他地方使用 */
.hobby-list {
    list-style: none;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hobby-list li {
    background-color: #f0f0f0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #2c3e50;
}

/* 自我评价样式 */
.self-evaluation {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    text-align: justify;
}

/* 中间内容样式 */
.content-inner .section {
    margin-bottom: 40px;
}

.content-inner h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 25px;
    color: #2c3e50;
    padding-bottom: 12px;
    border-bottom: 2px solid #3498db;
}

/* 工作经历样式 */
.experience-item {
    margin-bottom: 30px;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.experience-header h3 {
    font-size: 18px;
    font-weight: 500;
    color: #2c3e50;
}

.experience-header span {
    font-size: 14px;
    color: #999;
}

.company {
    font-size: 16px;
    color: #3498db;
    margin-bottom: 10px;
}

.experience-details {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
}

.experience-details li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}

.experience-details li:before {
    content: "▸";
    color: #3498db;
    position: absolute;
    left: -15px;
}

/* 教育背景样式 */
.education-item {
    margin-bottom: 30px;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.education-header h3 {
    font-size: 18px;
    font-weight: 500;
    color: #2c3e50;
}

.education-header span {
    font-size: 14px;
    color: #999;
}

.school {
    font-size: 16px;
    color: #3498db;
    margin-bottom: 5px;
}

.degree {
    font-size: 14px;
    color: #666;
}

/* 项目经验样式 */
.project-item {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
    background-color: white;
}

.project-item h3 {
    font-size: 18px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.project-item:hover h3 {
    color: #3498db;
}

.project-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
}

.project-tech {
    font-size: 14px;
    color: #3498db;
    font-style: italic;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

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

.footer p {
    font-size: 14px;
    font-weight: 300;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-container {
        flex-direction: column;
    }

    .left-sidebar,
    .right-sidebar {
        width: 100%;
        margin: 0 0 20px 0;
    }

    .content {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 40px 0;
    }

    .header h1 {
        font-size: 28px;
    }

    .header p {
        font-size: 16px;
    }

    .left-sidebar,
    .content,
    .right-sidebar {
        padding: 20px;
    }

    .content-inner h2 {
        font-size: 20px;
    }

    .experience-header,
    .education-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .experience-header h3,
    .education-header h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 24px;
    }

    .header p {
        font-size: 14px;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .sidebar-content h2 {
        font-size: 18px;
    }

    .content-inner h2 {
        font-size: 18px;
    }

    .project-item {
        padding: 15px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header,
.left-sidebar,
.content,
.right-sidebar,
.footer {
    animation: fadeIn 0.8s ease-in-out;
}

.left-sidebar {
    animation-delay: 0.2s;
}

.content {
    animation-delay: 0.4s;
}

.right-sidebar {
    animation-delay: 0.6s;
}

.footer {
    animation-delay: 0.8s;
}

/* 滚动动画类 */
.scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animation.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 页脚样式 */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

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

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    background-color: #2980b9;
    transform: translateY(-5px);
}

.back-to-top.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}