/* ========== 产品列表页样式 ========== */

/* 顶部 Banner（图片全宽居中显示） */
.product-top-banner {
    width: 100%;
    line-height: 0;
    text-align: center;
    background-color: #e8e8e8;
    overflow: hidden;
}
.product-top-banner a {
    display: block;
    width: 100%;
}
.product-top-banner img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: cover;
}

/* Banner */
.product-banner {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-color: #e8e8e8;
}
/* Banner 文字叠加（取分类标题+描述） */
.product-banner-has-text {
    position: relative;
    display: flex;
    align-items: center;
}
.product-banner-has-text::before {
    content: '';
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.35);
}
.product-banner-inner {
    position: relative;
    z-index: 2;
    width: 1200px;
    max-width: 92%;
    margin: 0 auto;
    padding: 0 10px;
    color: #fff;
    text-align: center;
}
.product-banner-title {
    font-size: 34px;
    font-weight: bold;
    margin: 0 0 14px;
    line-height: 1.3;
    letter-spacing: 1px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.product-banner-desc {
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
@media screen and (max-width: 768px) {
    .product-banner { height: 160px; }
    .product-banner-title { font-size: 22px; margin-bottom: 8px; }
    .product-banner-desc { font-size: 13px; line-height: 1.6; }
}

/* 页面容器 */
.product-page {
    padding: 30px 0 60px;
}

/* 面包屑（全站统一字号 13px） */
.product-breadcrumb {
    font-size: 13px;
    color: #666;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
    position: relative;
}
.breadcrumb-left {
    display: inline;
}
.product-breadcrumb a {
    color: #666;
    text-decoration: none;
}
.product-breadcrumb a:hover {
    color: #2e75be;
}
.product-breadcrumb span {
    color: #2e75be;
}

/* 面包屑右侧按钮 */
.breadcrumb-buttons {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}
.breadcrumb-btn {
    display: inline-block;
    font-size: 15px;
    color: #2e75be;
    border: 1px solid #2e75be;
    border-radius: 4px;
    padding: 5px 18px;
    text-decoration: none;
    transition: all 0.2s;
}
.breadcrumb-btn:hover {
    background: #2e75be;
    color: #fff;
}

/* 主布局 */
.product-layout {
    display: -webkit-flex;
    display: flex;
    gap: 30px;
    -webkit-align-items: flex-start;
    align-items: flex-start;
}
/* Safari flex-gap 兼容回退 */
@supports not (gap: 30px) {
    .product-layout .product-sidebar { margin-right: 30px; }
}

/* ===== 左侧导航 ===== */
.product-sidebar {
    width: 220px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
}

/* 产品中心标题 */
.sidebar-header {
    background: #2e75be;
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    padding: 14px 20px;
    text-align: center;
}

/* 分类分组标题 */
.sidebar-group {
    border-bottom: 1px dashed #ccc;
}

.sidebar-group-title {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    color: #333;
    font-size: 15px;
    font-weight: bold;
    padding: 10px 15px;
    border-bottom: 1px dashed #ccc;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-group-title:hover {
    background: #e6eef7;
    color: #2e75be;
}

/* 展开状态高亮 */
.sidebar-group.open > .sidebar-group-title {
    background: #2e75be;
    color: #fff;
}

/* 分类名（可点击跳转），带左侧蓝色竖线 */
.sidebar-group-link {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.sidebar-group-link::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #2e75be;
    margin-right: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}
.sidebar-group.open > .sidebar-group-title .sidebar-group-link::before {
    background: #fff;
}
.sidebar-group-link:hover {
    text-decoration: underline;
}

/* +/- 开关图标 */
.sidebar-toggle {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    color: #999;
}
.sidebar-group.open > .sidebar-group-title .sidebar-toggle {
    color: #fff;
}
.sidebar-toggle::before,
.sidebar-toggle::after {
    content: '';
    position: absolute;
    background: currentColor;
    transition: opacity 0.2s;
}
.sidebar-toggle::before { /* 横线 */
    left: 2px; right: 2px; top: 50%;
    height: 2px; margin-top: -1px;
}
.sidebar-toggle::after { /* 竖线（展开后隐藏 -> 变减号） */
    top: 2px; bottom: 2px; left: 50%;
    width: 2px; margin-left: -1px;
}
.sidebar-group.open > .sidebar-group-title .sidebar-toggle::after {
    opacity: 0;
}

/* 分类按钮 - 默认折叠，单开手风琴 */
.sidebar-nav {
    display: none;
    flex-direction: column;
    border-bottom: none;
}
.sidebar-group.open > .sidebar-nav {
    display: flex;
}
.sidebar-btn {
    display: block;
    background: #f5f5f5;
    color: #333;
    font-size: 15px;
    padding: 13px 20px;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px dashed #ccc;
    transition: all 0.2s;
}
.sidebar-btn:last-child {
    border-bottom: none;
}
.sidebar-btn:hover {
    background: #dbe8f5;
    color: #2e75be;
}
.sidebar-btn.active {
    background: #2e75be;
    color: #fff;
}
.sidebar-btn.active::before {
    color: #fff;
}
.sidebar-btn em {
    font-style: normal;
    font-weight: bold;
    margin-right: 4px;
}
.sidebar-btn::before {
    content: '•';
    color: #999;
    margin-right: 6px;
    font-size: 15px;
}

/* 在线留言 */
.sidebar-message-btn {
    display: block;
    background: #2e75be;
    color: #fff;
    font-size: 17px;
    text-align: center;
    padding: 13px 20px;
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s;
}
.sidebar-message-btn:hover {
    background: #1e5a94;
    color: #fff;
}

/* 联系我们 */
.sidebar-contact {
    padding: 15px 18px;
    background: #fff;
}
.sidebar-contact h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.sidebar-contact .contact-detail p {
    font-size: 12px;
    color: #666;
    line-height: 2;
    margin: 0;
}
.sidebar-contact .contact-detail p strong {
    font-size: 13px;
    color: #333;
}

/* ===== 右侧产品展示 ===== */
.product-content {
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
}

/* 板块标题（右侧内容区顶部） */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #2e75be;
    margin-bottom: 25px;
}
.content-header h3 {
    font-size: 17px;
    color: #333;
    font-weight: normal;
    margin: 0;
    padding-left: 12px;
    border-left: 3px solid #2e75be;
}

/* 产品面板切换 */
.product-panel {
    display: none;
}
.product-panel.active {
    display: block;
}

/* 分页样式 */
.pagnavi {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 30px 0 10px;
    flex-wrap: wrap;
}
.pagnavi a {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}
.pagnavi a.page-arrow {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}
.pagnavi a:hover {
    border-color: #2e75be;
    color: #2e75be;
}
.pagnavi a.current {
    background: #2e75be;
    border-color: #2e75be;
    color: #fff;
}
.pagnavi a.disabled {
    color: #ccc;
    border-color: #eee;
    cursor: default;
}
.pagnavi a.disabled:hover {
    border-color: #eee;
    color: #ccc;
}

/* 子分类标签 */
.sub-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.sub-cat-tab {
    display: inline-block;
    padding: 6px 18px;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}
.sub-cat-tab:hover {
    color: #2e75be;
    background: #e8f0fb;
}
.sub-cat-tab.active {
    background: #2e75be;
    color: #fff;
}

/* 产品网格 3x3 */
.product-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 20px 1fr 20px 1fr;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    gap: 20px;
}

