/* 导航组件专属样式 */
.header-wrapper {
    position: relative;
    width: 100%;
    min-height: 45vh;
    background: url("https://picsum.photos/1920/600?studio") no-repeat center center;
    background-size: cover;
}

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 200px 20px 200px;
    display: flex;
    align-items: center;
    z-index: 99;
    background-color: rgba(0, 0, 0, 0.6);
}

.logo {
    font-size: 20px;
    font-weight: 100;
    font-style: italic;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.3px;
    margin-right: auto;
}

.nav-center-container {
    display: flex;
    align-items: center;
    justify-content: right;
    flex: 1;
    margin-right: 60px;
}

.desktop-nav {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.2px;
    font-weight: 200;
    position: relative;
    transition: color 0.2s ease;
}

/* 核心：active样式增强 */
.nav-link.active {
    color: #d4b96a;
    font-weight: 400;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: #d4b96a;
}

/* 移除原有About固定下划线，改为动态active控制 */
/* .nav-item:last-child .nav-link {
    padding-bottom: 2px;
    border-bottom: 1.5px solid #d4b96a;
} */

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(0, 0, 0, 0.85);
    min-width: 125px;
    padding: 10px 0;
    display: none;
    z-index: 1000;
    border: 1px solid rgba(212, 185, 106, 0.1);
    list-style: none !important;
}

.dropdown-item {
    padding: 6px 20px;
    list-style: none !important;
}

.dropdown-link {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 13px;
    font-weight: 200;
    display: block;
    transition: color 0.2s ease;
}

.dropdown-link.active {
    color: #d4b96a;
    font-weight: 400;
    background-color: rgba(212, 185, 106, 0.1);
}

.dropdown-link:hover {
    color: #d4b96a;
}

.nav-item:hover .dropdown {
    display: block;
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: 20px;
}

.icon-btn {
    color: #d4b96a;
    font-size: 14px;
    background: transparent;
    border: 1px solid #d4b96a;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.icon-btn:hover {
    background: rgba(212, 185, 106, 0.1);
}

/* 移动端导航 */
.mobile-nav-btn {
    display: none;
    font-size: 22px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-nav-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 70px 20px 20px;
    overflow-y: auto;
}

.mobile-nav-wrapper.active {
    transform: translateX(0);
}

.mobile-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.mobile-dropdown.active {
    max-height: 300px;
}

.mobile-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* 移动端active样式适配 */
.mobile-nav .nav-link.active {
    color: #d4b96a;
    font-weight: 400;
}

.mobile-dropdown .dropdown-link.active {
    color: #d4b96a;
    font-weight: 400;
}

/* 媒体查询 */
@media (max-width: 768px) {

    .nav-center-container,
    .nav-icons {
        display: none;
    }

    .mobile-nav-btn {
        display: block;
        margin-left: auto;
    }

    .navbar {
        padding: 15px 20px;
        justify-content: space-between;
    }

    .logo {
        margin-right: 0;
        font-size: 18px;
    }

    /* 移动端active下划线适配 */
    .nav-link.active::after {
        bottom: -2px;
        height: 1px;
    }

}

@media (min-width: 769px) {

    .mobile-nav-wrapper,
    .mobile-nav-btn {
        display: none;
    }
}