/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Navigation styles */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    border-bottom: 1px solid #eee;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Exhibition and News Grid */
.exhibitions-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.exhibition-card,
.news-card {
    padding: 1.5rem;
    border: 1px solid #eee;
}

/* Footer styles */
footer {
    background: #f5f5f5;
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.created-by {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.footer-nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: #333;
}

/* Hero Slider styles */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
}

.slider-btn.prev {
    left: 1rem;
}

.slider-btn.next {
    right: 1rem;
}

/* Update Exhibition and News card styles */
.exhibition-card,
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.exhibition-card img,
.news-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.more-info,
.read-more {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.more-info:hover,
.read-more:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-slider {
        height: 60vh;
    }

    .slide-caption {
        left: 1rem;
        bottom: 1rem;
    }

    .slide-caption h2 {
        font-size: 1.5rem;
    }
}

/* 替换轮播样式为动图banner样式 */
.hero-banner {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.banner-container {
    height: 100%;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-caption {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 分类图片展示样式 */
.photo-categories {
    padding: 2rem 2rem 4rem;
}

.photo-categories h2 {
    display: none;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-card h3 {
    padding: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 2px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.image-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.image-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.view-more {
    display: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-banner {
        height: 60vh;
    }

    .banner-caption {
        left: 1rem;
        bottom: 1rem;
    }

    .banner-caption h2 {
        font-size: 1.5rem;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
}

/* 添加图片加载失败时的样式 */
.image-grid img:not([src]),
.image-grid img[src=""],
.image-grid img[src="#"] {
    background: #f0f0f0;
    position: relative;
}

.image-grid img:not([src])::after,
.image-grid img[src=""]::after,
.image-grid img[src="#"]::after {
    content: '图片加载失败';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 0.8rem;
}

/* 添加模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 75%;
    max-height: 75vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* 修改 logo 样式 */
.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

/* Social Links Styles */
.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #666;
    transition: color 0.3s ease;
}

.icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.bilibili-icon:hover {
    color: #00a1d6;
}

.youtube-icon:hover {
    color: #ff0000;
}

.twitter-icon:hover {
    color: #1DA1F2;
}

.github-icon:hover {
    color: #333;
}

/* Update footer-content grid to accommodate social links */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.created-by {
    position: relative;
    margin-top: 1rem;
} 