/* ========================================
   global.css - 全局样式文件
   所有页面共用此文件
   包含: 头部导航、底部、通用组件
   主题: 深色科技风
   ======================================== */

/* ---------- CSS 变量 ---------- */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #3b82f6;
    --dark-bg: #0a1628;
    --dark-bg-2: #0f1d36;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --text-light: #ffffff;
    --text-muted-light: rgba(255, 255, 255, 0.7);
    --bg-light: #f8fafc;
    --border-color: #e5e7eb;
    --border-dark: rgba(255, 255, 255, 0.1);
    --header-height: 72px;
    --header-bg: #010E28;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

/* ---------- 全局重置 ---------- */
html {
    height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1 0 auto;
    margin: 0;
}

#footer-placeholder {
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ========================================
   头部导航样式 - 深色主题
   ======================================== */

.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(1, 14, 40, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    background: #010E28;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Logo 区域 */
.site-header .navbar-brand {
    gap: 10px;
    margin-right: 0;
}

.brand-logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

/* Logo 文字 */
.brand-text {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    line-height: 1;
}

.brand-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.brand-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

/* 导航菜单 */
.site-header .navbar-nav {
    gap: 4px;
    margin-left: auto;
    margin-right: 0;
}

.site-header .nav-link {
    position: relative;
    padding: 8px 16px !important;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85) !important;
    border-radius: 6px;
    transition: var(--transition);
}

.site-header .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

.site-header .nav-link.active {
    color: #fff !important;
}

.site-header .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
    border-radius: 2px;
}

/* 下拉菜单激活时不显示底部横线，保留三角箭头 */
.site-header .nav-link.dropdown-toggle.active::after {
    content: "";
    position: static;
    bottom: auto;
    left: auto;
    transform: none;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
    transition: transform 0.25s ease;
}

.site-header .nav-link.dropdown-toggle.active[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* 下拉菜单：父级不跳转，悬浮展开 */
.site-header .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
}

/* 三级下拉菜单：向右展开 */
.site-header .dropdown-submenu {
    position: relative;
    border-radius: 6px;
}

.site-header .dropdown-submenu > .dropdown-toggle {
    position: relative;
    padding-right: 32px;
}

.site-header .dropdown-submenu > .dropdown-toggle::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-right: 0;
    border-bottom: 6px solid transparent;
    border-left: 8px solid #999;
    transition: transform 0.25s ease;
}

.site-header .dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.site-header .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -8px;
    margin-left: 2px;
}

.site-header .dropdown-submenu:hover > .dropdown-toggle::after {
    transform: translateY(-50%) translateX(3px);
    border-left-color: #005BAC;
}

/* 下拉菜单 */
.site-header .dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px;
    min-width: 240px;
}

.site-header .dropdown-menu .dropdown-item {
    padding-left: 14px;
    padding-right: 14px;
    border-radius: 6px;
}

.site-header .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.site-header .dropdown-item:hover {
    background: rgba(0, 91, 172, 0.06);
    color: #005BAC;
}

