
:root {
    --primary-blue: #0f68a8;
    --primary-red: #dc2626;
    --primary-orange: #ea580c;
    --text-orange: #e86f00;
    --text-dark: #393939;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-light: #e5e7eb;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --swiper-pagination-bottom: 2rem;
}

.top-nav-bar {
    /* position: relative; */
}
/* 北京启源科仪官方网站 - 通用样式文件 */

/* 基础样式重置和字体设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* 强制隐藏所有滚动条 */
::-webkit-scrollbar {
    display: none;
}

html, body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

a {
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
    }

    a:visited {
        text-decoration: none;
    }

    a:active {
        text-decoration: none;
    }

    a:focus {
        text-decoration: none;
    }

/* 字体设置 */
.font-chinese {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.font-english {
    font-family: "Helvetica Neue", Arial, sans-serif;
}

/* 基础字体大小 */
.text-base {
    font-size: 16px;
}

.text-emphasis {
    font-size: 18px;
}
.text-blue {
    color: var(--primary-blue);
}
.text-orange {
    color: var(--text-orange);
}
.h-100{
    height:25rem;
}
.h-160{
    height:40rem;
}
/* 颜色变量 */
:root {
    --primary-blue: #0f68a8;
    --primary-red: #dc2626;
    --primary-orange: #ea580c;
    --text-dark: #393939;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-light: #e5e7eb;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 通用布局类 */
.container-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-full {
    width: 100%;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue));
    color: white;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #1e3a8a, #2563eb);
        transform: translateY(-2px);
        box-shadow: var(--shadow-medium);
    }

