:root {
    --primary: #06b6d4;
    --primary-dark: #0284c7;
    --primary-light: #bae6fd;
    --dark: #0f172a;
    --gray-700: #334155;
    --gray-200: #e2e8f0;
    --white: #ffffff;
    --bd-white: #f8fafc;
    --md-whire: #94a3b8;
    --shadow: 0 6px 24px rgba(6, 182, 212, 0.15);
    --transition: all 0.3s ease;
    --container-max: 1560px;
    --nav-height: 78px;
    --mega-max-height: 580px;
    /* 页脚专属变量 */
    --footer-bg: #0f172a;
    --footer-secondary: #1e293b;
    --footer-text: #cbd5e1;
    --footer-light: #f1f5f9;
    --danger: #ef4444;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

a {
    text-decoration: none;
}

body {
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--bd-white);
    padding-top: var(--nav-height);
    /*background-color: var(--dark);*/
    /*background-image: radial-gradient(circle at 20% 10%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),*/
    /*                          radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);*/
}

/* 导航头部 固定全屏 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: var(--footer-bg);
    transition: var(--transition);
}

.site-header.scrolled {
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    border-bottom-color: var(--gray-200);
}

/* ========== 关键优化：导航容器垂直居中核心 ========== */
.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    height: var(--nav-height);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center; /* 整行所有元素统一垂直居中 */
    gap: 2rem;
    position: relative;
}

/* Logo区域 */
.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.6rem;
}

.brand-logo img {
    height: 78px;
    width: 150px;
    object-fit: contain;
    /* 图片自适应容器垂直居中，不会撑高导航 */
}

/* 桌面端主导航：flex居中排布，内部条目全部垂直居中 */
.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%; /* 继承父容器高度，统一基线 */
}

/* 导航条目重构：取消上下多余padding，用flex完美居中 */
.nav-item {
    height: 100%;
}

.nav-item:hover {
    background-color: var(--primary);
}

.nav-item.active {
    background-color: var(--primary);
}

.nav-item a {
    height: 100%;
    padding: 0 1.2rem;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center; /* 文字+箭头垂直居中 */
}

.nav-link-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    pointer-events: none;
    white-space: nowrap;
}

.arrow {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.nav-item:hover .arrow {
    transform: rotate(180deg);
}



/* =======================================================
   基础下拉菜单结构：高级展开动画
   ======================================================= */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    /* 默认状态：往下掉落，且略微缩小 */
    transform: translateY(30px) scale(0.98);
    transform-origin: top center;
    /* 使用苹果御用的顺滑曲线 */
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.5s;
    z-index: 9998;
    pointer-events: none;
}

.nav-item:hover > .mega-menu {
    opacity: 1;
    visibility: visible;
    /* 悬停时恢复原位 */
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* =======================================================
   全屏下拉容器：保留毛玻璃效果
   ======================================================= */
.mega-menu.product-mega {
    position: fixed;
    top: 78px; /* ⚠️ 请确保等于你网站顶部导航栏的实际高度 */
    left: 50%;
    transform: translateX(-50%) translateY(30px) scale(0.98);
    width: 100vw;

    /* 毛玻璃核心代码 */
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-radius: 0 0 32px 32px;
    border-top: 1px solid rgba(6, 182, 212, 0.3);
    background-image: radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent 50%);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.1);
}

.nav-item:hover > .product-mega {
    transform: translateX(-50%) translateY(0) scale(1);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.15);
}

/* =======================================================
   内部滚动容器
   ======================================================= */
