/* ========================================
   三层导航样式 - 招标网风格
======================================== */

/* 第一层：顶部工具栏 */
.top-toolbar {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    font-size: 12px;
    color: #666;
}

.toolbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 32px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-left i {
    color: #ff6600;
    font-size: 12px;
}

.toolbar-center {
    display: flex;
    align-items: center;
    gap: 8px;
}

.welcome-text {
    color: #666;
}

.toolbar-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.toolbar-link:hover {
    color: #ff6600;
}

.toolbar-link.highlight {
    color: #ff6600;
    font-weight: 500;
}

.toolbar-separator {
    color: #ccc;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toolbar-more {
    cursor: pointer;
    color: #666;
}

.toolbar-more:hover {
    color: #ff6600;
}

/* 第二层：主导航区 */
.main-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.main-header-content {
    display: flex;
    align-items: center;
    padding: 15px 0;
    gap: 30px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    display: block;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #e60012;
}

/* 搜索区域 */
.search-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.search-controls {
    display: flex;
    align-items: center;
    gap: 0;
}

/* 分类选择 */
.region-select {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 15px;
    height: 45px;
    border: 2px solid #ff6600;
    border-right: none;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.current-region {
    color: #333;
    font-size: 14px;
}

.region-select i {
    color: #999;
    font-size: 12px;
    transition: transform 0.3s;
}

.region-select:hover {
    background: #f5f8fc;
}

.region-select:hover i {
    transform: rotate(180deg);
}

/* 分类下拉菜单 */
.region-dropdown {
    position: absolute;
    top: 100%;
    left: -2px;
    right: -2px;
    background: #fff;
    border: 2px solid #ff6600;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.region-select:hover .region-dropdown,
.region-dropdown:hover,
.region-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.region-item {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.region-item:last-child {
    border-bottom: none;
}

.region-item:hover,
.region-item.active {
    background: #fff7ed;
    color: #ff6600;
    font-weight: 500;
}

/* 搜索框 */
.search-box {
    display: flex;
    flex: 1;
}

.search-input {
    flex: 1;
    height: 45px;
    padding: 0 15px;
    border: 2px solid #ff6600;
    border-right: none;
    outline: none;
    font-size: 14px;
}

.search-input::placeholder {
    color: #ccc;
}

.search-btn {
    padding: 0 30px;
    height: 45px;
    background: #ff6600;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #e65c00;
}

.search-btn i {
    margin-right: 5px;
}

/* 分类标签 */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tag {
    color: #666;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s;
}

.category-tag:hover {
    color: #ff6600;
}

/* 右侧链接 */
.header-extra {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.extra-link {
    color: #666;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s;
}

.extra-link:hover {
    color: #ff6600;
}

/* 第三层：底部菜单栏 */
.bottom-nav {
    background: #ff6600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.bottom-nav-content {
    display: flex;
    align-items: center;
    height: 45px;
    gap: 0;
}

.bottom-nav .nav-item {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 14px 15px;
    transition: all 0.3s ease;
    border-right: 2px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.bottom-nav .nav-item:first-child {
    border-left: none;
}

.bottom-nav .nav-item:last-child {
    border-right: none;
}

.bottom-nav .nav-item:hover {
    background: rgba(0,0,0,0.1);
}

.bottom-nav .nav-item.active {
    background: transparent;
}

/* 政府链接区域 */
.gov-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 20px;
    justify-content: center;
}

.gov-links p {
    margin: 0;
    line-height: 1.5;
}

.gov-links a {
    color: #666;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.gov-links a:hover {
    color: #ff6600;
    transform: translateX(3px);
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .category-tags {
        display: none;
    }
    
    .gov-links {
        display: none;
    }
}

@media (max-width: 1024px) {
    .bottom-nav .nav-item {
        font-size: 13px;
        padding: 14px 10px;
    }
}

@media (max-width: 768px) {
    .toolbar-center,
    .toolbar-right {
        display: none;
    }
    
    .main-header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-area {
        width: 100%;
    }
    
    .gov-links {
        display: none;
    }
    
    .bottom-nav-content {
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
    }
    
    .bottom-nav .nav-item {
        flex: 0 0 50%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        padding: 12px 10px;
        font-size: 13px;
    }
}