/* 子菜单选中：白字 + 主题色背景 */
.site-header .dropdown-item.active,
.site-header .dropdown-item.active:hover {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

/* 下拉菜单动画 */
.site-header .dropdown-menu {
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 右侧按钮 */
.header-actions {
    margin-left: 0;
}

.btn-consult {
    display: inline-block;
    padding: 9px 26px;
    font-size: 14px;
    font-weight: 500;
    background: #005BAC;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-consult:hover {
    background: #0A2E5C;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 91, 172, 0.4);
    color: #fff;
}

/* 移动端折叠按钮 */
.navbar-toggler {
    border: none !important;
    padding: 8px !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* ========================================
   响应式 - 平板及以下
   ======================================== */
@media (max-width: 991.98px) {
    :root {
        --header-height: 64px;
    }

    .site-header .navbar-collapse {
        background: #010E28;
        border-radius: 0 0 12px 12px;
        box-shadow: var(--shadow-lg);
        padding: 16px;
        margin-top: 8px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        /* 导航项过多时菜单内部滚动，保证全部显示 */
        max-height: calc(100vh - var(--header-height) - 16px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-header .navbar-nav {
        gap: 0;
    }

    .site-header .nav-link {
        padding: 12px 16px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .site-header .nav-link:last-child {
        border-bottom: none;
    }

    .site-header .nav-link.active::after {
        display: none;
    }

    .site-header .nav-link.active {
        background: rgba(37, 99, 235, 0.15);
        color: #fff !important;
    }

    /* 移动端：禁用悬浮展开，子菜单默认隐藏，由 JS 点击展开/收起 */
    .site-header .nav-item.dropdown:hover > .dropdown-menu {
        display: none;
    }

    .site-header .dropdown-menu {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 4px 16px;
        min-width: 0;
        animation: none;
    }

    .site-header .dropdown-item {
        color: rgba(255, 255, 255, 0.85);
        padding: 8px 16px;
        border-radius: 6px;
    }

    .site-header .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

    .site-header .dropdown-item.active,
    .site-header .dropdown-item.active:hover {
        background: var(--primary-color);
        color: #fff;
        font-weight: 600;
    }

    /* 移动端产品方案：隐藏图标，改为紧凑文字列表 */
    .site-header .nav-mega-icon {
        display: none !important;
    }

    .site-header .mega-group--with-sub,
    .site-header .mega-group--no-sub {
        display: block;
        border-top: none;
    }

    .site-header .nav-mega-col {
        display: block;
        padding: 0;
        border-bottom: none;
        background: transparent;
    }

    .site-header .nav-mega-col:hover {
        background: transparent;
    }

    .site-header .nav-mega-item--wide,
    .site-header .nav-mega-item--link {
        display: block;
        width: 100%;
        height: auto;
        padding: 6px 0;
        gap: 0;
    }

    .site-header .nav-mega-header {
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .site-header .nav-mega-title {
        font-size: 15px;
        color: #0A2E5C;
    }

    .site-header .nav-mega-item--link.active {
        background: rgba(37, 99, 235, 0.06);
        border-radius: 6px;
    }

    .site-header .nav-mega-item--link.active .nav-mega-title {
        color: var(--primary-color);
    }

    .site-header .nav-mega-links--grid {
        margin-left: 12px;
    }

    .site-header .nav-mega-links--grid .dropdown-item {
        padding: 4px 0 4px 12px;
        font-size: 14px;
    }

    .header-actions {
        margin: 16px 0 0 0;
        text-align: center;
    }

    .btn-consult {
        display: block;
        width: 100%;
    }
}

/* 桌面端隐藏移动端样式 */
@media (min-width: 992px) {
    .btn-consult {
        display: inline-block;
    }
}

/* ========================================
   页面通用组件
   ======================================== */

/* 页面横幅 (Banner) - 深色科技风 */
.page-banner {
    background-image: url('../static/about/关于鹏达信息.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

/* 科技网格背景 */
.page-banner .tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-breadcrumb {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 16px;
}

.banner-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
}

.banner-breadcrumb a:hover {
    color: #fff;
}

.banner-breadcrumb .separator {
    margin: 0 8px;
    opacity: 0.6;
}

.banner-title {
    font-size: 60px;
    font-weight: 700;
    margin: 0 0 20px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #dbeafe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-subtitle {
    font-size: 22px;
    opacity: 0.9;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.85);
}

/* 横幅右侧特性图标组 */
.banner-features {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    min-width: 90px;
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg,
.feature-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.feature-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

/* 横幅装饰元素 */
.banner-decorations {
    position: absolute;
    right: -50px;
    bottom: -30px;
    width: 400px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    .page-banner {
        padding: 50px 0;
    }

    .banner-title {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .banner-features {
        justify-content: flex-start;
        margin-top: 24px;
    }

    .feature-item {
        min-width: 80px;
        padding: 12px 8px;
    }

    .feature-label {
        font-size: 11px;
    }

    .about-stats {
        margin-bottom: 32px;
    }

    .qualification-section .row {
        --bs-gutter-x: 1rem;
    }

    .qualification-img {
        height: 200px;
    }
}

/* ========================================
   通用区块
   ======================================== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 48px;
}

/* ========================================
   关于我们 - 公司概况
   ======================================== */
.about-section {
    padding: 80px 0;
    background: #fff;
}

.about-section .section-title {
    text-align: left;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    color: #005BAC;
}

.about-section .section-title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50%;
    height: 4px;
    background: #005BAC;
    border-radius: 2px;
}

.about-text p {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 15px;
    text-indent: 2em;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-size: 40px;
    font-weight: 700;
    color: #005BAC;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.about-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 580px;
}

.about-image-wrapper .carousel,
.about-image-wrapper .carousel-inner,
.about-image-wrapper .carousel-item {
    height: 100%;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 特性能力卡片 */
.capability-grid {
    padding: 80px 0;
    background: var(--bg-light);
}

.capability-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
}

.capability-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.capability-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.capability-icon svg,
.capability-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.capability-icon svg {
    color: var(--primary-color);
}

.capability-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.capability-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* ========================================
   底部
   ======================================== */
.site-footer {
    flex-shrink: 0;
    background: #0A2E5C;
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 0;
    margin-top: auto;
    font-size: 16px;
}

.site-footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 18px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    transition: var(--transition);
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom .footer-address {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.footer-bottom .footer-bottom-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 16px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 0;
}

.footer-bottom a:hover {
    color: #fff;
}

.footer-bottom .footer-divider {
    color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   企业资质
   ======================================== */
.qualification-section {
    padding: 60px 0;
    background-image: url('../static/cert/企业资质.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.qualification-section .section-title {
    color: #fff;
    margin-bottom: 32px;
}

.qualification-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px;
    transition: var(--transition);
}

.qualification-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.qualification-card h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

/* ========================================
   企业综合服务能力
   ======================================== */
.service-section {
    padding: 80px 0;
    background: #fff;
}

.service-section .section-title {
    color: #005BAC;
    margin-bottom: 48px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: left;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    gap: 20px;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.service-info {
    flex: 1;
}

.service-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.service-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.7;
}

/* ========================================
   愿景与价值观
   ======================================== */
.values-section {
    padding: 80px 0 40px;
    margin-bottom: 0;
    background-image: url('../static/vision/愿景与价值观.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

.values-section .section-title {
    color: #fff;
}

.values-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.value-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 32px 28px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.value-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.value-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.8;
}

/* ========================================
   页脚
   ======================================== */
.site-footer {
    flex-shrink: 0;
    background: #0A2E5C;
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 0;
    margin-top: auto;
    font-size: 16px;
}

.site-footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 18px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    transition: var(--transition);
    display: inline-block;
}

.site-footer a:hover {
    color: #fff;
}

.footer-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

@media (max-width: 767.98px) {
    .site-footer {
        padding: 24px 0 0;
    }

    .site-footer h5 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .site-footer a {
        font-size: 15px;
    }

    .footer-desc {
        font-size: 14px;
    }

    .footer-bottom {
        margin-top: 24px;
        padding: 16px 0;
        font-size: 14px;
        text-align: center;
        gap: 6px 8px;
    }

    .footer-bottom .footer-address,
    .footer-bottom .footer-bottom-info,
    .footer-bottom a {
        font-size: 14px;
    }

    .navbar-brand .brand-title {
        font-size: 18px;
    }

    .navbar-brand .brand-subtitle {
        font-size: 12px;
    }
}

/* ========================================
   通用区块 - 深色背景
   ======================================== */
.section-dark {
    background: linear-gradient(180deg, #0f1d36 0%, #0a1628 100%);
    color: #fff;
}

.section-dark .section-title {
    color: #fff;
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   白色头部导航 - 其他页面（置于文件末尾以覆盖深色默认样式）
   ======================================== */

.site-header-light {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.site-header-light.scrolled {
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.site-header-light .brand-title {
    color: #0A2E5C;
}

.site-header-light .brand-subtitle {
    color: #6b7280;
}

.site-header-light .nav-link,
.site-header-light .navbar-collapse .nav-link {
    color: #000 !important;
}

.site-header-light .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(37, 99, 235, 0.06);
}

.site-header-light .nav-link.active {
    color: var(--primary-color) !important;
}

/* 激活的产品方案菜单项与顶部激活一致（蓝字） */
.site-header-light .nav-mega-item--link.active,
.site-header-light .nav-mega-item--link.active .nav-mega-title {
    color: var(--primary-color);
}

.site-header-light .navbar-toggler-icon {
    filter: none;
    background-image: var(--bs-navbar-toggler-icon-bg);
}

@media (max-width: 991.98px) {
    .site-header-light .navbar-collapse {
        background: #ffffff;
        border: 1px solid #e5e7eb;
    }

    .site-header-light .nav-link,
    .site-header-light .navbar-collapse .nav-link {
        color: #000 !important;
        border-bottom: 1px solid #f0f0f0;
    }

    .site-header-light .nav-link:hover,
    .site-header-light .nav-link.active {
        color: var(--primary-color) !important;
        background: rgba(37, 99, 235, 0.06);
    }

    .site-header-light .dropdown-item {
        color: #374151;
    }

    .site-header-light .dropdown-item:hover {
        color: var(--primary-color);
        background: rgba(37, 99, 235, 0.06);
    }

    .site-header-light .dropdown-item.active,
    .site-header-light .dropdown-item.active:hover {
        background: rgba(37, 99, 235, 0.06);
        color: var(--primary-color);
        font-weight: 600;
    }
}

/* 右侧电话 */
.header-phone,
.site-header-light .header-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 10px 0 10px 24px;
    border-left: 1px solid #e5e7eb;
    margin-left: 24px;
    white-space: nowrap;
}

.header-phone-icon,
.site-header-light .header-phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.header-phone-number,
.site-header-light .header-phone-number {
    font-size: 18px;
    font-weight: 700;
    color: #0A2E5C;
    letter-spacing: 1px;
}

.header-phone:hover .header-phone-number,
.site-header-light .header-phone:hover .header-phone-number {
    color: var(--primary-color);
}

@media (max-width: 1199.98px) {
    .header-phone,
    .site-header-light .header-phone {
        display: none !important;
    }
}

/* ========================================
   多级菜单下拉盒（桌面端） - 分开渲染
   有子菜单：每行2个，内部子菜单3栏网格
   无子菜单：每行3个
   ======================================== */
@media (min-width: 992px) {
    /* 下拉盒：默认隐藏，hover 展开 */
    .site-header .nav-item.dropdown > .dropdown-menu {
        display: none;
    }

    .site-header .nav-item.dropdown:hover > .nav-mega-menu {
        display: block;
    }

    .site-header .nav-item.dropdown:hover > .nav-simple-menu {
        display: block;
    }

    /* 简单下拉（仅两级） */
    .site-header .nav-simple-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 180px;
        padding: 8px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        margin: 0;
        animation: navMegaFade 0.2s ease;
    }

    .site-header .nav-simple-menu .dropdown-item {
        color: #1f2937;
        padding: 8px 14px;
        font-size: 14px;
        border-radius: 6px;
    }

    .site-header .nav-simple-menu .dropdown-item:hover {
        background: rgba(37, 99, 235, 0.06);
        color: #2563eb;
    }

    .site-header .nav-simple-menu .dropdown-item.active {
        background: rgba(37, 99, 235, 0.1);
        color: #2563eb;
    }

    /* ========== Mega Menu 主面板 ========== */
    .site-header .nav-mega-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 960px;
        max-width: 95vw;
        padding: 0;
        background: #fff;
        border: 0;
        border-top: 2px solid #005BAC;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
        margin: 0;
        animation: navMegaFade 0.2s ease;
        overflow: hidden;
    }

    /* 面板顶部三角箭头 */
    .site-header .nav-mega-menu::before {
        content: "";
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid #005BAC;
    }

    /* ========== Mega-cols 容器 ========== */
    .site-header .nav-mega-menu .mega-cols {
        display: flex;
        flex-direction: column;
    }

    /* ========== Group: 有子菜单（2列） ========== */
    .site-header .mega-group--with-sub {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        border-top: 1px solid #e5e7eb;
    }

    /* ========== Group: 无子菜单（3列） ========== */
    .site-header .mega-group--no-sub {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    /* ========== 通用列样式 ========== */
    .site-header .nav-mega-col {
        position: relative;
        border-bottom: 1px solid #e5e7eb;
        padding: 20px 24px;
        background: #fff;
        transition: background 0.2s ease;
    }

    /* 最后一行如果只有一项，底部横线延伸到整行宽度 */
    .site-header .mega-group--with-sub .nav-mega-col:last-child::after {
        content: "";
        position: absolute;
        bottom: -1px;
        left: 0;
        right: -100%;
        height: 1px;
        background: #e5e7eb;
    }

    .site-header .mega-group--no-sub .nav-mega-col:last-child::after {
        content: "";
        position: absolute;
        bottom: -1px;
        left: 0;
        right: -200%;
        height: 1px;
        background: #e5e7eb;
    }

    /* 悬停效果 */
    .site-header .nav-mega-col:hover {
        background: #f8fafc;
    }

    /* ========== 宽项（有子菜单）内部布局 ========== */
    .site-header .nav-mega-item--wide {
        display: flex;
        align-items: center;
        gap: 20px;
        width: 100%;
        height: 100%;
        text-decoration: none;
        color: inherit;
        transition: color 0.2s ease;
    }

    .site-header .nav-mega-header {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
        min-width: 140px;
    }

    /* ========== 窄项（无子菜单） ========== */
    .site-header .nav-mega-item--link {
        display: flex;
        align-items: center;
        gap: 16px;
        text-decoration: none;
        color: inherit;
        transition: color 0.2s ease;
        cursor: pointer;
    }

    /* ========== 图标 ========== */
    .site-header .nav-mega-icon {
        flex-shrink: 0;
        width: 52px;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
        border-radius: 12px;
        overflow: hidden;
        transition: background 0.2s ease;
    }

    .site-header .nav-mega-icon img {
        width: 32px;
        height: 32px;
        object-fit: contain;
    }

    .site-header .nav-mega-col:hover .nav-mega-icon {
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    }

    /* ========== 内容区 ========== */
    .site-header .nav-mega-body {
        flex: 1;
        min-width: 0;
    }

    /* ========== 标题 ========== */
    .site-header .nav-mega-title {
        display: block;
        color: #0A2E5C;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.3;
        transition: color 0.2s ease;
    }

    /* 有子菜单组的标题用蓝色 */
    .site-header .mega-group--with-sub .nav-mega-title {
        color: #005BAC;
    }

    .site-header .nav-mega-col:hover .nav-mega-title {
        color: #005BAC;
    }

    .site-header .mega-group--no-sub .nav-mega-col:hover .nav-mega-title {
        color: #0A2E5C;
    }

    /* ========== 子菜单垂直列表 ========== */
    .site-header .nav-mega-links--grid {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .site-header .nav-mega-links--grid .dropdown-item {
        color: #475569;
        padding: 3px 0 3px 14px;
        margin: 0;
        font-size: 14px;
        border-radius: 0;
        background: transparent;
        white-space: normal;
        line-height: 1.6;
        position: relative;
        transition: color 0.2s ease;
    }

    .site-header .nav-mega-links--grid .dropdown-item::before {
        content: "·";
        position: absolute;
        left: 2px;
        top: 3px;
        color: #94a3b8;
        font-weight: bold;
        font-size: 16px;
        line-height: 1;
    }

    .site-header .nav-mega-links--grid .nav-mega-link-depth-1 {
        color: #475569;
        font-weight: 400;
    }

    .site-header .nav-mega-links--grid .nav-mega-link--has-children {
        color: #005BAC;
        font-weight: 500;
    }

    .site-header .nav-mega-links--grid .dropdown-item:hover {
        background: transparent;
        color: #005BAC;
    }

    .site-header .nav-mega-links--grid .dropdown-item.active {
        background: transparent;
        color: #005BAC;
        font-weight: 600;
    }
}

@keyframes navMegaFade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
