/* ===== 字體引入 ===== */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&display=swap');

/* ===== 全域樣式 ===== */
:root {
    --primary-color: #d0650b;
    --cream: #fcfcf5;
    --brown-light: #cf9e6f;
    --beige: #edc59c;
    --cream-light: #fff1d4;
    --tan: #edc49b;
    --brown-medium: #deb184;
    --cream-yellow: #fff4d9;
    --text-dark: #3a3a3a;
    --text-light: #6a6a6a;
}

::-webkit-scrollbar {
    display: none;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Microsoft JhengHei', Arial, sans-serif;
    background-color: var(--cream);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 導覽列 ===== */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    box-shadow: none;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1001;
}

.nav-logo {
    position: relative;
    z-index: 1002;
}

.nav-logo img {
    height: 105px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 100px;
    margin-left: auto;
    font-family: 'Crimson Text', 'Microsoft JhengHei', serif;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 26px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--brown-light);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--brown-light);
    transform: translateY(-2px);
}

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

.nav-link-cta {
    background-color: var(--primary-color);
    color: white !important;
    padding: 15px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    background-color: var(--brown-light);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(208, 101, 11, 0.35);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ===== 按鈕樣式 ===== */
.btn {
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--brown-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(208, 101, 11, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(208, 101, 11, 0.2);
}

/* ===== 頁尾 ===== */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    text-align: center;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
}

/* ===== 響應式設計 ===== */

/* 平板 */
@media (max-width: 968px) {
    .nav-logo img {
        height: 85px;
    }
    
    .nav-link {
        font-size: 23px;
    }
    
    .nav-menu {
        gap: 60px;
    }
}

/* 手機 */
@media (max-width: 768px) {
    .navbar {
        position: fixed;
        background-color: rgba(255, 252, 248, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease-in-out;
    }
    
    .navbar.navbar-hidden {
        transform: translateY(-100%);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 252, 248, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        padding: 80px 40px;
        gap: 40px;
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 20px;
    }

    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .nav-logo img {
        height: 75px;
    }
    
    .nav-link {
        font-size: 18px;
    }
    
    .nav-link-cta {
        padding: 12px 35px;
    }
}
