
/* Semibold - 用于标题、重要文字 */
@font-face {
    font-family: 'pingfangsc-light';
    src: url('/fonts/PingFangSC-Light.woff2') format('opentype');
    font-weight: 100;
}
@font-face {
    font-family: 'PingFang SC Semibold';
    src: url('/fonts/PingFangSC-Semibold.woff2') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Light - 用于链接、轻量文字 */
@font-face {
    font-family: 'PingFang SC Light';
    src: url('/fonts/PingFangSC-Light.woff2') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* Medium - 用于正文、常规文字 */
@font-face {
    font-family: 'PingFang SC Medium';
    src: url('/fonts/PingFangSC-Medium.woff2') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'PingFang SC Regular';
    src: url('/fonts/PingFangSC-Regular.woff2') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1414px;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 100%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 0%);
}

.header-content {
    margin: 0 auto;
    padding: min(20px, calc(20 / 1414 * 100vw)) 0;
    display: flex;
    align-items: center;
    width: 100%;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: min(18px, calc(18 / 1414 * 100vw));
    margin-left: min(82px, calc(82 / 1414 * 100vw));
}

.logo {
    width: min(53px, calc(53 / 1414 * 100vw));
    height: min(53px, calc(53 / 1414 * 100vw));
}

.logo-text {
    font-family: "PingFang SC Semibold";
    font-size: min(13px, calc(13 / 1414 * 100vw));
    font-weight: 400;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* 联系我们图标 */
.contact-icon {
    width: min(28px, calc(28 / 1414 * 100vw));
    height: min(28px, calc(28 / 1414 * 100vw));
    margin-left: min(189px, calc(189 / 1414 * 100vw));
    margin-right: min(20px, calc(20 / 1414 * 100vw));
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.contact-icon:hover {
    transform: scale(1.1);
}

.contact-icon img {
    width: 100%;
    height: 100%;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(500px, calc(500 / 1414 * 100vw));
    padding: 8px 0;
}

.nav-item-wrapper {
    position: relative;
}

.nav-item {
    font-family: "PingFang SC Semibold";
    font-size: min(12px, calc(12 / 1414 * 100vw));
    font-weight: 400;
    color: rgba(255, 255, 255, 0.63);
    position: relative;
    border-radius: min(35.35px, calc(35.35 / 1414 * 100vw));
    transition: all 0.3s ease;
    display: inline-block;
    padding: min(8px, calc(8 / 1414 * 100vw)) min(16px, calc(16 / 1414 * 100vw));
    white-space: nowrap;
    text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
    background: url('/assets/design/Variant3.png') no-repeat center;
    background-size: 100% min(25px, calc(25 / 1414 * 100vw));
    /* color: var(--text-white); */
}

/* 下拉菜单样式 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 110%;
    transform: translateY(-10px);
    min-width: min(80px, calc(80 / 1414 * 100vw));
    /* background: rgba(255, 255, 255, 0.60); */
    /* 背景改成 404040 0.60 */
    background: rgba(64, 64, 64, 0.6);

    border: 1px solid #003CF1;
    border-radius: min(6px, calc(6 / 1414 * 100vw));
    padding: min(12px, calc(12 / 1414 * 100vw)) 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    font-size: min(12px, calc(12 / 1414 * 100vw));
    font-weight: 500;
    font-family: 'PingFang SC Semibold', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: rgba(255, 255, 255, 0.40);
    text-decoration: none;
    padding: min(10px, calc(10 / 1414 * 100vw)) 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.dropdown-item:hover {
    color: #FFFFFF;
}

.search-box {
    display: flex;
    align-items: center;
    gap: min(15px, calc(15 / 1414 * 100vw));
    padding: min(14px, calc(14 / 1414 * 100vw)) min(20px, calc(20 / 1414 * 100vw));
    border: min(0.74px, calc(0.74 / 1414 * 100vw)) solid rgba(255, 255, 255, 0.47);
    border-radius: min(73.64px, calc(73.64 / 1414 * 100vw));
    width: min(210px, calc(210 / 1414 * 100vw));
    height: min(14px, calc(14 / 1414 * 100vw));
    justify-content: space-between;
    margin-left: min(120px, calc(120 / 1414 * 100vw));
    margin-right: min(107px, calc(107 / 1414 * 100vw));
    flex-shrink: 0;
}

.search-text {
    font-size: min(12px, calc(12 / 1414 * 100vw));
    font-family: 'PingFang SC Semibold', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: rgba(255, 255, 255, 0.63);
}

.search-icon {
    width: min(20px, calc(20 / 1414 * 100vw));
    height: min(20px, calc(20 / 1414 * 100vw));
}

.mobile-menu-toggle {
    display: none;
}
.mobile-menu{
    display: none;
}
/* Responsive Design */
@media (max-width: 1600px) {
    /* Header adjustments */
    .header-content {
        gap: 35px;
    }

}

@media (max-width: 1400px) {
    /* Header adjustments */
    .header-content {
        gap: 30px;
    }

    .nav-menu {
        gap: 20px;
    }

    .nav-item-wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }

    .nav-item {
        padding: 6px 12px;
    }
}

@media (max-width: 1230px) {
    /* Header adjustments */
    .header-content {
        gap: 28px;
    }

    .nav-menu {
        gap: 15px;
    }

    .nav-item-wrapper {
        padding-left: 8px;
        padding-right: 8px;
    }

    .nav-item {
        padding: 6px 10px;
        font-size: min(11px, calc(11 / 1414 * 100vw));
    }

}

@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    
}
/* 响应式设计 - 小屏幕（1127px及以下）*/
@media (max-width: 1127px) {
    .search-box {
        display: none;
    }
}

/* 响应式设计 - 中等屏幕（1024px - 768px）*/
@media (max-width: 1024px) {
    .header-content {
        padding: 20px 40px;
    }
}

/* 响应式设计 - 小于993px显示移动端菜单 */
@media (max-width: 993px) {
    .header-content {
        padding: 15px 20px;
        justify-content: space-between;
    }

    .logo-section {
        margin-left: 0;
    }

    /* 隐藏桌面端元素 */
    .nav-menu,
    .search-box,
    .contact-icon {
        display: none;
    }

    /* 显示菜单按钮 */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        z-index: 1001;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 8px;
        transition: all 0.3s ease;
        pointer-events: auto;
    }

    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .mobile-menu-toggle svg {
        width: 24px;
        height: 24px;
        pointer-events: none;
    }

    /* 移动端菜单 */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, rgba(10, 10, 30, 0.98) 0%, rgba(20, 20, 50, 0.98) 100%);
        backdrop-filter: blur(20px);
        z-index: 1002;
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
        padding: 20px 0;
    }

    .mobile-menu.active {
        right: 0;
    }

    /* 移动端菜单头部 */
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-header .logo-section {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-menu-header .logo {
        width: 36px;
        height: 36px;
    }

    .mobile-menu-header .logo-text {
        font-size: 14px;
    }

    .mobile-menu-close {
        width: 32px;
        height: 32px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 6px;
        transition: all 0.3s ease;
    }

    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .mobile-menu-close svg {
        width: 20px;
        height: 20px;
    }

    /* 移动端导航菜单 */
    .mobile-nav-menu {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
    }

    .mobile-nav-item {
        display: block;
        padding: 15px 0;
        font-size: 16px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }

    .mobile-nav-item:hover,
    .mobile-nav-item.active {
        color: #ffffff;
    }

    /* 移动端下拉菜单 */
    .mobile-nav-item-wrapper {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mobile-nav-item-wrapper > .mobile-nav-item {
        border-bottom: none;
    }

    .mobile-dropdown-menu {
        padding-left: 15px;
        padding-bottom: 10px;
    }

    .mobile-dropdown-item {
        display: block;
        padding: 10px 0;
        font-size: 14px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .mobile-dropdown-item:hover {
        color: #ffffff;
    }

    /* 移动端菜单底部 */
    .mobile-menu-footer {
        padding: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-contact-btn {
        display: block;
        width: 100%;
        padding: 14px 0;
        background: linear-gradient(180deg, rgba(10, 130, 255, 0.8) 0%, rgba(19, 60, 233, 0.8) 100%);
        border-radius: 25px;
        text-align: center;
        font-size: 14px;
        font-weight: 500;
        color: #ffffff;
        text-decoration: none;
        transition: opacity 0.3s ease;
    }

    .mobile-contact-btn:hover {
        opacity: 0.8;
    }

    /* 遮罩层 */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {

}
