* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 顶部导航栏样式 */
.header-nav {
    width: 100%;
    background-color: white;
    box-shadow: 1px 3px 15px 3px #ECEEF4;
    padding: 15px 0;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-nav-container {
    max-width: 1470px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-nav-container .flex-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 50%;
    gap: 20px;
}

.header-nav-container .flex-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 50%;
    gap: 30px;
}

.header-nav .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-nav .logo-img {
    height: 5vh;
    width: auto;
    display: block;
}

/* 主导航样式 */
.header-nav .nav-item {
    position: relative;
    border: 1px solid #0056D2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 2px 4px;
    width: 100px;
    height: 42px;
}

.header-nav .dropdown-nav {
    background: none;
    border: none;
    color: #25499D;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-nav .dropdown-nav-img {
    width: auto;
    height: 10px;
    display: block;
}

.header-nav .dropdown-toggle {
    background: none;
    border: none;
    color: #25499D;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-nav .dropdown-toggle-img {
    width: auto;
    height: 18px;
    display: block;
}

/* 搜索框样式 */
.header-nav .search-box {
    width: 200px;
    margin: 0;
    background: url('/wp-content/themes/my-first-theme/assets/imgs/chatpage-search.png') right 10px center no-repeat;
    background-size: 20px 20px;
}

.header-nav .search-input {
    width: 100%;
    line-height: 36px;
    padding: 2px 35px 2px 10px;
    border: 1px solid #0056D2;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background-color: transparent;
}

.header-nav .search-input:focus {
    border-color: #25499D;
}

.header-nav .search-icon {
    position: absolute;
    left: 12px;
    color: #999;
    font-size: 16px;
}

/* 功能菜单样式 */
.header-nav .feature-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-nav .feature-link {
    text-decoration: none;
    color: #333333;
    font-size: 16px;
    transition: color 0.3s ease;
}

.header-nav .feature-link:hover {
    color: #25499D;
}

.header-nav .feature-line {
    width: 2px;
    height: 20px;
    background-color: #999999;
}

/* 用户区域样式 */
.header-nav .user-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-nav .notification-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.header-nav .notification-btn img {
    width: 36px;
    height: 36px;
    display: block;
}

.header-nav .notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #ff4d4f;
    border-radius: 50%;
    display: none;
}

.header-nav .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.header-nav .user-avatar img {
    width: 36px;
    height: 36px;
    display: block;
}

/* 底部样式 */
.footer-container {
    margin-top: 20px;
    background-color: #25499D;
    padding: 40px 0;
}

.footer-box {
    max-width: 1470px;
    margin: 20px auto;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.footer-card {
    color: #fff !important;
    position: relative;
}

.footer-card-line {
    width: 2px;
    height: 140px;
    background-color: #D2E0FF;
    margin-top: 10px;
}

.footer-card img {
    width: auto;
    height: 70px;
}

.footer-card h2 {
    font-size: 16px;
    margin-top: 20px;
    font-weight: normal;
}

.footer-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-card a, .footer-card p {
    font-size: 14px;
    line-height: 23px;
    color: #fff !important;
    text-decoration: none;
    display: block;
}

.footer-card p {
    line-height: 30px;
}

.footer-three {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 19px;
}

.footer-threebox {
    padding: 10px;
    text-align: center;
}

.footer-threebox img {
    width: auto;
    height: 99px;
    display: block;
    margin-bottom: 16px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .search-box {
        margin: 0 20px;
    }
}

@media (max-width: 992px) {
    .header-nav-container {
        flex-wrap: wrap;
    }

    .search-box {
        order: 3;
        width: 100%;
        margin: 15px 0 0;
    }

    .feature-menu {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header-nav-container {
        flex-direction: column;
        align-items: stretch;
    }

    .logo,
    .feature-menu,
    .user-area {
        justify-content: center;
        margin-bottom: 10px;
    }

    .search-box {
        margin-top: 10px;
    }
}

@media (max-width: 1337px) {
    .header-nav-container {
        max-width: 1200px;
    }

    .footer-box {
        max-width: 1200px;
    }
}