:root {
    --brand:        #FD73A6;
    --brand-hover:  #E64A82;
    --brand-pale:   #FFF0F6;
    --text-main:    #1f2937;
    --border-soft:  #e5e7eb;
    --bg-input:     #f9fafb;
    --shadow-sm:    0 2px 8px rgba(0,0,0,.04);
    --shadow-md:    0 8px 30px rgba(0,0,0,.08);
    --t:            .3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family:  -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

.pc-header-wrapper, .mobile-header-wrapper { display: none; }
@media (min-width: 800px) { .pc-header-wrapper { display: block !important; } }
@media (max-width: 799px) { .mobile-header-wrapper { display: block !important; } }

@media (min-width: 800px) {
    header.container-fluid { background: #fff !important; }
    
    .pc-topbar {
        display: flex; align-items: center; justify-content: space-between;
        padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--border-soft);
        max-width: 1400px; margin: 0 auto;
    }
    .pc-logo { flex: 0 1 auto; min-width: 250px; }
    .pc-logo img { max-height: 80px; width: auto; object-fit: contain; display: block; }
    
    .pc-right-area { display: flex; align-items: center; justify-content: flex-end; gap: 30px; flex: 1; }
    .pc-right-area .imgBox { flex: 0 1 auto; max-width: 400px; }
    .pc-right-area .imgBox img { max-height: 56px; width: 100%; object-fit: contain; display: block; }
    
    .pc-search-form { flex: 0 0 360px; position: relative; }
    .pc-search-form form {
        position: relative; height: 48px !important; width: 100% !important;
        margin: 0 !important; background: var(--bg-input);
        border: 1px solid var(--border-soft); border-radius: 99px;
        transition: all var(--t); display: flex; align-items: center;
    }
    .pc-search-form form:focus-within {
        background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-pale);
    }
    .pc-search-form form .text {
        flex: 1; height: 100% !important; width: auto !important; border: none !important;
        background: transparent !important; padding: 0 40px 0 18px !important;
        font-size: 15px; font-family: var(--font-family); color: var(--text-main); outline: none;
    }
    .pc-search-form form .btn-submit {
        position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
        width: 22px !important; height: 22px !important; margin: 0 !important; padding: 0 !important;
        border: none;
        background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FD73A6'><path d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/></svg>") no-repeat center !important;
        cursor: pointer; text-indent: -9999px; transition: transform var(--t);
    }
    .pc-search-form form .btn-submit:hover { transform: translateY(-50%) scale(1.1); }

    @media (max-width: 1100px) {
        .pc-right-area .imgBox { display: none !important; }
        .pc-logo { min-width: auto; }
        .pc-right-area { justify-content: flex-end; }
    }

    .navbox {
        position: sticky; top: 0; z-index: 1000;
        background: rgba(255, 255, 255, 0.98) !important;
        border-bottom: 1px solid var(--border-soft) !important;
        transition: box-shadow var(--t); padding: 0 !important; margin: 0 !important;
    }
    .navbox.is-scrolled { box-shadow: var(--shadow-sm); }
    #myBar.navbar { background: transparent !important; border: none !important; margin: 0 !important; min-height: 60px; }
    .pc-nav-collapse { display: block !important; height: auto !important; padding: 0 !important; border: none !important; }
    
    #myNav.navbar-nav { display: flex; width: 100%; float: none !important; margin: 0 !important; padding: 0 !important; }
    #myNav > li { flex: 1; width: 1%; text-align: center; float: none; margin: 0; padding: 0; }
    
    #myNav > li > a {
        display: flex !important; 
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        font-family: var(--font-family);
        font-size: clamp(15px, 1.1vw, 17px) !important; 
        font-weight: 600 !important;
        padding: clamp(14px, 1.5vw, 18px) 0 !important; 
        text-decoration: none !important;
        background: transparent !important;
        transition: color 0.3s ease;
    }

    /* 底部下划线 */
    #myNav > li > a::before {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        bottom: 8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 0 !important;
        height: 3px !important;
        background-color: transparent !important;
        border-radius: 99px !important;
        transition: width 0.3s ease, background-color 0.3s ease !important;
    }

    #myNav > li > a:hover { color: var(--brand-hover) !important; }
    #myNav > li > a:hover::before { width: 50% !important; background-color: var(--brand-hover) !important; }

    #myNav > li.active > a { color: var(--brand) !important; }
    #myNav > li.active > a::before { width: 50% !important; background-color: var(--brand) !important; }

    /* 下拉菜单容器 */
    #myNav .dropdown-menu {
        width: 100% !important; 
        min-width: 100% !important; 
        left: 0 !important;
        top: 100% !important;
        border: 1px solid var(--border-soft) !important;
        border-radius: 0 0 12px 12px; 
        box-shadow: var(--shadow-md); 
        padding: 8px 0; 
        margin-top: 0; 
        background: #fff;
        transform: none !important;
    }
    #myNav .dropdown-menu > li { width: 100% !important; flex: none; }
    #myNav .dropdown-menu > li > a {
        font-family: var(--font-family);
        padding: 10px 0 !important; font-weight: 500; font-size: 14px;
        color: var(--text-main) !important; text-align: center;
        background: transparent !important; transition: background var(--t), color var(--t);
    }
    #myNav .dropdown-menu > li > a:hover { background: var(--brand-pale) !important; color: var(--brand-hover) !important; }
}

