/* 保留几何装饰元素样式 */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    margin: 0;
}

/* A4尺寸容器 */
.a4-container {
    width: 210mm;
    min-height: 297mm;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    padding: 15mm;
    position: relative;
    box-sizing: border-box;
}

.geometric-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 10%;
    right: 10%;
    animation: float 8s infinite ease-in-out;
}

.triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid rgba(255, 255, 255, 0.05);
    top: 60%;
    left: 5%;
    animation: rotate 20s infinite linear;
}

.square {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    top: 30%;
    left: 15%;
    transform: rotate(45deg);
    animation: pulse 6s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(10px) translateX(-15px); }
    75% { transform: translateY(-15px) translateX(5px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(45deg) scale(1.1); }
}

/* 头像悬停效果 */
.profile-avatar img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* 响应式设计 - 小屏幕适配 */
@media print {
    body {
        background: none;
        padding: 0;
        margin: 0;
    }
    
    .a4-container {
        box-shadow: none;
        margin: 0;
        padding: 15mm;
        width: 100%;
    }
    
    .geometric-elements {
        display: none;
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
        background: #f8f9fa;
    }
    
    .a4-container {
        width: 100%;
        min-height: 100vh;
        padding: 15px;
        box-shadow: none;
        margin: 0;
    }
    
    .profile-header {
        padding: 20px 0 !important;
        text-align: center;
    }
    
    .profile-info h1 {
        font-size: 2rem !important;
    }
    
    .contact-info {
        justify-content: center !important;
    }
    
    .profile-avatar {
        margin-top: 15px;
    }
    
    .profile-avatar img {
        width: 120px !important;
        height: 120px !important;
    }
    
    .sidebar {
        margin-bottom: 20px;
    }
    
    .card {
        margin-bottom: 15px !important;
    }
    
    .job-item, .project-item {
        padding: 15px !important;
    }
    
    .geometric-elements {
        display: none;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .a4-container {
        padding: 10px;
    }
    
    .profile-info h1 {
        font-size: 1.8rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    h2 {
        font-size: 1.3rem !important;
    }
    
    h3 {
        font-size: 1.1rem !important;
    }
    
    .badge {
        font-size: 0.75rem !important;
        padding: 0.5em 0.75em !important;
    }
    
    .contact-info span {
        font-size: 0.8rem !important;
    }
}