:root {
    --header-bg: #18181B;
    --nav-bottom-bg: #27272A;
    --border-color: #333333;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --primary-blue: #228BE6;
    --shop-green: #40C057;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 顶部导航 */
.nav-top {
    height: 60px;
    background: #FFFFFF;
    border-bottom: 2px solid #c29553;
}

.nav-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 左侧区域 */
.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.logo {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.version-tag {
    color: #10B981;
    font-weight: 600;
}

.home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: #F8F9FA;
    border: 1px solid #F8F9FA;
    color: #c29553;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.home-btn:hover {
    background: #F3F4F6;
}

/* 右侧按钮组 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.create-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #c29553;
    color: #F8F9FA;
    border: none;
    padding: 8px 12px;
    min-width: 100px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(34, 139, 230, 0.1);
}

.create-btn:hover {
    background: #c29553;
    box-shadow: 0 4px 8px rgba(34, 139, 230, 0.2);
    transform: translateY(-1px);
}

.create-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(34, 139, 230, 0.1);
}

.create-btn .fa-chevron-down {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 12px;
}

.action-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #666666;
    border-radius: 6px;
    cursor: pointer;
}

.action-btn:hover {
    background: #F3F4F6;
    color: #333333;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #FA5252;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
    min-width: 18px;
    text-align: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.energy {
    color: #333333;
    font-size: 14px;
}

/* 底部导航容器 */
.nav-bottom {
    position: relative;
    background: #FFFFFF;
    border-top: 2px solid;
    border-image: linear-gradient(to right, #BF8F3C, #D4A14F, #BF8F3C) 1;
    height: 48px;
}

.nav-bottom .nav-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    transition: gap 0.3s ease;
}

/* 导航链接样式优化 */
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 36px;
    margin: 0 2px;
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 6px;
    background: transparent;
}

.nav-link i {
    font-size: 16px;
}

/* 新的悬停和激活效果 */
.nav-link:hover {
    color: #333333;
    background: #F8F9FA;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-link.active {
    color: #333333;
    background: #F8F9FA;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-link.shop {
    color: #40C057;
}

.nav-link.shop:hover {
    color: #37b24d;
}

/* 响应式调整 */
@media (max-width: 1920px) {
    .nav-container,
    .nav-bottom .nav-container {
        padding: 0 24px;
    }
}

@media (max-width: 1400px) {
    .nav-link {
        padding: 0 14px;
        font-size: 13px;
    }
    
    .bottom-links {
        gap: 6px;
    }
}

@media (max-width: 1200px) {
    .nav-container,
    .nav-bottom .nav-container {
        padding: 0 16px;
    }
    
    .nav-link {
        padding: 0 12px;
    }
    
    .bottom-links {
        gap: 4px;
    }
}

@media (max-width: 768px) {
    .nav-container,
    .nav-bottom .nav-container {
        padding: 0 12px;
    }
    
    .nav-link {
        padding: 0 10px;
    }
    
    .function-btn span {
        display: none;
    }
    
    .function-btn {
        padding: 6px 8px;
    }
}

/* 下拉菜单相关样式 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    width: max-content;
    min-width: 120px;
    display: none;
    z-index: 1000;
    opacity: 0;
    transform: translateX(-50%) translateY(-4px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #333333;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.15s ease;
    position: relative;
}

.dropdown-item:hover {
    background: #F8F9FA;
    color: #c29553;
}

.dropdown-item:hover i {
    color: #c29553;
}

.dropdown-item i {
    width: 14px;
    font-size: 12px;
    color: #666666;
    transition: color 0.15s ease;
}

/* 添加分隔线效果 */
.dropdown-item:not(:last-child) {
    border-bottom: 1px solid #F1F3F5;
}