/* 产品卡片 */
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}
.product-card:hover {
    border-color: #2e75be;
    box-shadow: 0 4px 12px rgba(46, 117, 190, 0.15);
    transform: translateY(-2px);
}
.product-card > a {
    display: block;
    text-decoration: none;
    color: #fff;
}

.card-img {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .card-img img {
    transform: scale(1.05);
}
.card-img svg {
    width: 100%;
    height: 100%;
}

/* 放大镜效果 */
.card-img-zoom {
    position: relative;
    cursor: zoom-in;
}
.card-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.card-img-zoom:hover .card-zoom-icon {
    opacity: 1;
}
.card-img-zoom:hover img {
    transform: scale(1.08);
}

.card-title {
    padding: 14px 14px 4px;
    font-size: 17px;
    color: #333;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-card:hover .card-title {
    color: #2e75be;
}

/* 卡片描述 - 严格两行 */
.card-desc {
    padding: 2px 14px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.6em * 2); /* 高度兜底，防止第三行露出 */
}

/* 卡片More按钮 */
.card-more-wrap {
    text-align: center;
    padding: 14px 14px 16px;
}
.card-more {
    display: inline-block;
    font-size: 15px;
    color: #fff;
    background: #2e75be;
    border: 1px solid #2e75be;
    border-radius: 4px;
    padding: 4px 12px;
    text-decoration: none;
    transition: all 0.2s;
}
.card-more:hover {
    background: #1e5a94;
    border-color: #1e5a94;
    color: #fff;
}

