/* ============================================
   主导航区 (.g-header)
   ============================================ */
.g-header {
    min-height: 80px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    z-index: 1000;
}
.g-header .g-inner {
    width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    gap: 20px;
}
/* Logo */
.g-header .w-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 48px;
}
.g-header .w-logo img {
    height: 48px;
    width: auto;
    display: block;
}
/* 主菜单 */
.g-header .w-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    height: 100%;
}
.g-header .w-nav .nav-item {
    position: relative;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #333333;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.g-header .w-nav .nav-item:hover {
    color: #f7a934;
}
.g-header .w-nav .nav-item.active {
    color: #f7a934;
    font-weight: 700;
}
.g-header .w-nav .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: #f7a934;
    border-radius: 2px 2px 0 0;
}
.g-header .w-nav .nav-item .icon-hot {
    display: inline-block;
    width: 24px;
    height: 14px;
    background: #ff4f4f;
    color: #fff;
    font-size: 9px;
    line-height: 14px;
    text-align: center;
    border-radius: 2px;
    margin-left: 4px;
    transform: translateY(-6px);
}
/* 搜索框 */
.g-header .w-search {
    flex-shrink: 0;
    position: relative;
    width: 180px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 18px;
    overflow: visible;
    transition: border-color 0.2s ease;
    background: #EEEEEE;
}
.g-header .w-search:focus-within {
    border-color: #f7a934;
}
.g-header .w-search input {
    width: 100%;
    height: 35px;
    line-height: 35px;
    border: none;
    padding: 0 38px 0 14px;
    font-size: 13px;
    color: #999999;
    background: transparent;
    border-radius: 18px;
    outline: none;
    box-sizing: border-box;
}
.g-header .w-search input::placeholder {
    color: #999999;
}
.g-header .w-search .btn-search {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.g-header .w-search .btn-search:hover img {
    opacity: 0.7;
}
.g-header .w-search .btn-search img {
    width: 18px;
    height: 18px;
    display: block;
}
/* 下载APP盒子按钮 */
.g-header .btn-app-box {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 18px;
    background: #3a3a3a;
    color: #fff;
    font-size: 14px;
    border-radius: 18px;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.g-header .btn-app-box:hover {
    background: #555;
}
.g-header .btn-app-box .btn-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    display: block;
}
