/* 全局變量 */
:root {
    --primary-color: rgba(28, 44, 60, 0.9);
    --secondary-color: #4A6FA5;
    --section-bg: #f5f5f5;
    --transition: all 0.3s ease-in-out;

    --family-font: BigCaslonMedium, sans-serif;
    --family-font-secondary: NunitoSans, sans-serif;
}

/* 字體 */
@font-face {
    font-family: 'BigCaslonMedium';
    src: url('/assets/fonts/BigCaslonMedium.ttf') format('truetype');
    font-display: swap;
    /* 避免閃爍，先顯示系統字體再切換 */
    font-weight: 100 900;
    /* 可變字重範圍：100 到 900 */
    font-style: normal;
}

@font-face {
    font-family: 'NunitoSans';
    src: url('/assets/fonts/NunitoSans.ttf') format('truetype');
    font-display: swap;
    font-weight: 100 900;
    /* 支援所有粗細 */
    font-style: normal;
}

.container {
    margin: 0 auto;
    /* max-width: 1400px; */
    padding: 0 100px;
    width: 100%;
    box-sizing: border-box;
}

/* 基礎樣式 */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--family-font);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

ul {
    padding-left: 0;
    margin: 0;
}

ul li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}




/* header */
.header {
    height: 150px;
    /* background-color: var(--section-bg); */
    /* background-color: #fff; */
    position: relative;
    z-index: 1000;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    will-change: height, background-color;
}

.header.scroll {
    box-shadow: 0 0 1px 0 var(--secondary-color);
    background-color: rgba(28, 44, 60, 1);
    height: 97px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    width: 200px;
    display: flex;
    align-items: center;

}

.nav-logo svg {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: all 0.3s ease-in-out;
    fill: #fff;
}

.nav-logo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: all 0.3s ease-in-out;
}

.main-navigation ul {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 40px;
}

.main-navigation ul li>a {
    font-weight: 700;
    font-size: 17px;
    /* text-transform: uppercase; */
    display: flex;
    align-items: center;
    letter-spacing: 1px;
    color: #fff;
    transition: all 0.3s ease-in-out;
    position: relative;
}

.main-navigation ul li>a:hover {
    color: var(--secondary-color);
}

.main-navigation ul li.active>a {
    color: var(--secondary-color);
}

.main-navigation ul li.ing>a {
    color: var(--secondary-color);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    /* border-radius: 50%; */
    /* border: 2px solid var(--secondary-color); */
    /* background-color: #ffffff; */
    background-color: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    padding: 0;
    position: relative;
    z-index: 1001;
    transition: all 0.3s ease;
    border: unset;
    padding-bottom: 5px;
}

.mobile-menu-toggle .menu-icon-line {
    width: 26px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle .menu-icon-line:nth-child(1) {
    width: 26px;
}

.mobile-menu-toggle .menu-icon-line:nth-child(3) {
    width: 16px;
}

/* .mobile-menu-toggle:hover {
    background-color: var(--secondary-color);
} */

.mobile-menu-toggle:hover .menu-icon-line {
    background-color: #ffffff;
}

/* 移动端全屏菜单 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(28, 44, 60, 1);
    z-index: 9999;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    opacity: 0;
}

.mobile-menu-overlay.active {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
}

.mobile-menu-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 40px 30px 30px;
    max-width: 100%;
    transform: translateY(-20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.mobile-menu-overlay.active .mobile-menu-container {
    transform: translateY(0);
}

/* 移动端菜单头部 */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.mobile-menu-logo svg {
    fill: #ffffff;
    width: 150px;
    height: auto;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    margin-bottom: 10px;
}

.mobile-menu-close svg {
    width: 28px;
    height: 28px;
}

.mobile-menu-close:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

/* 移动端导航链接 */
.mobile-menu-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* padding-bottom: 67px; */
}