/* 空状态 */
.product-empty {
    text-align: center;
    padding: 80px 0;
    color: #999;
    font-size: 16px;
}

/* ===== 响应式 ===== */

/* 平板 */
@media screen and (max-width: 1024px) {
    .product-banner {
        height: 220px;
        min-width: auto;
    }
    .product-sidebar {
        width: 200px;
    }
    .card-img {
        height: 160px;
    }
    .product-grid {
        gap: 15px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .related-section .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MacBook Air / 笔记本窄屏 1025-1200px：降到 2 列，避免拥挤 */
@media screen and (min-width: 1025px) and (max-width: 1200px) {
    .product-sidebar,
    .list-sidebar {
        width: 200px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .card-img {
        height: 180px;
    }
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .related-section .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* iPad Pro / MacBook 标准屏 1201-1440px */
@media screen and (min-width: 1201px) and (max-width: 1440px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    .card-img {
        height: 175px;
    }
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 手机端 */
@media screen and (max-width: 768px) {
    .product-banner {
        height: 180px;
        min-width: auto;
    }
    .product-breadcrumb {
        font-size: 13px;
        padding: 10px 0;
        position: static;
    }
    .breadcrumb-left {
        display: block;
    }
    .breadcrumb-buttons {
        position: static;
        transform: none;
        display: flex;
        gap: 8px;
        margin-top: 8px;
        flex-wrap: wrap;
    }
    .breadcrumb-btn {
        font-size: 13px;
        padding: 4px 12px;
    }
    .product-layout {
        flex-direction: column;
    }
    .product-sidebar {
        width: 100%;
    }
    .sidebar-group-title {
        font-size: 13px;
        padding: 10px 14px;
        position: relative;
    }
    .sidebar-group-title::after {
        float: none;
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        line-height: 1;
    }
    /* 移动端同样遵循手风琴：默认收起，仅展开 .open 分组 */
    .sidebar-group .sidebar-nav {
        display: none;
        flex-wrap: wrap;
    }
    .sidebar-group.open > .sidebar-nav {
        display: flex;
    }
    .sidebar-btn {
        flex: 0 0 auto;
        text-align: center;
        padding: 8px 14px;
        font-size: 13px;
        min-width: 0;
    }
    .sidebar-message-btn {
        display: none;
    }
    .sidebar-contact {
        display: none;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .card-img {
        height: 140px;
    }
    .card-title {
        padding: 8px 10px;
        font-size: 12px;
    }
    .card-desc {
        font-size: 12px;
        padding: 4px 10px;
    }
    .card-more-wrap {
        padding: 6px 10px 10px;
    }
    .card-more {
        font-size: 13px;
        padding: 3px 10px;
    }
    .content-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    .content-header h3 {
        font-size: 15px;
    }
    .sub-cat-tabs {
        gap: 6px;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
    .sub-cat-tab {
        padding: 5px 12px;
        font-size: 12px;
    }
}

/* 小屏手机 */
@media screen and (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .card-img {
        height: 110px;
    }
    .pagnavi a {
        min-width: 30px;
        height: 30px;
        line-height: 30px;
        padding: 0 6px;
        font-size: 12px;
    }
}

/* ========================================
   浏览方式切换
   ======================================== */

.view-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 25px;
}
.view-tab {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    user-select: none;
}
.view-tab:hover {
    color: #2e75be;
}
.view-tab.active {
    color: #2e75be;
    font-weight: bold;
}
.view-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2e75be;
}

.view-panel {
    display: none;
}
.view-panel.active {
    display: block;
}

/* 聚合区块 */
.aggregation-section {
    margin-bottom: 35px;
}
.aggregation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #2e75be;
    margin-bottom: 20px;
}
.aggregation-header h3 {
    font-size: 18px;
    color: #2e75be;
    font-weight: normal;
    margin: 0;
    padding-left: 12px;
    border-left: 3px solid #2e75be;
}
.aggregation-header .view-all {
    font-size: 14px;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}
.aggregation-header .view-all:hover {
    color: #2e75be;
}

/* ========================================
   产品详情页样式
   ======================================== */

/* ===== 产品概览区 ===== */
.detail-header {
    display: flex;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

/* ===== 文章/案例详情头部（h1 + meta 纵向排列） ===== */
.detail-header.detail-header-article {
    display: block;
    gap: 0;
    padding: 20px 0 25px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
}
.detail-header.detail-header-article h1 {
    font-size: 26px;
    font-weight: normal;
    color: #333;
    margin: 0 0 15px;
    line-height: 1.4;
    word-break: break-word;
}
.detail-header.detail-header-article .detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 13px;
    color: #999;
}
.detail-header.detail-header-article .detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 图片画廊 */
.detail-gallery {
    width: 400px;
    flex-shrink: 0;
}
.gallery-main {
    width: 400px;
    height: 400px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    margin-bottom: 12px;
}
.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.1s ease-out;
}

/* 主图放大镜效果 */
.gallery-main:hover img {
    cursor: zoom-in;
}
.img-zoom-lens {
    display: none;
}

/* 缩略图滚动 */
.gallery-thumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.thumb-list-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.thumb-list {
    display: flex;
    gap: 8px;
    transition: transform 0.3s;
    list-style: none;
    padding: 0;
    margin: 0;
}
.thumb-list li {
    width: 70px;
    height: 70px;
    border: 2px solid #e8e8e8;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
}
.thumb-list li:hover,
.thumb-list li.active {
    border-color: #2e75be;
}
.thumb-list li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumb-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
    transition: all 0.2s;
    user-select: none;
}
.thumb-arrow:hover {
    background: #2e75be;
    color: #fff;
}

/* 产品信息 */
.detail-info {
    flex: 1;
    min-width: 0;
}
.detail-title {
    font-size: 25px;
    font-weight: bold;
    color: #333;
    margin: 0 0 12px;
    line-height: 1.3;
}
.detail-info .detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 12px;
    /* 与下方描述板块拉开间隔，避免过于局促 */
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px dashed #eee;
}
.detail-info .detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.detail-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 25px;
}

