﻿
/* 主 Banner 樣式 */
.hero-banner {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
}

    .hero-banner .splide__slide {
        position: relative;
        height: 700px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .hero-banner .splide__slide img {
            width: 100%;
            height: 100%;
            -o-object-fit: inherit;
            object-fit: inherit;
            : cover;
            position: absolute;
            top: 0;
            left: 0;
        }


/* 自訂箭頭樣式 */
.hero-banner .splide__arrow {
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

    .hero-banner .splide__arrow:hover {
        background: white;
        transform: scale(1.1);
    }

    .hero-banner .splide__arrow svg {
        fill: #333;
        width: 20px;
        height: 20px;
    }

/* 自訂分頁樣式 */
.hero-banner .splide__pagination {
    bottom: 30px;
}

.hero-banner .splide__pagination__page {
    background: rgba(255, 255, 255, 0.5);
    width: 12px;
    height: 12px;
    margin: 0 6px;
    transition: all 0.3s ease;
}

    .hero-banner .splide__pagination__page.is-active {
        background: white;
        transform: scale(1.3);
    }

/* 進度條 */
.splide__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.splide__progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #745148, #cfa053);
    transition: width 0.1s linear;
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 響應式設計 */

@media (max-width: 768px) {
    .hero-banner, .hero-banner .splide__slide {
        height: 300px;
    }
        .hero-banner .splide__slide img {
            width: 100%!important;
            object-fit: cover;
            background-size: cover;
        }

    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .banner-content .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .hero-banner .splide__arrow {
        width: 40px;
        height: 40px;
    }
}

.uk-tab::before {
    border-bottom: none;
}

/* Search Dropdown Styles */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 450px;
    overflow-y: auto;
    margin-top: 1px;
}

.search-dropdown-content {
    padding: 20px;
}

.search-category {
    margin-bottom: 24px;
}

    .search-category:last-child {
        margin-bottom: 10px;
    }

    .search-category h4 {
        font-size: 13px;
        font-weight: 600;
        color: #666;
        margin: 0 0 12px 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.search-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 2fr));
    gap: 8px;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    background: #f8f8f8;
}

    .search-item:hover {
        background: #f5f2ec;
        color: var(--secondary-color) !important;
        text-decoration: none;
        transform: translateX(2px);
    }

.search-item-icon {
    font-size: 18px;
    margin-right: 8px;
}

.search-item span:last-child {
    font-size: 14px;
    font-weight: 500;
}

ul.search-result-list > li {
    padding: 8px 12px;
    background: #f8f8f8;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
    ul.search-result-list > li:hover {
        background: #f5f2ec;
        color: var(--secondary-color) !important;
        text-decoration: none;
        transform: translateX(4px);
        border-color: var(--secondary-color);
    }
ul.search-result-list li:hover a {
    color: var(--secondary-color) !important;
}
ul.search-result-list a {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    width: 100%;
    font-size: 14px;
}

/* Input focus state */
.search-input:focus {
    border-color: var(--secondary-color) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(205, 158, 81, 0.1);
}

.search-input:focus + .search-dropdown {
    display: block;
}

@media (max-width: 768px) {
    .search-items {
        grid-template-columns: 1fr;
    }

    .search-dropdown {
        max-height: 300px;
    }
}

.container {
    max-width: 1920px;
    margin: 0 auto;
}

