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

body {
    font-family: 'DengXian', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

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

.profile h1 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.desktop-grid {
    display: none;
    gap: 30px;
}

.mobile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.exp-item {
    position: relative;
    height: 180px;
    perspective: 1500px;
    cursor: pointer;
    transition: transform 0.2s ease;
    transform-style: preserve-3d;
}

.exp-item:hover {
    transform: translateY(-5px);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.8rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-front {
    transform: rotateY(0deg);
    background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
}

.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(to bottom right, #f8f9fa, #ffffff);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.exp-item.flipped .card-front {
    transform: rotateY(180deg);
}

.exp-item.flipped .card-back {
    transform: rotateY(0deg);
}

.date {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    font-weight: 300;
    font-family: 'Fira Code', monospace;
}

.company {
    font-weight: 500;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    line-height: 1.4;
    font-family: 'DengXian', 'Microsoft YaHei', sans-serif;
}

.position {
    color: #444;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-family: 'Fira Code', monospace;
}

.desc {
    color: #666;
    font-size: 0.9rem;
    font-weight: 300;
    font-family: 'Fira Code', monospace;
}

.highlight {
    color: #444;
    font-weight: 700;
    margin: 0.5rem 0;
    font-family: 'Fira Code', monospace;
    cursor: pointer;
}

.highlight:hover {
    color: #6B7B93 ;
}

.footer {
    text-align: center;
    margin-top: 2rem;
    color: #666;
}

.footer p:not(.highlight) {
    font-family: 'DengXian', 'Microsoft YaHei', sans-serif;
}

.footer a {
    color: inherit;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .desktop-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .mobile-grid {
        display: none;
    }

    /* 只在双列显示时启用hover效果 */
    @media (min-width: 1200px) {
        .exp-item:hover .card-front {
            transform: rotateY(180deg);
        }
        
        .exp-item:hover .card-back {
            transform: rotateY(0deg);
        }
    }
}

@media (max-width: 767px) {
    .exp-item {
        height: 200px;
    }
    
    .card-front,
    .card-back {
        padding: 1.5rem;
    }

    .exp-item.flipped .card-front {
        transform: rotateY(180deg);
    }
    
    .exp-item.flipped .card-back {
        transform: rotateY(0deg);
    }
    
    .desktop-grid {
        display: none;
    }

    .mobile-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 图片浮层样式 */
.image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    touch-action: none;
}

.viewer-content {
    position: relative;
    width: 85%;
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#viewerImage {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transform-origin: center center;
    transition: transform 0.3s ease;
    touch-action: pinch-zoom; /* 允许双指缩放 */
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    z-index: 1001;
}

.prev-btn {
    left: -50px;
}

.next-btn {
    right: -50px;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 24px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

/* 箭头样式 */
.prev-btn::before {
    content: "‹";
    display: block;
}

.next-btn::before {
    content: "›";
    display: block;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .image-viewer {
        display: none;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
    }

    .viewer-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 85%;
        height: 85vh;
    }

    #viewerImage {
        max-width: 100%;
        max-height: 70vh;
        width: auto;
        height: auto;
        transform-origin: center center;
    }

    .nav-btn {
        position: absolute;
        width: 35px;
        height: 35px;
    }
    
    .prev-btn {
        left: -45px;
    }
    
    .next-btn {
        right: -45px;
    }

    .close-btn {
        position: absolute;
        top: -40px;
        right: 0;
    }
}

/* 较小屏幕设备适配 */
@media (max-width: 480px) {
    .viewer-content {
        width: 90%;
    }
}

/* 触摸反馈 */
@media (max-width: 768px) {
    .nav-btn:active,
    .close-btn:active {
        background: rgba(255, 255, 255, 0.3);
    }
} 