/* 产品特性 */
.detail-features {
    background: #f8f9fb;
    border-radius: 4px;
    padding: 18px 22px;
    margin-bottom: 25px;
    overflow: hidden;
    word-break: break-all;
}
.detail-features h4 {
    font-size: 17px;
    color: #2e75be;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}
.detail-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
}
.detail-features-content {
    font-size: 17px;
    color: #444;
    line-height: 1.8;
    overflow: hidden;
    word-break: break-word;
}
.detail-features-content img {
    max-width: 100%;
    height: auto;
}
.detail-features-content p {
    margin: 0 0 8px;
}
.detail-features-content ul,
.detail-features-content ol {
    padding-left: 18px;
    margin: 5px 0;
}
.detail-features-content li {
    font-size: 17px;
    color: #444;
    line-height: 1.8;
    overflow: hidden;
    word-break: break-all;
}
.detail-features-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
}
.detail-features-content table td,
.detail-features-content table th {
    border: 1px solid #ddd;
    padding: 6px 10px;
    font-size: 13px;
}
.detail-features li {
    font-size: 17px;
    color: #444;
    line-height: 1.8;
    padding-left: 16px;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-all;
}
.detail-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2e75be;
}

/* 操作按钮 */
.detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
.detail-btn {
    display: inline-block;
    padding: 10px 32px;
    font-size: 14px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.detail-btn-primary {
    background: #2e75be;
    color: #fff;
    border: 1px solid #2e75be;
}
.detail-btn-primary:hover {
    background: #1a5fa0;
    border-color: #1a5fa0;
    color: #fff;
}
.detail-btn-outline {
    background: #fff;
    color: #2e75be;
    border: 1px solid #2e75be;
}
.detail-btn-outline:hover {
    background: #2e75be;
    color: #fff;
}

/* ===== Tab 标签页 ===== */
.detail-tabs {
    margin-bottom: 35px;
}
.tabs-nav {
    display: flex;
    border-bottom: 2px solid #e8e8e8;
}
.tabs-link {
    display: inline-block;
    padding: 14px 30px;
    font-size: 17px;
    color: #666;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
    cursor: pointer;
}
.tabs-link:hover {
    color: #2e75be;
}
.tabs-link.active {
    color: #2e75be;
    font-weight: bold;
}
.tabs-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2e75be;
}

.tabs-content {
    padding: 25px 0;
}
.tabs-panel {
    display: none;
}
.tabs-panel.active {
    display: block;
}

