/* 吉卜力风格导航栏 */
.ghibli-nav {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8e0d5 50%, #d4c8b8 100%);
    border-bottom: 3px solid #c9b896;
    box-shadow:
        0 4px 20px rgba(139, 109, 86, 0.2),
        0 2px 8px rgba(139, 109, 86, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.ghibli-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            #8fbc8f 0%,
            #98c9a3 25%,
            #a8d5b0 50%,
            #98c9a3 75%,
            #8fbc8f 100%);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-2px);
}

.logo-img {
    height: 40px;
    width: auto;
    animation: gentle-sway 3s ease-in-out infinite;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
    border-radius: 8px;
}

@keyframes gentle-sway {

    0%,
    100% {
        transform: rotate(-3deg);
    }

    50% {
        transform: rotate(3deg);
    }
}

.logo-text {
    font-family: 'Ma Shan Zheng', 'Zhi Mang Xing', cursive;
    font-size: 1.6rem;
    font-weight: 600;
    background: linear-gradient(135deg, #5a8a64 0%, #7cb582 50%, #6a9e72 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(90, 138, 100, 0.2);
    letter-spacing: 2px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: #6b5b4f;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: #a8d5b0;
    color: #4a7c59;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 109, 86, 0.2);
}

.nav-link-primary {
    background: linear-gradient(135deg, #8fbc8f 0%, #98c9a3 100%);
    color: #fff;
    border-color: #7cb582;
}

.nav-link-primary:hover {
    background: linear-gradient(135deg, #7cb582 0%, #8fbc8f 100%);
    border-color: #6a9e72;
    color: #fff;
}

.nav-link-exit:hover {
    border-color: #d4a5a5;
    color: #b87878;
}

.nav-icon {
    font-size: 1.1rem;
}

.nav-text {
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        padding: 10px 16px;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .nav-text {
        display: none;
    }

    .nav-icon {
        font-size: 1.3rem;
    }
}
