﻿@import url(iconfont.css);
@import url(message.css);
.subtitle {
    color: #a0a0c0;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.tab-btn {
    padding: 10px 0px;
    color: var(--color);
    cursor: pointer;
    font-size: 16px;
    min-width: 110px;
    text-align: center;
}

.tab-btn:hover {
    font-weight:bold;
}

.tab-btn.active {
    font-weight:bold;
}

.gallery-container {
    position: relative;
}

.tab-content {
    display: none;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    transition: transform 0.5s ease;
    padding:0px 80px;
}

.tab-content.active {
    display: grid;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.image-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    /*
    aspect-ratio: 1/1;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
     */
    height:300px;
    text-align: center;
}

.image-item img {
    width: 175px;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-item:hover img {
    transform: scale(1.1);
}

.image-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 0px;
    color: #000;
    font-size: 0.9rem;
    text-align: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    height:66px;
    overflow: hidden;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.2);
    color: #ff6b6b;
}

.lightbox-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.lightbox-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.caption {
    margin-top: 20px;
    color: white;
    font-size: 1.4rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: var(--color);
    transform: scale(1.3);
}

.instructions {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.instructions h3 {
    color: #ffa502;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.instructions ul {
    padding-left: 25px;
}

.instructions li {
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .tab-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .tab-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 1rem;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .tab-content {
        grid-template-columns: 1fr;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .tabs-container {
        gap: 10px;
    }

    .tab-btn {
        padding: 8px 15px;
        min-width: 100px;
    }
}