/* 产品详情内容 */
.detail-content {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}
.detail-content img {
    max-width: 100%;
    height: auto;
}
.detail-content table {
    width: 100%;
    border-collapse: collapse;
}
.detail-content table td,
.detail-content table th {
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 14px;
}
.detail-content table th {
    background: #f5f5f5;
    font-weight: bold;
}

/* 技术规格表 */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.spec-table thead {
    background: #2e75be;
}
.spec-table th {
    padding: 12px 18px;
    color: #fff;
    font-weight: bold;
    text-align: left;
}
.spec-table td {
    padding: 11px 18px;
    border-bottom: 1px solid #eee;
    color: #444;
}
.spec-table tbody tr:nth-child(even) {
    background: #f8f9fb;
}
.spec-table tbody tr:hover {
    background: #e8f0fa;
}

/* 资料下载 */
.download-list {
    padding: 10px 0;
}
.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}
.download-item:hover {
    border-color: #2e75be;
}
.download-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.download-icon {
    display: flex;
    align-items: center;
}
.download-name {
    font-size: 14px;
    color: #333;
}
.download-btn {
    padding: 6px 20px;
    background: #2e75be;
    color: #fff;
    font-size: 13px;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.2s;
}
.download-btn:hover {
    background: #1a5fa0;
    color: #fff;
}

/* 空状态 */
.detail-empty {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 15px;
}

