

/* 字体定义已移至 cdn_assets.html 模板 */


/* 字体定义已移至 cdn_assets.html 模板 */

/* Semibold - 用于标题、重要文字 */
@font-face {
    font-family: 'pingfangsc-light';
    src: url('/fonts/pingfangsc-light.otf') format('opentype');
    font-weight: 100;
}
@font-face {
    font-family: 'PingFang SC Semibold';
    src: url('/fonts/pingfangsc-semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Light - 用于链接、轻量文字 */
@font-face {
    font-family: 'PingFang SC Light';
    src: url('/fonts/pingfangsc-light.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* Medium - 用于正文、常规文字 */
@font-face {
    font-family: 'PingFang SC Medium';
    src: url('/fonts/pingfangsc-medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'PingFang SC Regular';
    src: url('/fonts/pingfangsc-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: min(1414px, calc(1414 / 1414 * 100vw));
    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%);
}
.mobile-dropdown-toggle{
    color: #ffffff;
}
.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: min(0.5px, calc(0.5 / 1414 * 100vw));
    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: min(8px, calc(8 / 1414 * 100vw)) 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;
}

/* 背景样式已移至 cdn_assets.html 模板 */
.nav-item:hover,
.nav-item.active {
    /* background样式在cdn_assets.html中定义 */
}

/* 下拉菜单样式 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 110%;
    transform: translateY(min(-10px, calc(-10 / 1414 * 100vw)));
    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: min(1px, calc(1 / 1414 * 100vw)) 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;
    cursor: pointer;
    padding: min(10px, calc(10 / 1414 * 100vw));
    margin-left: auto;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.1);
    border-radius: min(8px, calc(8 / 1414 * 100vw));
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle svg {
    width: min(88px, calc(88 / 1414 * 100vw));
    height: min(88px, calc(88 / 1414 * 100vw));
    display: block;
}

.mobile-menu-toggle svg path {
    stroke: #FFFFFF !important;
}

/* 移动端侧边菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: min(-280px, calc(-280 / 1414 * 100vw));
    width: min(280px, calc(280 / 1414 * 100vw));
    height: 100vh;
    background: rgba(10, 14, 39, 0.98);
    z-index: 1002;
    transition: right 0.3s ease;
    flex-direction: column;
    padding: min(20px, calc(20 / 1414 * 100vw));
    box-sizing: border-box;
}

.mobile-menu.active {
    right: 0;
    display: flex;
}

/* 移动端菜单头部 */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: min(20px, calc(20 / 1414 * 100vw));
    border-bottom: min(1px, calc(1 / 1414 * 100vw)) solid rgba(255, 255, 255, 0.1);
    margin-bottom: min(20px, calc(20 / 1414 * 100vw));
}

.mobile-menu-header .logo-section {
    margin-left: 0;
}

.mobile-menu-close {
    cursor: pointer;
    padding: min(5px, calc(5 / 1414 * 100vw));
}

.mobile-menu-close svg {
    width: min(60px, calc(60 / 1414 * 100vw));
    height: min(60px, calc(60 / 1414 * 100vw));
}

/* 移动端导航列表 */
.mobile-nav-menu {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: min(10px, calc(10 / 1414 * 100vw));
}

.mobile-nav-item,
.mobile-nav-item-wrapper > .mobile-nav-item {
    display: flex;
    align-items: center;
    padding: min(16px, calc(16 / 1414 * 100vw)) min(12px, calc(12 / 1414 * 100vw));
    font-size: 17px;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: min(8px, calc(8 / 1414 * 100vw));
    transition: all 0.3s ease;
    font-family: "PingFang SC Semibold";
    font-weight: 600;
    box-sizing: border-box;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: rgba(10, 130, 255, 0.2);
    color: #FFFFFF;
}

/* 有下拉菜单的一级菜单行布局 */
.mobile-nav-item-row {
    display: flex;
    align-items: center;
    padding: min(16px, calc(16 / 1414 * 100vw)) min(12px, calc(12 / 1414 * 100vw));
    border-radius: min(8px, calc(8 / 1414 * 100vw));
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.mobile-nav-item-wrapper.active .mobile-nav-item-row {
    background: rgba(10, 130, 255, 0.2);
}

/* 左侧文字链接 */
.mobile-nav-text {
    flex: 1;
    font-size: 17px;
    color: #FFFFFF;
    text-decoration: none;
    font-family: "PingFang SC Semibold";
    font-weight: 600;
    transition: color 0.3s ease;
}

.mobile-nav-text:hover,
.mobile-nav-text.active {
    color: #FFFFFF;
}

/* 右侧下拉控制区域 - 占35% */
.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 35%;
    flex-shrink: 0;
    cursor: pointer;
}

/* 移动端下拉菜单 */
.mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    padding-left: min(15px, calc(15 / 1414 * 100vw));
    margin-top: min(5px, calc(5 / 1414 * 100vw));
}

.mobile-nav-item-wrapper.active .mobile-dropdown-menu {
    display: flex;
}

/* 下拉箭头 */
.mobile-dropdown-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mobile-nav-item-wrapper.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-item {
    display: block;
    padding: min(14px, calc(14 / 1414 * 100vw)) min(12px, calc(12 / 1414 * 100vw));
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-dropdown-item:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
}

/* 移动端菜单底部 */
.mobile-menu-footer {
    padding-top: min(20px, calc(20 / 1414 * 100vw));
    border-top: min(1px, calc(1 / 1414 * 100vw)) solid rgba(255, 255, 255, 0.1);
    margin-top: min(20px, calc(20 / 1414 * 100vw));
}

.mobile-contact-btn {
    display: block;
    width: 100%;
    padding: min(14px, calc(14 / 1414 * 100vw));
    text-align: center;
    background: linear-gradient(135deg, #1F80FF 0%, #0A82FF 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: min(8px, calc(8 / 1414 * 100vw));
    font-size: 16px;
    font-family: "PingFang SC Semibold";
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-contact-btn:hover {
    background: linear-gradient(135deg, #0A82FF 0%, #1F80FF 100%);
    transform: translateY(-2px);
}

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

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

/* ============================================
   移动端响应式 - 小屏幕显示汉堡菜单
   ============================================ */
@media (max-width: 768px) {
    /* 隐藏桌面端导航 */
    .nav-menu,
    .search-box,
    .contact-icon {
        display: none !important;
    }

    /* 显示汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* 调整头部布局 */
    .header-content {
        padding: min(12px, calc(12 / 1414 * 100vw)) min(16px, calc(16 / 1414 * 100vw));
    }

    .logo-section {
        margin-left: 0;
        gap: min(10px, calc(10 / 1414 * 100vw));
    }

    .logo {
        width: min(86px, calc(86 / 1414 * 100vw));
        height: min(86px, calc(86 / 1414 * 100vw));
    }

    .logo-text {
        font-size: 14px;
    }

    /* 移动端菜单样式调整 */
    .mobile-menu {
        width: min(400px, calc(400 / 1414 * 100vw));
        right: min(-300px, calc(-300 / 1414 * 100vw));
    }
}

/* 更小屏幕优化 */
@media (max-width: 480px) {
    .header-content {
        padding: min(12px, calc(12 / 1414 * 100vw)) min(15px, calc(15 / 1414 * 100vw));
    }

    .mobile-menu {
        width: 75vw;
        right: -75vw;
    }

    .mobile-nav-item {
        font-size: 16px;
        padding: min(14px, calc(14 / 1414 * 100vw)) min(10px, calc(10 / 1414 * 100vw));
    }

    .mobile-dropdown-item {
        font-size: 14px;
        padding: min(12px, calc(12 / 1414 * 100vw)) min(10px, calc(10 / 1414 * 100vw));
    }

    .mobile-contact-btn {
        font-size: 15px;
    }
}
