/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[v-cloak] {
    display: none;
}

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #8b5cf6;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #f9fafb;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.1);
    --glow: rgba(59, 130, 246, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #0f172a;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* 粒子背景 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    background: transparent;
    overflow: hidden;
    min-height: 100vh;
}

/* 头部 */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #8b5cf6 100%);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: slideDown 0.6s ease-out;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.header-content {
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .header {
        padding: 3rem 4rem;
    }
}

@media (min-width: 1200px) {
    .header {
        padding: 3rem 6rem;
    }
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #ffffff !important;
    text-shadow: 0 0 40px rgba(255, 255, 255, 1), 
                 0 0 80px rgba(59, 130, 246, 1),
                 0 0 100px rgba(139, 92, 246, 0.8),
                 0 4px 8px rgba(0, 0, 0, 0.5);
    animation: nameGlow 2s ease-in-out infinite alternate;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 100;
}

@keyframes nameGlow {
    0% {
        text-shadow: 0 0 40px rgba(255, 255, 255, 1), 
                     0 0 80px rgba(59, 130, 246, 1),
                     0 0 100px rgba(139, 92, 246, 0.8),
                     0 4px 8px rgba(0, 0, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 60px rgba(255, 255, 255, 1), 
                     0 0 100px rgba(139, 92, 246, 1),
                     0 0 140px rgba(59, 130, 246, 1),
                     0 0 180px rgba(236, 72, 153, 0.8),
                     0 4px 8px rgba(0, 0, 0, 0.5);
    }
    100% {
        text-shadow: 0 0 40px rgba(255, 255, 255, 1), 
                     0 0 80px rgba(59, 130, 246, 1),
                     0 0 100px rgba(139, 92, 246, 0.8),
                     0 4px 8px rgba(0, 0, 0, 0.5);
    }
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* 打印按钮 */
.print-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 1s both;
}

.print-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

.print-button:active {
    transform: translateY(-1px) scale(1.02);
}

.print-button svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 576px) {
    .print-button {
        bottom: 20px;
        right: 20px;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .print-button span {
        display: none;
    }
    
    .print-button svg {
        width: 20px;
        height: 20px;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.contact-item:hover svg {
    transform: rotate(10deg) scale(1.2);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.pulse-animation {
    animation: pulse 0.5s ease !important;
}

/* 主要内容 */
.main-content {
    padding: 1.5rem;
    background: transparent;
}

@media (min-width: 768px) {
    .main-content {
        padding: 2rem 4rem;
    }
}

@media (min-width: 1200px) {
    .main-content {
        padding: 3rem 6rem;
    }
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .grid {
        grid-template-columns: 1fr 2fr;
        gap: 2rem;
    }
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 华丽的3D卡片效果 */
.section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: fadeInUp 0.6s ease-out both;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    transform-style: preserve-3d;
    transform: perspective(2000px) rotateX(0deg) rotateY(0deg) scale(1);
    z-index: 1;
    will-change: transform;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.15), transparent);
    transition: left 0.6s;
    z-index: 0;
    pointer-events: none;
}

.section:hover::before {
    left: 100%;
}

.section:hover {
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.2) inset;
    border-color: rgba(59, 130, 246, 0.5);
}

.section > * {
    position: relative;
    z-index: 2;
}

.card-3d {
    transform-style: preserve-3d;
}

.section h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), transparent);
    animation: expandWidth 0.8s ease-out both;
}

.section-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.section h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section h4 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* 列表 */
.list {
    list-style: none;
    padding: 0;
}

.list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    animation: fadeInRight 0.4s ease-out both;
    transition: all 0.2s ease;
}

.list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    transition: all 0.2s ease;
}

.list li:hover {
    transform: translateX(8px);
    color: var(--primary);
}

.list li:hover::before {
    transform: scale(1.3);
    color: var(--secondary);
}

/* 技能卡片 - 超炫效果 */
.skill-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 2px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    z-index: 1;
    overflow: hidden;
}

.skill-card:hover {
    /* transform由JS控制，这里不再设置 */
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 1);
    z-index: 2;
}

.skill-card h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.skill-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 项目卡片 */
.project-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 16px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    overflow: hidden;
}

.project-card:hover {
    /* transform由JS控制，这里不再设置 */
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.4);
    background: rgba(255, 255, 255, 1);
    border-color: var(--secondary);
    z-index: 2;
}

.project-card h3 {
    margin-bottom: 0.75rem;
}

.project-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.link:hover::after {
    width: 100%;
}

.link:hover {
    transform: translateX(5px);
    color: var(--primary);
}

/* 时间线 */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.5rem;
    position: relative;
    animation: fadeInLeft 0.6s ease-out both;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 150px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 0 20px rgba(59, 130, 246, 0.4);
    animation: scaleIn 0.4s ease-out both, pulse 2s ease-in-out infinite;
    animation-delay: 0.6s, 1s;
}