/* 优化圆角 */
.dropdown-item:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.dropdown-item:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .create-btn {
        padding: 8px 10px;
        min-width: auto;
    }
    
    .create-btn span {
        display: none;
    }
    
    .dropdown-menu {
        min-width: 160px;
    }
    
    .dropdown-item {
        padding: 12px 16px;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .bottom-links {
        gap: 12px;
    }
    
    .nav-link {
        padding: 0 12px;
    }
}

/* 右功能区 */
.nav-functions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 功能按钮样式统一 */
.function-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    height: 36px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    color: #666666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.function-btn:hover {
    background: #F8F9FA;
    border-color: #D1D5DB;
    color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.function-btn:active {
    transform: translateY(0);
}

/* 图标动画 */
.function-btn .fa-chevron-down {
    transition: transform 0.2s ease;
}

.function-btn:hover .fa-chevron-down {
    transform: rotate(180deg);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 优化选择文本的颜色 */
::selection {
    background: rgba(212, 161, 79, 0.2);
    color: #333333;
}

/* 响应式调整 */
@media (max-width: 1400px) {
    .nav-link {
        height: 34px;
        border-radius: 6px;
    }
    
    .function-btn {
        height: 34px;
        border-radius: 6px;
    }
}

@media (max-width: 1200px) {
    .nav-link {
        height: 32px;
        border-radius: 6px;
    }
    
    .function-btn {
        height: 32px;
        border-radius: 6px;
    }
}

@media (max-width: 768px) {
    .nav-link {
        height: 32px;
        border-radius: 6px;
    }
    
    .function-btn {
        height: 32px;
        border-radius: 6px;
    }
}

/* 调整导航容器布局 */
.nav-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* 两端对齐 */
}

/* 左侧区域 */
.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 右侧区域 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 搜索区域容器 */
.nav-search {
    display: flex;
    align-items: center;
    flex: 0 1 800px; /* 增加最大宽度 */
    height: 36px;
    margin: 0 16px;
}

/* 响应式调整 */
@media (max-width: 800px) {
    .nav-search {
        flex: 0 1 500px;
    }
}

@media (max-width: 992px) {
    .nav-search {
        flex: 0 1 400px;
    }
}

@media (max-width: 768px) {
    .nav-search {
        flex: 0 1 300px;
        margin: 0 12px;
    }
}

@media (max-width: 576px) {
    .nav-search {
        flex: 0 1 240px;
        margin: 0 8px;
    }
}

/* 搜索包装器 */
.search-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    background: #F8F9FA;
    border: 1px solid var(--color-gray-200);
    border-radius: 6px;
    transition: var(--transition-base);
    flex: 1;
}

/* 搜索类型选择器 */
.search-select {
    width: fit-content;
    min-width: 60px;
    padding: 0 24px 0 12px;
    border: none;
    border-right: 1px solid var(--color-gray-200);
    background-color: transparent;
    color: var(--color-gray-700);
    font-size: 13px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    outline: none;
}
/* 搜索快捷键 */
.shortcut-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* 增加按钮宽度 */
    height: 100%;
    border: none;
    background: transparent;
    color: #333333;
    cursor: pointer;
    position: relative;
    z-index: 103;
    margin-left: -1px; /* 修复边框重叠 */
}
/* 搜索按钮 */
.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* 增加按钮宽度 */
    height: 100%;
    border: none;
    background: transparent;
    color: #333333;
    cursor: pointer;
    position: relative;
    z-index: 103;
    margin-left: -1px; /* 修复边框重叠 */
}

/* 搜索输入框 */
.search-input {
    flex: 1;
    height: 100%;
    padding: 0 12px;
    border: none;
    background: #FFFFFF;
    color: var(--color-gray-700);
    font-size: 13px;
    outline: none;
}

/* 搜索框占位符样式 */
.search-input::placeholder {
    color: var(--color-gray-400);
}

/* 搜索框获得焦点时的效果 */
.search-input:focus {
    background-color: #FFFFFF;
    border-color: #c29553;
    box-shadow: 0 0 0 2px rgba(212, 161, 79, 0.2);
    outline: none;
    border-radius: 6px;
}
