/* ========== 顶部横幅 ========== */
.announcement-bar {
    background-color: #c7141e;
    color: #ffffff;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1002;
}

.announcement-bar span {
    display: inline-block;
}

/* 头部容器 - 支持吸顶效果，无回弹 */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

/* 初始状态无阴影，吸顶后添加阴影（通过JS控制类名） */
.header-wrapper.sticky {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 纯净头部容器 */
.pure-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 主行：logo + 搜索 + 联系方式 */
.head-mast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px 0;
    flex-wrap: wrap;
}

/* Logo 区域 */
.logo-area {
    flex-shrink: 0;
}

.logo-area img {
    display: block;
    width: 250px;
    height: auto;
    max-width: 100%;
}

/* 搜索框区域 - 按钮在输入框内部右侧 */
.search-wrapper {
    flex: 1;
    max-width: 500px;
    min-width: 200px;
}

.search-form {
    width: 100%;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 52px 12px 18px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 40px;
    background-color: #fff;
    transition: all 0.2s ease;
    font-family: inherit;
    outline: none;
}

.search-input:focus {
    border-color: #c7141e;
    box-shadow: 0 0 0 2px rgba(165, 30, 35, 0.1);
}

/* 按钮在输入框内部右侧，椭圆形红色背景 */
.search-button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #c7141e;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    transition: transform 0.2s ease, background-color 0.2s;
    flex-shrink: 0;
}

.search-button:hover {
    transform: translateY(-50%) scale(1.05);
    background-color: #8a191d;
}

/* 白色放大镜 SVG */
.search-icon {
    width: 18px;
    height: 18px;
    display: block;
    stroke: #ffffff;
    stroke-width: 2;
    fill: none;
}

/* 右侧联系方式：信封黑色，电话邮箱间距缩小（桌面端显示，无超链接） */
.contact-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.envelope-svg {
    width: 22px;
    height: 22px;
    display: block;
    stroke: #000000;
    stroke-width: 1.5;
    fill: none;
}

.contact-text-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.contact-phone,
.contact-email {
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    color: #232323;
}

.contact-email {
    font-size: 13px;
    color: #555;
}

/* 手机端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    z-index: 1001;
}

.hamburger-icon {
    width: 28px;
    height: 28px;
    display: block;
    stroke: #c7141e;
    stroke-width: 2;
    fill: none;
}

/* ========== 导航菜单样式 (桌面端) ========== */
.nav-main {
    background-color: #c7141e;
}

.navigation-wrapper {
    position: relative;
}

.nav-links {
    display: flex;
    gap: 32px;
    padding: 14px 0;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-item>a {
    color: white;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    padding: 6px 0;
    transition: opacity 0.2s;
}

.nav-item>a:hover {
    opacity: 0.85;
}
.has-dropdown{
    cursor: pointer;
}
/* 二级菜单 (dropdown) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 100;
    border: 1px solid #eee;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #232323;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
    background-color: #f8f8f8;
    color: #c7141e;
}

/* .has-dropdown>a::after {
    content: " ▼";
    font-size: 10px;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
} */

.icon-down:before {
    content: " ▼";
    font-size: 10px;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
}

/* ========== 手机端侧滑菜单 ========== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: #ffffff;
    z-index: 2001;
    transition: left 0.3s ease;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-drawer.active {
    left: 0;
}

/* 手机端菜单头部 - 白色背景，无红色 */
.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eaeaea;
    background-color: #ffffff;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.close-icon {
    width: 24px;
    height: 24px;
    stroke: #232323;
    stroke-width: 2;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-item>a {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: #232323;
    font-weight: 500;
    font-size: 16px;
}

.mobile-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    font-weight: 500;
    font-size: 16px;
    color: #232323;
    background-color: #fff;
}

.mobile-dropdown-toggle .arrow {
    transition: transform 0.2s;
    font-size: 12px;
    color: #666;
}

.mobile-dropdown-toggle.active .arrow {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    background-color: #f9f9f9;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-submenu.active {
    max-height: 500px;
}

.mobile-submenu li a {
    display: block;
    padding: 12px 20px 12px 40px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    border-top: 1px solid #eee;
}

.mobile-submenu li a:hover {
    background-color: #f0f0f0;
    color: #c7141e;
}

/* 手机端 Need help 区域 */
.mobile-need-help {
    border-top: 8px solid #f5f5f5;
    background-color: #ffffff;
    padding: 20px;
    margin-top: auto;
}

.mobile-need-help h4 {
    font-size: 16px;
    font-weight: 700;
    color: #232323;
    margin-bottom: 16px;
}

.mobile-help-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mobile-help-icon {
    flex-shrink: 0;
}

.mobile-help-icon svg {
    width: 20px;
    height: 20px;
    stroke: #c7141e;
    stroke-width: 1.5;
    fill: none;
}

.mobile-help-text {
    font-size: 14px;
    color: #232323;
    line-height: 1.4;
}

.mobile-help-text .phone {
    font-weight: 600;
}

.mobile-help-text .email {
    color: #555;
}

/* 响应式：手机端隐藏联系方式，显示汉堡菜单按钮，隐藏桌面端导航 */
@media (max-width: 768px) {
    .head-mast {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        row-gap: 16px;
        padding: 16px 0;
    }

    .logo-area {
        order: 1;
        flex: 0 0 auto;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 2;
        flex: 0 0 auto;
    }

    .search-wrapper {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: 8px;
    }

    /* 手机端隐藏桌面端联系方式 */
    .contact-info {
        display: none;
    }

    /* 桌面端导航隐藏 */
    .nav-main {
        display: none;
    }

    .announcement-bar {
        font-size: 12px;
        padding: 10px 16px;
    }

    .logo-area img {
        width: 180px;
    }

    .search-input {
        padding: 10px 48px 10px 16px;
        font-size: 14px;
    }

    .search-button {
        padding: 6px 14px;
        right: 4px;
    }

    .search-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .logo-area img {
        width: 180px;
    }

    .search-input {
        font-size: 13px;
        padding: 9px 44px 9px 14px;
    }

    .search-button {
        padding: 5px 12px;
    }

    .announcement-bar {
        font-size: 11px;
        padding: 8px 12px;
    }

    .hamburger-icon {
        width: 24px;
        height: 24px;
    }
}