.mobile-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu-nav ul li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mobile-menu-overlay.active .mobile-menu-nav ul li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-menu-nav ul li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-menu-nav ul li:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-menu-nav ul li:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu-overlay.active .mobile-menu-nav ul li:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-menu-overlay.active .mobile-menu-nav ul li:nth-child(5) {
    transition-delay: 0.5s;
}

.mobile-menu-nav ul li a {
    display: block;
    font-size: 30px;
    font-weight: 600;
    color: #ffffff;
    font-family: var(--family-font-secondary);
    padding: 20px 0;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-align: center;
}

.mobile-menu-nav ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(10px);
}

/* 社交链接 */
.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding-bottom: 90px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mobile-menu-overlay.active .social-links {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link svg {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* 语言选择 */
.mobile-menu-lang {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s;
}

.mobile-menu-overlay.active .mobile-menu-lang {
    opacity: 1;
    transform: translateY(0);
}

.lang-link {
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--family-font-secondary);
    transition: color 0.3s ease;
}

.lang-link.active,
.lang-link:hover {
    color: var(--secondary-color);
}

.lang-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

/* 移动端菜单底部 */
.mobile-menu-footer {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.4s, transform 0.4s ease 0.4s;
}

.mobile-menu-overlay.active .mobile-menu-footer {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mobile-menu-footer-logo svg {
    fill: #ffffff;
    width: 120px;
    height: auto;
}

.mobile-menu-social {
    width: 40px;
    height: 40px;
    background-color: #000000;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.mobile-menu-social:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.mobile-menu-quicklinks {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.quicklinks-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quicklinks-col a {
    font-size: 15px;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--family-font-secondary);
    transition: all 0.3s ease;
}

.quicklinks-col a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.mobile-menu-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.mobile-menu-policy {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.mobile-menu-policy a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: var(--family-font-secondary);
    transition: color 0.3s ease;
}

.mobile-menu-policy a:hover {
    color: var(--secondary-color);
}

.mobile-menu-copyright {
    margin-top: 20px;
}

.mobile-menu-copyright p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--family-font-secondary);
    margin: 0;
}

/* 响应式 - 显示移动端菜单按钮 */
@media (max-width: 992px) {


    .nav-logo {
        width: 160px;
    }

    .main-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-nav ul li a {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-container {
        padding: 30px 20px 20px;
    }

    .mobile-menu-header {
        margin-bottom: 40px;
    }

    .mobile-menu-logo svg {
        width: 150px;
    }

    .mobile-menu-nav ul li a {
        font-size: 20px;
        padding: 15px 0;
    }

    .mobile-menu-lang {
        margin-bottom: 40px;
    }

    .mobile-menu-quicklinks {
        flex-direction: column;
        gap: 20px;
    }
}

.nav-arrow-icon {
    width: 18px;
    height: 18px;
    margin-left: 2px;
    margin-bottom: 2px;
}

.header-action ul {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-action ul li a {
    display: flex;
    align-items: center;
}

.header-action .header-language {
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 19px;
    font-family: var(--family-font-secondary);
}

/* 下拉菜單相關樣式 */
.nav-item-with-dropdown {
    position: relative;
}

.nav-link-with-arrow {
    cursor: pointer;
}

/* 遮罩層 */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 998;
    pointer-events: none;
    cursor: url('/assets/images/cursor-close.svg') 25 25, not-allowed;
}

.dropdown-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 下拉菜單容器 */
.dropdown-menu {
    position: fixed;
    top: 97px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    /* background-color: var(--section-bg); */
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    pointer-events: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;

    display: flex;
    padding: 40px 48px;
    justify-content: space-around;
}

.nav-item-with-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* 下拉菜單內容 */
.dropdown-list ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.dropdown-list ul li a {
    position: relative;
}

.dropdown-list ul li a:hover {
    transform: translateX(4px);
}

.dropdown-list ul li a::after {
    content: '';
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    transition: all 0.5s ease-in-out;
}

.dropdown-list ul li a:hover::after {
    width: 99%;
}

.dropdown-list ul li.ing a::after {
    width: 99%;
}

.dropdown-list-title {
    font-size: 16px;
    color: #1a1a1a;
    opacity: 0.8;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 500;
    display: block;
    cursor: unset;
}

.dropdown-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dropdown-img-item {
    width: 330px;
    height: 330px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.dropdown-img-item::before {
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.15);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.dropdown-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease-in-out;
}

.dropdown-img-item:hover img {
    transform: scale(1.05);
}

.dropdown-img-item h2 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #ffffff;
    font-size: 18px;
    z-index: 2;
    font-family: var(--family-font-secondary);
    font-weight: 500;
}

