

/* ==================== 头部专用样式 ==================== */

/* 头部容器样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header {
    background: linear-gradient(135deg, #8d0004, #8d0004);
    background-color: #8d0004;
    color: white;
    height: 80px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    font-family: 'AlibabaPuHuiTi', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
}

.header .container {
    width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    min-height: 80px;
}

/* Logo区域 */
.logo-section {
    
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 15px;
    flex: 1;

}

.logo {

    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    height: 65px;

    width: auto;
    height: auto;
    object-fit: contain;
}

.company-info {
    flex: 1;
}

.company-name {
    font-size: 22px;
    font-weight: bold;

    color: white;
}

.company-name-en {
    font-size: 14px;
    color: rgba(255,255,255,1);
    letter-spacing: 0.04em;

}

/* 导航菜单 */
.nav-menu {
    flex: 2;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

header .nav-menu .nav-link {
    color: white !important;
    text-decoration: none !important;
    font-size: 16px ;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    display: inline-block !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

header .nav-menu .nav-link:hover,
header .nav-menu .nav-link.active {
    background: rgba(255,255,255,0.1) !important;
    color: #ffb503 !important;
}

header .nav-menu .nav-link::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 0 !important;
    height: 2px !important;
    background: #ffb503 !important;
    transition: all 0.3s ease !important;
    transform: translateX(-50%) !important;
}

header .nav-menu .nav-link:hover::after,
header .nav-menu .nav-link.active::after {
    width: 80% !important;
}

/* 导航下拉菜单样式 */
.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-46.8%);
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 50vw;
    margin-top: 19px;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
}

.dropdown-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
}

/* 左侧大图区域 */
.dropdown-left {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

/* 新的分类容器样式 */
.dropdown-category {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 分类内容区域（标题和列表） */
.category-content {
    flex: 0.3;
    display: flex;
    flex-direction: column;
}

/* 分类标题 */
.category-title {
    color: #333;
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 15px 0;
    padding: 0;
    position: relative;
    display: inline-block;

    width: 100%;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0%;
    width: 20px;
    height: 3px;
    background-color: #8d0004;
}


/* 产品列表样式 */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    flex: 1;
}

.product-list-item {
    color: #333;
    font-size: 14px;
    padding: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.product-list-item:hover {
    color: #8B0000;
}

.product-list-item:last-child {
    padding-top: 10px;
    margin-top: 5px;
}

/* 分类图片容器 */
.category-image {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 200px;
    height: 100%;
}

.dropdown-main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    margin-top: 20%;
    margin-left: -10%;
    border-radius: 8px;
    display: block;
}

/* 左侧主分类的特殊样式 */
.dropdown-left .dropdown-category {
    min-height: 400px;
}

.dropdown-left .category-image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 200px;
}

.dropdown-item-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* 右侧两个小项目 */
.dropdown-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
}

/* 右侧小分类的特殊样式 */
.dropdown-right .dropdown-category {
    min-height: 300px;
}

.dropdown-right .category-image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 150px;
}


.dropdown-arrow {
    color: #FF8C00;
    font-size: 16px;
    font-weight: bold;
    margin: 0 auto;
}

/* 联系方式 */
.contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px 15px;
    border-radius: 20px;

}