/* ============================================================
   移动端 (< 800px)
   ============================================================ */
@media (max-width: 799px) {
    .mobile-header { background: #fff; padding: 10px 15px; border-bottom: 1px solid var(--border-soft);  border-bottom: 1px solid #dddddd;}
    .mobile-topbar { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
    .mobile-topbar .logo { width: 100%; text-align: center; }
    .mobile-topbar .logo img { max-height: 80px; width: auto; max-width: 100%; object-fit: contain; display: inline-block; }

    .mobile-action-row {
        display: flex; justify-content: space-between; align-items: center;
        padding-top: 10px; border-top: 1px dashed #eee;
    }
    .mobile-home-btn {
        display: inline-flex; align-items: center; justify-content: center;
        padding: 6px 5px; background: #fff; color: #777; font-size: 18px; font-weight: 600;
        border-radius: 99px; text-decoration: none; transition: all 0.3s;
    }
    .mobile-home-btn:hover { background: var(--brand); color: #fff !important; }

    .mobile-topbar .hamburger-btn {
        flex: 0 0 44px; width: 44px; height: 44px;
        background: var(--brand); border: none; color: #fff;
        font-size: 20px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center; 
        cursor: pointer; box-shadow: 0 4px 10px rgba(253,115,166,0.3);
        margin-left: auto; 
    }

    .mobile-drawer {
        position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
        background: #fff; z-index: 9999; display: flex; flex-direction: column;
        transform: translateY(-100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .mobile-drawer.active { transform: translateY(0); }

    .drawer-header {
        display: flex; justify-content: space-between; align-items: center;
        padding: 10px 15px; border-bottom: 1px solid var(--border-soft); background: #fff;
    }
    .drawer-header .logo { flex: 1; min-width: 0; margin-right: 10px; }
    .drawer-header .logo img { max-height: 48px; max-width: 100%; object-fit: contain; }
    .drawer-header .close-btn { background: none; border: none; font-size: 32px; line-height: 1; color: #666; padding: 0 10px; cursor: pointer; }

    .drawer-search-box { background: #fff; padding: 0 15px 15px 15px; border-bottom: 1px solid var(--border-soft); }
    .mobile-search-trigger {
        width: 100%; height: 44px; border-radius: 22px;
        background: var(--bg-input); border: 1px solid var(--border-soft);
        display: flex; align-items: center; padding: 0 16px; gap: 10px;
        color: #9ca3af; font-size: 15px; font-family: var(--font-family); cursor: pointer;
    }

    .mobile-search-overlay {
        position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
        background: #f9fafb; z-index: 10000; display: flex; flex-direction: column; padding: 15px;
        transform: translateY(-100%); transition: transform 0.3s ease;
    }
    .mobile-search-overlay.active { transform: translateY(0); }
    .search-overlay-header { display: flex; align-items: center; width: 100%; }
    .search-overlay-form { flex: 1; position: relative; display: flex; align-items: center; }
    .search-overlay-form input {
        width: 100%; height: 46px; border-radius: 23px;
        border: 1px solid var(--brand); background: #fff;
        padding: 0 46px 0 18px; font-size: 16px; font-family: var(--font-family); outline: none;
        box-shadow: 0 0 0 3px var(--brand-pale);
    }
    .search-submit-btn {
        position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
        width: 36px; height: 36px; border: none; background: transparent;
        display: flex; align-items: center; justify-content: center; cursor: pointer;
    }
    .close-search-btn {
        background: none; border: none; font-size: 36px; line-height: 1; color: #666; cursor: pointer; 
        margin-left: 15px; padding: 0;
    }

    .drawer-content { flex: 1; overflow-y: auto; background: #fff; }
    .mobile-nav-list, .mobile-nav-list ul { list-style: none; padding: 0; margin: 0; }
    
    .mobile-nav-list > li { opacity: 0; transform: translateX(-20px); animation: slideIn 0.4s forwards; }
    @keyframes slideIn { to { opacity: 1; transform: translateX(0); } }
    .mobile-nav-list > li:nth-child(1) { animation-delay: 0.05s; }
    .mobile-nav-list > li:nth-child(2) { animation-delay: 0.1s; }
    .mobile-nav-list > li:nth-child(3) { animation-delay: 0.15s; }
    .mobile-nav-list > li:nth-child(4) { animation-delay: 0.2s; }
    .mobile-nav-list > li:nth-child(5) { animation-delay: 0.25s; }
    .mobile-nav-list > li:nth-child(6) { animation-delay: 0.3s; }
    .mobile-nav-list > li:nth-child(7) { animation-delay: 0.35s; }
    .mobile-nav-list > li:nth-child(8) { animation-delay: 0.4s; }

    .mobile-nav-list > li > a {
        display: block; padding: 16px 20px; font-size: 16px; font-family: var(--font-family); font-weight: 500;
        color: #777; border-bottom: 1px solid var(--border-soft); text-decoration: none; transition: all 0.2s;
    }
    .mobile-nav-list > li.active > a { color: var(--brand); background: var(--brand-pale); border-left: 4px solid var(--brand); }
    
    .mobile-nav-list > li.dropdown { position: relative; }
    .mobile-nav-list > li.dropdown > a { padding-right: 60px !important; }
    .mobile-expand-btn {
        position: absolute; right: 0; top: 0; width: 56px; height: 54px;
        display: flex; align-items: center; justify-content: center;
        background: transparent; border: none; cursor: pointer; z-index: 2;
    }
    .mobile-expand-btn svg { width: 18px; height: 18px; transition: transform 0.3s; color: #666; }
    .mobile-expand-btn.open svg { transform: rotate(180deg); }

    .mobile-nav-list .dropdown-menu {
        position: static !important; float: none !important; width: 100% !important;
        border: none !important; box-shadow: none !important; background: #fafafa !important;
        padding: 0 !important; margin: 0 !important; display: none;
    }
    .mobile-nav-list .dropdown-menu > li > a {
        display: block; padding: 12px 40px; font-size: 15px; font-family: var(--font-family); color: #666;
        text-decoration: none; border-bottom: 1px dashed #eee;
    }
    .mobile-nav-list .dropdown-menu > li > a:hover { color: var(--brand-hover); text-decoration: none; }
}

/* ============================================================
   移动端底部四个快捷按钮
   ============================================================ */
.phone-1 .btns { display: flex; justify-content: space-between; flex-wrap: nowrap; gap: 4px; padding: 0 8px; }
.phone-1 .imgbtnbox, .phone-1 .btns .btnsBox2 { flex: 1; min-width: 0; float: none !important; width: auto !important; margin: 0 !important; text-align: center; }
.phone-1 .imgbtnbox a, .phone-1 .btns .btnsBox2 .btn { padding: 12px 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; }
.phone-1 .imgbtnbox .btnio, .phone-1 .btns .btnsBox2 .btnio { width: 56px !important; height: 56px !important; margin: 0 auto 8px !important; display: flex; align-items: center; justify-content: center; }
.phone-1 .imgbtnbox .btnio img, .phone-1 .btns .btnsBox2 .btnio img { max-width: 100% !important; max-height: 100% !important; object-fit: contain; }
.phone-1 .btnsText, .phone-1 .btn span { font-size: 14px !important; line-height: 1.4 !important; color: #333 !important; font-weight: 500 !important; display: block !important; white-space: normal !important; word-break: break-all !important; }

/* ============================================================
   指定隐藏：搜索框、下拉角标
   ============================================================ */
.pc-search-form { display: none !important; }
.drawer-search-box { display: none !important; }
.mobile-search-overlay { display: none !important; }

/* ============================================================
   加深下拉小角标图标的颜色（仅 PC 端生效）
   ============================================================ */
@media (min-width: 800px) {
    #myNav .custom-sub-icon {
        /* 利用滤镜压暗图片：brightness(0.4) 会让颜色变深灰。数值越小越黑，可自行微调 */
        filter: brightness(0.4) !important;
        
        /* 确保大小和距离合适 */
        width: 10px !important; 
        height: 10px !important;
        margin-left: 4px !important;
        position: relative !important;
        top: 1px !important;
    }
}