/* 箭頭旋轉動畫 */
.nav-item-with-dropdown.active .nav-arrow-icon {
    transform: rotate(180deg);
    transition: transform 0.3s ease-in-out;
}

/* dropdown-list 動畫 - 從上往下出現，延遲1秒 */
.dropdown-list {
    opacity: 0;
    transform: translateY(-20px);
}

.nav-item-with-dropdown.active .dropdown-list {
    animation: slideDownFadeIn 0.3s ease-out 0.2s forwards;
}

/* li 動畫 - 每個從上往下依次出現 */
.dropdown-list ul li {
    opacity: 0;
    transform: translateY(-15px);
}

.nav-item-with-dropdown.active .dropdown-list ul li:nth-child(1) {
    animation: slideDownFadeInLi 0.3s ease-out 0.3s forwards;
}

.nav-item-with-dropdown.active .dropdown-list ul li:nth-child(2) {
    animation: slideDownFadeInLi 0.3s ease-out 0.35s forwards;
}

.nav-item-with-dropdown.active .dropdown-list ul li:nth-child(3) {
    animation: slideDownFadeInLi 0.3s ease-out 0.4s forwards;
}

.nav-item-with-dropdown.active .dropdown-list ul li:nth-child(4) {
    animation: slideDownFadeInLi 0.3s ease-out 0.45s forwards;
}

.nav-item-with-dropdown.active .dropdown-list ul li:nth-child(5) {
    animation: slideDownFadeInLi 0.3s ease-out 0.5s forwards;
}

.nav-item-with-dropdown.active .dropdown-list ul li:nth-child(6) {
    animation: slideDownFadeInLi 0.3s ease-out 0.6s forwards;
}

/* 動畫關鍵幀 */
@keyframes slideDownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes slideDownFadeInLi {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

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




/* Footer */
.footer {
    background-color: rgba(28, 44, 60, 1);
    color: #1a1a1a;
    padding: 80px 0 20px;
    position: relative;
    /* border-top: 1px solid rgba(0, 0, 0, 0.08); */
}

.footer-container {
    margin: 0 auto;
    padding: 0 100px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 20px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Footer Logo Section */
.footer-col-logo {
    /* max-width: 500px; */
}

.footer-logo {
    display: inline-block;
    margin-bottom: 25px;
    transition: opacity 0.3s ease;
    width: 260px;
    margin-left: -7px;
}

.footer-logo svg path {
    fill: #fff;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo img {
    width: 160px;
    height: auto;
}

.footer-col-logo h5 {
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.footer-col-logo p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    font-family: var(--family-font-secondary);
}


/* Footer Columns */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--family-font);
    position: relative;
    padding-left: 10px;
}

.footer-title::before {
    content: '';
    position: absolute;
    left: 0px;
    top: 48%;
    transform: translateY(-50%);
    width: 2px;
    height: 50%;
    background-color: var(--secondary-color);
    z-index: 1;
}

.footer-col-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-links ul li {
    margin: 0;
}

.footer-col-links ul a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    font-family: var(--family-font-secondary);
    padding-left: 0;
    text-transform: uppercase;
}