.btn-orange {
    background: var(--primary-orange);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

    .btn-orange:hover {
        background: #c2410c;
        transform: translateY(-2px);
        box-shadow: var(--shadow-medium);
    }

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    padding: 12px 24px;
    border: 2px solid var(--primary-blue);
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

    .btn-outline:hover {
        background: var(--primary-blue);
        color: white;
    }

/* 卡片样式 */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    padding: 24px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

    .card:hover {
        box-shadow: var(--shadow-medium);
        transform: translateY(-4px);
    }

.card-highlight {
    background: linear-gradient(135deg, var(--primary-blue), #3b82f6);
    color: white;
}

/* 渐变背景 */
.gradient-blue {
    background: linear-gradient(135deg, var(--primary-blue), #3b82f6);
}

.gradient-light {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

/* 导航样式 */
.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .nav-link:hover {
        color: var(--primary-blue);
        background: var(--bg-light);
    }

    .nav-link.active {
        color: var(--primary-blue);
        background: var(--bg-light);
    }

/* 下拉菜单样式 */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

    .nav-dropdown .nav-link {
        color: white;
        text-decoration: none;
        font-weight: 500;
        padding: 8px 16px;
        border-radius: 6px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        white-space: nowrap;
    }

        .nav-dropdown .nav-link:hover {
            color: #60a5fa;
            background: rgba(255, 255, 255, 0.1);
        }

        .nav-dropdown .nav-link i {
            font-size: 12px;
            transition: transform 0.3s ease;
        }

    .nav-dropdown:hover .nav-link i {
        transform: rotate(180deg);
    }

/* 普通下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 8px 0;
    margin-top: 4px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉菜单项 */
.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

    .dropdown-item:hover {
        background: #f3f4f6;
        color: var(--primary-blue);
        border-left-color: var(--primary-blue);
        padding-left: 24px;
    }

    .dropdown-item.active {
        background: #eff6ff;
        color: var(--primary-blue);
        border-left-color: var(--primary-blue);
        font-weight: 600;
    }

        .dropdown-item.active::after {
            content: '>';
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--primary-blue);
            font-weight: bold;
        }

/* 下拉菜单箭头 */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 19px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #e5e7eb;
    z-index: -1;
}

/* Mega Menu 样式 */
.mega-dropdown {
    position: relative;
}

.mega-menu {
    position: fixed;
    top: 48px; /* 主导航栏高度 */
    left: 0;
    right: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    padding: 0;
    margin-top: 0;
    background: white; /* 背景占满屏幕宽度 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-top: 3px solid var(--primary-blue);
}

    /* 菜单显示状态 - 由JavaScript控制 */
    .mega-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.mega-menu-content {
    max-width: 1400px; /* 内容区域限制宽度 */
    margin: 0 auto; /* 居中显示 */
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.mega-menu-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mega-menu-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.mega-menu-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.mega-menu-submenu {
    margin-top: 8px;
}

.submenu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.submenu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem .5rem;
    /* background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px; */
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
/*    margin:0 auto;*/
}

    .submenu-item:hover {
        /* background: #eff6ff; */
        color: var(--primary-blue);
        border-color: var(--primary-blue);
        /* transform: translateY(-2px); */
        /* box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15); */
    }

    .submenu-item.active {
        background: #eff6ff;
        color: var(--primary-blue);
        border-color: var(--primary-blue);
        font-weight: 600;
    }

    .submenu-item::after {
        content: '>';
        color: #9ca3af;
        font-weight: bold;
        transition: color 0.3s ease;
        margin-left:.5rem;
    }

    .submenu-item:hover::after,
    .submenu-item.active::after {
        color: var(--primary-blue);
    }

.mega-menu-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega-menu-image {
    width: 100%;
    height: 300px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    .mega-menu-image img {
        transition: transform 0.3s ease;
    }

    .mega-menu-image:hover img {
        transform: scale(1.05);
    }

/* 响应式设计 */
@media (max-width: 1200px) {
    .mega-menu-content {
        max-width: 100%;
        padding: 30px 20px;
        gap: 30px;
    }

    .mega-menu-title {
        font-size: 24px;
    }

    .submenu-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .nav-dropdown .nav-link {
        padding: 6px 12px;
        font-size: 14px;
    }

    .dropdown-menu {
        min-width: 180px;
    }

    .dropdown-item {
        padding: 10px 16px;
        font-size: 13px;
    }

    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mega-menu-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .nav-dropdown {
        display: none;
    }

    .mega-menu {
        display: none;
    }
}

/* 标题样式 */
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 32px;
    text-align: center;
}

/* 网格布局 */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container-main {
        max-width: 100%;
        padding: 0 16px;
    }

    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 20px;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

    .tooltip .tooltiptext {
        visibility: hidden;
        width: 120px;
        background-color: var(--text-dark);
        color: white;
        text-align: center;
        border-radius: 6px;
        padding: 8px;
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        margin-left: -60px;
        opacity: 0;
        transition: opacity 0.3s;
        font-size: 14px;
    }

    .tooltip:hover .tooltiptext {
        visibility: visible;
        opacity: 1;
    }

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 轮播图样式 */
.swiper-container {
    width: 100%;
    height: auto;
    position: relative;
}

.swiper-slide {
    width: 100%;
    height: auto;
}

    .swiper-slide img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

/* 轮播图分页器样式 */
/* .swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
} */

.swiper-pagination-bullet {
    width: 4rem;
    height: 0.35rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--primary-blue);
    transform: scaleX(1.2);
}

/* 轮播图导航按钮样式 */
.swiper-button-next,
.swiper-button-prev {
    color: #333;
    background: rgba(0, 0, 0, 0.2);
    width: 80px;
    height: 80px;
    padding: 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background: rgba(240, 240, 240, 0.3);
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        border-color: rgba(0, 0, 0, 0.1);
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 2rem;
        font-weight: bold;
    }

/* 按钮位置调整 */
.swiper-button-next {
    right: 40px;
}

.swiper-button-prev {
    left: 40px;
}

/* 移动端按钮样式调整 */
@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

        .swiper-button-next:after,
        .swiper-button-prev:after {
            font-size: 16px;
        }

    .swiper-button-next {
        right: 10px;
    }

    .swiper-button-prev {
        left: 10px;
    }
}

/* 资讯轮播样式 */
.news-ticker-container {
    position: relative;
    height: 24px;
    overflow: hidden;
}

.news-ticker-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-ticker-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s ease-in-out;
}

    .news-ticker-item.active {
        opacity: 1;
        transform: translateY(0);
    }

    .news-ticker-item.prev {
        opacity: 0;
        transform: translateY(-100%);
    }

    /* 资讯链接样式 */
    .news-ticker-item a {
        color: #dc2626;
        text-decoration: none;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        width: 100%;
    }

        .news-ticker-item a:hover {
            color: #991b1b;
            text-decoration: underline;
        }

