@charset "UTF-8";

/* ===== Header 基礎設定 ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10vh;
    line-height: 7vh;
    z-index: 1000;
    background: rgba(243, 243, 242, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== Nav 主容器 ===== */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3vw;
    margin: 0 auto;
    width: 90%;
    max-width: 1800px;
}

.nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(243, 243, 242, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: -1;
}

/* ===== Logo ===== */
.nav__logo img {
    height: 32px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav__logo:hover img {
    transform: scale(1.05);
}

/* ===== Menu 主選單 ===== */
.nav__menu {
    display: flex;
    align-items: center;
    gap: 2.4vw;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ===== Menu 項目 ===== */
.nav__item {
    position: relative;
}

.nav__link {
    text-decoration: none;
    color: rgba(113, 113, 113, 0.9);
    font-size: 1rem;
    letter-spacing: 2px;
    transition: color 0.3s ease-in-out,
        letter-spacing 0.4s ease-in-out;
    padding: 8px 0;
    display: inline-block;
    font-weight: 400;
}

/* hover 時淡入白亮效果 */
.nav__link:hover {
    color: rgba(228, 139, 14, 0.925);
    letter-spacing: 2.4px;
}


/* ====== Mega Menu 動畫用的狀態 (Apple 下滑風格) ====== */
.mega-menu {
    position: absolute;
    z-index: 90;
    top: 64px;
    left: 0;
    width: 100%;
    transform: translateY(-10px);
    background: rgba(243, 243, 242, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    padding: 20px 8vw;
}

.mega-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(8px);
    background: rgba(243, 243, 242, 0.6);
    z-index: -1;
}

.mega-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ====== Mega Content ====== */
.mega-content {
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(8px);
}

.mega-content.is-active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* === 預設隱藏狀態 === */
.mega-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .4s ease, transform .4s ease;
}

/* === 顯示時 === */
.mega-content.is-active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* === 子項目動畫設定 === */
.mega-content.is-active .column ul li,
.mega-content.is-active .article-mega__main,
.mega-content.is-active .article-mega__side {
    opacity: 0;
    transform: translateY(15px);
    animation: itemIn 0.5s ease forwards;
}

/* 子項目的延遲（依順序淡入） */
.mega-content.is-active .column ul li:nth-child(1) {
    animation-delay: 0.1s;
}

.mega-content.is-active .column ul li:nth-child(2) {
    animation-delay: 0.2s;
}

.mega-content.is-active .column ul li:nth-child(3) {
    animation-delay: 0.3s;
}

.mega-content.is-active .column ul li:nth-child(4) {
    animation-delay: 0.4s;
}

.mega-content.is-active .column ul li:nth-child(5) {
    animation-delay: 0.4s;
}

.mega-content.is-active .article-mega__main {
    animation-delay: 0.15s;
}

.mega-content.is-active .article-mega__side {
    animation-delay: 0.3s;
}

/* === 子項目動畫關鍵幀 === */
@keyframes itemIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== Column 區塊 ====== */
.column {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.column h4 {
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
}

.column ul {
    width: 80%;
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.column li {
    width: 15%;
    font-size: 14px;
    letter-spacing: 1px;
    color: rgba(0, 0, 0, 0.8);
    transition: color 0.25s ease;
}

.column li:hover {
    color: rgb(129, 41, 41);
}

.column ul {
    display: flex;
}

.column li img {
    width: 50%;
    position: relative;
}

.eq_m {
    display: flex;
    width: 100%;
}

.eq_m h5 {
    position: relative;
    right: -30%;
    width: 100%;
    line-height: 1.6;
}

.product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.h5 {
    display: flex;
    flex-direction: column;
    position: relative;
    font-size: .8rem;
    letter-spacing: 1px;
    right: 10%;
    top: 25%;
    width: 45%;
    line-height: 1.6;
}

.h5 h5 {
    padding: 2%;
}



/* === mega-content (文章區塊) === */
#mega_article {
    display: none;
    /* 🚫 預設隱藏 */
    opacity: 0;
    /* 🚫 預設透明 */
    flex-direction: column;
    transition: opacity 0.4s ease;
    /* ✅ 加上淡入動畫 */
}

/* ✅ 顯示狀態 */
#mega_article.is-active {
    display: flex;
    opacity: 1;
}

.article-tag {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: end;
    padding: 0% 2% 2%;
}

.article-tag h5 {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 3px;
}

.article-tag div {
    content: "";
    display: block;
    /* ✅ 讓它成為區塊元素 */
    width: 77%;
    /* ✅ 給它寬度 */
    height: 0;
    /* ✅ 不需要高度，只畫底線 */
    border-bottom: 0.75px solid rgb(49, 49, 49);
}

.article-tag p {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
}

.article-mega {
    display: flex;
    justify-content: space-around;
    padding: 2%;
}

.article-mega__main {
    width: 50%;
}

.article-mega__title {
    font-size: 28px;
    letter-spacing: 2px;
    font-weight: 700;
}

.article-mega__excerpt {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 300;
    margin: 2% auto;
}

.article-mega__image {
    max-height: 185px;
    max-width: 580px;
    overflow: hidden;
    border-radius: 8px;
}

.article-mega__side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40%;
}

.article-category__list li {
    font-size: 16px;
    letter-spacing: 3px;
    font-weight: 500;
    margin: 0% auto;
    border-bottom: #9f4511 2px solid;
}

.article-category_tag {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin: 4% 0;
}

.article-category_tag h5 {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 4px;
}

.article-category_tag div {
    content: "";
    display: block;
    /* ✅ 讓它成為區塊元素 */
    width: 50%;
    margin: 0 auto;
    /* ✅ 給它寬度 */
    height: 0;
    /* ✅ 不需要高度，只畫底線 */
    border-bottom: 0.75px solid rgb(49, 49, 49);
}

.article-category_tag p {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 2px;
}

.article-mega__more {
    display: inline-block;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.article-mega__more span {
    display: inline-block;
    transform: translateX(0);
    transition: transform 0.8s ease;
    width: 85%;
}

.article-mega__more:hover span {
    transform: translateX(100%);
    /* 滑動距離 */
}




/* ====== 響應式處理 ====== */
@media (max-width: 1024px) {
    header {
        height: 56px;
    }

    .nav__menu {
        gap: 1.5rem;
    }

    .nav__link {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 0 4vw;
    }

    .nav__menu {
        display: none;
    }
}