/* 紫廷书院 - 移动端菜单系统 v2.0 */

/* ========== 基础变量 ========== */
:root {
    --primary-color: #2d5a4a;
    --gold-color: #b8860b;
    --bg-color: #faf8f5;
    --text-color: #333;
}

/* ========== 桌面端（默认）========== */
.mobile-menu-btn {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* ========== 移动端（<= 991px）========== */
@media (max-width: 991px) {
    
    /* 菜单按钮 - 右上角固定 */
    .mobile-menu-btn {
        display: flex !important;
        position: fixed;
        top: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        background: #fff;
        border: 2px solid var(--primary-color);
        border-radius: 10px;
        cursor: pointer;
        z-index: 9999;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: var(--primary-color);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn:active {
        transform: scale(0.95);
        background: #f5f0e8;
    }
    
    /* 菜单 - 全屏覆盖 */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #1e3d30 0%, #2d5a4a 100%);
        z-index: 9998;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 100px 20px 40px;
        overflow-y: auto;
    }
    
    .nav-links.active {
        display: flex !important;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* 菜单项 - 大按钮风格 */
    .nav-links a {
        display: block;
        width: 85%;
        max-width: 320px;
        padding: 20px 30px;
        margin: 12px 0;
        background: rgba(255,255,255,0.15);
        border: 2px solid rgba(184,134,11,0.5);
        border-radius: 12px;
        color: #fff;
        font-size: 20px;
        font-weight: 500;
        text-align: center;
        text-decoration: none;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }
    
    .nav-links a:hover,
    .nav-links a:active {
        background: rgba(184,134,11,0.3);
        border-color: var(--gold-color);
        transform: scale(1.02);
    }
    
    .nav-links a.active {
        background: var(--gold-color);
        border-color: var(--gold-color);
    }
    
    /* 页面内容不被导航栏遮挡 */
    body {
        padding-top: 80px;
    }
}

/* ========== 小屏手机（<= 575px）========== */
@media (max-width: 575px) {
    .mobile-menu-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .nav-links a {
        font-size: 18px;
        padding: 18px 24px;
    }
}