.mega-scroll-wrap {
    width: 100%;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 3rem 3rem 4rem 3rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.mega-scroll-wrap::-webkit-scrollbar { width: 4px; }
.mega-scroll-wrap::-webkit-scrollbar-track { background: transparent; }
.mega-scroll-wrap::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; }
.mega-scroll-wrap::-webkit-scrollbar-thumb:hover { background-color: #06b6d4; }

/* =======================================================
   ★ 核心动效：内部瀑布流浮现 (Staggered Reveal)
   ======================================================= */
.mega-inner-wrap {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2rem;
    width: 100%;
    align-items: start;
}

/* 针对每一列的初始状态：向下位移且透明 */
.mega-column {
    opacity: 0;
    transform: translateY(20px);
    /* 初始状态下，过渡延迟为 0 */
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 鼠标悬浮时，触发内部列的浮现，并利用 nth-child 添加依次延迟 */
.nav-item:hover .mega-column {
    opacity: 1;
    transform: translateY(0);
}

.nav-item:hover .mega-column:nth-child(1) { transition-delay: 0.05s; }
.nav-item:hover .mega-column:nth-child(2) { transition-delay: 0.10s; }
.nav-item:hover .mega-column:nth-child(3) { transition-delay: 0.15s; }
.nav-item:hover .mega-column:nth-child(4) { transition-delay: 0.20s; }
.nav-item:hover .mega-column:nth-child(5) { transition-delay: 0.25s; }
.nav-item:hover .mega-column:nth-child(6) { transition-delay: 0.30s; }
.nav-item:hover .mega-column:nth-child(7) { transition-delay: 0.35s; }

/* =======================================================
   标题区域：文字居中 + 左侧固定短线
   ======================================================= */
.mega-column h4 {
    margin: 0 auto 1.5rem auto;
    padding-bottom: 1rem;
    position: relative;
    width: 100%;
    max-width: 180px;
    text-align: center;
    min-height: 3rem;
}

.mega-header-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.mega-column:hover .mega-header-link {
    color: #06b6d4;
}

.mega-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #06b6d4;
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mega-column:hover h4::after {
    width: 30px;
}

/* =======================================================
   产品卡片
   ======================================================= */
.mega-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.mega-column li {
    width: 100%;
    display: flex;
    justify-content: center;
}

.product-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0;
    background: transparent;
    width: 100%;
    max-width: 180px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.prod-thumb {
    width: 100%;
    max-width: 100%;
    height: 110px;
    object-fit: contain;
    margin: 0 auto 1rem auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.08));
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.product-link:hover .prod-thumb {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(0 15px 25px rgba(6, 182, 212, 0.25));
}

.prod-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    text-align: center;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    width: 100%;
}

.product-link:hover .prod-text {
    color: #0f172a;
}

/* =======================================================
   响应式适配
   ======================================================= */
@media (max-width: 1400px) {
    .mega-inner-wrap { gap: 1.5rem; }
    .mega-scroll-wrap { padding: 2rem; }
    .prod-thumb { height: 90px; }
    .mega-column h4 { max-width: 150px; }
    .product-link { max-width: 150px; }
    .mega-header-link { font-size: 0.8rem; letter-spacing: 0.04em; }
}