/* 产品展示样式 */
.product-showcase {
    position: relative;
}

.product-item {
    height:375px;
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-in-out;
}

    .product-item.active {
        display: block;
        opacity: 1;
        transform: translateX(0);
    }

    .product-item > .grid {
        height: 100%;
        max-height: 375px;
    }

    .product-item .relative {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-item .relative > div {
        width: 100%;
        max-height: 375px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-item .relative img,
    .product-item .relative video {
        max-width: 100%;
        max-height: 375px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

/* 产品内容轮播 */
.product-content-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

    .product-content.active {
        opacity: 1;
        transform: translateY(0);
    }

/* 产品导航按钮 */
.product-nav-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}
    .product-nav-btn::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: 3px;
        background: #fff;
        border-radius: 2px;
    }
    .product-nav-btn:hover {
        color: var(--primary-blue);
        /* background: rgba(30, 64, 175, 0.1);
    transform: translateY(-2px); */
    }

    .product-nav-btn.active {
        color: var(--primary-blue);
        /* background: rgba(30, 64, 175, 0.15);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2); */
    }

        .product-nav-btn.active::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            height: 3px;
            background: var(--primary-blue);
            border-radius: 2px;
        }

/* 产品图片容器 */
.product-item .relative {
    position: relative;
}

/*    .product-item .relative::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(59, 130, 246, 0.1));
        border-radius: 12px;
        z-index: 1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }*/

.product-item:hover .relative::before {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-content-container {
        height: auto;
        min-height: 150px;
    }

    .product-content {
        position: relative;
        transform: none;
        opacity: 1;
    }

        .product-content:not(.active) {
            display: none;
        }

    .product-nav-btn {
        padding: 8px 12px;
        font-size: 14px;
    }

        .product-nav-btn span {
            display: block;
            text-align: center;
        }
}

