/* 基本樣式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #111;
    color: white;
    overflow-x: hidden;
}

/* 設定主要容器 */
.container {
    position: relative;
    height: 100vh;
}

/* 背景圖片 */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: background-image 1s ease-in-out;
    opacity: 0.7;
    /* 設置背景透明度 */
}

/* 頂部導航欄 */
.navbar {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #222;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

/* 頂部導航連結 */
.navbar li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar li a:hover {
    color: #ff6600;
}

/* 主要的下拉選單 */
.navbar .dropdown {
    position: relative;
    /* 父元素設為相對定位 */
}

.navbar .dropdown-content {
    display: none;
    /* 初始隱藏 */
    position: absolute;
    top: 100%;
    /* 使其顯示在下方 */
    left: 0;
    background-color: #333;
    min-width: 200px;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.navbar .dropdown:hover .dropdown-content {
    display: block;
    /* 滑鼠懸停顯示子選單 */
}

/* 子選單中的子選項 */
.submenu-items {
    display: none;
    /* 初始隱藏子項 */
    background-color: #444;
    padding: 5px 0;
}

.submenu:hover .submenu-items {
    display: block;
    /* 滑鼠懸停顯示子項 */
}

.navbar .dropdown-content li a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    display: block;
    font-weight: 600;
}

.navbar .dropdown-content li a:hover {
    background-color: #555;
}

/* 桌面版與手機版的導航欄 */
.navbar ul {
    list-style: none;
    display: flex;
    /* 預設桌面版顯示 */
    gap: 30px;
}

/* 桌面版導航樣式 */
.navbar li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar li a:hover {
    color: #ff6600;
}

/* 漢堡選單 */
.hamburger-menu {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    /* 漢堡按鈕一直顯示 */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger-menu div {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.hamburger-menu:hover div {
    background-color: #ff6600;
}

/* 主視覺區 */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.logo {
    max-width: 50%;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.05);
}

/* 可折疊選單 */
.side-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: #222;
    transform: translateX(-250px);
    transition: transform 0.3s ease;
    overflow-y: auto;
    /* 滑動選單 */
}

.side-menu.active {
    transform: translateX(0);
}

/* 可折疊選單的頭部 */
.side-menu-header {
    display: flex;
    justify-content: space-between;
    /* 左右排列 */
    align-items: center;
    padding: 20px;
    background-color: #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 150px;
    /* 設置 header 高度 */
}

/* Logo 設置 */
.side-logo {
    width: 150px;
    /* 設定更大的 Logo */
    height: auto;
    margin-left: 20px;
    /* 左側空隙 */
}

/* 父元素 */
.parent {
    position: relative;
}

/* 關閉按鈕 */
.close-btn {
    position: absolute;
    top: 10px; /* 距離頂部 */
    right: 10px; /* 距離右側 */
    font-size: 20px;
    color: white;
    cursor: pointer;
}
/* 側邊選單 */
.side-menu ul {
    list-style: none;
    padding: 0 20px;
}

.side-menu li {
    margin: 15px 0;
}

.side-menu * {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.side-menu *:hover {
    color: #ff6600;
    cursor: pointer;
}

.side-menu .category>.submenu {
    display: none;
}

.side-menu .category>.submenu.active {
    display: block;
}

/* 底部客服與按鈕 */
.footer {
    position: absolute;
    bottom: 20px;
    right: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    padding: 10px;
    background-color: #222;
    border-radius: 8px;
}

.footer-content p {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 400;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icons a img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 6px rgba(255, 102, 0, 0.4);
}

/* 全頁版權區塊 */
.copyright-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    text-align: center;
    padding: 10px 0;
}

.copyright-bar p {
    font-size: 14px;
    color: white;
    margin: 0;
}

.copyright-bar a {
    color: #ff6600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright-bar a:hover {
    color: #fff;
}

/* 手機版的客服區塊位置調整 */
@media (max-width: 768px) {

    /* 隱藏桌面版的導航列 */
    .navbar ul {
        display: none;
    }

    /* 漢堡選單保留並調整大小 */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        gap: 7px;
        /* 增加間隔 */
    }

    .social-icons {
        gap: 10px;
    }
}
    /* 頂部導航子選單樣式 */
    .navbar li {
        position: relative;
    }

    .navbar .dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #222;
        min-width: 200px;
        display: none;
        padding: 10px;
        border-radius: 4px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .navbar li:hover .dropdown {
        display: block;
    }

    .navbar .dropdown-category {
        color: #ff6600;
        font-weight: bold;
        padding: 5px 10px;
        margin-top: 5px;
    }

    .navbar .dropdown a {
        display: block;
        padding: 5px 10px;
    }

    /* 側邊選單子類別樣式 */
    .side-menu .category-title {
        color: #ff6600;
        font-weight: bold;
        padding: 10px 0;
        margin-left: 20px;
    }

    .side-menu .subcategory {
        margin-left: 40px;
    }

