/* 全站统一 PC 头部导航（与 common/header.php 配套） */
.unified-header {
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
    position: relative;
}

.header-container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
    min-height: 70px;
    box-sizing: border-box;
}

.header-brand {
    flex-shrink: 0;
    margin-right: 40px;
}

.brand-logo {
    display: block;
    padding: 10px 0;
    transition: opacity 0.2s;
}

.brand-logo:hover {
    opacity: 0.8;
}

.brand-logo img {
    display: block;
    height: auto;
    max-height: 50px;
}

.header-nav {
    flex: 1;
    margin-right: 30px;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-size: 17px;
    color: #333;
    text-decoration: none;
    padding: 25px 20px;
    display: block;
    transition: all 0.2s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.is-active {
    color: #667eea;
    background-color: #f2f2f2;
}

.nav-menu a.is-active::after,
.nav-menu a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background-color: #667eea;
}

.header-search {
    flex-shrink: 0;
    margin-right: 30px;
}

.search-form {
    position: relative;
    width: 300px;
    margin: 0;
}

.search-input {
    width: 100%;
    height: 42px;
    padding: 0 45px 0 13px;
    border: none;
    outline: none;
    background: #f9f0da;
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
}

.search-input:focus {
    background: #fff;
    border: 1px solid #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.search-button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    height: 26px;
    width: 26px;
    cursor: pointer;
    background: #f15b42;
    border: none;
    border-radius: 3px;
    color: #f9f0da;
    font-size: 14px;
    font-weight: bold;
}

.search-button:hover {
    background: #e04a32;
}

.header-user {
    flex-shrink: 0;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-status a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.user-status a:hover {
    color: #667eea;
}

.user-name-link {
    font-weight: 500;
    color: #374151;
}

.user-separator {
    color: #d1d5db;
    font-size: 14px;
}

.mobile-user-info {
    padding: 15px;
    border-top: 1px solid #eee;
}

.mobile-user-info a {
    font-size: 14px;
    color: #667eea;
    font-weight: 500;
    text-decoration: none;
}

.mobile-inner-nav li.is-active > a,
.mobile-inner-nav a.is-active {
    color: #667eea;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .search-form {
        width: 250px;
    }
}

@media (max-width: 992px) {
    .header-brand {
        margin-right: 20px;
    }
    .nav-menu a {
        padding: 25px 15px;
        font-size: 16px;
    }
    .search-form {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .unified-header.pc {
        display: none;
    }
    .wap_nav.wap {
        display: block;
    }
}

@media (min-width: 769px) {
    .wap_nav.wap {
        display: none;
    }
    .unified-header.pc {
        display: block;
    }
}

/* 隐藏旧版静态页内嵌头部结构 */
#header.headertext,
#header.pc:not(.unified-header) {
    display: none !important;
}