/* 隐藏元素 */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 搜索框样式 */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    position: absolute;
    right: 35px;
    width: 0;
    height: 36px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: white;
    font-size: 14px;
    outline: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

    .search-input.active {
        width: 250px;
        padding: 0 16px;
        opacity: 1;
        pointer-events: auto;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .search-input:focus {
        border-color: #1e40af;
        box-shadow: 0 2px 12px rgba(30, 64, 175, 0.2);
    }

.search-icon {
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

    .search-icon:hover {
        transform: scale(1.1);
    }

/* 置顶新闻模块样式 */
.top-news-container {
    position: absolute;
    bottom: 5rem;
    left: 0;
    right: 0;
    z-index: 20;
    pointer-events: none;
}

.top-news-wrapper {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    pointer-events: auto;
}

.top-news-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 320px;
}

.top-news-card-primary,
.top-news-card-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

    .top-news-card-primary:hover,
    .top-news-card-secondary:hover {
        background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
        color: white;
        border-color: transparent;
    }

.top-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.top-news-content {
    flex: 1;
    padding-right: 1.5rem;
    border-right: 1px solid rgba(0, 0, 0, 0.15);
    margin-right: 1.5rem;
    transition: border-color 0.3s ease;
}

.top-news-card:hover .top-news-content {
    border-right-color: rgba(255, 255, 255, 0.3);
}

.top-news-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    width: 300px;
/*    white-space: nowrap;*/
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-news-card:hover .top-news-title {
    color: white;
}

.top-news-subtitle {
    font-size: 0.875rem;
    color: #333;
    opacity: 0.9;
    line-height: 1.4;
    transition: color 0.3s ease;
    width: 300px;
    /*    white-space: nowrap;*/
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-news-card:hover .top-news-subtitle {
    color: white;
}

.top-news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    text-align: center;
}

.top-news-day {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    line-height: 1;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.top-news-card:hover .top-news-day {
    color: white;
}

.top-news-month {
    font-size: 0.75rem;
    color: #333;
    opacity: 0.9;
    transition: color 0.3s ease;
}

.top-news-card:hover .top-news-month {
    color: white;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .top-news-wrapper {
        flex-direction: column;
        align-items: flex-end;
    }

    .top-news-card {
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .top-news-container {
        bottom: 3rem;
    }

    .top-news-wrapper {
        align-items: center;
    }

    .top-news-card {
        min-width: auto;
        width: 90%;
    }
}

/* 离线检测平台样式 */
.offline-detection-section {
    background: url('../images/bg2.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.offline-tabs-wrapper {
    /* display: flex;
    justify-content: center;
    gap: 3rem; */
    margin-bottom: 8rem;
    padding-bottom: 2rem;
}

.offline-tab {
    position: relative;
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.offline-tab-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #6b7280;
    transition: color 0.3s ease;
}

.offline-tab.active .offline-tab-text {
    color: var(--primary-blue);
}

.offline-tab-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.offline-tab.active .offline-tab-underline {
    width: 100%;
}

.offline-tab:hover .offline-tab-text {
    color: var(--primary-blue);
}

.offline-content-wrapper {
    position: relative;
}

.offline-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .offline-content.active {
        display: block;
        opacity: 1;
    }

.offline-content-inner {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem 3rem;
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 3rem;
    align-items: flex-end;
    position: relative;
    min-height: 320px;
}

.offline-image-container {
    position: relative;
    margin-top: -5rem;
    z-index: 10;
    align-self: flex-start;
}

.offline-image {
    width: 100%;
    height: auto;
    /* border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); */
    transition: transform 0.3s ease;
}

    .offline-image:hover {
        transform: scale(1.02);
    }

.offline-image-caption {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .offline-image-caption:hover {
        background: rgba(0, 0, 0, 0.85);
    }

.offline-text-content {
    padding: 1rem 2rem 0 0;
    align-self: flex-end;
}

.offline-title {
    font-size: 1.5rem;
    font-weight: bold;
/*    color: var(--primary-blue);*/
/*    margin-bottom: 1rem;*/
    line-height: 1.4;
}

.offline-features ul{
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}
.offline-features ul li{
/*    display: flex;
    align-items: flex-start;*/
    margin-bottom: 0.3rem;
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
}

/*.offline-features ul li:nth-child(n+4) {
    display: none;
}*/
.offline-feature-item {
/*    display: flex;
    align-items: flex-start;*/
    margin-bottom: 0.3rem;
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
}

    .offline-feature-item i {
        color: var(--primary-blue);
        margin-right: 0.75rem;
        margin-top: 0.25rem;
        font-size: 1.1rem;
    }

.offline-btn {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(15, 104, 168, 0.3);
}

    .offline-btn:hover {
        background: #0d5a8f;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(15, 104, 168, 0.4);
    }

/* 响应式 */
@media (max-width: 1024px) {
    .offline-content-inner {
        grid-template-columns: 1fr;
        padding: 2rem;
        align-items: center;
    }

    .offline-image-container {
        margin-top: 0;
    }

    .offline-text-content {
        padding: 1rem 0;
        align-self: auto;
    }
}

@media (max-width: 768px) {
    .offline-tabs-wrapper {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .offline-tab-text {
        font-size: 1rem;
    }

    .offline-title {
        font-size: 1.25rem;
    }
}

/* 单瓶检测仪布局样式 */
.single-detector-layout {
    /* background: white; */
    /* border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
    padding: 3rem;
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 3rem;
    align-items: center;
    margin-top: -9rem;
    min-height: 400px;
}

.detector-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detector-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

    .detector-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: #e5e7eb;
    }

    .detector-item:last-child::after {
        display: none;
    }

    .detector-item:hover {
        background: rgba(15, 104, 168, 0.05);
        border-left-color: var(--primary-blue);
    }

    .detector-item.active {
        background: rgba(15, 104, 168, 0.08);
        border-left-color: var(--primary-blue);
    }

.detector-item-content {
    flex: 1;
}

.detector-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.detector-item-model {
    font-size: 1rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.detector-item-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    /* font-style: italic; */
}

.detector-item-arrow {
    color: #9ca3af;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.detector-item.active .detector-item-title {
    color: var(--primary-blue);
}

.detector-item.active .detector-item-model {
    color: var(--primary-blue);
}

.detector-item.active .detector-item-subtitle {
    color: var(--primary-blue);
}

.detector-item:hover .detector-item-title,
.detector-item.active .detector-item-title {
    color: var(--primary-blue);
}

.detector-item:hover .detector-item-arrow,
.detector-item.active .detector-item-arrow {
    color: var(--primary-blue);
    transform: translateX(4px);
}

.detector-image-container {
    position: relative;
    width: 100%;
    height: 424px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detector-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

    .detector-image.active {
        opacity: 1;
        pointer-events: auto;
    }

/* 响应式 */
@media (max-width: 1024px) {
    .single-detector-layout {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .detector-image-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .detector-item {
        padding: 1rem;
    }

    .detector-item-title {
        font-size: 1rem;
    }

    .detector-image-container {
        height: 250px;
    }
}

/* Footer 底部样式 */
.footer-section {
    background-color: #333333;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-company {
    padding-right: 2rem;
}

.footer-logo {
    font-size: 2.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.footer-company-name {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 1.5rem;
}

.footer-contact {
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.8;
}

    .footer-contact p {
        margin-bottom: 0.5rem;
    }

.footer-column-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 0.75rem;
    }

    .footer-links a {
        font-size: 1rem;
        color: #b0b0b0;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .footer-links a:hover {
            color: white;
        }

.footer-copyright {
    border-top: 1px solid #555555;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .footer-copyright p {
        font-size: 1rem;
        color: #888888;
        margin: 0;
    }

/* 响应式 */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-company {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-copyright {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-logo {
        font-size: 2rem;
    }

    .footer-column-title {
        font-size: 1.125rem;
    }
}

/* CCIT 密封完整性检测系统样式 */
.ccit-section {
    background: white;
}

.ccit-content {
    display: grid;
    grid-template-columns: repeat(2,minmax(0, 1fr));
    /* grid-template-columns: 45% 55%; */
    /* gap: 4rem; */
    align-items: center;
    margin-bottom: 4rem;
}

.ccit-text {
    padding-right: 2rem;
}

.ccit-subtitle {
    font-size: 1rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.ccit-title {
    font-size: 2rem;
    font-weight: bold;
/*    color: #1f2937;*/
/*    margin-bottom: 1.5rem;*/
    line-height: 1.3;
}

.ccit-description {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.ccit-btn {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(15, 104, 168, 0.3);
}

    .ccit-btn:hover {
        background: #0d5a8f;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(15, 104, 168, 0.4);
    }

.ccit-image-wrapper {
    position: relative;
}

.ccit-image {
    width: 100%;
    height: auto;
    display: block;
}

.ccit-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.ccit-feature-card {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .ccit-feature-card:hover {
        transform: translateY(-10px);
    }

.ccit-feature-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ccit-feature-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.ccit-feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.ccit-feature-card:hover .ccit-feature-title {
    color: #dc2626;
}

.ccit-feature-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

.layui-laypage a, .layui-laypage span {
    font-size: 1rem;
}
/* 响应式 */
@media (max-width: 1024px) {
    .ccit-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ccit-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ccit-title {
        font-size: 1.5rem;
    }

    .ccit-features {
        grid-template-columns: 1fr;
    }

    .ccit-feature-image {
        height: 150px;
    }
}

/* 新闻中心样式 */
.news-section {
    background: rgba(218, 218, 218, 1);
    padding: 4rem 0;
}

.news-header {
    text-align: center;
    margin-bottom: 3rem;
}

.news-title-en {
    font-size: 2.5rem;
    font-weight: bold;
    color: #060606;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.news-title-divider {
    width: 120px;
    height: 3px;
    background: var(--primary-blue);
    margin: 0 auto 1rem;
}

.news-title-cn {
    font-size: 1.25rem;
    color: #060606;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: white;
    padding: 1.25rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .news-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        transform: translateY(-4px);
    }

.news-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #060606;
    line-height: 1.5;
}

.news-card-desc {
    font-size: 0.875rem;
    color: #060606;
    line-height: 1.6;
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(238, 238, 238, 1);
    padding: 0.75rem 1rem;
    margin: 0 -1.25rem -1.25rem -1.25rem;
    border-radius: 0 0 4px 4px;
}

.news-card-date {
    font-size: 0.875rem;
    color: #9ca3af;
}

    .news-card-date i {
        margin-right: 0.5rem;
    }

.news-card-arrow {
    color: #9ca3af;
    transition: all 0.3s ease;
}

.news-card:hover .news-card-arrow {
    color: var(--primary-blue);
    transform: translateX(4px);
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-pagination {
    display: flex;
    gap: 1rem;
}

.news-page-btn {
    width: 40px;
    height: 40px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .news-page-btn:hover {
        background: #555;
    }

.news-more-btn {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .news-more-btn:hover {
        background: #b91c1c;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    }

/* 响应式 */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-title-en {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-footer {
        flex-direction: column;
        gap: 2rem;
    }
}

/* 右侧悬浮插件样式 */
.floating-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.floating-sidebar-item {
    position: relative;
    width: 60px;
    height: 60px;
    background: #4a7c9e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

    .floating-sidebar-item:first-child {
        border-top-left-radius: 0;
    }

    .floating-sidebar-item:last-child {
        border-bottom-left-radius: 0;
        border-bottom: none;
    }

    .floating-sidebar-item:hover {
        background: #5a8cae;
        /* width: 70px; */
    }

    .floating-sidebar-item i {
        color: white;
        font-size: 24px;
        transition: transform 0.3s ease;
    }

    .floating-sidebar-item:hover i {
        transform: scale(1.1);
    }

/* 悬浮提示框 */
.floating-tooltip {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-right: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

    .floating-tooltip::after {
        content: '';
        position: absolute;
        right: -8px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-left: 8px solid rgba(0, 0, 0, 0.85);
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
    }

.floating-sidebar-item:hover .floating-tooltip {
    opacity: 1;
    visibility: visible;
    margin-right: 15px;
}

/* 微信二维码提示框 */
.floating-tooltip-qrcode {
    padding: 10px;
    background: white;
    min-width: auto;
}

    .floating-tooltip-qrcode::after {
        border-left-color: white;
    }

.qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qrcode-image {
    width: 150px;
    height: 150px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
}

    .qrcode-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.qrcode-text {
    font-size: 14px;
    color: #333;
    text-align: center;
    font-weight: 500;
}

/* 邮箱地址提示框 */
.floating-tooltip-email {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
}

.email-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.email-label {
    font-size: 12px;
    color: #ccc;
}

.email-address {
    font-size: 16px;
    font-weight: 500;
    color: white;
}

/* 微信图标特殊样式 */
.floating-sidebar-item.wechat-item {
    background: #4a7c9e;
}

    .floating-sidebar-item.wechat-item:hover {
        background: #5a8cae;
    }

/* 电话图标特殊样式 */
.floating-sidebar-item.phone-item {
    background: #4a7c9e;
}

    .floating-sidebar-item.phone-item:hover {
        background: #5a8cae;
    }

/* 消息图标特殊样式 */
.floating-sidebar-item.message-item {
    background: #4a7c9e;
}

    .floating-sidebar-item.message-item:hover {
        background: #5a8cae;
    }

/* 邮件图标特殊样式 */
.floating-sidebar-item.email-item {
    background: #4a7c9e;
}

    .floating-sidebar-item.email-item:hover {
        background: #5a8cae;
    }

/* 返回顶部按钮特殊样式 */
.floating-sidebar-item.backtotop-item {
    background: #4a7c9e;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .floating-sidebar-item.backtotop-item.show {
        opacity: 1;
        visibility: visible;
    }

    .floating-sidebar-item.backtotop-item:hover {
        background: #5a8cae;
    }

/* 响应式设计 */
@media (max-width: 768px) {
    .floating-sidebar {
        display: none;
    }
}
