/* ============================================================
   白色主调主题覆盖层（在所有页面样式之后加载）
   1) 顶部导航：白底深色文字，高度 70px → 58px
   2) 页脚：深蓝底 → 白底深色文字，整体高度大幅降低
   ============================================================ */

/* ---------- 统一主蓝色：与页脚底色一致 ---------- */
:root {
    --primary-blue: #0e76ae !important;   /* 按钮/日期块/激活导航等所有蓝色填充 */
    --medium-blue: #0e76ae !important;    /* 交互强调色同步统一 */
}

/* 主按钮悬停改为同色系深一档，避免跳回深藏青 */
.btn-primary:hover {
    background-color: #0b5f8e !important;
}

/* ---------- 顶部导航（桌面端） ---------- */
.header {
    background-color: #ffffff !important;
    box-shadow: 0 1px 0 rgba(18, 48, 79, .08), 0 2px 12px rgba(18, 48, 79, .05) !important;
    height: 58px !important;
    min-height: 58px !important;
}

.header-inner {
    height: 58px !important;
}

.logo-img {
    width: 180px !important;
    height: 36px !important;
    filter: none !important; /* logo 已直接使用天蓝色图片 */
}

.nav-list a {
    color: #16324f !important;
}

.nav-list a:hover,
.nav-list a.active {
    background-color: var(--light-blue) !important;
    color: var(--primary-blue) !important;
    transform: none !important;
}

.dropdown-menu {
    background-color: #ffffff !important;
}

.dropdown-menu a {
    color: #16324f !important;
}

.dropdown-menu a:hover {
    background-color: var(--light-blue) !important;
    color: var(--primary-blue) !important;
}

/* 桌面端：头部高度变化后同步各页面贴头元素的偏移 */
@media (min-width: 769px) {
    .page-header {
        margin-top: 58px !important;
    }

    /* body 已有 padding-top 让出头部空间，轮播图直接贴住导航栏 */
    .hero {
        margin-top: 0 !important;
    }

    body {
        padding-top: 58px !important;
    }

    /* 吸顶锚点导航紧贴头部下沿 */
    .section-nav {
        top: 58px !important;
        margin-top: 0 !important;
    }
}

/* ---------- 顶部导航（移动端） ---------- */
@media (max-width: 768px) {
    .header {
        background-color: #ffffff !important;
        box-shadow: 0 1px 6px rgba(18, 48, 79, .12) !important;
        height: 54px !important;
        min-height: 54px !important;
    }

    .header-inner {
        height: 54px !important;
    }

    body {
        padding-top: 54px !important;
    }

    .logo-img {
        width: 150px !important;
        height: 30px !important;
    }

    .nav-toggle span {
        background: #16324f !important;
    }

    /* 展开的菜单面板贴齐新头部高度 */
    .nav {
        top: 54px !important;
        height: calc(100vh - 54px) !important;
        background: #ffffff !important;
    }

    .nav-list {
        min-height: calc(100vh - 54px - 30px) !important;
    }

    /* 菜单面板改为白底深色文字，与整体白色主题一致 */
    .nav-list > li {
        border-bottom-color: #e3eaf2 !important;
    }

    .nav-list a,
    .nav-list a:hover,
    .nav-list a.active {
        color: #16324f !important;
        background: transparent !important;
    }

    .nav-list a.active {
        background-color: var(--light-blue) !important;
        color: var(--primary-blue) !important;
    }

    .dropdown > a::after {
        color: #16324f !important;
    }

    .dropdown-menu {
        background: rgba(18, 48, 79, .04) !important;
    }

    .dropdown-menu a,
    .dropdown-menu a:hover {
        color: #4a5c6e !important;
        background: transparent !important;
        border-left-color: transparent !important;
    }

    .dropdown-menu a:hover {
        color: var(--primary-blue) !important;
    }
}

