/* 統一導航列和頁腳樣式 */
:root {
    --primary: #800080;
    --dark: #191919;
    --gray: #757575;
    --light-gray: #fafafa;
    --border: #e6e6e6;
    --white: #ffffff;
    --nav-height: 80px;
}

/* 確保內容不被固定導航列覆蓋 */
body {
    padding-top: var(--nav-height) !important;
}

/* 確保導航列在最頂層 */
nav {
    z-index: 1000 !important;
}

/* 導航列樣式 */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    height: var(--nav-height);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--primary);
}

.logo img {
    height: 40px;
    vertical-align: middle;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-links li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary);
    background: rgba(128, 0, 128, 0.1);
}

.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 12px 24px !important;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: #9932cc;
    transform: translateY(-2px);
}

/* 手機版導航 */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    gap: 4px;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

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

.mobile-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 20px;
}

.mobile-nav ul li {
    margin-bottom: 15px;
}

.mobile-nav ul li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    padding: 15px 0;
    display: block;
    border-bottom: 1px solid var(--border);
    transition: color 0.3s ease;
}

.mobile-nav ul li a:hover {
    color: var(--primary);
}

/* 頁腳樣式 */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 50px;
    vertical-align: middle;
    margin-right: 15px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-section ul li a img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 4px;
}

.contact-item {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.contact-item strong {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .nav-container {
        padding: 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }

    .logo {
        font-size: 20px;
    }

    .logo img {
        height: 35px;
    }

    footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        gap: 25px;
    }
} 