* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
}

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

/* 導航欄樣式 */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #FCFCFC;
    color: #000;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 黑色模式導航欄 */
.header.dark-mode {
    background-color: #000;
    color: #fff;
}

.header-container {
    position: sticky;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1440px;
    margin: 0 auto;
}

.logo-container {
    height: 28px;
    display: flex;
    align-items: center;
}

.logo {
    height: 28px;
    transition: opacity 0.3s ease;
}

.logo-dark {
    display: none;
    height: 28px;
    transition: opacity 0.3s ease;
}

.dark-mode .logo {
    display: none;
}

.dark-mode .logo-dark {
    display: block;
}

/* 桌面端菜單 */
.desktop-menu {
    display: flex;
}

.gap-30 {
    display: flex;
    gap: 30px;
}

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

.right-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {

    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: #F75105;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F75105;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* FAQ頁面聯絡按鈕 - 去除底線 */
.contact-button::after {
    display: none !important;
}

.contact-button:hover {
    background: #E64904 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(247, 81, 5, 0.4) !important;
}

/* 移動端菜單按鈕 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: inherit;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1001;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

/* 移動端菜單 - 滿版黑色 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    flex-direction: column;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.mobile-menu .container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
    align-items: center;
}

.mobile-menu .nav-link {
    font-size: 24px;
    text-align: center;
    padding: 10px 0;
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

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

/* 依次延遲每個導航項目的動畫 */
.mobile-menu .nav-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu .nav-link:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu .nav-link:nth-child(3) {
    transition-delay: 0.3s;
}

/* 下載APP按鈕 */
.download-app-btn {
    background: #F75105;
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 81, 5, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.download-app-btn:hover {
    background: #E64904;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 81, 5, 0.4);
}

.download-app-mobile {
    background: #F75105 !important;
    color: #fff !important;
    padding: 15px 30px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 15px rgba(247, 81, 5, 0.3) !important;
    transition: all 0.3s ease !important;
}

.download-app-mobile:hover {
    background: #E64904 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(247, 81, 5, 0.4) !important;
}

/* 響應式樣式 */
@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

    .right-navigation {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .download-app-btn {
        display: none;
    }
}