.footer-col-links ul a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.footer-col-links ul a:hover {
    color: var(--secondary-color);
    transform: translateX(4px);
}

.footer-col-links ul a:hover::before {
    width: 100%;
}

/* Footer Contact */
.footer-col-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-col-contact ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--family-font-secondary);
    line-height: 1.6;
}

.footer-col-contact ul li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: #fff;
    opacity: 0.8;
    width: 16px;
    height: 16px;
}

.footer-col-contact ul li a {
    flex: 1;
    transition: all 0.3s ease;
    position: relative;
}

.footer-col-contact ul li a:hover {
    color: var(--secondary-color);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-copyright p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    text-align: center;
    font-family: var(--family-font-secondary);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-legal a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    font-family: var(--family-font-secondary);
}

.footer-legal a:hover {
    color: var(--secondary-color);
}

.footer-legal .separator {
    color: rgba(0, 0, 0, 0.2);
    font-size: 14px;
}

/* Language Switcher */
.footer-language {
    position: relative;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background-color: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: var(--family-font-secondary);
    color: #1a1a1a;
}

.language-switcher:hover {
    background-color: #e9ecef;
    border-color: var(--primary-color);
}

.language-switcher svg:first-child {
    color: var(--primary-color);
}

.language-text {
    font-weight: 500;
}

.language-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    width: 100%;
    z-index: 100;
    overflow: hidden;
}

.footer-language:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 10px 16px;
    color: #1a1a1a;
    font-size: 14px;
    font-family: var(--family-font-secondary);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.language-option.active {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .footer-top {
        grid-template-columns: 1.8fr 1fr 1fr;
        gap: 40px;
    }

    .footer-col-contact {
        grid-column: 1 / -1;
        margin-top: 20px;
    }

    .footer-col-contact ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .footer {
        padding: 60px 0 25px;
    }

    .footer-container {
        padding: 0 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 20px;
        padding-bottom: 40px;
    }

    .footer-col-logo {
        max-width: 100%;
    }

    .footer-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .footer-col-links ul {
        gap: 10px;
    }

    .footer-col-contact ul {
        flex-direction: column;
        gap: 15px;
    }

    .footer-col-contact ul li svg {
        width: 15px;
        height: 15px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-bottom-right {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-language {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .language-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        width: 37%;
    }

    .footer-language:hover .language-dropdown {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 50px 0 20px;
    }

    .footer-logo img {
        width: 120px;
    }

    .footer-col-logo p {
        font-size: 14px;
    }

    .footer-col-links ul a,
    .footer-col-contact ul li {
        font-size: 14px;
    }

    .footer-copyright p,
    .footer-legal a {
        font-size: 13px;
    }

    .language-switcher {
        padding: 6px 12px;
        font-size: 13px;
    }
}




.layui-layer-msg .layui-layer-content {
    font-family: var(--family-font-secondary);
}









/* scroll-to-top */
.scroll-to-top {
    position: fixed;
    bottom: 60px;
    right: 40px;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    /* border: 2px solid var(--primary-color); */
}

.scroll-to-top-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(29, 45, 94, 0.3);
}


/* 選中文字顏色 */
::selection {
    color: var(--secondary-color);
    background-color: var(--primary-color);
}



@media screen and (max-width: 1400px) {
    .container {
        padding: 0 48px;
    }
}

@media screen and (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
}


@media screen and (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    .footer-logo {
        width: 180px;
        margin-bottom: 0;
    }

    .footer-col-logo h5 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .footer-col-logo p {
        margin-bottom: 0;
    }

    .footer-top {
        gap: 30px;
        margin-bottom: 20px;
        padding-bottom: 30px;
    }

    .header {
        height: 80px;
    }

    .scroll-to-top {
        bottom: 40px;
        right: 20px;
    }

    .scroll-to-top-btn {
        width: 40px;
        height: 40px;
    }

    .scroll-to-top-btn svg {
        width: 20px;
        height: 20px;
    }
}