/*
Theme Name: jasonfood
Theme URI:
Description: 
Version: 1.1
*/
/* ==========================================================================
   设计令牌 — 严格对标 sharevdi.com 配色
   ========================================================================== */
:root {
    --sv-dark:        #020228;   /* 顶栏 / Header / Footer 深蓝黑 */
    --sv-primary:     #0F8FCA;   /* 品牌蓝：导航 / 按钮 / 分类栏 */
    --sv-hover:       #009B4C;   /* 按钮悬停绿（sharevdi 特征色） */
    --sv-text-main:   #333333;   /* 正文主色 */
    --sv-text-muted:  #666666;   /* 辅助文字 */
    --sv-text-light:  #999999;   /* 更浅文字 */
    --sv-bg-light:    #F4F7F9;   /* 浅色区块背景 */
    --sv-bg-lighter:  #F9F9F9;   /* 更浅背景 */
    --sv-border:      #f0f0f0;   /* 边框 */
    --sv-white:       #ffffff;

    /* ===== 流体排版标尺（clamp + vw，随屏宽平滑缩放，适配 4K） ===== */
    --fs-base:    clamp(14px, 0.85vw, 22px);    /* 正文基准（1920px≈16px, 3840px≈22px） */
    --fs-sm:      clamp(11px, 0.65vw, 18px);    /* 辅助小字 */
    --fs-nav:     clamp(15px, 0.95vw, 22px);    /* 导航链接 */
    --fs-card:    clamp(12px, 0.7vw, 18px);     /* 卡片标题 */
    --fs-sub:     clamp(11px, 0.6vw, 16px);     /* 卡片子项 */
    --fs-h5:      clamp(14px, 0.85vw, 20px);    /* 栏目标题 */
    --fs-h2:      clamp(22px, 2vw, 48px);       /* 区块大标题（1920px≈38px, 3840px≈48px） */

    /* 固定头部相关高度（流体） */
    --topbar-h:   clamp(28px, 2.4vw, 50px);     /* 顶栏高度 */
    --header-h:   clamp(60px, 6vw, 110px);      /* 主头高度 */
    --head-offset: calc(var(--topbar-h) + var(--header-h));

    /* 流体间距 */
    --sp-sec:     clamp(40px, 6vw, 120px);      /* 区块上下内边距 */
    --sp-sec-head:clamp(28px, 4vw, 70px);       /* 区块标题下间距 */
    --sp-container:clamp(12px, 2vw, 40px);      /* 容器左右内边距 */
}

html {
    font-size: var(--fs-base);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    padding-top: var(--head-offset); /* 流体：顶栏 + 主头 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    color: var(--sv-text-main);
    background-color: var(--sv-white);
    line-height: 1.6;
    font-size: var(--fs-base);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease;
}

.container {
    max-width: clamp(1100px, 88vw, 1680px);
    margin: 0 auto;
    padding: 0 var(--sp-container);
}

/* ==========================================================================
   顶部栏 (Top Bar) — 深蓝黑底白字
   ========================================================================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--sv-dark);
    color: #cccccc;
    font-size: var(--fs-sm);
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-bar-left span {
    margin-right: 18px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* 绀句氦濯掍綋鍥炬爣 */
.top-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-social .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #ffffff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.top-social .social-icon:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.top-social .social-facebook  { background: #1877F2; }
.top-social .social-x         { background: #000000; }
.top-social .social-youtube   { background: #FF0000; }
.top-social .social-whatsapp  { background: #25D366; }
.top-social .social-instagram { background: #E4405F; }
.top-social .social-linkedin  { background: #0A66C2; }
.top-social .social-tiktok    { background: #000000; }


/* ==========================================================================
   主 Header — 深蓝黑底 + 白色导航
   ========================================================================== */
.site-header {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    background: var(--sv-dark);
    z-index: 9999;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-h);
    position: relative;
    max-width: clamp(1100px, 95vw, 2400px);
}

.top-bar-content {
    max-width: clamp(1100px, 95vw, 2400px);
}

.site-logo img {
    /* 调整后：最小 48px，流式比例提升至 5vw，最大放宽到 90px */
    max-height: clamp(48px, 5vw, 90px);
    width: auto;
    display: block;
}

.site-nav {
    height: 100%;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.main-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.main-nav > li {
    height: 100%;
    display: flex;
    align-items: center;
}

.main-nav > li > a {
    padding: 0 clamp(10px, 1.2vw, 26px);
    color: #ffffff;
    font-weight: 500;
    font-size: var(--fs-nav);
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    transition: color 0.25s ease;
}

.main-nav > li:hover > a {
    color: var(--sv-primary);
}

/* 当前激活项 */
.main-nav > li.current-menu-item > a,
.main-nav > li.current-page-ancestor > a {
    color: var(--sv-primary);
}

.main-nav > li.current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 22px;
    right: 22px;
    height: 3px;
    background: var(--sv-primary);
}

/* CTA 按钮 */


/* 鎼滅储妗?*/
.header-search {
    display: flex;
    align-items: center;
    margin: 0 16px;
    flex-shrink: 0;
}

.search-form {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.25s ease;
}

.search-form:focus-within {
    box-shadow: 0 2px 12px rgba(15, 143, 202, 0.35);
}

.search-input {
    border: none;
    outline: none;
    padding: 0 clamp(10px, 1vw, 14px);
    height: clamp(32px, 3vw, 52px);
    width: clamp(100px, 11vw, 220px);
    font-size: var(--fs-sm);
    color: #333;
    background: transparent;
}

.search-input::placeholder {
    color: #999;
}

.search-submit {
    border: none;
    background: var(--sv-primary);
    color: #ffffff;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.search-submit:hover {
    background: var(--sv-hover);
}

/* ==========================================================================
   Mega Menu 全宽下拉面板
   ========================================================================== */
.main-nav > li.has-mega-menu {
    position: static !important;
}

.mega-menu-dropdown {
    position: absolute;
    top: var(--header-h);
    left: 50%;
    width: 95%;
    max-width: clamp(1100px, 95vw, 2400px);
    background: var(--sv-white);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-top: 3px solid var(--sv-primary);
    padding: clamp(20px, 2.5vw, 45px) 0;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    pointer-events: none;
    z-index: 1000;
}

.main-nav > li.has-mega-menu:hover .mega-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

/* ==========================================================================
   Mega Menu 卡片网格 — 对标 sharevdi 下拉卡片
   ========================================================================== */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(12px, 1.5vw, 20px);
}

/* 卡片外层：白底 + 细边框 */
.mega-catalog-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--sv-border);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mega-catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 143, 202, 0.12);
    border-color: var(--sv-primary);
}

/* 顶部长方形产品图区域 */
.card-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    padding: clamp(12px, 1.5vw, 18px);
    height: clamp(100px, 11vw, 220px);
    transition: background 0.3s ease;
}

.mega-catalog-card:hover .card-img-wrapper {
    background: #ffffff;
}

.card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.mega-catalog-card:hover .card-img {
    transform: scale(1.06);
}

/* 二级分类标题栏：品牌蓝底 + 白字 */
.card-category-bar {
    background-color: var(--sv-primary);
    color: #ffffff !important;
    font-size: var(--fs-card);
    font-weight: 600;
    padding: clamp(8px, 0.9vw, 11px) clamp(12px, 1.3vw, 16px);
    display: block;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.3s ease;
}

.card-category-bar:hover {
    background-color: var(--sv-hover);
    color: #ffffff !important;
}

/* 底部三级列表区域 */
.card-sub-body {
    padding: 12px 16px 16px 16px;
    flex-grow: 1;
}

.card-sub-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.card-sub-list li {
    margin-bottom: 8px;
}

.card-sub-list li:last-child {
    margin-bottom: 0;
}

.card-sub-list li a {
    color: #222222;
    font-size: var(--fs-sub);
    display: block;
    line-height: 1.5;
    transition: color 0.2s ease, transform 0.2s ease, padding-left 0.2s ease;
}

.card-sub-list li a::before {
    content: '›';
    color: var(--sv-primary);
    margin-right: 6px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card-sub-list li a:hover {
    color: var(--sv-primary);
    padding-left: 4px;
}

.card-sub-list li a:hover::before {
    opacity: 1;
}

/* ==========================================================================
   传统文字下拉菜单 (Simple Dropdown)
   ========================================================================== */
.main-nav > li.has-simple-dropdown {
    position: relative !important;
}

.simple-dropdown {
    position: absolute;
    top: var(--header-h);
    left: 0;
    min-width: clamp(180px, 16vw, 220px);
    background: var(--sv-white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--sv-primary);
    border-radius: 0 0 6px 6px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
    z-index: 1000;
}

.main-nav > li.has-simple-dropdown:hover .simple-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.simple-dropdown li {
    width: 100%;
}

.simple-dropdown li a {
    display: block;
    padding: clamp(8px, 0.8vw, 10px) clamp(14px, 1.4vw, 20px);
    color: var(--sv-text-main);
    font-size: var(--fs-card);
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s, padding-left 0.2s;
}

.simple-dropdown li a:hover {
    background-color: var(--sv-bg-light);
    color: var(--sv-primary);
    padding-left: 26px;
}

/* ==========================================================================
   首页区块通用
   ========================================================================== */
.sec-padding {
    padding: var(--sp-sec) 0;
}

.bg-light {
    background-color: var(--sv-bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: var(--sp-sec-head);
}

.section-header h2 {
    font-size: var(--fs-h2);
    color: #1a252f;
    margin: 0 0 clamp(8px, 0.8vw, 10px) 0;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--sv-primary);
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

/* ==========================================================================
   Footer — 深蓝黑底白字
   ========================================================================== */
.site-footer {
    background: var(--sv-dark);
    color: #cccccc;
    padding: clamp(32px, 4vw, 50px) 0 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 3vw, 60px);
    padding-bottom: clamp(24px, 3vw, 60px);
}

.footer-col h5 {
    color: #ffffff;
    font-size: var(--fs-h5);
    margin: 0 0 clamp(12px, 1.4vw, 18px) 0;
    position: relative;
    padding-bottom: clamp(8px, 1vw, 12px);
}

.footer-col h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--sv-primary);
}

