/* 全局样式 */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(to bottom, #000428, #004e92);
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 确保其他内容在背景上层 */
.header, .hero, .gallery, .features, .about, .footer {
    position: relative;
    z-index: 2;
}

/* 调整文字颜色以适应深色背景 */
.hero-content h1,
.hero-content p,
.gallery h2,
.features h2,
.about h2,
.about-text h3,
.about-text p,
.about-list li {
    color: #fff;
}

.gallery {
    background-color: transparent;
}

.features {
    background-color: transparent;
}

.about {
    background-color: transparent;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.feature-item h3 {
    color: #00a8ff;
}

.feature-item p {
    color: #fff;
}

.about-text p,
.about-list li {
    color: rgba(255, 255, 255, 0.8);
}

/* 导航栏样式 */
.header {
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: #00a8ff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #00a8ff;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/kv1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
}

/* 图片展示区样式 */
.gallery {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 1rem;
    color: #fff;
}

/* 特色区域样式 */
.features {
    padding: 4rem 2rem;
    background-color: #fff;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: #00a8ff;
}

/* 关于我们样式 */
.about {
    padding: 6rem 2rem;
    background-color: #fff;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: #333;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: #00a8ff;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #666;
}

.about-list li:before {
    content: "→";
    color: #00a8ff;
    position: absolute;
    left: 0;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.about-image:hover {
    transform: translateY(-5px);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    margin: 0.5rem 0;
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .gallery-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .gallery-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .about {
        padding: 4rem 1rem;
    }

    .about-text h3 {
        font-size: 1.3rem;
    }
} 