@media (max-width: 1200px) {
    .mega-inner-wrap { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
    .mega-inner-wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .mega-menu.product-mega { display: none; }
}



/* =======================================================
   高端 Support 下拉面板（严格居中对齐按钮）
   ======================================================= */

/* 1. 确保父级导航项是相对定位 */
.nav-item {
    position: relative;
}

/* 2. 弹窗以父级按钮为中心 */
.mega-menu.support-mega {
    position: absolute; /* 改回 absolute，依据父级按钮定位 */
    top: 100%; /* 紧贴按钮下方 */
    left: 50%; /* 基准线设在按钮正中间 */

    /* 初始状态：居中，稍微下移，微缩 */
    transform: translateX(-50%) translateY(20px) scale(0.95);
    transform-origin: top center;

    /* 宽度调整：跟你的截图看，320px 可能偏宽，改为 260px 更精致 */
    width: 260px;
    padding: 1rem;

    /* 底部大圆角 */
    border-radius: 0 0 20px 20px;

    /* 顶级毛玻璃背景 */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    /* 顶部青色高光亮线，左右浅色边框增加立体感 */
    border-top: 2px solid #06b6d4;
    border-left: 1px solid rgba(255, 255, 255, 0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0,0,0,0.02);

    /* 苹果级过渡动画 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.4s;
}

/* 3. 悬浮时归位并恢复大小 */
.nav-item:hover > .support-mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

/* =======================================================
   内部卡片样式
   ======================================================= */
.support-mega .plain-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.support-mega .plain-link {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 图标和文字靠左对齐 */
    padding: 0.8rem 1rem;
    color: #334155;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 保证图标大小和颜色一致 */
.support-mega .plain-link svg {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    color: #06b6d4;
    transition: transform 0.3s ease;
}

/* 鼠标悬浮时的卡片效果 */
.support-mega .plain-link:hover {
    color: #06b6d4;
    background: #ffffff;
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.08);
    transform: translateY(-2px);
}

.support-mega .plain-link:hover svg {
    transform: scale(1.1); /* 图标微微放大 */
}

/* 鼠标悬浮时右侧出现小箭头 */
.support-mega .plain-link::after {
    content: '→';
    font-family: monospace;
    margin-left: auto; /* 箭头推到最右边 */
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.support-mega .plain-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}





/* 产品卡片链接 */
.product-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 0.9rem;
    transition: var(--transition);
}

.product-link:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.prod-thumb {
    width: 100%;
    max-width: 150px;
    aspect-ratio: 1;
    height: auto;
}

.prod-text {
    text-align: center;
    line-height: 1.5;
}

/* 纯文字链接 */
.plain-links li {
    list-style: none;
    margin-bottom: 1.4rem;
}

.plain-link {
    display: block;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.4rem 0;
}

.plain-link:hover {
    color: var(--primary);
    padding-left: 6px;
}

/* 导航右侧操作栏：搜索按钮 + 询价按钮 横向排列 */
.nav-action-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 高端搜索唤起按钮 */
.search-trigger-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--footer-bg);
    background: var(--white);
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--gray-700);
    transition: var(--transition);
}

.search-trigger-btn:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.search-trigger-btn svg {
    width: 18px;
    height: 18px;
    color: var(--footer-bg);
}

/* 右侧询价按钮：自身垂直居中 */
.quote-btn {
    padding: 0.75rem 1.8rem;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 999px;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
    align-self: center; /* 网格内强制居中 */
}

.quote-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.28);
}

/* 移动端汉堡按钮 */
.mobile-toggle {
    display: none;
    border: none;
    background: transparent;
    width: 42px;
    height: 42px;
    cursor: pointer;
    align-self: center;
}

.ham-line {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--primary);
    margin: 6px auto;
    transition: var(--transition);
}

