/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    background-color: #000;
    background-image: url('../bj/13.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    min-height: -webkit-fill-available;
}

body.loaded {
    opacity: 1;
}



/* 头部区域样式 */
header {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header-content {
    text-align: center;
    z-index: 2;
    transform: translateY(0);
    transition: all 0.5s ease;
    padding: 2rem;
}

.header-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ffd700;
    font-weight: bold;
    letter-spacing: 2px;
}

.header-content p {
    font-size: 1.5rem;
    color: #0ff;
    margin-bottom: 2rem;
}

/* 发光效果动画 */
@keyframes glow {
    from {
        text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700, 0 0 30px #ffd700;
    }
    to {
        text-shadow: 0 0 20px #ffd700, 0 0 30px #ffd700, 0 0 40px #ffd700;
    }
}

/* 主内容区域 */
main {
    position: relative;
    z-index: 1;
    background: none;
    padding: 4rem 2rem;
}

/* 画廊区域 */
.gallery-section {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.gallery-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffd700;
}

/* 画廊容器 - 三列布局 */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    padding: 1rem;
    justify-items: center;
}

/* 单个图片项 */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.2rem;
    width: 85%;
    max-width: 200px;
}

.gallery-item.hovered {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 图片项渐入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 图片链接 */
.image-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    height: 100%;
    width: 100%;
}

/* 画廊图片 */
.gallery-image {
    width: 45%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 3px;
    margin-top: 0.3rem;
    margin-bottom: 0.5rem;
    transition: transform 0.5s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.gallery-item.hovered .gallery-image {
    transform: scale(1.1);
}

/* 图片下方文字 */
.gallery-text {
    padding: 0.5rem 0.2rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color:white;
    background-color: darkgreen;
    border: 1px solid darkgreen;
    border-radius: 4px;
    padding: 8px 12px;
    position: relative;
    margin: 0;
}



/* 页脚样式 */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    background: rgba(10, 10, 30, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #ffffff;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-content h1 {
        font-size: 3rem;
    }
    
    .header-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    main {
        padding: 2rem 0.5rem;
    }
    
    .gallery-section h2 {
        font-size: 2rem;
    }
    
    .gallery-container {
        gap: 0.5rem;
    }
    
    .header-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    .header-content p {
        font-size: 1rem;
    }
    
    .gallery-section h2 {
        font-size: 1.8rem;
    }
    
    .gallery-text {
        font-size: 0.7rem;
        padding: 0.4rem 0.1rem;
        letter-spacing: 0;
        word-break: keep-all;
    }
}