/* 基础重置与变量定义 */
:root {
    --primary-color: #00d9ff;      /* 主色调 - 青色 */
    --primary-dark: #00a8cc;       /* 深青色 */
    --secondary-color: #6c63ff;    /* 辅助色 - 紫色 */
    --background-dark: #0a0a0f;    /* 深背景 */
    --background-darker: #050508;  /* 更深背景 */
    --background-light: #1a1a23;   /* 浅背景 */
    --text-primary: #ffffff;       /* 主要文字 */
    --text-secondary: #b0b0c0;     /* 次要文字 */
    --text-muted: #88889a;         /* 暗淡文字 */
    --border-color: #2a2a35;       /* 边框颜色 */
    --card-bg: rgba(26, 26, 35, 0.7); /* 卡片背景 */
    --shadow-color: rgba(0, 217, 255, 0.1); /* 阴影颜色 */

    --font-primary: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;

    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* 粒子背景 Canvas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Section 粒子 Canvas 通用样式 */
.section-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 导航栏样式 */
.navbar {
    background-color: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    color: var(--primary-color);
    font-size: 2rem;
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* 主内容区域 */
main {
    margin-top: 200px; /* 从180px增加到200px */
    padding-bottom: 4rem;
}

/* 英雄区域 */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem 4rem;
    align-items: start;
    min-height: 80vh;
    padding: 5rem 0; /* 从4rem增加到5rem */
}

.hero-content {
    grid-column: 1;
    grid-row: 1;
    animation: fadeInUp 0.8s ease;
    position: relative;
    z-index: 1;
    margin-top: 2rem; /* 额外增加上边距 */
}

.hero-visual {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    height: 400px;
}

/* 工程图纸展示区 */
.engineering-showcase {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.showcase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.showcase-label {
    margin-top: 1rem;
    background-color: var(--card-bg);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
    cursor: default;
}

.showcase-label:hover {
    background-color: var(--primary-color);
    color: var(--background-dark);
    transform: translateY(-2px);
}

.showcase-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 220px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(10, 10, 15, 0.5);
}

.showcase-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.08) 1px, transparent 1px);
    background-size: 15px 15px;
    pointer-events: none;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    filter: brightness(1.1);
    mix-blend-mode: screen;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* 姓名渐变微光动画效果 */
.highlight {
    background: linear-gradient(
        90deg,
        var(--primary-color) 0%,
        #ffffff 25%,
        var(--secondary-color) 50%,
        #ffffff 75%,
        var(--primary-color) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
    display: block;
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.highlight-text {
    color: var(--primary-color);
    font-weight: 600;
}

/* 人才链接可点击样式 */
.talent-link {
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.talent-link:hover {
    color: var(--secondary-color);
}

/* 人才照片弹窗 */
.talent-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.talent-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.talent-modal-content {
    position: relative;
    max-width: 500px;
    max-height: 80vh;
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.talent-modal.active .talent-modal-content {
    transform: scale(1);
    opacity: 1;
}

.talent-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.talent-modal-close:hover {
    color: var(--primary-color);
}

.talent-modal-img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    object-position: center 0%;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.talent-modal-caption {
    text-align: center;
    margin-top: 15px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--background-dark);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--background-dark);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    height: 400px;
}

.visual-element {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-lines {
    position: absolute;
    width: 300px;
    height: 300px;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: pulse 4s infinite ease-in-out;
}

/* 旋转立方体 - 带平滑渐变变色动画 */
.cube {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    transform: rotateX(25deg) rotateY(45deg);
    animation: rotateCube 20s infinite linear;
    animation-play-state: running;
    transition: transform 0.1s linear;
}

.cube.paused {
    animation-play-state: paused;
}

.cube.dragging {
    animation-play-state: paused;
    cursor: grab;
}

.cube.dragging:active {
    cursor: grabbing;
}

.cube .face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(0, 217, 255, 0.05);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, var(--primary-color), rgba(0, 217, 255, 0.5)) 1;
    opacity: 0.9;
    animation: cubeColorChange 20s infinite linear;
    box-shadow:
        inset 0 0 20px rgba(0, 217, 255, 0.2),
        0 0 30px rgba(0, 217, 255, 0.4);
}

/* 立方体平滑颜色渐变动画 */
@keyframes cubeColorChange {
    /* 0-40%: 保持青色 */
    0%, 40% {
        background: rgba(0, 217, 255, 0.05);
        border-color: var(--primary-color);
        box-shadow:
            inset 0 0 20px rgba(0, 217, 255, 0.2),
            0 0 30px rgba(0, 217, 255, 0.4);
    }
    /* 40-50%: 平滑渐变到紫色 */
    45% {
        background: rgba(54, 158, 255, 0.08);
        border-color: #369eff;
        box-shadow:
            inset 0 0 25px rgba(54, 158, 255, 0.3),
            0 0 35px rgba(54, 158, 255, 0.5);
    }
    /* 50-90%: 保持紫色 */
    50%, 90% {
        background: rgba(108, 99, 255, 0.05);
        border-color: var(--secondary-color);
        box-shadow:
            inset 0 0 20px rgba(108, 99, 255, 0.2),
            0 0 30px rgba(108, 99, 255, 0.4);
    }
    /* 90-100%: 平滑渐变回青色 */
    95% {
        background: rgba(54, 158, 255, 0.08);
        border-color: #369eff;
        box-shadow:
            inset 0 0 25px rgba(54, 158, 255, 0.3),
            0 0 35px rgba(54, 158, 255, 0.5);
    }
    100% {
        background: rgba(0, 217, 255, 0.05);
        border-color: var(--primary-color);
        box-shadow:
            inset 0 0 20px rgba(0, 217, 255, 0.2),
            0 0 30px rgba(0, 217, 255, 0.4);
    }
}

.cube .front { transform: translateZ(100px); }
.cube .back { transform: rotateY(180deg) translateZ(100px); }
.cube .right { transform: rotateY(90deg) translateZ(100px); }
.cube .left { transform: rotateY(-90deg) translateZ(100px); }
.cube .top { transform: rotateX(90deg) translateZ(100px); }
.cube .bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotateCube {
    from {
        transform: rotateX(25deg) rotateY(45deg);
    }
    to {
        transform: rotateX(25deg) rotateY(405deg);
    }
}

/* 关于我板块 */
.about {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.skills {
    margin-top: 2rem;
}

.skills h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background-color: var(--card-bg);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: var(--primary-color);
    color: var(--background-dark);
    transform: translateY(-2px);
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    color: var(--primary-color);
    font-size: 5rem;
    transition: var(--transition);
}

/* 证件照动态旋转边框效果 */
.image-placeholder::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: conic-gradient(
        from 0deg,
        var(--primary-color) 0deg,
        transparent 60deg,
        var(--secondary-color) 120deg,
        var(--primary-color) 180deg,
        transparent 240deg,
        var(--secondary-color) 300deg,
        var(--primary-color) 360deg
    );
    border-radius: 50%;
    z-index: -1;
    animation: rotateGradient 4s linear infinite;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--background-dark);
    border-radius: 50%;
    z-index: -1;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    border-radius: 50%;
    display: block;
}