.mobile-toggle.active .ham-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active .ham-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .ham-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 移动端侧边菜单面板 */
.mobile-menu-panel {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: var(--white);
    z-index: 9997;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

.mobile-menu-panel.open {
    transform: translateX(0);
}

.mobile-nav-item {
    border-bottom: 1px solid var(--gray-200);
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.6rem;
    font-size: 1.08rem;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background-color: var(--primary-light);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-submenu.open {
    max-height: 650px;
    overflow-y: auto;
}

.mobile-submenu a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 6px;
    margin: 0 0.5rem 1rem;
}

.mobile-submenu a:hover {
    background-color: var(--primary-light);
}

.mobile-cta-bottom {
    margin-top: 2.5rem;
}

/* ===================== 全屏搜索弹窗样式（核心高端模块） ===================== */
.search-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* 搜索容器盒子 */
.search-box-wrap {
    width: min(720px, 100%);
    transform: translateY(20px) scale(0.97);
    transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

.search-overlay.open .search-box-wrap {
    transform: translateY(0) scale(1);
}

/* 搜索表单主体 */
.search-form {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 16px;
    padding: 0.6rem;
    box-shadow: 0 12px 40px rgba(6, 182, 212, 0.18);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 1.4rem;
    font-size: 1.15rem;
    color: var(--dark);
    background: transparent;
}

.search-input::placeholder {
    color: var(--md-whire);
}

.search-input:focus-visible {
    outline: none;
    outline-offset: 0;
}

.search-submit-btn {
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: var(--white);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.search-submit-btn:hover {
    background: var(--primary-dark);
}

/* 关闭搜索按钮 */
.search-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: var(--white);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: var(--transition);
}

.search-close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* 底部快捷键提示文案 */
.search-tips-text {
    text-align: center;
    margin-top: 1.2rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
}

/* ========== 响应式规则 ========== */
@media (max-width: 1280px) {
    .mega-inner-wrap {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
        grid-column: 3;
    }

    /*.nav-action-group {*/
    /*    margin-left: 70px;*/
    /*}*/
    .nav-action-group .quote-btn {
        display: none;
    }

    :root {
        --nav-height: 70px;
    }

    .mega-menu {
        display: none !important;
    }


    .nav-container {
        grid-template-columns: auto 1fr auto auto;
    }

    .mobile-toggle {
        grid-column: 4;
    }

    .nav-action-group {
        grid-column: 3;
    }

    .nav-action-group .search-trigger-btn {
        display: block !important;
    }
}

@media (max-width: 992px) {
    .mega-inner-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .brand-logo img {
        width: 135px;
        height: 70px;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .mega-inner-wrap {
        grid-template-columns: 1fr;
    }

    .search-form {
        padding: 0.5rem;
    }

    .search-input {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .search-submit-btn {
        padding: 0.7rem 1.2rem;
    }

    /*新增修复搜索弹窗左右边距*/
    .search-overlay {
        padding: 0.5rem;
    }

    .search-tips-text {
        display: none;
    }
}

@media screen and (max-width: 1024px) {
    .prod-thumb {
        display: none !important;
    }
}


/* ===================== 社媒样式 ===================== */
/* 悬浮容器基础样式 */
.social-float-wrap {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

/* 按钮通用样式 */
.social-btn {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
    transition: all 0.25s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.social-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(6, 182, 212, 0.45);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.social-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.back-top {
    border: none
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .social-float-wrap {
        right: 0;
        bottom: 0;
        top: auto;
        transform: none;
        flex-direction: row;
        width: 100vw;
        gap: 0;
    }

    .social-btn {
        flex: 1;
        height: 60px;
        border-radius: 0;
        box-shadow: none;
        /* 整组统一背景色，视觉完全融为一体 */
        background: var(--primary);
    }

    /* 移动端取消hover上浮，手机无悬停 */
    .social-btn:hover {
        transform: none;
        box-shadow: none;
        background: var(--primary-dark);
    }
}


/* ===================== 高端页脚样式开始 ===================== */
footer.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
}

.footer-top {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 品牌介绍栏 */
.footer-col-brand .footer-logo {
    margin-bottom: 1.2rem;
}

.footer-col-brand .footer-logo img {
    height: 78px;
    object-fit: contain;
}

.footer-info {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.footer-info a {
    color: var(--footer-text);
}

.footer-info a:hover {
    color: var(--primary);
    transition: all 550ms;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 2rem;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    color: var(--footer-light);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

/* 通用栏目标题 */
.footer-col h3 {
    color: var(--footer-light);
    font-size: 1.1rem;
    margin-bottom: 1.6rem;
    padding-bottom: 0.6rem;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.9rem;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.85;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    opacity: 1;
    padding-left: 5px;
}

/* 咨询表单区域 */
.footer-form-wrap {
    background: var(--footer-secondary);
    padding: 1.8rem;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.form-row {
    margin-bottom: 1rem;
}

.form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.footer-form input:focus,
.footer-form textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.code-row {
    display: flex;
    gap: 0.7rem;
}

.code-input {
    flex: 1;
}

.canvas-code {
    width: 110px;
    height: 42px;
    border-radius: 6px;
    cursor: pointer;
}

.submit-footer-btn {
    width: 100%;
    padding: 0.85rem;
    border-radius: 6px;
    border: none;
    background: var(--primary);
    color: var(--white);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.submit-footer-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.25);
}

.submit-footer-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-tip {
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
}

.tip-error {
    color: var(--danger);
    display: block;
}

.tip-success {
    color: var(--success);
    display: block;
}

/* 底部版权栏 */
.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.8rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: underline;
}

.footer-bottom a:hover {
    text-decoration: none;
}

/* 响应式页脚适配 */
@media (max-width: 1200px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-top {
        display: none;
    }

    .form-row-two {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
        margin-bottom: 60px;
    }
}

/* ===================== 页脚样式结束 ===================== */


/* ===================== cookie样式 ===================== */
/* 外部遮罩与弹窗容器 */
.dpjet-gdpr-cookie-wrapper {
    position: fixed;
    bottom: 24px;
    left: 0;
    width: 100%;
    padding: 0 16px;
    display: flex;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.5s;
}

.dpjet-gdpr-cookie-wrapper.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 核心卡片：限制最大宽度 1560px */
.dpjet-gdpr-cookie-card {
    width: 100%;
    max-width: 1560px;
    background: rgba(11, 15, 25, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 20px;
    padding: 24px 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 30px rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.dpjet-gdpr-cookie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* 左侧文案区 */
.dpjet-gdpr-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.dpjet-gdpr-text .dpjet-gdpr-heading {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dpjet-gdpr-text p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--md-whire);
}

/* 右侧按钮组 */
.dpjet-gdpr-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.dpjet-g-btn {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 22px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dpjet-g-btn-settings {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--footer-light);
}

.dpjet-g-btn-settings:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.dpjet-g-btn-reject {
    background: transparent;
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: var(--primary);
}

.dpjet-g-btn-reject:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--primary);
    color: var(--white);
}

.dpjet-g-btn-accept {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #0b0f19;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
}

.dpjet-g-btn-accept:hover {
    background: #22d3ee;
    border-color: #22d3ee;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
    transform: translateY(-1px);
}

/* --- 详细设置弹窗 (Modal) 样式 --- */
.dpjet-gdpr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dpjet-gdpr-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.dpjet-gdpr-modal {
    width: 100%;
    max-width: 650px;
    background: #0f172a;
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    position: relative;
}

.dpjet-modal-close-x {
    position: absolute;
    top: 20px;
    right: 24px;
    background: transparent;
    border: none;
    color: var(--md-whire);
    font-size: 22px;
    cursor: pointer;
}

.dpjet-modal-close-x:hover {
    color: var(--white);
}

.dpjet-gdpr-modal-overlay.open .dpjet-gdpr-modal {
    transform: scale(1);
}

.dpjet-gdpr-modal h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.dpjet-gdpr-modal p {
    font-size: 13px;
    color: var(--md-whire);
    line-height: 1.5;
    margin-bottom: 20px;
}

.dpjet-cookie-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 12px;
}

.dpjet-cookie-option-info {
    flex: 1;
    min-width: 0; /* 防止文字溢出撑坏布局 */
}

.dpjet-cookie-option-info .dpjet-option-heading {
    font-size: 14px;
    color: var(--white);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dpjet-cookie-option-info span {
    font-size: 12px;
    color: var(--md-whire);
    display: block;
}

.dpjet-always-enabled-text {
    font-size: 12px;
    color: #4ade80 !important;
}

/* 【优化点】开关样式防变形：加入 flex-shrink: 0 与显式宽高 */
.dpjet-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.dpjet-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dpjet-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #334155;
    transition: background-color 0.3s ease;
    border-radius: 24px;
}

.dpjet-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

input:checked + .dpjet-slider {
    background-color: var(--primary);
}

input:checked + .dpjet-slider:before {
    transform: translateX(20px);
}

input:disabled + .dpjet-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.dpjet-gdpr-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .dpjet-gdpr-cookie-card {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px;
    }

    .dpjet-gdpr-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .dpjet-g-btn {
        width: 100%;
        text-align: center;
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .dpjet-gdpr-actions {
        grid-template-columns: 1fr;
    }

    .dpjet-gdpr-modal {
        padding: 20px;
    }

    .dpjet-cookie-option-item {
        padding: 12px;
    }
}
