/* 
 * HairTypeAI - 导航栏通用样式
 * 针对所有页面统一的导航栏样式
 */

/* 头部区域样式 */
.header {
    background-color: #FF7E33; /* 网站主题橙色背景 */
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

/* 品牌相关样式 */
.brand-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    background-color: white; /* logo背景设为白色 */
    border-radius: 6px;
    padding: 3px;
}

.logo img {
    max-height: 40px;
    width: auto;
}

/* 网站标题样式 */
.site-title {
    margin: 0 0 0 8px;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
}

.site-title a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.title-main {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.title-ai {
    color: #2d2d2d;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 导航菜单链接样式 */
.nav-link {
    color: #ffffff !important; /* 白色文字在橙色背景上 */
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #f0f0f0 !important;
    text-decoration: underline;
}

/* 登录/注册按钮样式调整 */
.auth-buttons .btn-outline {
    color: white;
    border-color: white;
    background-color: transparent;
}

.auth-buttons .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.auth-buttons .btn-primary {
    background-color: white;
    color: #FF7E33;
    border: none;
}

.auth-buttons .btn-primary:hover {
    background-color: #f0f0f0;
}

/* 汉堡菜单图标调整为白色 */
.hamburger-icon span {
    background-color: white;
}

/* 调整导航布局 */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 移动导航菜单样式 */
.mobile-nav {
    background-color: #FF7E33;
    color: white;
}

.mobile-nav-link {
    color: white !important;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: #f0f0f0 !important;
    text-decoration: underline;
}

.mobile-auth-buttons .btn-outline {
    color: white;
    border-color: white;
    background-color: transparent;
}

.mobile-auth-buttons .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-auth-buttons .btn-primary {
    background-color: white;
    color: #FF7E33;
    border: none;
}

.mobile-auth-buttons .btn-primary:hover {
    background-color: #f0f0f0;
}

.mobile-nav-close {
    color: white;
}

/* 移动导航菜单品牌样式 */
.mobile-brand-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.mobile-logo {
    margin-right: 10px;
    background-color: white; /* 移动版logo也添加白色背景 */
    border-radius: 6px;
    padding: 3px;
}

.mobile-site-title {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 26px;
    margin: 0;
    text-align: center;
}

.mobile-site-title .title-main {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-site-title .title-ai {
    color: #2d2d2d;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .logo img {
        max-height: 35px;
    }
    
    .site-title {
        font-size: 22px;
    }
    
    .header-content {
        flex-wrap: nowrap;
    }
    
    .main-nav {
        flex-grow: 1;
        margin-left: 10px;
    }
    
    .nav-list {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .logo img {
        max-height: 32px;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .logo {
        max-width: 40px;
        overflow: hidden;
        padding: 2px;
    }
    
    .main-nav {
        display: none;
    }
    
    .auth-buttons .btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .logo img {
        max-height: 30px;
    }
    
    .site-title {
        font-size: 18px;
    }
    
    .auth-buttons .btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .header {
        padding: 10px 0;
    }
} 