:root {
    --neon-blue: #64ffda;
    --light-blue: #80dfff;
    --dark-bg: #0a192f;
    --text-light: #ccd6f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--dark-bg);
    color: var(--text-light);
}

/* 导航栏 */
nav {
    background: rgba(10, 25, 47, 0.95);
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
    justify-content: center;
}

nav a {
    font-size: 1.8rem;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    color: var(--neon-blue);
    border-color: var(--neon-blue);
}

/* 轮播背景 */
.hero-section {
    position: relative;
    margin-top: 100px;
    height: 500px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    filter: brightness(0.4);
    animation: moveBg 20s linear infinite;
}

.hero-bg img {
    height: 100%;
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    opacity: 0;
    animation: fadeInOut 20s linear infinite;
    cursor: default;
}

@keyframes moveBg {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
}

/* 标题 */
.hero-text {
    position: relative;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s, text-shadow 0.3s;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: bold;
    color: var(--neon-blue);
    text-shadow: 0 0 15px rgba(100, 255, 218, 0.7);
    transition: text-shadow 0.3s;
}

.hero-text p {
    font-size: 2.5rem;
    color: var(--light-blue);
    text-shadow: 0 0 10px rgba(128, 223, 255, 0.5);
    transition: text-shadow 0.3s;
}

.hero-text:hover {
    transform: translateY(-55%);
}

.hero-text:hover h1 {
    text-shadow: 0 0 30px rgba(100, 255, 218, 1);
}

.hero-text:hover p {
    text-shadow: 0 0 20px rgba(128, 223, 255, 1);
}

/* 项目展示 */
.projects-section {
    padding: 6rem 5%;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.project-card {
    background: rgba(100, 255, 218, 0.05);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(100, 255, 218, 0.5);
}

.project-image {
    height: 280px;
    cursor: zoom-in;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    color: var(--neon-blue);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.project-description {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(204, 214, 246, 0.9);
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    background: rgba(100, 255, 218, 0.03);
}

/* 图片放大 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    aria-label: "关闭图片";
    z-index: 10;
}

/* 图片切换按钮 */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    padding: 1rem 2rem;
    user-select: none;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.prev {
    left: 1rem;
}

.next {
    right: 1rem;
}

#modalImageContainer {
    position: relative;
    width: 100%;
    height: 100%;
}

#modalImage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    opacity: 1;
    box-shadow: 0 0 20px 10px rgba(100, 255, 218, 0.7);
    z-index: 2;
    transition: all 0.3s ease;
}

.background-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    opacity: 0.3;
    z-index: 1;
}

/* 向左滑动的动画 */
@keyframes slideInLeft {
    from {
        opacity: 0.3;
        transform: translate(100%, -50%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* 向右滑动的动画 */
@keyframes slideInRight {
    from {
        opacity: 0.3;
        transform: translate(-200%, -50%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.slide-left {
    animation: slideInLeft 0.3s ease forwards;
}

.slide-right {
    animation: slideInRight 0.3s ease forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 0.3;
        transform: translate(-50%, -50%);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }
    nav a {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* 联系信息区域样式 */
.contact-section {
    padding: 6rem 5%;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    margin: 6rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    filter: brightness(0.4);
    animation: moveBg 20s linear infinite;
}

.contact-bg img {
    height: 100%;
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    opacity: 0;
    animation: fadeInOut 20s linear infinite;
    cursor: default;
}

.contact-card {
    background: rgba(3, 17, 46, 0.815);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(100, 255, 218, 0.5);
}

.contact-info {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-info p {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.contact-qr-code {
    margin-top: 2rem;
}

.contact-qr-code img {
    width: 200px;
    height: 200px;
    cursor: default;
}

/* 底部样式 */
.footer-section {
    padding: 3rem 5%;
    background: rgba(10, 25, 47, 0.95);
    color: var(--text-light);
    text-align: center;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.footer-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 -12px 40px rgba(100, 255, 218, 0.5);
}

.footer-section p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    filter: brightness(0.4);
    animation: moveBg 20s linear infinite;
}

.footer-bg img {
    height: 100%;
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    opacity: 0;
    animation: fadeInOut 20s linear infinite;
    cursor: default;
}