.timeline-item::after {
    content: "";
    position: absolute;
    left: 150px;
    top: 24px;
    bottom: -32px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), transparent);
    transform: translateX(-50%);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-date {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: right;
    padding-top: 0.25rem;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.timeline-content h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.role {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* 教育背景 */
.education {
    background: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.education:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.education-header h3 {
    font-size: 1.25rem;
}

.date {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.major {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.education-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.detail-col h4 {
    margin-bottom: 0.5rem;
}

/* 动态背景 */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(45deg, #0f172a, #1e293b, #334155, #1e293b, #0f172a);
    background-size: 400% 400%;
    animation: gradient-wave 15s ease infinite;
}

@keyframes gradient-wave {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 时间线标记器 */
.timeline-marker {
    position: absolute;
    left: 150px;
    top: 8px;
    transform: translateX(-50%);
    z-index: 1;
}

/* 章节头部 */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* 联系项包装器 */
.contact-item {
    position: relative;
}

/* 通知组件 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification-icon {
    font-size: 1.2rem;
}

.notification-enter-active {
    animation: slideInBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification-leave-active {
    animation: slideOut 0.3s ease-out;
}

/* 波纹效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.4);
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

/* 响应式优化 */
@media (max-width: 576px) {
    .header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .contact {
        flex-direction: column;
        gap: 1rem;
    }

    .section {
        padding: 1rem;
    }

    .section h2 {
        font-size: 1.25rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding-left: 1.5rem;
    }

    .timeline-item::before {
        left: 0;
    }

    .timeline-item::after {
        left: 0;
    }

    .timeline-date {
        text-align: left;
        font-size: 0.85rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .education {
        padding: 1rem;
    }

    .education-details {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 577px) and (max-width: 991px) {
    .header h1 {
        font-size: 2.5rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding-left: 1.5rem;
    }

    .timeline-item::before {
        left: 0;
    }

    .timeline-item::after {
        left: 0;
    }

    .timeline-date {
        text-align: left;
    }

    .education-details {
        grid-template-columns: 1fr;
    }
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 0 20px rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.3), 0 0 30px rgba(59, 130, 246, 0.6);
    }
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes slideInBounce {
    from {
        transform: translateX(120%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(120%) scale(0.8);
        opacity: 0;
    }
}

@keyframes ripple {
    from {
        opacity: 1;
        transform: scale(0);
    }
    to {
        opacity: 0;
        transform: scale(4);
    }
}

/* 打印样式 - 专业排版 */
@media print {
    /* 隐藏不必要的元素 */
    #particles-js,
    .animated-bg,
    .floating-shapes,
    .notification,
    .print-button {
        display: none !important;
    }

    /* 基础设置 */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 11pt !important;
        line-height: 1.4 !important;
        color: #000 !important;
    }

    /* 容器 */
    .container {
        background: white !important;
        box-shadow: none !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 头部 */
    .header {
        background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
        color: white !important;
        padding: 20pt !important;
        margin-bottom: 10pt !important;
        page-break-after: avoid !important;
        border-radius: 0 !important;
    }

    .header h1 {
        font-size: 24pt !important;
        margin-bottom: 5pt !important;
        color: white !important;
        text-shadow: none !important;
        animation: none !important;
    }

    .subtitle {
        font-size: 12pt !important;
        margin-bottom: 10pt !important;
        animation: none !important;
    }

    .contact {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10pt !important;
        margin-top: 10pt !important;
    }

    .contact-item {
        background: rgba(255, 255, 255, 0.2) !important;
        padding: 5pt 10pt !important;
        border-radius: 15pt !important;
        font-size: 10pt !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        animation: none !important;
    }

    .contact-item svg {
        width: 12pt !important;
        height: 12pt !important;
    }

    /* 主内容 */
    .main-content {
        padding: 8pt 12pt !important;
    }

    .grid {
        display: grid !important;
        grid-template-columns: 35% 65% !important;
        gap: 12pt !important;
    }

    /* 章节 */
    .section {
        background: white !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8pt !important;
        padding: 10pt !important;
        margin-bottom: 8pt !important;
        page-break-inside: avoid !important;
        box-shadow: none !important;
        animation: none !important;
        transform: none !important;
    }

    .section::before {
        display: none !important;
    }

    .section-header {
        margin-bottom: 6pt !important;
        border-bottom: 2px solid #3b82f6 !important;
        padding-bottom: 4pt !important;
    }

    .section h2 {
        font-size: 14pt !important;
        color: #1e3a8a !important;
        margin-bottom: 0 !important;
    }

    .section h2::after {
        display: none !important;
    }

    .section h3 {
        font-size: 12pt !important;
        color: #1f2937 !important;
        margin-bottom: 4pt !important;
    }

    .section h4 {
        font-size: 11pt !important;
        margin-bottom: 4pt !important;
    }

    /* 图标 */
    .icon-circle {
        width: 30pt !important;
        height: 30pt !important;
        background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .section-icon {
        width: 18pt !important;
        height: 18pt !important;
        color: white !important;
    }

    /* 列表 */
    .list {
        margin: 0 !important;
        padding-left: 15pt !important;
    }

    .list li {
        padding: 3pt 0 !important;
        font-size: 10pt !important;
        line-height: 1.4 !important;
        animation: none !important;
    }

    .bullet-icon {
        color: #3b82f6 !important;
    }

    /* 技能卡片 */
    .skill-card {
        background: #f9fafb !important;
        border: 1px solid #e5e7eb !important;
        padding: 10pt !important;
        margin-bottom: 8pt !important;
        border-radius: 6pt !important;
        page-break-inside: avoid !important;
        animation: none !important;
        transform: none !important;
    }

    .skill-card h3 {
        font-size: 11pt !important;
        margin-bottom: 3pt !important;
    }

    .skill-card p {
        font-size: 9pt !important;
        color: #6b7280 !important;
    }

    .skill-icon {
        font-size: 16pt !important;
        margin-bottom: 5pt !important;
        animation: none !important;
    }

    .skill-progress {
        margin-top: 5pt !important;
    }

    /* 项目卡片 */
    .project-card {
        background: #f9fafb !important;
        border: 1px solid #8b5cf6 !important;
        padding: 10pt !important;
        border-radius: 6pt !important;
        page-break-inside: avoid !important;
        animation: none !important;
        transform: none !important;
    }

    .project-badge,
    .company-badge,
    .school-badge {
        background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
        color: white !important;
        padding: 3pt 8pt !important;
        border-radius: 10pt !important;
        font-size: 9pt !important;
        display: inline-block !important;
        margin-bottom: 5pt !important;
        animation: none !important;
    }

    /* 时间线 */
    .timeline {
        margin: 0 !important;
    }

    .timeline-item {
        display: grid !important;
        grid-template-columns: 100pt 1fr !important;
        gap: 10pt !important;
        margin-bottom: 8pt !important;
        page-break-inside: avoid !important;
        animation: none !important;
    }

    .timeline-item::before {
        content: "" !important;
        position: absolute !important;
        left: 100pt !important;
        top: 6pt !important;
        width: 10pt !important;
        height: 10pt !important;
        background: #3b82f6 !important;
        border-radius: 50% !important;
        border: 2px solid white !important;
        box-shadow: 0 0 0 2pt #3b82f6 !important;
        animation: none !important;
    }

    .timeline-item::after {
        content: "" !important;
        position: absolute !important;
        left: 104.5pt !important;
        top: 16pt !important;
        bottom: -10pt !important;
        width: 1pt !important;
        background: #d1d5db !important;
    }

    .timeline-item:last-child::after {
        display: none !important;
    }

    .timeline-date {
        text-align: right !important;
        color: #6b7280 !important;
        font-size: 10pt !important;
        padding-top: 2pt !important;
    }

    .timeline-content {
        background: #f9fafb !important;
        border: 1px solid #e5e7eb !important;
        padding: 10pt !important;
        border-radius: 6pt !important;
        animation: none !important;
        transform: none !important;
    }

    .timeline-content h3 {
        margin-bottom: 3pt !important;
    }

    .role {
        color: #3b82f6 !important;
        font-size: 10pt !important;
        margin-bottom: 8pt !important;
    }

    /* 教育背景 */
    .education {
        background: #f9fafb !important;
        border: 1px solid #e5e7eb !important;
        padding: 10pt !important;
        border-radius: 6pt !important;
        page-break-inside: avoid !important;
        animation: none !important;
        transform: none !important;
    }

    .education-header {
        display: flex !important;
        justify-content: space-between !important;
        margin-bottom: 5pt !important;
    }

    .education-header h3 {
        font-size: 12pt !important;
    }

    .date {
        font-size: 10pt !important;
        color: #6b7280 !important;
    }

    .major {
        color: #3b82f6 !important;
        font-size: 11pt !important;
        margin-bottom: 10pt !important;
    }

    .education-details {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10pt !important;
    }

    /* 链接 - 显示URL */
    .link {
        color: #3b82f6 !important;
        text-decoration: underline !important;
    }

    .link::after {
        content: " (" attr(href) ")" !important;
        font-size: 9pt !important;
        color: #6b7280 !important;
        word-break: break-all !important;
    }

    /* 禁用所有动画和过渡 */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        box-shadow: none !important;
    }

    /* 确保颜色打印 */
    .header,
    .icon-circle,
    .project-badge,
    .company-badge,
    .school-badge {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* 分页控制 */
    .grid {
        page-break-after: auto !important;
    }

    .sidebar {
        page-break-inside: auto !important;
        page-break-after: avoid !important;
    }

    .main {
        page-break-inside: auto !important;
    }

    .section {
        page-break-before: auto !important;
        page-break-after: auto !important;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
    }

    /* 清除浮动 */
    .container::after {
        content: "" !important;
        display: block !important;
        height: 0 !important;
        clear: both !important;
    }

    /* 移动端打印优化 */
    @page {
        size: A4 portrait;
        margin: 15mm;
    }

    /* 强制内容在两页内 */
    body {
        max-height: none !important;
    }

    .container {
        page-break-after: avoid !important;
    }

    /* 最后一个元素不产生分页 */
    .main > .section:last-child,
    .sidebar > .section:last-child {
        page-break-after: avoid !important;
        margin-bottom: 0 !important;
    }
}
