@charset "utf-8";

/* CSS Document */

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .logo-container:hover {
        transform: translateY(-2px);
    }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
}

    .menu-toggle span {
        width: 25px;
        height: 3px;
        background: white;
        margin: 3px 0;
        transition: 0.3s;
        border-radius: 2px;
    }

/* Coverflow 主結構 */
.coverflow-wrapper {
    width: 100%;
/*    height: 100vh;*/
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
/*    padding-top: 80px;*/
}

.coverflow-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    position: relative;
    padding-bottom: 80px;
    outline: none;
}

.coverflow {
    width: 100%;
    height: 400px;
    position: relative;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

/* Coverflow 項目 */
.coverflow-item {
    position: absolute;
    width: 600px;
    height: 400px;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    user-select: none;
}

    .coverflow-item .cover {
        width: 100%;
        height: 100%;
        border-radius: 10px;
        box-shadow: 0 20px 20px rgba(0, 0, 0, 0.8);
        position: relative;
        overflow: hidden;
        transform-style: preserve-3d;
        background: #fff;
    }

        .coverflow-item .cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 10px;
        }

    .coverflow-item .reflection {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 10px;
        transform: scaleY(-1);
        opacity: 0.2;
        filter: blur(2px);
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 1) 100%);
        overflow: hidden;
    }

    .coverflow-item.active {
        z-index: 100;
        transform: translateX(0) translateZ(0) rotateY(0deg);
    }

        .coverflow-item.active .cover {
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
        }

/* 導航按鈕 */
.nav-button {
    position: absolute;
    /*    top: 50%;*/
    transform: translateY(-50%);
    /*    background: #4a4a4a;
    border: none;*/
    /*    color: white;*/
    border: 1px solid #666;
    background-color: #fff;
    border-radius: 100%;
    color: #666;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    /*    font-size: 24px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 200;
}

    .nav-button:hover {
        border: 1px solid #666;
        background-color: #fff;
        color: #666;
    }

    .nav-button.prev {
        left: 50px;
    }

    .nav-button.next {
        right: 50px;
    }

/* 圓點指示器 */
.dots-container {
    position: static;
    transform: none;
    display: flex;
    gap: 10px;
    z-index: 200;
    margin-bottom: 20px;
    order: 1;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4a4a4a;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .dot.active {
        background: rgba(255, 255, 255, 0.8);
        transform: scale(1.3);
    }

/* 資訊區 */
.info {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    z-index: 200;
}

    .info h2 {
        font-size: 32px;
        margin-bottom: 10px;
        opacity: 0;
        animation: fadeIn 0.6s forwards;
    }

    .info p {
        font-size: 16px;
        opacity: 0.7;
    }

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* 播放/暫停按鈕 */
.play-pause-button {
    position: static;
    transform: none;
    border: 1px solid #666;
    background-color: #fff;
    border-radius: 100%;
    color: #666;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    /*    font-size: 20px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 200;
    order: 2;
    margin-top: 10px;
}

    .play-pause-button:hover {
        border: 1px solid #666;
        background-color: #fff;
        color: #666;
    }


/* Scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 999;
}

    .scroll-to-top.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .scroll-to-top:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
    }

/* Image loading */
.image-loading {
    background: linear-gradient(45deg, #333, #555);
    position: relative;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .header {
        padding: 0 20px;
    }

    .nav-button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

        .nav-button.prev {
            left: 5px;
        }

        .nav-button.next {
            right: 5px;
        }

    .info h2 {
        font-size: 24px;
    }

    .info p {
        font-size: 14px;
    }

    .logo-text {
        font-size: 20px;
    }

    .coverflow-item {
        width: 420px;
        height: 280px;
    }

    .coverflow {
        height: 320px;
        margin-bottom: 20px;
    }

    .dots-container {
        margin-bottom: 15px;
        display:none;
    }
}

@media (max-width: 480px) {
    .coverflow-item {
        width: 250px;
        height: 166px;
    }

    .coverflow {
        height: 260px;
    }
}
