@font-face {
    font-family: 'SOURCEHANSERIFCN-MEDIUM';
    src: url('/szfmaterial/CUSTOM/FONT/SOURCEHANSERIFCN-MEDIUM.OTF') format('opentype');
}

@font-face {
    font-family: 'SOURCEHANSERIFCN-BOLD';
    src: url('/szfmaterial/CUSTOM/FONT/SOURCEHANSERIFCN-BOLD.OTF') format('opentype');
}

@font-face {
    font-family: 'SOURCEHANSERIFCN-SEMIBOLD';
    src: url('/szfmaterial/CUSTOM/FONT/SOURCEHANSERIFCN-SEMIBOLD.OTF') format('opentype');
}

.header {
    background-image: url(/material/IMAGES/top-bg.png);
    background-repeat: no-repeat;
    background-position: center;
    height: 206px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0px 68px;
    padding-top: 30px;
}

.header-top-links {
    font-size: 18px;
    color: #000;
}

.header-top-links .active {
    color: #000;
    font-weight: 600;
}

.header-top-links .sep {
    color: #999;
    padding: 0 6px;
    font-size: 16px;
    user-select: none;
}

.header-top-links a {
    color: #333;
    text-decoration: none;
}

.header-top-links a,
.header-top-links .active {
    padding: 0 4px;
    cursor: pointer;
}

.header-top-links a:hover {
    color: #9f0303;
    text-decoration: underline;
}

/* ===== 头部主区域(logo+名称 | 导航) 水平左右分布 ===== */
.header-main {
    width: 100%;
}

.header-main-inner {
    display: flex;
    justify-content: space-between;
    padding: 0px 50px;
    align-items: center;
}

.logo img {
    width: 714px;
    height: auto;
}

.nav ul {
    display: flex;
    gap: 0;
    height: 100%;
}

.nav ul>li {
    position: relative;
    list-style: none;
}

.nav ul > li:hover > a {
    color: #9f0303;
}

/* .nav ul>li.active>a {
    color: #9f0303;
    font-weight: 700;
} */

.nav ul>li>a {
    display: flex;
    align-items: center;
    height: 70px;
    padding: 0 16px;
    font-size: 22px;
    color: #000;
    letter-spacing: 4px;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.25s;
}

.nav ul>li.has-dropdown .dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 100%;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    z-index: 200;
    padding: 6px 0;
    white-space: nowrap;
}

.dropdown a {
    display: block;
    padding: 0 24px;
    height: 34px;
    line-height: 34px;
    font-size: 0.88rem;
    color: #000;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.nav ul > li.has-dropdown:hover .dropdown,
.nav ul > li.has-dropdown.touch-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a:last-child {
  border-bottom: none;
}
.dropdown a:hover {
  background: #9f0303;
  color: #fff;
}

.menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s;
}


/* ============================================================
   RESPONSIVE — 移动端导航
   ============================================================ */
@media (max-width: 991.98px) {

    .logo img {
        width: 280px;
        height: auto;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.92);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        z-index: 300;
    }

    .nav.open {
        opacity: 1;
        visibility: visible;
    }

    .nav ul {
        flex-direction: column;
        padding: 20px 0;
        height: auto;
        text-align: center;
    }

    .nav ul>li>a {
        padding: 16px 30px;
        height: auto;
        font-size: 20px;
        justify-content: center;
        color: rgba(255, 255, 255, 0.9);
    }

    .nav ul>li+li {
        margin-left: 0;
    }

    .nav ul>li.active>a {
        color: #9f0303;
    }

    .nav ul>li.has-dropdown .dropdown {
        position: static;
        background: rgba(255, 255, 255, 0.06);
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
        padding: 0;
    }

    .nav ul>li.has-dropdown:hover .dropdown,
    .nav ul>li.has-dropdown.touch-open .dropdown {
        max-height: 300px;
        transform: none;
    }

    .dropdown a {
        padding: 0 40px;
        height: 34px;
        line-height: 34px;
        color: rgba(255, 255, 255, 0.7);
        text-align: center;
        font-size: 16px;
    }

    .dropdown a:hover {
        background: #9f0303;
        color: #fff;
    }

    .menu-toggle span {
        background: #000;
    }

    .hero {
        height: calc(60vh - 96px);
        min-height: 254px;
    }
}

@media (max-width: 767.98px) {
    .content-wrapper {
        max-width: 100%;
        padding: 0 16px;
    }

    .swiper {
        height: 300px !important;
    }

    .headerbg {
        height: 300px;
        object-fit: cover;
    }

    .logo img {
        width: 200px;
    }

    .header-main-inner {
        padding: 6px 16px;
        flex-wrap: wrap;
    }

    .header-top {
        padding: 0px 20px;
        margin-top: 0;
    }

    .header-top-links {
        font-size: 12px;
    }
}

@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }
}