@charset "UTF-8";

/* Header 样式 */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    height: 60px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 1024px) {
    .header {
        height: 120px;
    }
}

.header-container {
    width: 100%;
    max-width: 1300px;
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 1024px) {
    .header-container {
        padding: 0;
    }
}

/* Logo */
.logo {
    position: relative;
    width: 200px;
    height: 32px;
    flex-shrink: 0;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .logo {
        width: 308px;
        height: 50px;
    }
}

.logo img {
    position: absolute;
    height: 100%;
    left: 0%;
    top: 0%;
    width: 100%;
    max-width: none;
    object-fit: cover;
}

/* 导航 */
.nav {
    display: none;
    gap: 8px;
    height: 100%;
    align-items: center;
}

@media (min-width: 1024px) {
    .nav {
        display: flex;
    }
}

.nav-item {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    flex-shrink: 0;
    transition: color 0.2s;
}

.nav-item:hover {
    color: #fe9900;
}

.nav-item.active {
    color: #fe9900;
    background: linear-gradient(to top, rgba(254, 153, 0, 0.16), rgba(255, 89, 0, 0.16));
}

.nav-item.active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-bottom: 4px solid #fe9900;
    pointer-events: none;
}

/* 搜索框 */
.search-box {
    display: none;
    background-color: #fff;
    gap: 12px;
    height: 34px;
    align-items: center;
    padding-left: 12px;
    border-radius: 4px;
    flex-shrink: 0;
    width: 210px;
    position: relative;
}

@media (min-width: 1024px) {
    .search-box {
        display: flex;
    }
}

.search-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(153, 153, 153, 0.2);
    border-radius: 4px;
    pointer-events: none;
}

.search-input {
    flex: 1;
    font-size: 13px;
    color: #333;
    background: transparent;
    border: none;
    outline: none;
}

.search-input::placeholder {
    color: #bac4ce;
}

.search-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.menu-toggle {
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 50;
    border-top: 1px solid #eee;
}

.mobile-menu.active {
    display: block;
}

.mobile-search {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.mobile-search-box {
    flex: 1;
    background-color: #f5f5f5;
    display: flex;
    gap: 8px;
    height: 36px;
    align-items: center;
    padding-left: 12px;
    border-radius: 4px;
}

.mobile-search-input {
    flex: 1;
    font-size: 13px;
    color: #333;
    background: transparent;
    border: none;
    outline: none;
}

.mobile-search-input::placeholder {
    color: #bac4ce;
}

.mobile-nav-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    background: none;
    cursor: pointer;
}

.mobile-nav-item.active {
    color: #fe9900;
    background-color: #fef7ea;
}