.photo-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    z-index: 2;
    background-color: rgba(10, 10, 15, 0.7);
    padding: 8px 16px;
    margin: 0 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.image-placeholder:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 15px 30px var(--shadow-color);
}


/* 经验板块 */
.experience {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-date {
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: var(--background-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    min-width: 120px;
    text-align: center;
}

.timeline-content {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* 卡片渐变边框光效 */
.timeline-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 217, 255, 0.3) 50%,
        transparent 70%
    );
    background-size: 200% 200%;
    border-radius: calc(var(--border-radius) + 2px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: borderGlow 2s linear infinite;
}

.timeline-content:hover::before {
    opacity: 1;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2),
                0 0 60px rgba(0, 217, 255, 0.1);
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.company {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.timeline-content p {
    color: var(--text-secondary);
}

/* 联系板块 */
.contact {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    border-left: 3px solid var(--primary-color);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 40px;
}

.contact-item h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--card-bg);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--background-dark);
    transform: translateY(-5px);
}

.qr-section {
    display: flex;
    justify-content: center;
}

.qr-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    max-width: 300px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* 二维码卡片渐变边框光效 */
.qr-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--primary-color) 60deg,
        var(--secondary-color) 120deg,
        var(--primary-color) 180deg,
        transparent 240deg,
        transparent 360deg
    );
    border-radius: calc(var(--border-radius) + 2px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotateBorder 3s linear infinite;
}

.qr-card:hover::before {
    opacity: 1;
}

.qr-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 217, 255, 0.25),
                0 0 50px rgba(108, 99, 255, 0.15);
    border-color: transparent;
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.qr-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 4rem;
    transition: var(--transition);
}

.qr-placeholder:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 217, 255, 0.05);
}

.qr-placeholder p {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

.qr-image {
    width: 200px;
    height: 200px;
    border-radius: var(--border-radius);
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    display: block;
    margin: 0 auto 1.5rem;
}

.qr-image:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 10px 20px var(--shadow-color);
}

/* 二维码图片容器 */
.qr-image-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.qr-image-container:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 10px 20px var(--shadow-color);
}

/* 二维码图片通用样式 */
.qr-image-overlay,
.qr-image-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* 默认显示覆盖层图片 */
.qr-image-overlay {
    opacity: 1;
    z-index: 2;
}

.qr-image-main {
    opacity: 0;
    z-index: 1;
}

/* 切换状态 - 显示主图片 */
.qr-image-container.show-main .qr-image-overlay {
    opacity: 0;
}

.qr-image-container.show-main .qr-image-main {
    opacity: 1;
}

.qr-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 页脚 */
.footer {
    background-color: var(--background-darker);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer p:last-child {
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .hero-content {
        grid-column: 1;
        grid-row: 1;
    }

    .hero-visual {
        grid-column: 1;
        grid-row: 2;
        height: 300px;
    }

    .engineering-showcase {
        grid-column: 1;
        grid-row: 3;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .showcase-frame {
        max-width: 100%;
        height: 180px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--background-darker);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        transition: var(--transition);
        gap: 2rem;
    }

    .nav-links.active {
        left: 0;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-date {
        min-width: 100px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
    }

    .cube {
        width: 120px;
        height: 120px;
    }

    .cube .face {
        width: 120px;
        height: 120px;
    }

    .cube .front { transform: translateZ(60px); }
    .cube .back { transform: rotateY(180deg) translateZ(60px); }
    .cube .right { transform: rotateY(90deg) translateZ(60px); }
    .cube .left { transform: rotateY(-90deg) translateZ(60px); }
    .cube .top { transform: rotateX(90deg) translateZ(60px); }
    .cube .bottom { transform: rotateX(-90deg) translateZ(60px); }

    .cube .face {
        animation: cubeColorChange 20s infinite linear;
    }

    .engineering-showcase {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .showcase-frame {
        height: 150px;
    }

    .showcase-label {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .image-placeholder {
        width: 250px;
        height: 250px;
        font-size: 4rem;
    }

    .qr-card {
        max-width: 100%;
    }
}

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.2);
    z-index: 10000;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.1s ease-out;
}

/* 视差效果基础 */
.parallax-layer {
    will-change: transform;
}

/* 简单的视差滚动效果 */
.hero {
    background-attachment: fixed;
}