/* ===== 上下篇导航 ===== */
.detail-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-bottom: 40px;
}
.detail-nav a,
.detail-nav span {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.detail-nav a:hover {
    color: #2e75be;
}
.detail-nav .disabled {
    color: #bbb;
}

/* ===== 相关产品 ===== */
.related-products {
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.related-title {
    font-size: 20px;
    color: #333;
    margin: 0 0 25px;
    padding-left: 12px;
    border-left: 3px solid #2e75be;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.related-grid .product-card .card-img {
    height: 180px;
}

/* ===== 相关文章列表 ===== */
.related-article-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.related-article-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    gap: 12px;
}

.related-article-list li:last-child {
    border-bottom: none;
}

.related-article-list .related-date {
    flex-shrink: 0;
    font-size: 13px;
    color: #999;
    min-width: 80px;
}

.related-article-list li a {
    flex: 1;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s;
}

.related-article-list li a:hover {
    color: #2e75be;
}

/* 文章详情页相关推荐 */
.related-section {
    padding-top: 25px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.related-heading {
    font-size: 20px;
    color: #333;
    margin: 0 0 20px;
    padding-left: 12px;
    border-left: 3px solid #2e75be;
}

.related-section .related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-section .product-card .card-img {
    height: 180px;
}

/* 最后一个相关板块与页脚之间留出间隔，避免紧贴 */
.related-section:last-child {
    margin-bottom: 50px;
}

/* ===== 详情页响应式 ===== */
@media screen and (max-width: 1024px) {
    .detail-header {
        gap: 25px;
    }
    .detail-gallery {
        width: 320px;
    }
    .gallery-main {
        width: 320px;
        height: 320px;
    }
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .detail-header {
        flex-direction: column;
        gap: 20px;
    }
    .detail-header.detail-header-article {
        padding: 14px 0 18px;
        margin-bottom: 20px;
    }
    .detail-header.detail-header-article h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    .detail-header.detail-header-article .detail-meta {
        font-size: 12px;
        gap: 6px 14px;
    }
    .detail-gallery {
        width: 100%;
    }
    .gallery-main {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
    .detail-title {
        font-size: 20px;
    }
    .detail-desc {
        font-size: 14px;
    }
    .tabs-link {
        padding: 10px 16px;
        font-size: 13px;
    }
    .detail-nav {
        flex-direction: column;
        gap: 8px;
    }
    .detail-nav a,
    .detail-nav span {
        max-width: 100%;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .related-grid .product-card .card-img {
        height: 140px;
    }
    .related-section .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .related-section .product-card .card-img {
        height: 140px;
    }
    .related-article-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
    }
    .related-article-list li a {
        font-size: 13px;
    }
    .detail-actions {
        flex-direction: column;
    }
    .detail-btn {
        text-align: center;
    }
    .spec-table th,
    .spec-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .related-grid .product-card .card-img {
        height: 110px;
    }
    .gallery-main {
        height: auto;
    }
}

/* ===== 解决方案/案例列表页（设计稿样式） ===== */
.case-page {
    padding: 30px 0 60px;
    background: #f5f5f5;
}
.case-breadcrumb {
    font-size: 13px;
    color: #999;
    padding: 14px 0;
}
.case-breadcrumb a { color: #666; text-decoration: none; }
.case-breadcrumb a:hover { color: #2e75be; }
.case-breadcrumb span { color: #2e75be; }
.case-layout {
    display: -webkit-flex;
    display: flex;
    gap: 30px;
    -webkit-align-items: flex-start;
    align-items: flex-start;
}
/* Safari flex-gap 兼容回退 */
@supports not (gap: 30px) {
    .case-layout .case-sidebar { margin-right: 30px; }
}
.case-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0;
    overflow: hidden;
}
.case-sidebar .case-cat-item {
    display: block;
    padding: 13px 20px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}
.case-sidebar .case-cat-item:last-child { border-bottom: none; }
.case-sidebar .case-cat-item::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #ccc;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}
.case-sidebar .case-cat-item:hover,
.case-sidebar .case-cat-item.active {
    color: #2e75be;
    background: #edf3fc;
}
.case-sidebar .case-cat-item.active::before {
    background: #2e75be;
}
.case-sidebar .case-cat-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #2e75be;
}
.case-sidebar .case-side-btn {
    display: block;
    margin: 16px 14px 12px;
    padding: 11px 0;
    text-align: center;
    background: #2e75be;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
}
.case-sidebar .case-side-btn:hover { background: #1e5a94; }
.case-sidebar .case-contact {
    padding: 14px 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #888;
    line-height: 2.1;
}
.case-sidebar .case-contact strong {
    display: block;
    color: #333;
    font-size: 13px;
    margin-bottom: 6px;
}

.case-content { -webkit-flex: 1; flex: 1; min-width: 0; }
.case-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 20px 1fr 20px 1fr;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    gap: 20px;
}
.case-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    color: inherit;
    transition: all 0.3s;
    border: 1px solid #e8e8e8;
}
.case-card:hover {
    border-color: #2e75be;
    box-shadow: 0 4px 12px rgba(46, 117, 190, 0.12);
    transform: translateY(-2px);
}
.case-card .case-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0f0f0;
}
/* Safari aspect-ratio 回退 */
@supports not (aspect-ratio: 4/3) {
    .case-card .case-thumb {
        height: 0;
        padding-bottom: 75%;
    }
}
.case-card .case-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.case-card:hover .case-thumb img { transform: scale(1.05); }
.case-card .case-date {
    font-size: 12px;
    color: #999;
    margin: 14px 14px 8px;
}
.case-card .case-title {
    font-size: 14px;
    color: #333;
    line-height: 1.7;
    font-weight: 500;
    margin: 0 14px 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.case-card .case-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 14px 12px;
}
.case-card .case-more {
    display: inline-block;
    font-size: 13px;
    color: #2e75be;
    margin: 0 14px 14px;
    transition: color 0.2s;
}
.case-card:hover .case-more { color: #1e5a94; }
.case-card:hover .case-title { color: #2e75be; }

.case-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}
.case-pagination .pg-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #2e75be;
    color: #2e75be;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
}
.case-pagination .pg-arrow:hover { background: #2e75be; color: #fff; }
.case-pagination .pg-info { font-size: 14px; color: #666; }

@media screen and (max-width: 900px) {
    .case-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media screen and (max-width: 768px) {
    .case-page { padding: 15px 0 40px; }
    .case-layout { flex-direction: column; }
    .case-sidebar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 6px;
        gap: 0;
    }
    .case-sidebar .case-cat-item {
        padding: 8px 14px;
        font-size: 13px;
        border-bottom: none;
        border-right: 1px solid #f0f0f0;
    }
    .case-sidebar .case-cat-item::before { display: none; }
    .case-sidebar .case-cat-item.active::after { display: none; }
    .case-sidebar .case-side-btn { display: none; }
    .case-sidebar .case-contact { display: none; }
    .case-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .case-card .case-thumb { aspect-ratio: 4/3; }
    .case-card .case-date { margin: 8px 10px 4px; font-size: 11px; }
    .case-card .case-title { margin: 0 10px 4px; font-size: 13px; }
    .case-card .case-desc { display: none; }
    .case-card .case-more { margin: 0 10px 8px; font-size: 12px; }
}
@media screen and (max-width: 480px) {
    .case-grid { gap: 8px; }
    .case-card .case-title { font-size: 12px; }
}

/* ===== Safari 兼容性修复 ===== */

/* Safari 14.1 之前 flexbox gap 不支持时使用 margin 回退
   仅作用于 flex 容器；grid 容器的 grid-gap 自 Safari 10.1 起就已支持，无需回退 */
@supports not (gap: 1px) {
    .product-layout .product-sidebar { margin-right: 30px; }
    .case-layout .case-sidebar { margin-right: 30px; }
    .product-layout .list-sidebar,
    .case-layout .list-sidebar,
    .news-layout .list-sidebar { margin-right: 30px; }
    .breadcrumb-buttons .breadcrumb-btn { margin-left: 10px; }
    .sub-cat-tabs .sub-cat-tab { margin-right: 8px; margin-bottom: 8px; }
    .pagnavi a { margin: 0 3px 6px; }
}

/* ========================================
   统一列表页侧边栏（按设计稿）
   ======================================== */
.list-sidebar {
    width: 220px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}
.list-sidebar .sidebar-block {
    background: #fff;
    border: 1px solid #d8d8d8;
    margin-bottom: 12px;
    overflow: hidden;
}
.list-sidebar .sidebar-block:last-child { margin-bottom: 0; }

/* 蓝色头部 */
.list-sidebar .sidebar-block-header {
    background: #2e75be;
    color: #fff;
    padding: 12px 16px;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.list-sidebar a.sidebar-block-header { transition: background 0.2s; }
.list-sidebar a.sidebar-block-header:hover { background: #1e5a94; color: #fff; }

.list-sidebar .sidebar-block-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
}
.list-sidebar .sidebar-block-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}
.list-sidebar .sidebar-block-title {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
    color: #fff;
}

/* 分类列表 */
.list-sidebar .sidebar-block-body { padding: 0; }
.list-sidebar .sidebar-cat {
    display: block;
    padding: 11px 16px 11px 30px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    border-bottom: 1px dashed #e8e8e8;
    position: relative;
    transition: all 0.2s;
}
.list-sidebar .sidebar-cat:last-child { border-bottom: none; }
.list-sidebar .sidebar-cat::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    margin-top: -4px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 6px;
    border-color: transparent transparent transparent #2e75be;
    transition: -webkit-transform 0.2s;
    transition: transform 0.2s;
}
.list-sidebar .sidebar-cat:hover,
.list-sidebar .sidebar-cat.active {
    color: #2e75be;
    background: #f4f9fe;
}
.list-sidebar .sidebar-cat.active { font-weight: bold; }
.list-sidebar .sidebar-cat:hover::before,
.list-sidebar .sidebar-cat.active::before {
    -webkit-transform: translateX(3px);
    transform: translateX(3px);
}

/* 联系信息 */
.list-sidebar .sidebar-contact-body {
    padding: 14px 16px;
    font-size: 12px;
    color: #666;
    line-height: 1.9;
}
.list-sidebar .sidebar-contact-body strong {
    display: block;
    color: #333;
    font-size: 13px;
    margin-bottom: 6px;
}
.list-sidebar .sidebar-contact-body p { margin: 0; }

/* 响应式 */
@media screen and (max-width: 1024px) {
    .list-sidebar { width: 200px; }
}
@media screen and (max-width: 768px) {
    .list-sidebar { width: 100%; }
    .list-sidebar .sidebar-block-body { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
    .list-sidebar .sidebar-cat {
        flex: 0 0 50%;
        -webkit-flex: 0 0 50%;
        padding: 9px 12px 9px 24px;
        font-size: 13px;
        border-right: 1px dashed #e8e8e8;
    }
    .list-sidebar .sidebar-cat::before { left: 12px; }
    .list-sidebar .sidebar-cat:nth-child(2n) { border-right: none; }
    .list-sidebar .sidebar-block-contact { display: none; }
}

/* Safari box-sizing 全局确认 */
.product-layout *,
.case-layout * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* ===== 详情页正文容器（解决方案/新闻详情）：与页脚拉开间隔 ===== */
.Contain.detail-page {
    padding-bottom: 60px;
}
@media screen and (max-width: 768px) {
    .Contain.detail-page {
        padding-bottom: 40px;
    }
}