.footer-col p {
    font-size: var(--fs-sm);
    line-height: 1.8;
    margin: 0 0 clamp(5px, 0.6vw, 8px) 0;
    color: #b0b0b0;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #b0b0b0;
    font-size: var(--fs-sm);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--sv-primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: clamp(12px, 1.3vw, 18px) 0;
    text-align: center;
    font-size: var(--fs-sm);
    color: #888;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 992px) {
    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .mega-menu-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   登录态 WordPress Admin Bar 偏移（避免遮挡固定头部）
   ========================================================================== */

/* WP 核心 admin-bar.css 会给 html 加 margin-top:32px!important，
   与下方 body.admin-bar 的 padding 补偿叠加会产生双重空隙，此处归零。
   html.wp-toolbar 仅在登录态出现，特异性高于核心的裸 html 选择器。 */
html.wp-toolbar {
    margin-top: 0 !important;
}

body.admin-bar {
    padding-top: calc(var(--head-offset) + 32px);
}

body.admin-bar .top-bar {
    top: 32px;
}

body.admin-bar .site-header {
    top: calc(32px + var(--topbar-h));
}

body.admin-bar .hero-section {
    margin-top: calc((var(--head-offset) + 32px) * -1);
    padding-top: calc(223px + 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        padding-top: calc(var(--head-offset) + 46px);
    }
    body.admin-bar .top-bar {
        top: 46px;
    }
    body.admin-bar .site-header {
        top: calc(46px + var(--topbar-h));
    }
    body.admin-bar .hero-section {
        margin-top: calc((var(--head-offset) + 46px) * -1);
        padding-top: calc(223px + 46px);
    }
}

/* 移动端搜索框：桌面端隐藏 */
.mobile-search {
    display: none !important;
}

/* ==========================================================================
   移动端菜单 — mega 卡片改为普通折叠列表
   ========================================================================== */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    margin: 0 auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 992px) {
    /* 显示汉堡按钮 */
    .mobile-toggle { display: flex; }

    /* 导航面板：从 header 下方下滑出现，深色底 */
    .site-nav {
        position: fixed;
        top: var(--head-offset);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--sv-dark);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
        z-index: 9998;
        padding: 1.5rem;
    }
    .site-nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 0;
        margin: 0;
    }
    .main-nav > li {
        height: auto;
        flex-direction: column;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .main-nav > li > a {
        height: auto;
        padding: 14px 0;
        font-size: var(--fs-nav);
        justify-content: space-between;
        display: flex;
        align-items: center;
    }
    /* 展开图标：右箭头 ▸，展开时旋转 180° 变向下 */
    .main-nav > li.has-children > a::after {
        content: '▸';
        font-size: 13px;
        color: #999;
        transition: transform 0.22s ease;
        flex-shrink: 0;
    }
    .main-nav > li.mobile-open > a::after {
        transform: rotate(90deg);
    }

    /* Mega menu 下拉：折叠块 */
    .mega-menu-dropdown {
        position: static;
        width: 100%;
        max-width: none;
        left: auto;
        transform: none;
        box-shadow: none;
        border-top: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
    }
    .main-nav > li.mobile-open > .mega-menu-dropdown {
        display: block;
    }
    .main-nav > li.has-mega-menu:hover .mega-menu-dropdown {
        transform: none;
    }

    /* 卡片网格改单列，去卡片样式 */
    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .mega-catalog-card {
        background: transparent;
        border: none;
        border-radius: 0;
    }
    .mega-catalog-card:hover {
        transform: none;
        box-shadow: none;
    }
    /* 隐藏卡片图片 — 移动端不要任何图片 */
    .card-img-wrapper,
    .mega-catalog-card .card-img,
    .mega-catalog-card .card-img-wrapper a {
        display: none !important;
    }
    /* 二级标题：缩进 1.5rem */
    .card-category-bar {
        background: transparent;
        color: #ccc !important;
        padding: 10px 0 10px 1.5rem;
        font-size: var(--fs-card);
        white-space: normal;
        display: block;
    }
    .card-category-bar:hover {
        background: transparent;
        color: var(--sv-primary) !important;
    }
    /* 三级列表：再缩进 1.5rem */
    .card-sub-body {
        padding: 0 0 8px 1.5rem;
    }
    .card-sub-list li a {
        color: #999;
        padding: 6px 0 6px 1.5rem;
        display: block;
    }
    .card-sub-list li a:hover {
        color: var(--sv-primary);
        padding-left: 1.5rem;
    }

    /* 普通下拉也改折叠 */
    .simple-dropdown {
        position: static;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        display: none;
        padding: 0;
    }
    .main-nav > li.mobile-open > .simple-dropdown {
        display: block;
    }
    .simple-dropdown li a {
        color: #ccc;
        padding: 10px 0 10px 1.5rem;
    }
    .simple-dropdown li a:hover {
        color: var(--sv-primary);
        padding-left: 1.5rem;
    }

    /* 移动端：隐藏 header 搜索框，显示菜单内搜索框 */
    .header-search {
        display: none !important;
    }
    .mobile-search {
        display: block !important;
        margin-bottom: 1rem;
    }
    .mobile-search .search-form {
        width: 100%;
    }
    .mobile-search .search-input {
        width: 100%;
        flex: 1;
    }
}

