/* ========================================
   头部导航专用样式
   ======================================== */

/* 头部容器 - 通栏背景 */
.header {
    background: transparent;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    transition: all 0.3s ease;
}

/* 滚动后的样式 */
.header.scrolled {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 导航栏内容区 - 居中布局 */
.navbar {
    max-width: 75vw;
    width: 75%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    transition: all 0.3s ease;
}

/* 滚动后的导航栏高度 */
.header.scrolled .navbar {
    height: 68px;
}

/* Logo区域 */
.logo-section {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1px;
    text-decoration: none;
    color: white;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.header.scrolled .logo-img {
    height: 45px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 5px;
    border-left: 0px solid rgba(255, 255, 255, 0.3);
}

.logo-name {
    font-size: 20px;
    font-weight: bold;
    color: white;
    line-height: 1.2;
}

.logo-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.logo-highlight {
    color: #ffcc00;
    font-weight: 600;
}

/* 导航菜单列表 */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    justify-content: flex-end;
    flex: 1;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 20px 0;
    display: block;
    transition: all 0.3s;
    position: relative;
}

.header.scrolled .nav-menu li a {
    padding: 15px 0;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    opacity: 0.8;
    color: #ffd700;
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    height: 0;
    background: transparent;
}

/* 导航栏右侧电话 */
.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    margin-left: 30px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: all 0.3s;
}

.nav-phone:hover {
    background: rgba(255, 255, 255, 0.25);
}

.nav-phone svg {
    width: 20px;
    height: 20px;
}

.nav-phone a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.nav-phone a:hover {
    text-decoration: underline;
}

/* 移动端汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s;
}

.mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
}

.mobile-menu-toggle:hover {
    opacity: 0.7;
}

/* ========================================
   移动端响应式样式
   ======================================== */
@media (max-width: 768px) {
    .navbar {
        height: 60px;
        padding: 0 15px;
        justify-content: space-between;
    }

    .logo-img {
        height: 35px;
    }

    .logo-name {
        font-size: 16px;
    }

    .logo-desc,
    .logo-highlight {
        display: none;
    }

    .logo-text {
        padding-left: 3px;
        border-left: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        flex-direction: column;
        padding: 0;
        gap: 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu li a {
        padding: 15px 20px;
        font-size: 16px;
        display: block;
        text-align: center;
    }

    .nav-menu li a:hover,
    .nav-menu li a.active {
        background: rgba(255, 255, 255, 0.1);
        opacity: 1;
    }

    .nav-menu li a.active::after {
        display: none;
    }

    .nav-phone {
        display: none;
    }
}