/* 省略 */
.sheng {
    overflow: hidden;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/* 头部导航样式 - 白色圆角卡片 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    padding: 12px 5px;
    background: transparent;
}

.header-inner {
    width: 70%;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    min-height: 65px;
}

/* Logo区域 */
.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo a {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 50px;
    vertical-align: middle;
}

/* 导航菜单 */
.header-nav {
    flex: 1;
    padding: 0 20px;
}

.header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    justify-content: center;
}

.header-nav li {
    position: relative;
}

.header-nav li a {
    display: block;
    color: #333333;
    text-decoration: none;
    font-size: 18px;
    font-weight: normal;
    padding: 5px 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-nav li a:hover {
    color: #388fec;
}

.header-nav li.active a {
    color: #388fec;
}

/* 导航下拉菜单 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 8px 0;
    z-index: 200;
    margin-top: 5px;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.nav-dropdown .dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.nav-dropdown .dropdown-menu a:last-child {
    border-bottom: none;
}

.nav-dropdown .dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #388fec;
}

/* 右侧电话和二维码 */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('/images/icon/dh.png') no-repeat center center;
    background-size: contain;
}

.phone-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.phone-label {
    font-size: 11px;
    color: #666666;
}

.phone-number {
    font-size: 16px;
    font-weight: bold;
    color: #388fec;
}

.header-qrcode {
    width: 50px;
    height: 50px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.header-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qrcode-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #999999;
    font-size: 11px;
}

/* 通用容器宽度类，与导航条宽度一致 */
.container-width {
    width: 70%;
    margin: 0 auto;
}

/* 二级类目列表样式 */
.erji-nav {
    display: flex;
    justify-content: flex-start;
}

.erji-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.erji-nav li {
    margin: 0 10px;
}

.erji-nav li a {
    display: inline-block;
    padding: 8px 20px;
    border: 2px solid #d0d0d0;
    border-radius: 0;
    text-decoration: none;
    font-size: 14px;
    background-color: #ffffff;
    color: #666666;
    font-weight: normal;
    transition: all 0.3s ease;
}

.erji-nav li a.active {
    border-color: #d00000;
    background-color: #d00000;
    color: #ffffff;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .header-inner {
        width: 95%;
        padding: 10px 20px;
    }

    .header-nav {
        padding: 0 10px;
    }

    .header-nav ul {
        gap: 12px;
    }

    .header-nav li a {
        font-size: 13px;
    }

    .phone-number {
        font-size: 14px;
    }

    .header-qrcode {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }

    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 15px;
    }

    .header-logo img {
        height: 40px;
    }

    .header-nav {
        order: 3;
        width: 100%;
        padding: 10px 0 0 0;
    }

    .header-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .header-nav li a {
        font-size: 12px;
        padding: 5px 8px;
    }

    .header-right {
        gap: 10px;
    }

    .phone-number {
        font-size: 13px;
    }

    .header-qrcode {
        width: 40px;
        height: 40px;
    }
}