/* 基本樣式重置 */
* {
    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;
}

/* 漢堡選單 */
.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;
}


.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: fixed;
    bottom: 20px;
    right: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.footer-content {
    display: none;
    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.collapsed {
    display: flex;
}

.footer.active .footer-content {
    display: flex;
}

.footer.active .footer-content.collapsed {
    display: none;
}

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

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

.social-icons * 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; /* 增加間距 */
        cursor: pointer;
        transition: all 0.3s ease;
        position: absolute;
        top: 18px;
        left: 18px;
    }

    .hamburger-menu div {
        width: 30px; /* 調整寬度 */
        height: 4px; /* 調整高度 */
        background-color: white;
        transition: all 0.3s ease;
    }

    .hamburger-menu:hover div {
        background-color: #ff6600; /* 加點互動感 */
    }

    /*!* 手機版客服區塊上移 *!*/
    /*.footer {*/
    /*    bottom: 116px;*/
    /*}*/
    /* 移除手機版的導航列背景 */
    .navbar {
        background-color: transparent; /* 手機版導覽列透明 */
        box-shadow: none; /* 移除陰影 */
    }
}

ul {
    margin-left: 1rem;
}

.product-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 20px;
}

.product-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 64px;
    /*height: 100vh; !* 讓 .product-info 占滿整個螢幕高度 *!*/
    padding: 0 20px; /* 確保左右有適當的邊距，避免內容貼邊 */
}

.product {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    flex-direction: row;
    gap: 20px;

    background-color: #252525;
    padding: 20px; /* 適當縮小邊距 */
    border-radius: 15px; /* 圓角邊框 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1300px;
    margin: 20px auto; /* 確保產品區塊在容器內居中 */
}

.product-image-wrapper {
    width: 40%;
}

.product-image {
    width: 100%;
    border-radius: 10px;
}

.product-details {
    width: 60%;
}

.product-details h3 {
    font-size: 1.5em;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 10px;
}

.product-details p {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.pricing {
    margin-bottom: 20px;
}

.pricing ul {
    list-style: none;
    padding: 0;
}

.pricing li {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 5px;
}

.buy-button {
    padding: 10px 20px;
    background-color: #ff6f61;
    color: rgb(55, 55, 55);
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buy-button:hover {
    background-color: #ff4c3b;
}

/* 手機版的客服區塊位置調整 */
@media (max-width: 768px) {
    .product-info {
        margin-top: 0;
    }

    .product {
        flex-direction: column;
    }

    .product-image-wrapper {
        width: 100%;
    }

    .product-details {
        width: 100%;
    }
}
.features-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.feature-list {
    width: 30%; /* 每個列表佔據容器的30%寬度 */
    list-style-type: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 8px;
}
    /* 頂部導航子選單樣式 */
    .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;
    }