/* ---------- 页脚：天蓝底色、紧凑高度 ---------- */
.footer {
    background: linear-gradient(180deg, #1592cb 0%, #0e76ae 100%) !important;
    color: #ffffff !important;
    padding: 26px 0 0 !important;
}

.footer-content {
    gap: var(--spacing-lg) !important;
    margin-bottom: 0 !important;
}

.footer-column h4 {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, .35) !important;
    font-size: 1.02rem !important;
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
}

.footer-links li,
.footer-column li {
    margin-bottom: 8px !important;
}

.footer-links a,
.footer-column a {
    color: rgba(255, 255, 255, .92) !important;
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-column a:hover {
    color: #ffffff !important;
}

/* 联系我们列 */
.footer-contact li,
.footer-contact .contact-details h5 {
    color: #ffffff !important;
}

.footer-contact .contact-details p {
    color: rgba(255, 255, 255, .92) !important;
}

.footer-contact .contact-item {
    margin-bottom: 12px !important;
    margin-top: 0 !important;
}

.footer-contact .contact-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.95rem !important;
    margin-bottom: 0 !important;
    background-color: rgba(255, 255, 255, .22) !important;
    color: #ffffff !important;
}

.footer-contact h4 {
    margin-bottom: 10px !important;
}

/* 版权条 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .3) !important;
    margin-top: 16px !important;
    padding: 12px 0 14px !important;
}

.footer-bottom p {
    color: rgba(255, 255, 255, .95) !important;
    font-size: 0.82rem !important;
}

.footer-bottom .gongan-beian,
.footer-bottom .gongan-beian a {
    color: rgba(255, 255, 255, .95) !important;
}

.icp-beian a {
    color: rgba(255, 255, 255, .95) !important;
}

.icp-beian a:hover {
    color: #ffffff !important;
}

/* ============================================================
   全站字号统一调优（原页面多处标题过大，统一收紧）
   ============================================================ */
.page-header h1 {
    font-size: 1.9rem !important;
}

.page-header p {
    font-size: 1.02rem !important;
}

.section-title {
    font-size: 1.45rem !important;
}

.section-subtitle {
    font-size: 1rem !important;
}

.hero-text h2 {
    font-size: 1.9rem !important;
}

.hero-text p {
    font-size: 1.05rem !important;
}

.about-text h3 {
    font-size: 1.35rem !important;
}

.about-text p {
    font-size: 1rem !important;
}

.stat-number {
    font-size: 1.8rem !important;
}

.stat-label {
    font-size: 0.85rem !important;
}

.product-info h3,
.product-info h2 {
    font-size: 1.3rem !important;
}

.product-intro {
    font-size: 1.05rem !important;
}

.detail-images-title {
    font-size: 1.4rem !important;
}

.category-title {
    font-size: 1.35rem !important;
}

.product-group-title {
    font-size: 16px !important;
}

.service-card h3 {
    font-size: 1.15rem !important;
}

.service-card p {
    font-size: 0.92rem !important;
}

.news-content-inner h3 {
    font-size: 1.02rem !important;
}

.news-content-inner p {
    font-size: 0.9rem !important;
}

.news-date .day {
    font-size: 1.25rem !important;
}

/* 移动端页脚同步收紧（覆盖原有 ！important 大间距） */
@media (max-width: 768px) {
    .footer {
        padding: 20px 0 0 !important;
    }

    .footer-content {
        gap: 18px !important;
    }

    .footer-contact {
        padding: 0 !important;
    }

    .footer-contact h4 {
        font-size: 1.05rem !important;
        margin-bottom: 10px !important;
        border-bottom: 1px solid rgba(255, 255, 255, .35) !important;
    }

    .footer-contact .contact-item {
        margin-bottom: 14px !important;
    }

    .footer-contact .contact-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
    }

    .footer-bottom {
        margin-top: 12px !important;
        padding: 10px 0 12px !important;
    }

    .footer-bottom p {
        font-size: 0.8rem !important;
    }
}
