:root {
    --head-height: 75px;
}



.header p {
    /* font-size: .9em; */
    color: #D3D2D2;
    margin: 1rem 0rem 1rem 1rem;
    font-size: 32px;
    letter-spacing: 0.8rem;

}

button {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

body {
    font-family: 'Libre Bodoni', serif;
    line-height: 1.6;
}

header {
    position: fixed;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: 100%;
    top: 0;
    left: 0;
    background-color: #9B9094;
    /* border-bottom: 1px solid #ccc; */
    z-index: 1000;
    height: var(--head-height);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* 添加陰影讓header更突出 */
}


header .logo{
    margin-left: 60px;
}

header .hd_right {
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 14px;
    letter-spacing: 0.6rem;
}

header .hd_right a{
    text-decoration: none; /* 移除底線 */
}

.header .hd_right nav ul{
    margin: 1.3rem 2rem 0rem 0rem;
}

.header .hd_right nav ul li ul{
    /* margin: 7px 0px 0px -20px; */
    margin-top: 7px;
    background-color: #918388;
    width: 210px;
}

.header .hd_right nav ul li ul li{
    /* margin-left: 0rem;
    justify-self: center; */
    margin: 5px;
}

.header .hd_right nav ul li ul li a{
    color:white;
}


.header .hd_right nav ul li a{
    transition: .3s;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    
}

.header .hd_right nav ul li a:hover {
    border-color: #4e5346;
    
}

@media screen and (max-width: 1200px) {
    .header .hd_right a{
        font-size: 14px;
    }

    .header .hd_right nav ul li {
        margin-left: 1.2rem;
    }
}

/* @media screen and (max-width: 1000px) {
    .header .hd_right a{
        font-size: 18px;
    }

    .header .hd_right nav ul li {
        margin-left: 1rem;
    }
} */

header .hd_right .login_btn{
    width: 120px;
    transition: .3s;
    color: #333;
    text-align: center;
    align-content: center;
    border-left: 1px solid #dcddda;
    border-right: 1px solid #dcddda;
    height: 100%;
}

header .hd_right .login_btn:hover{
    background-color: #4e5346;
    color: #fff;
}

header .hd_right .buy_btn{
    width: 120px;
    background-color: #4e5346;
    color: #fff;
    transition: .3s;
    text-align: center;
    align-content: center;
    line-height: 60px;
    height: 100%;
    content: "\f068";
    background-repeat: no-repeat;
    background-size: 1.25rem;
}

header .hd_right .buy_btn:hover {
    /* background-color: #333; */
    opacity: .7;
}

header ul {
    list-style: none; /* 移除預設的列表樣式 */
    padding: 0;
    margin: 0;
}

header ul li {
    position: relative; /* 讓子項目能相對於父項目定位 */
}

header ul li a {
    text-decoration: none; /* 移除連結的下劃線 */
    display: block; /* 將連結設為塊級元素，方便設置寬高 */
    padding: 10px;
    color: #333;
}

header ul li a:hover {
    background: #ddd; /* 滑鼠懸停效果 */
}


header .dropdown-menu {
    display: none; /* 預設隱藏子項目 */
    position: absolute; /* 絕對定位子項目 */
    top: 100%; /* 從父項目的下方顯示 */
    left: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 添加陰影 */
}

header .dropdown-menu li a {
    padding: 10px;
    color: #333;
}

header .dropdown-menu li a:hover {
    background: #ddd;
}

/* 當父項目有 active 或 hover 時顯示子項目 */
header .dropdown:hover .dropdown-menu {
    /* display: block; */

}

header h1 {
    align-content: center;
}


nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: #fff;

}

nav ul li a:hover {
    color: #666;
}

.hamburger-login-btn,
.hamburger-buy-btn,
.hamburger-btn {
    display: none;
}

/* 媒體查詢，針對手機裝置 */
@media (max-width: 1070px) {
    nav {
        display: none;
    }

    /* 顯示漢堡按鈕 */
    .hamburger-login-btn,
    .hamburger-buy-btn{
        display: block;
        margin-bottom: 15px;
    }

    .hamburger-btn {
        display: block;
        background: none;
        border: none;
        font-size: 30px;
        cursor: pointer;
    }

    .login_btn,
    .buy_btn{
        display: none;
    }

    /* 當菜單可見時，顯示菜單 */
    nav.show-menu {
        display: block;
        position: absolute;
        top: var(--head-height);
        left: 0;
        /*background-color: #4e5346;*/
        background-color: #6c6060;
        color: #fff;
        padding-bottom: 100px;
        padding-top: 65px;
        width: 100%;
        z-index: 100;
    }

    nav.show-menu ul li{
        /* padding: 5px 8%; */
        padding: 5px;
    }
    nav.show-menu small{
        color: #fff;
    }

    /* 將菜單設置為垂直排列 */
    nav ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    nav ul li {
        list-style: none;
    }

    nav ul li a {
        text-decoration: none;
        font-size: 18px;
        color: #fff;
    }

    .header .hd_right nav ul li ul {
        margin: 0px 0px 0px 5px;
        margin-top: 0px;
    }

    header .logo{
        margin-left: 10px;
    }

    header .logo{
        margin-left: 10px;
    }
}