/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #111219;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Top Navigation - 簡化 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.9) 0%, 
        rgba(236, 72, 153, 0.8) 50%, 
        rgba(17, 18, 25, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-decoration: none;
}
    .logo-text img {
        width: 200px;
        padding-top: 10px;
    }
.menu-btn {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.menu-btn span {
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
    transition: all 0.2s ease;
}

.menu-btn:hover {
    transform: scale(1.05);
}

/* 簡化漢堡按鈕動畫 */
.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 簡化下拉選單 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 20px;
    width: 220px;
    background: rgba(17, 18, 25, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.menu-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.menu-item {
    margin: 0;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.menu-link:hover {
    background: rgba(139, 92, 246, 0.15);
    border-left-color: #8b5cf6;
    color: #ffffff;
}

.menu-icon {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.menu-text {
    font-size: 16px;
    font-weight: 500;
}

/* 確保主要內容不被固定導航欄遮蓋 */
main {
    padding-top: 60px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .top-nav {
        height: 55px;
        padding: 0 16px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    .logo-text img{
       width:150px;
       padding-top:10px;
    }
    .menu-btn {
        width: 28px;
        height: 28px;
    }
    
    .dropdown-menu {
        right: 16px;
        width: 200px;
    }
    
    main {
        padding-top: 55px;
    }
}

@media (max-width: 480px) {
    .dropdown-menu {
        right: 10px;
        left: 10px;
        width: auto;
    }
}
a {
    text-decoration: none;
   
}


/* Footer Styles */
footer {
    background: #111219;
    padding: 40px 20px;
    margin-top: auto;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.8;
}

    .footer-content div {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

/* 響應式調整 */
@media (max-width: 768px) {
    footer {
        padding: 30px 16px;
    }

    .footer-content {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 20px 12px;
    }

    .footer-content {
        font-size: 12px;
        line-height: 1.6;
    }
}