@media (max-width: 576px) {
    .top-bar-left span:nth-child(2) { display: none; }
    .site-logo img { max-height: 36px; }
}
/* === Mobile Hotfix === */
@media (max-width: 992px) {
    :root { --header-h: 60px; --topbar-h: 28px; }
    .header-inner { height: 60px !important; }
    .site-header { top: 28px !important; }
    .mobile-toggle { display: flex !important; width: 44px !important; height: 44px !important; position: relative; z-index: 10000; flex-shrink: 0; }
    .mobile-toggle span { width: 26px !important; height: 3px !important; background: #ffffff !important; }
    .site-logo img { max-height: 36px !important; }
    .site-nav { top: 88px !important; }
    .top-bar-left span { font-size: 11px !important; margin-right: 8px; }
    .top-social { gap: 6px; }
    .top-social .social-icon { width: 20px; height: 20px; }
    .top-bar-right { gap: 6px; }
}
@media (max-width: 480px) {
    .top-bar-left span:first-child { display: none; }
    .header-inner { padding: 0 10px !important; }
}

/* mobile-search: only visible inside hamburger menu on mobile */



/* =============================================
   移动端：搜索按钮 + 展开式搜索条 + 溢出修复
   ============================================= */

/* --- 搜索按钮（header 内放大镜）--- */
.mobile-search-toggle {
    display: none;               /* 桌面默认隐藏 */
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}
.mobile-search-toggle:hover,
.mobile-search-toggle[aria-expanded="true"] {
    color: var(--sv-primary);
}

/* --- 展开式搜索条 --- */
.mobile-search-bar {
    display: none;                /* 默认隐藏 */
    position: absolute;
    top: 100%;                    /* 紧贴 header 下方 */
    left: 0;
    right: 0;
    background: var(--sv-dark, #1a1a1a);
    padding: 12px 16px;
    z-index: 10001;               /* 比汉堡 z-index:10000 高 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.mobile-search-bar.open {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mobile-search-bar .search-form {
    display: flex;
    gap: 8px;
    width: 100%;
}
.mobile-search-bar .search-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 14px;
    outline: none;
}
.mobile-search-bar .search-input::placeholder { color: rgba(255,255,255,0.5); }
.mobile-search-bar .search-input:focus { border-color: var(--sv-primary, #ff6b35); }
.mobile-search-bar .search-submit {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--sv-primary, #ff6b35);
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- 首页文案溢出修复 --- */
.site-logo img { max-width: 100%; height: auto; }
.site-logo { flex-shrink: 0; max-width: 45%; }

/* --- 移动端媒体查询 --- */
@media (max-width: 992px) {
    /* 显示搜索按钮 */
    .mobile-search-toggle {
        display: flex !important;
        position: relative;
        z-index: 10000;
    }
    /* header 允许绝对定位子元素 */
    .header-inner { position: relative; overflow: visible !important; }

    /* header 布局防止溢出 */
    .site-logo  { flex-shrink: 1 !important; min-width: 0; max-width: 40%; }
    .site-logo img { max-height: 36px !important; width: auto; }
    .site-nav   { flex-shrink: 0; }

    /* 搜索条跟随 header top-bar 偏移 */
    .mobile-search-bar { top: 100%; }

    /* 隐藏旧的 nav 内 mobile-search 兜底 */
    nav .mobile-search { display: none !important; }
}

/* ================================================
   移动端菜单 — 按设计稿改成白色 Sheet 风格
   覆盖之前 728-897 行的深色样式
   ================================================ */

@media (max-width: 992px) {
    /* nav 面板：白色背景 + 顶部滑下 + 有阴影 */
    .site-nav {
        background: #ffffff !important;
        top: var(--head-offset, 88px) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;         /* 不撑到页脚 */
        max-height: 85vh !important;     /* 最多占视口 85% */
        padding: 0 !important;           /* 取消额外内边距 */
        box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
        border-top: 1px solid #eee !important;
        flex-direction: column !important;
    }

    /* 主菜单列表 — 全宽 */
    .main-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
        list-style: none !important;
    }

    .main-nav > li {
        height: auto !important;
        flex-direction: column !important;
        border-bottom: 1px solid #eaeaea !important;
        padding: 0 20px !important;
    }
    /* 最后一项不要底线 */
    .main-nav > li:last-child { border-bottom: none !important; }

    /* 顶级菜单项链接 — 干净文字 */
    .main-nav > li > a {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 16px 0 !important;
        color: #222222 !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        height: auto !important;
        transition: color 0.15s ease !important;
    }
    .main-nav > li > a:hover { color: var(--sv-primary, #ff6b35) !important; }

    /* 去掉之前 ::after 加的箭头，改用展开后旋转 */
    .main-nav > li.has-children > a::after {
        content: '\25BE' !important;    /* ▾ 向下 */
        color: #999 !important;
        font-size: 12px !important;
        transition: transform 0.22s ease !important;
    }
    .main-nav > li.mobile-open > a::after {
        transform: rotate(180deg) !important;   /* ▴ 向上 */
    }

    /* ======= Mega / Simple 下拉：折叠成简洁子列表 ======= */
    .mega-menu-dropdown,
    .simple-dropdown {
        display: none !important;
        position: static !important;
        width: 100% !important;
        background: #fafafa !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    .main-nav > li.mobile-open > .mega-menu-dropdown,
    .main-nav > li.mobile-open > .simple-dropdown {
        display: block !important;
    }

    /* Mega 菜单内部容器 — 去卡片化 */
    .mega-menu-dropdown .container { max-width: 100% !important; padding: 0 !important; }
    .mega-menu-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    /* 隐藏所有卡片图片 — 纯文字 */
    .card-img-wrapper,
    .mega-catalog-card .card-img,
    .mega-catalog-card .card-img-wrapper a {
        display: none !important;
    }
    .mega-catalog-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }
    .mega-catalog-card:hover { transform: none !important; }

    /* 二级标题 — 缩进 */
    .card-category-bar {
        display: block !important;
        background: transparent !important;
        color: #555 !important;
        padding: 12px 0 12px 24px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        border-bottom: 1px solid #eee !important;
        text-decoration: none !important;
    }
    .card-category-bar:hover { color: var(--sv-primary, #ff6b35) !important; }

    /* 三级 — 再缩进 */
    .card-sub-body { padding: 0 0 4px 24px !important; }
    .card-sub-list { list-style: none !important; padding: 0 !important; margin: 0 !important; }
    .card-sub-list li a {
        display: block !important;
        color: #888 !important;
        padding: 8px 0 8px 36px !important;
        font-size: 13px !important;
        text-decoration: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    .card-sub-list li a:hover { color: var(--sv-primary, #ff6b35) !important; }

    /* Simple 下拉子列表 */
    .simple-dropdown {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .simple-dropdown li {
        border-bottom: 1px solid #eee !important;
    }
    .simple-dropdown li a {
        display: block !important;
        color: #555 !important;
        padding: 12px 0 12px 24px !important;
        font-size: 14px !important;
        text-decoration: none !important;
    }
    .simple-dropdown li a:hover { color: var(--sv-primary, #ff6b35) !important; }
}

/* ====== 手机菜单：去空白 + 贴左对齐 ====== */
@media (max-width: 992px) {
    /* 紧贴 header 底边，不留缝 */
    .site-nav {
        top: 30px !important;              /* 从 top-bar 下方开始，紧贴 header */
        padding: 0 !important;             /* 零上下内边距 */
        border-top: none !important;       /* 去掉额外分割线 */
        border-radius: 0 !important;       /* 去圆角，直角 sheet */
        left: 0 !important;
        right: 0 !important;
    }

    /* 菜单项 — 贴左边 */
    .main-nav > li {
        padding: 0 16px !important;
    }
    .main-nav > li > a {
        padding: 14px 0 !important;        /* 只留上下呼吸 */
    }

    /* 二级、三级缩进也贴紧 */
    .card-category-bar { padding: 10px 0 10px 16px !important; }
    .card-sub-list li a { padding: 6px 0 6px 28px !important; }
    .simple-dropdown li a { padding: 10px 0 10px 16px !important; }
}


/* =============================================
   🎯 手机菜单终版：顶级居中 + 子项左缩进 + 零空白
   ============================================= */
@media (max-width: 992px) {

    /* ---------- nav 面板本身 ---------- */
    .site-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: #fff !important;
        z-index: 9998 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        max-height: none !important;
        overflow-y: auto !important;
        flex-direction: column !important;
        display: flex !important;
        transform: translateY(-100%) !important;
        visibility: hidden !important;
        opacity: 1 !important;
        transition: transform 0.28s ease, visibility 0.28s ease !important;
    }
    .site-nav.open {
        transform: translateY(0) !important;
        visibility: visible !important;
    }

    /* 菜单列表 — 全宽、无 padding */
    .main-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
        width: 100% !important;
    }

    /* 顶级 li — 无额外 padding */
    .main-nav > li {
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
        flex-direction: column !important;
        border-bottom: 1px solid #eee !important;
        width: 100% !important;
    }
    .main-nav > li:last-child { border-bottom: none !important; }

    /* ====== 关键：顶级菜单项 → 居中对齐 ====== */
    .main-nav > li > a {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0 !important;
        text-align: center !important;
        width: 100% !important;
        padding: 16px 24px !important;
        margin: 0 !important;
        color: #222 !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        line-height: 1.4 !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        padding-right: 24px !important;
    }
    .main-nav > li > a:hover { color: #ff6b35 !important; }
    .main-nav > li.mobile-open > a { color: #ff6b35 !important; }

    /* 有子项的顶级项 — 右侧加小箭头 */
    .main-nav > li.has-children > a::after {
        content: '\25BE' !important;
        margin-left: 10px !important;
        font-size: 12px !important;
        color: #999 !important;
        transition: transform 0.2s ease !important;
    }
    .main-nav > li.mobile-open > a::after {
        transform: rotate(180deg) !important;
    }

    /* ====== Mega / Simple 下拉：展开后显示 ====== */
    .mega-menu-dropdown,
    .simple-dropdown {
        display: none !important;
        position: static !important;
        width: 100% !important;
        background: #fff !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        max-height: none !important;
    }
    .main-nav > li.mobile-open > .mega-menu-dropdown,
    .main-nav > li.mobile-open > .simple-dropdown {
        display: block !important;
    }

    /* Mega 菜单内部 — 去卡片化 */
    .mega-menu-dropdown .container { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
    .mega-menu-grid { display: block !important; padding: 0 !important; margin: 0 !important; gap: 0 !important; }
    .mega-catalog-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }
    .card-img-wrapper,
    .card-img,
    .mega-catalog-card a img { display: none !important; }
    .mega-catalog-card:hover { transform: none !important; }

    /* 二级项 — 左对齐、缩进、浅灰底 */
    .card-category-bar {
        display: block !important;
        background: #fafafa !important;
        color: #444 !important;
        padding: 12px 20px !important;
        margin: 0 !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        text-align: left !important;
        text-decoration: none !important;
        border-bottom: 1px solid #eee !important;
        border-radius: 0 !important;
        line-height: 1.4 !important;
    }
    .card-category-bar:hover { color: #ff6b35 !important; background: #f4f4f4 !important; }

    /* 三级项 — 更深缩进 */
    .card-sub-body { padding: 0 !important; margin: 0 !important; }
    .card-sub-list { list-style: none !important; padding: 0 !important; margin: 0 !important; }
    .card-sub-list li { border-bottom: 1px solid #f0f0f0 !important; }
    .card-sub-list li a {
        display: block !important;
        color: #777 !important;
        padding: 10px 20px 10px 40px !important;
        margin: 0 !important;
        font-size: 13px !important;
        text-align: left !important;
        text-decoration: none !important;
        border: none !important;
    }
    .card-sub-list li a:hover { color: #ff6b35 !important; }

    /* Simple 下拉 */
    .simple-dropdown { list-style: none !important; padding: 0 !important; margin: 0 !important; }
    .simple-dropdown li { border-bottom: 1px solid #f0f0f0 !important; padding: 0 !important; margin: 0 !important; }
    .simple-dropdown li a {
        display: block !important;
        color: #555 !important;
        padding: 12px 20px !important;
        margin: 0 !important;
        font-size: 14px !important;
        text-align: left !important;
        text-decoration: none !important;
        border: none !important;
    }
    .simple-dropdown li a:hover { color: #ff6b35 !important; }
}

/* 🔧 最终覆盖：全部左对齐 */
@media (max-width: 992px) {
    .main-nav > li > a {
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 16px 20px !important;
    }
    .main-nav > li.has-children > a::after {
        margin-left: auto !important;  /* 箭头推最右 */
    }
}
/* 🔧 去 nav 面板上下空白 */
@media (max-width: 992px) {
    /* 紧贴 header 底边（不是 top:0） */
    .site-nav {
        top: var(--head-h, 108px) !important;
        padding: 0 !important;
    }
    /* 菜单列表自身不要上下 margin/padding */
    .site-nav .main-nav {
        padding: 0 !important;
        margin: 0 !important;
    }
    /* body 没有额外 margin */
    body { margin: 0 !important; }
}
/* ★ 终极归零层 —— 一次性清掉上面 14 层 media query 的混乱 */
@media (max-width: 992px) {
    .site-nav {
        position: fixed !important;
        top: var(--head-h, 108px) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;        /* ★ 关键：不撑到页脚 */
        height: auto !important;        /* ★ 高度由内容撑开 */
        max-height: none !important;
        background: #fff !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
        overflow-y: auto !important;
        display: none !important;        /* 默认隐藏 */
        flex-direction: column !important;
        /* 关闭状态（无动画，直接切） */
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: none !important;
    }
    .site-nav.open {
        display: flex !important;        /* ★ 开关用 display */
    }
}
/* 🔧 手机端：隐藏三级菜单 */
@media (max-width: 992px) {
    .card-sub-body,
    .card-sub-list { display: none !important; }
}
/* 🔧 搜索按钮贴汉堡 + 搜索框改成方盒子 */
@media (max-width: 992px) {
    /* 搜索按钮贴紧汉堡（不要被 space-between 拉开） */
    .mobile-search-toggle { margin-right: 0 !important; padding-right: 4px !important; }
    .mobile-toggle { margin-left: 0 !important; padding-left: 4px !important; }

    /* 搜索弹框 — 干净方盒子 */
    .mobile-search-bar {
        background: #fff !important;
        box-shadow: 0 2px 0 #ddd, 0 8px 20px rgba(0,0,0,0.1) !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 12px !important;
    }
    .mobile-search-bar .search-form { gap: 8px !important; }
    .mobile-search-bar .search-input {
        background: #fff !important;
        border: 1px solid #ddd !important;
        border-radius: 0 !important;
        border-right: none !important;
        color: #333 !important;
        font-size: 14px !important;
        padding: 10px 12px !important;
    }
    .mobile-search-bar .search-submit {
        background: #333 !important;
        border-radius: 0 !important;
        width: 44px !important;
        height: 40px !important;
    }
}
/* 🔧 搜索+汉堡 靠右成组 */
@media (max-width: 992px) {
    /* logo 靠左 */
    .site-logo { margin-right: auto !important; }
    /* 搜索按钮：margin-left:auto 把自己和汉堡一起推到最右 */
    .mobile-search-toggle { margin-left: auto !important; margin-right: 4px !important; }
    .mobile-toggle { margin-left: 4px !important; }
    /* 隐藏电脑的搜索框和 nav */
    .header-search, .site-nav { display: none !important; }
}
/* ============================================
   ★ 统一下拉箭头 — 电脑端 + 手机端
   全用一个干净的 SVG chevron
   ============================================ */

/* 所有带子菜单的顶级项 — 共用箭头 */
.main-nav > li.has-children > a::after {
    content: '' !important;
    display: inline-block !important;
    width: 14px !important;
    height: 8px !important;
    margin-left: 8px !important;
    vertical-align: middle !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center !important;
    transition: transform 0.22s ease !important;
    /* 覆盖之前所有 content: '\25BE' / '\25B8' 字符箭头 */
    font-size: 0 !important;
}

/* 电脑端：hover 时翻转 */
.main-nav > li.has-children:hover > a::after,
.main-nav > li.has-children:focus-within > a::after {
    transform: rotate(180deg) !important;
}

/* 手机端：展开时翻转 */
@media (max-width: 992px) {
    .main-nav > li.has-children > a::after {
        margin-left: auto !important;   /* 推到最右 */
    }
    .main-nav > li.mobile-open > a::after {
        transform: rotate(180deg) !important;
    }
}

/* ==========================================
   FIX: Desktop dropdown chevron 鈥?鏈€楂樹紭鍏堢骇
   鐢?.site-nav 宓屽鍓嶇紑锛岀數鑴戠/鎵嬫満绔兘鐢熸晥
   ========================================== */
.site-nav .main-nav > li.has-children > a::after {
    content: '' !important;
    display: inline-block !important;
    width: 12px !important;
    height: 7px !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center !important;
    transition: transform 0.22s ease !important;
    font-size: 0 !important;
    position: static !important;
}

/* 鐢佃剳绔?hover 缈?*/
.site-nav .main-nav > li.has-children:hover > a::after,
.site-nav .main-nav > li.has-children:focus-within > a::after {
    transform: rotate(180deg) !important;
}

/* 鎵嬫満绔細绠ご鎺ㄦ渶鍙?+ mobile-open 缈?*/
@media (max-width: 992px) {
    .site-nav .main-nav > li.has-children > a::after { margin-left: auto !important; }
    .site-nav .main-nav > li.mobile-open > a::after { transform: rotate(180deg) !important; }
}



/* ==========================================================================
   补丁合并区（2026-09-19 去重整理）
   ========================================================================== */

/* --- 电脑端 (>= 993px) --- */
@media (min-width: 993px) {
    .header-inner {
        justify-content: flex-start !important;
        gap: 0 !important;
    }
    .header-inner > .site-logo {
        margin-right: 24px !important;
    }
    .header-inner > .site-nav {
        margin-left: 0 !important;
        margin-right: auto !important;
    }
   
}

/* --- 手机端 (<= 992px) --- */
@media (max-width: 992px) {
    .top-bar-right {
        gap: 6px !important;
    }
    
    .site-nav .main-nav > li.has-children > a::after {
        margin-left: auto !important;
    }
    .site-nav .main-nav > li.mobile-open > a::after {
        transform: rotate(180deg) !important;
    }
}

.custom-lang-dropdown {
    display: inline-block;
    font-size: 14px;
}

/* 按钮样式：深色背景，白字 */
.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;        /* 深灰/黑色背景 */
    color: #ffffff;             /* 白色文字 */
    border: 1px solid #333333;   /* 稍浅的深色边框 */
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lang-dropdown-btn:hover {
    background: #2a2a2a;        /* 按钮 Hover 反馈 */
    border-color: #444444;
}

.lang-dropdown-btn .arrow {
    font-size: 10px;
    margin-left: 4px;
    color: #cccccc;             /* 箭头颜色 */
    transition: transform 0.2s ease;
}

/* 移动到 body 后的菜单基础样式：深色面板 */
.lang-dropdown-menu-body {
    display: none;
    position: fixed !important;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #222222;        /* 主背景改为深灰色 */
    border: 1px solid #333333;  /* 深色边框 */
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); /* 加深阴影 */
    z-index: 999999 !important;
    overflow: hidden;           /* 确保圆角能截断子项悬停背景 */
}

/* 菜单链接：白色文字 */
.lang-dropdown-menu-body li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #ffffff;             /* 链接文字改为纯白 */
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

/* 选项悬停/Focus 状态：亮黑色背景 */
.lang-dropdown-menu-body li:hover {
    background-color: #333333;  /* 悬停时的深灰色 */
}

.lang-dropdown-menu-body li:hover a {
    color: #ffffff;
}

/* 当前激活状态：加亮深色背景 + 突出显示 */
.lang-dropdown-menu-body li.active {
    font-weight: bold;
    background-color: #3d3d3d;  /* 激活项背景 */
}

.lang-dropdown-menu-body li.active a {
    color: #ffffff;
}

/* 国旗图标 */
.lang-dropdown-menu-body img.flag,
.custom-lang-dropdown img.flag {
    width: 18px;
    height: auto;
    vertical-align: middle;
}
/* ================================================
   手机端 Header：logo 独占一行、居中显示在导航条上方
   ================================================ */
@media (max-width: 992px) {
    :root { --header-h: 106px; --topbar-h: 28px; }
    .header-inner {
        height: 106px !important;
        flex-wrap: wrap !important;
    }
    .site-logo {
        order: -1 !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 10px 0 6px !important;
    }
    .site-logo img { max-height: 46px !important; }
    .mobile-search-toggle { margin-left: auto !important; }
    .mobile-toggle { margin-left: 4px !important; }
}

/* ================================================
   手机端：logo 区白底 + 导航条左侧 Navigation 文字
   ================================================ */
@media (max-width: 992px) {
    .site-logo { background: #ffffff; }
    .header-inner::before {
        content: 'Navigation';
        order: 0;
        align-self: center;
        color: #ffffff;
        font-size: 18px;
        font-family: Georgia, 'Times New Roman', serif;
        margin-right: auto;
        padding-left: 6px;
    }
}

/* 手机端：logo 白色区域占满 100% 视口宽度 */
@media (max-width: 992px) {
    .site-logo {
        margin-left: calc(-1 * var(--sp-container)) !important;
        margin-right: calc(-1 * var(--sp-container)) !important;
    }
}
@media (max-width: 480px) {
    .site-logo {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
}

/* 手机端：logo 白条宽度撑满（配合负 margin） */
@media (max-width: 992px) {
    .site-logo { flex: 0 0 calc(100% + 2 * var(--sp-container)) !important; }
}
@media (max-width: 480px) {
    .site-logo { flex: 0 0 calc(100% + 20px) !important; }
}

/* 手机端：解除 max-width 对全宽白条的限制 */
@media (max-width: 992px) {
    .site-logo { max-width: none !important; }
}

/* ================================================
   手机端 topbar：浅色背景 + 社交图标左对齐；导航条文字改小字欢迎语
   ================================================ */
@media (max-width: 992px) {
    .top-bar {
        background-color: #f2f3f5 !important;
        color: #555555 !important;
        border-bottom: 1px solid #e2e2e2 !important;
    }
    .top-bar-content { justify-content: flex-start !important; }
    .top-bar-right { order: -1; margin-right: auto; }
    .top-bar-left span { color: #555555 !important; }
    .lang-dropdown-btn {
        background: #ffffff !important;
        color: #555555 !important;
        border: 1px solid #dddddd !important;
        padding: 2px 8px !important;
    }
    .lang-dropdown-btn .arrow { color: #888888 !important; }
    .header-inner::before {
        content: 'Welcome to Gainstar!';
        font-size: 13px;
        font-family: inherit;
    }
}

/* 手机端：语言下拉（翻译）右对齐 */
@media (max-width: 992px) {
    .top-bar-right { flex: 1 1 auto; }
    .custom-lang-dropdown { margin-left: auto; }
}

/* ================================================
   手机端：logo 区加高 + logo 放大；语言下拉菜单浅色适配
   ================================================ */
@media (max-width: 992px) {
    :root { --header-h: 124px; }
    .header-inner { height: 124px !important; }
    .site-logo { padding: 14px 0 10px !important; }
    .site-logo img { max-height: 56px !important; }
}
@media (max-width: 992px) {
    .lang-dropdown-menu-body {
        background: #ffffff;
        border: 1px solid #dddddd;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }
    .lang-dropdown-menu-body li a { color: #333333; }
    .lang-dropdown-menu-body li:hover { background-color: #f2f3f5; }
    .lang-dropdown-menu-body li:hover a { color: #333333; }
    .lang-dropdown-menu-body li.active { background-color: #e9ecef; }
    .lang-dropdown-menu-body li.active a { color: #222222; }
    .lang-dropdown-btn { font-size: 12px; }
}

/* 电脑端：topbar 背景色调浅一档 */
@media (min-width: 993px) {
    .top-bar { background-color: #1c1c4a; }
}

/* ================================================
   科技渐变配色：topbar 加深 + 主导航略浅，均为横向科技渐变
   ================================================ */
@media (min-width: 993px) {
    .top-bar {
        background: linear-gradient(90deg, #04041e 0%, #0d1340 55%, #123a70 100%);
    }
}
.site-header {
    background: linear-gradient(90deg, #070a2b 0%, #0f1c45 60%, #16305e 100%);
}

/* ================================================
   科技绿点缀：渐变尾端掺入少量青绿 + 导航条底部绿色细线
   ================================================ */
@media (min-width: 993px) {
    .top-bar {
        background: linear-gradient(90deg, #04041e 0%, #0d1a44 55%, #0e4a55 100%);
    }
}
.site-header {
    background: linear-gradient(90deg, #070a2b 0%, #0e2548 60%, #0f4a4d 100%);
    border-bottom: 1px solid rgba(45, 210, 160, 0.45);
}

/* ================================================
   去掉导航条底部绿线；语言切换按钮/下拉菜单配色与科技蓝渐变配套（布局不变）
   ================================================ */
.site-header { border-bottom: none; }

.lang-dropdown-btn {
    background: rgba(13, 26, 68, 0.75);
    color: #e6f0ff;
    border: 1px solid rgba(96, 160, 220, 0.55);
}
.lang-dropdown-btn:hover {
    border-color: rgba(45, 210, 160, 0.8);
    background: rgba(18, 58, 107, 0.85);
}
.lang-dropdown-menu-body {
    background: #0d1a44;
    border: 1px solid rgba(96, 160, 220, 0.45);
    box-shadow: 0 6px 20px rgba(4, 8, 40, 0.5);
}
.lang-dropdown-menu-body li a { color: #dce8ff; }
.lang-dropdown-menu-body li:hover { background-color: #123a6b; }
.lang-dropdown-menu-body li:hover a { color: #ffffff; }
.lang-dropdown-menu-body li.active { background-color: #0f4a4d; }
.lang-dropdown-menu-body li.active a { color: #ffffff; }

/* 手机端语言下拉保持浅色（新主题深蓝配色仅用于电脑端） */
@media (max-width: 992px) {
    .lang-dropdown-menu-body {
        background: #ffffff;
        border: 1px solid #dddddd;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }
    .lang-dropdown-menu-body li a { color: #333333; }
    .lang-dropdown-menu-body li:hover { background-color: #f2f3f5; }
    .lang-dropdown-menu-body li:hover a { color: #333333; }
    .lang-dropdown-menu-body li.active { background-color: #e9ecef; }
    .lang-dropdown-menu-body li.active a { color: #222222; }
}

/* 手机端：logo 区改深色，比导航条浅一档的同色系渐变 */
@media (max-width: 992px) {
    .site-logo {
        background: linear-gradient(90deg, #101a45 0%, #17305c 60%, #175a5e 100%);
    }
}

/* 手机端：logo 再放大一档 */
@media (max-width: 992px) {
    :root { --header-h: 136px; }
    .header-inner { height: 136px !important; }
    .site-logo img { max-height: 66px !important; }
}

/* 手机端：语言下拉菜单改深蓝科技底，与整体配色统一 */
@media (max-width: 992px) {
    .lang-dropdown-menu-body {
        background: #0d1a44;
        border: 1px solid rgba(96, 160, 220, 0.45);
        box-shadow: 0 6px 20px rgba(4, 8, 40, 0.5);
    }
    .lang-dropdown-menu-body li a { color: #dce8ff; }
    .lang-dropdown-menu-body li:hover { background-color: #123a6b; }
    .lang-dropdown-menu-body li:hover a { color: #ffffff; }
    .lang-dropdown-menu-body li.active { background-color: #0f4a4d; }
    .lang-dropdown-menu-body li.active a { color: #ffffff; }
}

/* ================================================
   手机端：汉堡菜单下拉面板改深色科技风（结构与布局不变）
   ================================================ */
@media (max-width: 992px) {
    .site-nav {
        background: linear-gradient(160deg, #0d1a44 0%, #0f2548 60%, #0f3a4a 100%) !important;
        box-shadow: 0 8px 24px rgba(4, 8, 40, 0.5) !important;
    }
    .main-nav > li { border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; }
    .main-nav > li > a { color: #e6f0ff !important; }
    .main-nav > li > a:hover,
    .main-nav > li.mobile-open > a { color: #4dd0a1 !important; }
    .main-nav > li.has-children > a::after { color: #7f95c5 !important; }
    .mega-menu-dropdown, .simple-dropdown { background: transparent !important; }
    .card-category-bar {
        background: rgba(255, 255, 255, 0.05) !important;
        color: #c8d6f0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    .card-category-bar:hover { color: #4dd0a1 !important; background: rgba(255, 255, 255, 0.1) !important; }
    .card-sub-list li { border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important; }
    .card-sub-list li a { color: #93a7d2 !important; }
    .card-sub-list li a:hover { color: #4dd0a1 !important; }
    .simple-dropdown li { border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important; }
    .simple-dropdown li a { color: #c8d6f0 !important; }
    .simple-dropdown li a:hover { color: #4dd0a1 !important; }
}

/* 手机端：下拉菜单面板调浅一档，保留科技渐变 */
@media (max-width: 992px) {
    .site-nav {
        background: linear-gradient(160deg, #1c2b63 0%, #20406f 60%, #1f5f6d 100%) !important;
    }
}

/* 手机端：下拉菜单再浅一档 */
@media (max-width: 992px) {
    .site-nav {
        background: linear-gradient(160deg, #27397a 0%, #2d5285 60%, #2b7685 100%) !important;
    }
}

/* 去掉重复箭头：保留 CSS ::after chevron，隐藏 JS 注入的 .arrow */
.site-nav .main-nav > li.has-children > a .arrow {
    display: none !important;
}

/* 隐藏注入箭头（提升优先级压过 header.php 内联样式，仅保留 ::after chevron） */
.site-header .site-nav .main-nav > li.has-children > a .arrow {
    display: none !important;
}

/* 导航下拉 chevron 统一白色（::after 用 currentColor 描边） */
.site-nav .main-nav > li.has-children > a::after {
    color: #ffffff !important;
}

/* 下拉箭头 SVG 描边直接改为白色（背景图中的 currentColor 不继承文字色，会渲染成黑色） */
.main-nav > li.has-children > a::after,
.site-nav .main-nav > li.has-children > a::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") !important;
}

/* ==========================================================================
   Mega Menu 桌面端重构：保留浅色风格，适度紧凑 + 扁平（仅 ≥993px）
   ========================================================================== */
@media (min-width: 993px) {
    .mega-menu-dropdown {
        width: min(1440px, 96vw);
        max-width: 96vw;
        background: #ffffff;
        border: 1px solid #e6e9ee;
        border-top: 2px solid #0f4a4d;
        border-radius: 0;
        box-shadow: none;
        padding: 20px 0 22px;
        transform: translate(-50%, 8px);
    }
    .main-nav > li.has-mega-menu:hover .mega-menu-dropdown {
        transform: translate(-50%, 0);
    }
    .mega-menu-dropdown .container {
        max-width: none;
        padding: 0 24px;
    }

    .mega-menu-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .mega-catalog-card {
        background: #ffffff;
        border: 1px solid #ececec;
        border-radius: 0;
        transition: border-color 0.25s ease;
    }
    .mega-catalog-card:hover {
        transform: none;
        box-shadow: none;
        border-color: #2b9ac9;
    }

    .card-img-wrapper {
        height: 138px;
        padding: 12px;
        background: #ffffff;
    }
    .mega-catalog-card:hover .card-img-wrapper { background: #ffffff; }
    .mega-catalog-card:hover .card-img { transform: none; }

    .card-category-bar {
        background-color: #10294f;
        color: #ffffff !important;
        font-size: 16px;
        font-weight: 600;
        padding: 10px 14px;
        border-top: 0;
        white-space: nowrap;
        transition: background-color 0.25s ease;
    }
    .card-category-bar:hover {
        background-color: #0f4a4d;
        color: #ffffff !important;
    }

    .card-sub-body { padding: 12px 14px 16px; }
    .card-sub-list li { margin-bottom: 6px; }
    .card-sub-list li a {
        color: #444c56;
        font-size: 15px;
    }
    .card-sub-list li a:hover { color: #2b9ac9; padding-left: 0; }
    .card-sub-list li a::before { color: #0f4a4d; margin-right: 5px; }
}

/* 普通二级下拉（Simple Dropdown）桌面端字号加大 */
@media (min-width: 993px) {
    .simple-dropdown {
        min-width: clamp(200px, 18vw, 250px);
    }
    .simple-dropdown li a {
        font-size: 15px;
        padding: 10px 20px;
    }
}

/* ==========================================================================
   首页 hero 下方：顶级产品分类模块（fp-cat-）
   ========================================================================== */
.fp-cats {
    background: #f5f7fa;
    padding: 36px 0 40px;
}
.fp-cats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.fp-cat-card {
    display: block;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.25s ease;
}
.fp-cat-card:hover { border-color: #2b9ac9; }
.fp-cat-img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef2f6;
}
.fp-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fp-cat-name {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1d;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}
.fp-cat-card:hover .fp-cat-name { color: #2b9ac9; }

@media (max-width: 992px) {
    .fp-cats { padding: 26px 0 30px; }
    .fp-cats-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ==========================================================================
   首页 About Us 模块（fp-about-）：左图右文 + 居中大标题
   ========================================================================== */
.fp-about {
    background: #ffffff;
    padding: 60px 0 70px;
}
.fp-about-title {
    text-align: center;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 500;
    color: #1d1d1d;
    letter-spacing: 0.5px;
    margin: 0 0 46px;
}
.fp-about-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: stretch;
}
.fp-about-media {
    display: flex;
}
.fp-about-media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    border: 1px solid #ececec;
    border-radius: 2px;
}
.fp-about-text {
    display: flex;
    flex-direction: column;
}
.fp-about-text p {
    font-size: 14px;
    line-height: 1.95;
    color: #555555;
    margin: 0 0 16px;
}
.fp-about-action {
    margin-top: auto;
    text-align: center;
    padding-top: 10px;
}
.fp-about-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sv-primary, #0F8FCA);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 999px;
    transition: background 0.25s ease;
}
.fp-about-btn::before {
    content: '\00bb';
    font-weight: 700;
}
.fp-about-btn:hover {
    background: var(--sv-hover, #0c7bab);
    color: #ffffff;
}

@media (max-width: 992px) {
    .fp-about { padding: 40px 0 46px; }
    .fp-about-title { margin-bottom: 28px; }
    .fp-about-grid { grid-template-columns: 1fr; gap: 24px; }
    .fp-about-media img { min-height: 0; aspect-ratio: 16 / 9; }
    .fp-about-action { text-align: center; }
}

/* ==========================================================================
   首页证书图标模块（fp-certs-）：CSS 无缝自动轮播，无 JS
   ========================================================================== */
.fp-certs {
    background: #ffffff;
    padding: 20px 0 60px;
}
.fp-certs-title {
    text-align: center;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 500;
    color: #1d1d1d;
    letter-spacing: 0.5px;
    margin: 0 0 46px;
}
.fp-certs-marquee {
    display: flex;
    overflow: hidden;
    /* 两侧渐隐，突出中间内容 */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.fp-certs-track {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-shrink: 0;
    padding-right: 40px;
    animation: fp-certs-scroll 22s linear infinite;
}
.fp-certs-marquee:hover .fp-certs-track {
    animation-play-state: paused;
}
@keyframes fp-certs-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}
.fp-cert-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}
.fp-cert-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
@media (max-width: 992px) {
    .fp-certs { padding-bottom: 40px; }
    .fp-certs-title { margin-bottom: 30px; }
    .fp-cert-item { width: 120px; height: 120px; }
    .fp-certs-track { gap: 24px; padding-right: 24px; }
}

/* ==========================================================================
   首页产品轮播模块（fp-pc-）
   ========================================================================== */
.fp-pc {
    background: #ffffff;
    padding: 30px 0 70px;
}
.fp-pc-title {
    text-align: center;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 500;
    color: #1d1d1d;
    letter-spacing: 0.5px;
    margin: 0 0 14px;
}
.fp-pc-sub {
    text-align: center;
    font-size: 13px;
    color: #666666;
    max-width: 860px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.fp-pc-stage {
    position: relative;
    height: clamp(460px, 50vw, 640px);
    overflow: hidden;
    background: #0d1a44;
}
.fp-pc-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.7s ease;
}
.fp-pc-slide.active { opacity: 1; }

.fp-pc-panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 30%;
    min-width: 280px;
    background: linear-gradient(180deg, rgba(43, 154, 201, 0.92) 0%, rgba(15, 123, 171, 0.92) 100%);
    color: #ffffff;
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
}
.fp-pc-p-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 16px;
    color: #ffffff;
}
.fp-pc-p-desc {
    font-size: 13px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.92);
    overflow-y: auto;
}
.fp-pc-p-btn {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 11px 26px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    transition: background 0.25s ease, color 0.25s ease;
}
.fp-pc-p-btn::after { content: '\25B6'; font-size: 9px; }
.fp-pc-p-btn:hover {
    background: #ffffff;
    color: #0F8FCA;
}

.fp-pc-tabs {
    position: absolute;
    left: 30%;
    right: 0;
    bottom: 0;
    display: flex;
    max-width: none;
}
.fp-pc-tab {
    display: none;
    flex: 1;
    background: rgba(2, 2, 40, 0.55);
    color: #ffffff;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    padding: 18px 26px;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    transition: background 0.25s ease, color 0.25s ease;
}
.fp-pc-tab:not(.active) { display: block; }
.fp-pc-tab:hover {
    background: rgba(43, 154, 201, 0.85);
    color: #ffffff;
}

.fp-pc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(2, 2, 40, 0.45);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fp-pc-arrow:hover { background: rgba(43, 154, 201, 0.9); }
.fp-pc-prev { left: calc(30% + 24px); }
.fp-pc-next { right: 14px; }

@media (max-width: 992px) {
    .fp-pc { padding: 10px 0 46px; }
    .fp-pc-sub { margin-bottom: 26px; }
    .fp-pc-stage { height: auto; background: none; }
    .fp-pc-slide {
        position: relative;
        display: none;
        min-height: 300px;
    }
    .fp-pc-slide.active { display: block; }
    .fp-pc-panel {
        position: relative;
        width: 100%;
        min-width: 0;
        padding: 24px 20px;
    }
    .fp-pc-p-btn { margin-top: 18px; }
    .fp-pc-tabs {
        position: static;
        max-width: none;
        flex-wrap: wrap;
        margin-top: 12px;
    }
    .fp-pc-tab {
        background: #10294f;
        border: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        padding: 12px 16px;
        font-size: 13px;
    }
    .fp-pc-arrow { display: none; }
}

/* ==========================================================================
   首页 Mini PC 卡片模块（fp-mini-）：6 卡静态网格，每行 3 个，方形卡片
   ========================================================================== */
.fp-mini {
    background: #ffffff;
    padding: 30px 0 70px;
}
.fp-mini-title {
    text-align: center;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 500;
    color: #1d1d1d;
    letter-spacing: 0.5px;
    margin: 0 0 14px;
}
.fp-mini-sub {
    text-align: center;
    font-size: 13px;
    color: #666666;
    max-width: 860px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.fp-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.fp-mini-card {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f2f4f7;
    border: 1px solid #ececec;
    border-radius: 0;
    padding: 0;
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.25s ease;
    display: block;
}
.fp-mini-card:hover { border-color: #2b9ac9; }
.fp-mini-series {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 16px;
    max-width: calc(100% - 32px);
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: #1d1d1d;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.75);
}
.fp-mini-img {
    position: absolute;
    inset: 0;
}
.fp-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fp-mini-model {
    position: absolute;
    z-index: 2;
    bottom: 14px;
    left: 16px;
    right: 16px;
    font-size: 16px;
    color: #555555;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.75);
}

@media (max-width: 992px) {
    .fp-mini { padding: 10px 0 46px; }
    .fp-mini-sub { margin-bottom: 26px; }
    .fp-mini-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .fp-mini-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   首页解决方案轮播模块（fp-sl-）：左浅灰面板 + 右产品图，圆点切换
   模板: template-parts/fp-solutions.php
   ========================================================================== */
.fp-sl {
    background: #ffffff;
    padding: 30px 0 70px;
}
.fp-sl-title {
    text-align: center;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 500;
    color: #1d1d1d;
    letter-spacing: 0.5px;
    margin: 0 0 14px;
}
.fp-sl-sub {
    text-align: center;
    font-size: 13px;
    color: #666666;
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.fp-sl-stage {
    position: relative;
    min-height: 480px;
}
.fp-sl-slide {
    display: none;
}
.fp-sl-slide.active {
    display: flex;
    align-items: stretch;
    min-height: 480px;
    animation: fp-sl-fade 0.7s ease;
}
@keyframes fp-sl-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fp-sl-panel {
    width: 47%;
    flex-shrink: 0;
    background: #f2f4f7;
    border: 1px solid #ececec;
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
}
.fp-sl-icon { margin-bottom: 22px; }
.fp-sl-p-title {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1d;
    margin: 0 0 8px;
}
.fp-sl-p-cat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #888888;
    line-height: 1.6;
}
.fp-sl-p-line {
    display: block;
    width: 26px;
    height: 3px;
    background: #2b9ac9;
    margin: 16px 0 18px;
}
.fp-sl-p-desc {
    font-size: 13px;
    color: #555555;
    line-height: 1.9;
    flex: 1;
}
.fp-sl-p-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1d1d1d;
    text-decoration: none;
    transition: color 0.25s ease;
}
.fp-sl-p-btn::after { content: '\25B6'; font-size: 9px; }
.fp-sl-p-btn:hover { color: #2b9ac9; }
.fp-sl-media {
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
}
.fp-sl-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fp-sl-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}
.fp-sl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #cfd8e0;
    transition: background 0.25s ease;
}
.fp-sl-dot:hover { background: #9fb2c0; }
.fp-sl-dot.active { background: #2b9ac9; }

@media (max-width: 992px) {
    .fp-sl { padding: 10px 0 46px; }
    .fp-sl-sub { margin-bottom: 26px; }
    .fp-sl-stage { min-height: 0; }
    .fp-sl-slide.active { flex-direction: column; min-height: 0; }
    .fp-sl-panel { width: 100%; padding: 28px 24px; }
    .fp-sl-media { width: 100%; height: 260px; min-height: 260px; }
}

/* ==========================================================================
   底部 CTA 询价模块（sv-cta-）：footer.php 内，紧贴 footer-bottom
   ========================================================================== */
.sv-cta {
    position: relative;
    scroll-margin-top: 20px;
    background: #16418f url('https://www.sharevdi.com/upload/admin/20220613/202206131510567891.jpg') center / cover no-repeat;
    padding: 28px 20px 34px;
}
.sv-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(16, 41, 79, 0.45);
}
.sv-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}
.sv-cta-title {
    text-align: center;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 4px;
}
.sv-cta-sub {
    text-align: center;
    font-size: 13px;
    color: #e6ecf5;
    margin: 0 0 20px;
}
.sv-cta-form .forminator-custom-form,
.sv-cta-form .forminator-custom-form__inner,
.sv-cta-form .forminator-form,
.sv-cta-form .forminator-elements-wrapper,
.sv-cta-form .forminator-row,
.sv-cta-form .forminator-column {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
.sv-cta-form label,
.sv-cta-form .forminator-label {
    color: #ffffff;
    font-size: 13px;
}
.sv-cta-form .forminator-row {
    margin-bottom: 12px !important;
}
.sv-cta-form input[type="text"],
.sv-cta-form input[type="email"],
.sv-cta-form input[type="tel"],
.sv-cta-form input[type="url"],
.sv-cta-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 0;
    padding: 10px 14px;
    font-size: 14px;
    color: #333333;
    box-shadow: none;
}
.forminator-description{color:#fff;}
.sv-cta-form textarea {
    height: 90px;
    min-height: 90px !important;
    max-height: 120px;
    resize: vertical;
}
.sv-cta-form input::placeholder,
.sv-cta-form textarea::placeholder { color: #555555; }
.sv-cta-form input:focus,
.sv-cta-form textarea:focus {
    background: #ffffff;
    outline: none;
    border-color: #ffffff;
}
.sv-cta-form .forminator-button,
.sv-cta-form .forminator-button-submit,
.sv-cta-form button[type="submit"] {
    background: #e8863a;
    color: #ffffff;
    border: 0;
    border-radius: 0;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
}
.sv-cta-form .forminator-button:hover,
.sv-cta-form .forminator-button-submit:hover,
.sv-cta-form button[type="submit"]:hover { background: #d2732a; }

@media (max-width: 992px) {
    .sv-cta { padding: 22px 16px 28px; }
    .sv-cta-sub { margin-bottom: 16px; }
}

/* ============ Page template: hero banner with featured image background ============ */
.page-hero {
    position: relative;
    min-height: clamp(260px, 30vw, 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg .page-hero-img,
.page-hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-hero-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #16418f 0%, #2b9ac9 100%);
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 26, 48, 0.45);
}
.page-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px;
    text-align: center;
}
.page-breadcrumb {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
}
.page-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}
.page-breadcrumb a:hover { color: #ffffff; }
.page-breadcrumb .breadcrumb-sep { margin: 0 8px; color: rgba(255, 255, 255, 0.6); }
.page-breadcrumb .breadcrumb-current { color: #ffffff; }
.page-title {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
}
.page-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 50px 24px 70px;
}
.page-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.page-content h2, .page-content h3 { color: #1d1d1d; margin: 32px 0 14px; }
.page-content img { max-width: 100%; height: auto; }
/* Single post: meta line under hero title + prev/next */
.page-meta {
    margin-top: 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}
.page-meta a { color: #ffffff; text-decoration: none; }
.page-meta a:hover { text-decoration: underline; }
.page-meta .page-meta-sep { margin: 0 8px; color: rgba(255, 255, 255, 0.6); }
.page-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
    font-size: 15px;
}
.page-post-nav a { color: #16418f; text-decoration: none; }
.page-post-nav a:hover { text-decoration: underline; }
.page-post-next { margin-left: auto; }
/* Single post: related articles */
.page-related { margin-top: 56px; }
.page-related-title {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1d;
    margin: 0 0 22px;
    padding-left: 12px;
    border-left: 3px solid #16418f;
}
.page-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.page-related-card {
    display: block;
    border: 1px solid #e5e5e5;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s ease;
}
.page-related-card:hover { border-color: #16418f; }
.page-related-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #16418f 0%, #2b9ac9 100%);
}
.page-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-related-name {
    margin: 0;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1d;
    line-height: 1.4;
}
@media (max-width: 782px) {
    .page-related-grid { grid-template-columns: 1fr; gap: 16px; }
}
/* ============ Blog page template (blog.php): 3-col card grid + pagination ============ */
.page-template-blog .page-hero { min-height: clamp(200px, 22vw, 300px); }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e5e5;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s ease;
}
.blog-card:hover { border-color: #16418f; }
.blog-card-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #16418f 0%, #2b9ac9 100%);
}
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.blog-card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #1d1d1d;
}
.blog-card:hover .blog-card-title { color: #16418f; }
.blog-card-excerpt { margin: 0; font-size: 14px; line-height: 1.6; color: #666; }
.blog-card-date { font-size: 13px; color: #999; }
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 44px;
}
.blog-pagination a,
.blog-pagination span {
    display: inline-block;
    min-width: 36px;
    padding: 8px 12px;
    text-align: center;
    font-size: 14px;
    color: #333;
    border: 1px solid #e5e5e5;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.blog-pagination a:hover { color: #16418f; border-color: #16418f; }
.blog-pagination .current { color: #fff; background: #16418f; border-color: #16418f; }
.blog-empty { text-align: center; color: #666; padding: 40px 0; }
@media (max-width: 992px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; }
}
/* Blog page: narrow content column so the 3-col grid area matches the related grid */
.page-template-blog .page-main { max-width: 1280px; }

/* ============ FAQ accordion (native core/details blocks), flat & spacious ============ */
.page-content .wp-block-details {
    max-width: 920px;
    margin: 0 auto 0;
    border-bottom: 1px solid #e2e5ea;
}
.page-content .wp-block-details summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 26px 56px 26px 4px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.5;
    color: #1d1d1d;
    transition: color 0.2s ease;
}
.page-content .wp-block-details summary::-webkit-details-marker { display: none; }
.page-content .wp-block-details summary:hover { color: #16418f; }
.page-content .wp-block-details[open] > summary { color: #16418f; }
/* plus icon, becomes minus when open */
.page-content .wp-block-details summary::before,
.page-content .wp-block-details summary::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 18px;
    height: 2px;
    background: #16418f;
    transform: translateY(-50%);
    transition: opacity 0.2s ease;
}
.page-content .wp-block-details summary::after { transform: translateY(-50%) rotate(90deg); }
.page-content .wp-block-details[open] summary::after { opacity: 0; }
.page-content .wp-block-details > p,
.page-content .wp-block-details .wp-block-paragraph {
    margin: 0 0 26px;
    padding: 0 56px 0 4px;
    max-width: 820px;
    font-size: 16px;
    line-height: 2;
    color: #555;
}
@media (max-width: 992px) {
    .page-hero { min-height: 220px; }
    .page-hero-inner { padding: 28px 16px; }
    .page-main { padding: 34px 16px 50px; }
}