.phone-image {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.phone span {
    font-size: 16px;
    font-weight: 500;
}

/* 移动端汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:focus {
    outline: 2px solid rgba(255, 181, 3, 0.5);
    outline-offset: 3px;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 移动端菜单遮罩层 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* 头部响应式设计 */
/* 超大屏幕适配 - 使用比例单位 */
@media (min-width: 3000px) {
    .logo-image{
        width: 7vw;
    }
    .header {
        height: 100px;
    }
    
    .header-content {
        min-height: 100px;
    }
    
    /* 使用 vw 单位，根据视口宽度按比例缩放 */
    .company-name {
        font-size: clamp(22px, 1.4vw, 32px) !important;
    }
    
    .company-name-en {
        font-size: clamp(14px, 0.9vw, 20px) !important;
    }
    
    .nav-link {
        font-size: clamp(16px, 1vw, 22px) !important;
    }
    
    .category-title {
        font-size: clamp(20px, 1.3vw, 32px) !important;
    }
    
    .contact-info {
        font-size: clamp(14px, 0.9vw, 20px) !important;
    }
    .phone span{
        font-size: clamp(14px, 0.9vw, 18px) !important;
    }
}

/* 超大屏幕适配 - 2200px */
@media (min-width: 2200px) {
    .header{
        height: 90px;
    }
    .phone span{
        font-size: clamp(14px, 0.9vw, 18px) !important;
    }
    .company-name {
        font-size: clamp(24px, 1.5vw, 34px) !important;
    }
    
    .company-name-en {
        font-size: clamp(15px, 1vw, 21px) !important;
    }
    
    .nav-link {
        font-size: clamp(17px, 1.1vw, 23px) !important;
    }
    
    .category-title {
        font-size: clamp(22px, 1.4vw, 34px) !important;
    }
    
    .contact-info {
        font-size: clamp(15px, 1vw, 21px) !important;
    }
    .phone-image{
        width: 25px;
        height: 25px;
    }
}

/* 超大屏幕适配 - 2560px (2550-2799px) */
@media (min-width: 2400px) and (max-width: 2799px) {
    .logo-image{
        height: 70px;
    }
    .phone-image{
        width: 30px;
        height: 30px;
    }
    .phone span{
        font-size: clamp(14px, 0.9vw, 18px) !important;
    }
    .company-name {
        font-size: clamp(26px, 1.6vw, 30px) !important;
    }
    
    .company-name-en {
        font-size: clamp(16px, 1.1vw, 19px) !important;
    }
    
    .nav-link {
        font-size: clamp(18px, 1.2vw, 24px) !important;
    }
    
    .category-title {
        font-size: clamp(24px, 1.5vw, 30px) !important;
    }
    
    .contact-info {
        font-size: clamp(16px, 1.1vw, 22px) !important;
    }
}


@media (min-width: 2800px) {
    .phone-image{
        width: 35px;
        height: 35px;
    }
    .phone span{
        font-size: clamp(14px, 0.9vw, 18px) !important;
    }
    .company-name {
        font-size: clamp(28px, 1.7vw, 38px) !important;
    }
    
    .company-name-en {
        font-size: clamp(17px, 1.2vw, 23px) !important;
    }
    
    .nav-link {
        font-size: clamp(19px, 1.3vw, 25px) !important;
    }
    
    .category-title {
        font-size: clamp(26px, 1.6vw, 38px) !important;
    }
    
    .contact-info {
        font-size: clamp(17px, 1.2vw, 23px) !important;
    }
}

/* 超大屏幕优化 */
@media (max-width: 1830px) {
    .nav-list{
        gap: 10px;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 8px 12px;
    }
}

@media (max-width: 1700px) {
    .nav-link {
        font-size: 15px;
        padding: 7px 11px;
    }
    
    .company-name {
        font-size: 17px;
    }
    
    .company-name-en {
        font-size: 12px;
    }
}

/* 大屏幕优化 */
@media (max-width: 1550px) {
    .header .container {
        width: 85%;
    }
    
    .nav-list {
        gap: 8px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .logo-image {
        height: 55px;
    }
}




@media (max-width: 1650px) {
    .header .container {
        width: 90%;
    }
    
    .nav-list {
        gap: 8px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .dropdown-panel {
        min-width: 600px;
    }
    
    .dropdown-content {
        gap: 20px;
        padding: 20px;
    }
    
    .dropdown-right {
        gap: 15px;
    }
    
    .dropdown-main-image {
        height: 250px;
    }
    
    .dropdown-item-image {
        height: 150px;
    }
    
    .category-title {
        font-size: 18px;
    }
    
    .product-list-item {
        font-size: 13px;
    }
}

@media (max-width: 1450px) {
    .header .container {
        width: 90%;
    }
    
    .logo-image{
        height: 50px;
    }
    
    .company-name{
        font-size: 16px;
    }
    
    .company-name-en {
        font-size: 11px;
        letter-spacing: 0.00em;
    }
    
    .nav-list {
        gap: 6px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 5px 8px;
    }
    
    .dropdown-panel {
        min-width: 550px;
    }
}


@media (max-width: 1330px) {
    .contact-info{
        display: none;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 4px 7px;
    }
    
    .company-name {
        font-size: 15px;
    }
    
    .company-name-en {
        font-size: 10px;
    }
}

@media (max-width: 1200px) {
    .header .container {
        width: 95%;
    }
    
    .logo-image {
        height: 45px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 4px 6px;
    }
    
    .dropdown-panel {
        min-width: 500px;
    }
}

@media (max-width: 1130px) {
    .company-info{
        display: none;
    }
    
    .logo-section{
        flex: none;
        justify-content: left;
        min-width: 0px;
    }
    
    .nav-link {
        font-size: 11px;
        padding: 3px 5px;
    }
}

@media (max-width: 992px) {
    .header {
        height: auto;
        min-height: 60px;
    }
    
    .header .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .header-content {
        flex-wrap: nowrap;
        min-height: 60px;
        position: relative;
    }
    
    .company-info{
        display: block;
    }
    
    .logo-section{
        justify-content: left;
        flex: 1;
        min-width: auto;
        gap: 10px;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .company-name {
        font-size: 15px;
    }
    
    .company-name-en {
        font-size: 10px;
    }
    
    /* 显示汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    /* 移动端导航菜单样式 */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 60px);
        background: #8d0004;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }
    
    .nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    header .nav-menu .nav-link {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        padding: 15px 20px !important;
        font-size: 16px ;
        border-radius: 0 !important;
        color: white !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
    }
    
    header .nav-menu .nav-link::after {
        display: none !important;
    }
    
    header .nav-menu .nav-link:hover,
    header .nav-menu .nav-link.active {
        background: rgba(255,255,255,0.15) !important;
        border-left: 3px solid #ffb503 !important;
    }
    
    /* 联系方式在移动端隐藏或调整 */
    .contact-info {
        order: 2;
        margin-left: auto;
        margin-right: 10px;
    }
    
    .phone {
        padding: 5px 10px;
    }
    
    .phone span {
        font-size: 14px;
    }
    
    .phone-image {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 768px) {

    
    .company-name {
        font-size: 14px;
    }
    
    .company-name-en {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .logo-section {
        gap: 8px;
    }
    
    .company-info {
        display: none;
    }
    
    .logo-image {
        max-height: 40px;
        max-width: 70px;
    }
    
    .contact-info {
        margin-right: 5px;
    }
    
    .phone span {
        display: none;
    }
    
    .phone {
        padding: 5px;
    }
    
    .phone-image {
        width: 24px;
        height: 24px;
    }
    
    .nav-menu {
        max-width: 250px;
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .header {
        min-height: 50px;
    }
    
    .header-content {
        min-height: 50px;
    }
    
    .header .container {
        padding: 0 10px;
    }
    
    .logo-section {
        gap: 8px;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .company-name {
        font-size: 12px;
    }
    
    .company-name-en {
        font-size: 7px;
    }
    
    .mobile-menu-toggle {
        width: 26px;
        height: 20px;
    }
    
    .nav-menu {
        top: 50px;
        max-width: 260px;
        height: calc(100vh - 50px);
    }
    
    .nav-link {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .dropdown-panel {
        top: 50px;
        max-height: calc(100vh - 50px);
    }
}

@media (max-width: 768px) {
    .header {
        min-height: 55px;
    }
    
    .header-content {
        min-height: 55px;
    }
    

    
    .company-name {
        font-size: 15px;
    }
    
    .company-name-en {
        font-size: 10px;
        letter-spacing: 0.01em;
    }
    
    .mobile-menu-toggle {
        width: 28px;
        height: 22px;
    }
    
    .nav-menu {
        top: 55px;
        max-width: 280px;
        height: calc(100vh - 55px);
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    /* 移动端下拉菜单样式调整 */
    .dropdown-panel {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        min-width: auto;
        transform: none;
        margin-top: 0;
        border-radius: 0;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .dropdown-content {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .dropdown-category {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 10px;
    }
    
    .category-image {
        width: 100%;
        order: -1;
    }
    
    .category-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .product-list {
        gap: 5px;
        margin-bottom: 15px;
    }
    
    .product-list-item {
        font-size: 12px;
        padding: 3px 0;
    }
    
    .dropdown-main-image {
        height: 200px;
    }
    
    .dropdown-item-image {
        height: 120px;
    }
}

@media (max-width: 320px) {
    .header {
        min-height: 45px;
    }
    
    .header-content {
        min-height: 45px;
    }
    
    .header .container {
        padding: 0 8px;
    }
    
    .logo-section {
        gap: 6px;
    }
    
    .logo-image {
        height: 25px;
    }
    
    .company-name {
        font-size: 11px;
    }
    
    .company-name-en {
        font-size: 6px;
    }
    
    .mobile-menu-toggle {
        width: 24px;
        height: 18px;
    }
    
    .nav-menu {
        top: 45px;
        max-width: 240px;
        height: calc(100vh - 45px);
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .dropdown-panel {
        top: 45px;
        max-height: calc(100vh - 45px);
    }
    
    .dropdown-content {
        padding: 10px;
    }
    
    .dropdown-category {
        padding: 10px;
    }
    
    .category-title {
        font-size: 14px;
    }
    
    .product-list-item {
        font-size: 11px;
    }
}