/* 新增展示组件样式 */

/* 卡片翻转特效 */
.flip-card-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.flip-card {
    background-color: transparent;
    width: 250px;
    height: 350px;
    perspective: 1000px; /* 提供3D空间 */
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
}

.flip-card-front {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.8), rgba(63, 55, 201, 0.8));
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.flip-card-front i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.flip-card-back {
    background: var(--glass-bg);
    color: var(--text-primary);
    transform: rotateY(180deg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.flip-card-back h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

/* 霓虹按钮 */
.neon-btn-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 0;
    flex-wrap: wrap;
    background: #0a0a0a;
    border-radius: 16px;
    margin-top: 1rem;
}

.neon-btn {
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    color: #03e9f4;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    overflow: hidden;
    transition: 0.5s;
    background: transparent;
    border: none;
    cursor: pointer;
}

.neon-btn:hover {
    background: #03e9f4;
    color: #050801;
    box-shadow: 0 0 5px #03e9f4, 0 0 25px #03e9f4, 0 0 50px #03e9f4, 0 0 100px #03e9f4;
}

.neon-btn.pink {
    color: #ff00c1;
}
.neon-btn.pink:hover {
    background: #ff00c1;
    color: #050801;
    box-shadow: 0 0 5px #ff00c1, 0 0 25px #ff00c1, 0 0 50px #ff00c1, 0 0 100px #ff00c1;
}

/* 炫酷画廊 */
.gallery-container {
    display: flex;
    gap: 1rem;
    height: 400px;
    margin-top: 2rem;
}

.gallery-item {
    flex: 1;
    border-radius: 1rem;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: flex 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item:nth-child(1) { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=600&q=80'); }
.gallery-item:nth-child(2) { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?auto=format&fit=crop&w=600&q=80'); }
.gallery-item:nth-child(3) { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?auto=format&fit=crop&w=600&q=80'); }
.gallery-item:nth-child(4) { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1504639725590-34d0984388bd?auto=format&fit=crop&w=600&q=80'); }

.gallery-item h3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 1.5rem;
    white-space: nowrap;
}

.gallery-item:hover {
    flex: 3;
}

.gallery-item:hover h3 {
    opacity: 1;
    transition-delay: 0.2s;
}

/* 玻璃态时间卡片 (JS页面) */
.clock-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.glass-clock {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem 5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
}

#time-display {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#date-display {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* 移动端适配：避免特效组件撑出屏幕 */
@media screen and (max-width: 768px) {
    .flip-card-container {
        gap: 1.2rem;
        padding: 1.5rem 0;
    }

    .flip-card {
        width: min(100%, 280px);
        height: 320px;
    }

    .neon-btn-container {
        padding: 2rem 1rem;
        gap: 1rem;
    }

    .neon-btn {
        width: 100%;
        max-width: 280px;
        padding: 13px 16px;
        font-size: 0.95rem;
        letter-spacing: 1px;
        text-align: center;
    }

    .gallery-container {
        flex-direction: column;
        height: auto;
        min-height: 520px;
    }

    .gallery-item {
        min-height: 120px;
        flex: 1 1 120px;
    }

    .gallery-item:hover {
        flex: 1 1 170px;
    }

    .gallery-item h3 {
        opacity: 1;
        font-size: 1.1rem;
        left: 16px;
        bottom: 14px;
    }

    .clock-container {
        margin: 2rem 0;
        width: 100%;
    }

    .glass-clock {
        width: 100%;
        padding: 2rem 1rem;
    }

    #time-display {
        font-size: clamp(2.2rem, 13vw, 4rem);
        letter-spacing: 1px;
    }

    #date-display {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 420px) {
    .flip-card {
        width: 100%;
        height: 300px;
    }

    .flip-card-front,
    .flip-card-back {
        padding: 1.3rem;
    }

    .gallery-container {
        min-height: 480px;
    }
}
