/* ==================== 设备定制页专用样式 ==================== */

/* Tabs 导航栏样式 */
.page-equipment-custom .tabs-wrapper {
    position: relative !important;
    background: #ffffff;
    border-bottom: 1px solid #eaedf0;
    margin: 0 auto 50px auto; 
    max-width: 1200px;
    width: 100%;
    padding: 0 24px;
    z-index: 2;
}

.page-equipment-custom .tabs-wrapper .tabs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 36px;
    margin: 0;
    padding: 0;
    background: transparent;
}

.page-equipment-custom .tabs-wrapper .tab-item {
    display: inline-block;
    padding: 14px 0 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.page-equipment-custom .tabs-wrapper .tab-item.active {
    color: #005aed;
    border-bottom-color: #005aed;
}

.page-equipment-custom .tabs-wrapper .tab-item:hover {
    color: #005aed;
}

/* Tab 内容区域 */
.page-equipment-custom .tab-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
}

.page-equipment-custom .tab-content {
    display: none;
    padding: 32px 24px;
}

.page-equipment-custom .tab-content.active {
    display: block;
}

/* 内容盒子 */
.content-box {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 10px 16px;
    box-sizing: border-box;
    text-align: left;
}

/* 渐变标题 */
.gradient-title {
    background: linear-gradient(to right, #e8f0fe, #fff);
    padding: 10px 20px;
    border-left: 4px solid #0066ff;
    margin: 20px 0 15px;
    font-weight: bold;
}

/* 产品滑块 */
.prodSlider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.prodSlider-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.prodSlider-viewport::-webkit-scrollbar {
    display: none;
}

.prodSlider-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    padding: 8px 0 20px 0;
    width: max-content;
}

.prodSlider-card {
    flex: 0 0 auto;
    width: 280px;
    background: #ffffff;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.prodSlider-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.prodSlider-img-wrapper {
    background-color: #fafafa;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 16px;
    transition: background-color 0.3s ease;
}

.prodSlider-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
}

.prodSlider-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1d;
    margin-bottom: 10px;
    line-height: 1.4;
}

.prodSlider-card:hover .prodSlider-img-wrapper {
    background-color: #f0f0f0;
}

.prodSlider-card:hover .prodSlider-img-wrapper img {
    transform: scale(1.05);
}

.prodSlider-card:hover .prodSlider-card-title {
    color: #005aed;
}

.prodSlider-nav-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(35, 47, 69, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 5;
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.prodSlider-nav-btn:hover {
    background-color: #005aed;
}

.prodSlider-prev {
    left: 2px;
}

.prodSlider-next {
    right: 2px;
}

/* 新闻标题网格 */
.page-equipment-custom .news-titles-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 2px;
}

.page-equipment-custom .news-titles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 30px;
}

.page-equipment-custom .news-item-with-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
}

.page-equipment-custom .news-tag {
    flex-shrink: 0;
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 20px;
    background-color: #e6f0ff;
    color: #005aed;
    white-space: nowrap;
}

.page-equipment-custom .news-tag.tag-news {
    background-color: #e6f0ff;
    color: #005aed;
}

.page-equipment-custom .news-tag.tag-blog {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.page-equipment-custom .news-tag.tag-event {
    background-color: #fff3e0;
    color: #ed6c02;
}

.page-equipment-custom .news-tag.tag-case {
    background-color: #f3e5f5;
    color: #9c27a0;
}

.page-equipment-custom .news-title-with-tag {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #1a2c3e;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.page-equipment-custom .news-title-with-tag:hover {
    color: #005aed;
}

/* 文档网格 */
.page-equipment-custom .docs-grid-wrapper {
    max-width: 1200px;
    margin: 20px auto 0 auto;
    padding: 0 2px;
    width: 100%;
}

.page-equipment-custom .docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
    width: 100%;
}

.page-equipment-custom .docs-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    width: 100%;
    box-sizing: border-box;
}

.page-equipment-custom .docs-title {
    flex: 1;
    min-width: 0;
}

.page-equipment-custom .docs-title a {
    font-size: 15px;
    font-weight: 500;
    color: #1a2c3e;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    transition: color 0.2s;
    line-height: 1.4;
    width: 100%;
}

.page-equipment-custom .docs-title a span {
    flex: 1;
    word-break: break-word;
}

.page-equipment-custom .docs-title a img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    flex-shrink: 0;
}

/* 联系表单 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-full {
    grid-column: span 2;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn-submit {
    background: #005AED;
    color: #fff;
    border: none;
    padding: 12px 60px;
    border-radius: 30px;
    cursor: pointer;
    margin: 20px auto;
    display: block;
    font-size: 16px;
}

.full-bg-gray {
    background-color: #f8f9fa;
    width: 100%;
    box-sizing: border-box;
}

.spePosCenter {
    text-align: center;
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
    .page-equipment-custom .tabs-wrapper .tabs-container {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 24px;
        padding-bottom: 8px;
    }
    
    .page-equipment-custom .tabs-wrapper {
        padding: 0 16px;
    }
    
    .page-equipment-custom .tabs-wrapper .tab-item {
        white-space: nowrap;
        font-size: 15px;
    }
    
    .page-equipment-custom .tab-content {
        padding: 20px 16px;
    }
    
    .content-box {
        padding: 0 16px;
    }
    
    .page-equipment-custom .news-titles-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .page-equipment-custom .news-titles-wrapper {
        padding: 0 16px;
        margin: 30px auto;
    }
    
    .page-equipment-custom .news-item-with-tag {
        gap: 10px;
        padding: 14px 0;
    }
    
    .page-equipment-custom .news-tag {
        padding: 3px 10px;
        font-size: 11px;
    }
    
    .page-equipment-custom .news-title-with-tag {
        font-size: 14px;
    }
    
    .page-equipment-custom .docs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .page-equipment-custom .docs-grid-wrapper {
        padding: 0 16px;
    }
    
    .page-equipment-custom .docs-item {
        padding: 14px 16px;
    }
    
    .page-equipment-custom .docs-title a {
        font-size: 14px;
    }
    
    .prodSlider-card {
        width: 260px;
    }
    
    .prodSlider-card-title {
        font-size: 16px;
    }
    
    .prodSlider-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 22px;
        background-color: rgba(35, 47, 69, 0.7);
    }
    
    .prodSlider-prev {
        left: 8px;
    }
    
    .prodSlider-next {
        right: 8px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-full {
        grid-column: span 1;
    }
}

/* ==================== 自定义样式（设备定制页新增） ==================== */

/* About 区域 */
.custom-abtContainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.custom-leftSection {
    flex-shrink: 0;
    width: 500px;
}

.custom-imageWrapper {
    position: relative;
    width: 500px;
    height: 310px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.custom-imageWrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.custom-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #FF6A39;
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 10;
    line-height: 1;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.custom-rightSection {
    flex: 1;
}

.custom-textCate {
    font-size: 32px;
    font-weight: 400;
    color: #1d1d1d;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.custom-blueLine {
    width: 80px;
    height: 8px;
    background-color: #005aed;
    margin: 16px 0;
}

.custom-description {
    font-size: 16px;
    font-weight: 400;
    color: #606060;
    line-height: 1.6;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.custom-description.is-collapsed {
    max-height: 225px;
}

.custom-description.is-expanded {
    max-height: 2000px;
}

.custom-description p {
    margin-bottom: 20px;
}

.custom-description p:last-child {
    margin-bottom: 0;
}

.custom-toggleBtn {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #005aed;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 0;
    font-family: inherit;
    border-bottom: 1px dashed transparent;
}

.custom-toggleBtn:hover {
    color: #003d80;
    border-bottom-color: #003d80;
}

/* Brief 区域折叠容器样式 */
.brief-text-container {
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    max-height: none;  /* 默认不限高，JS 会动态设置 */
}

.brief-text-container.is-collapsed {
    max-height: 400px !important;
}

.brief-text-container.is-expanded {
    max-height: 2000px !important;
}

/* 表格样式 */
.custom-table-wrapper {
    margin: 20px 0;
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table th,
.custom-table td {
    padding: 12px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.custom-table th {
    background: #eef4ff;
    color: #0066ff;
    font-weight: 400;
}

.custom-table td {
    color: #606060;
}

/* 自定义移动端适配 */
@media (max-width: 768px) {
    .custom-abtContainer {
        flex-direction: column;
        padding: 20px 16px;
        gap: 24px;
    }
    
    .custom-leftSection {
        width: 100%;
    }
    
    .custom-imageWrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 500 / 310;
        padding: 16px;
    }
    
    .custom-textCate {
        font-size: 24px;
    }
    
    .custom-description {
        font-size: 14px;
    }
    
    .custom-badge {
        font-size: 12px;
        padding: 3px 10px;
        top: 8px;
        left: 8px;
    }
    
    /* 表格转卡片 */
    .custom-table-wrapper {
        overflow-x: visible;
    }
    
    .custom-table thead {
        display: none;
    }
    
    .custom-table tbody tr {
        display: block;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        margin-bottom: 16px;
        padding: 12px;
        background: #fff;
    }
    
    .custom-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 10px 0;
        text-align: right;
    }
    
    .custom-table td:last-child {
        border-bottom: none;
    }
    
    .custom-table td::before {
        content: attr(data-label);
        font-weight: 500;
        color: #0066ff;
        text-align: left;
        padding-right: 12px;
    }
    
    /* 产品滑块间距修复 */
    .prodSlider-wrapper {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    
    .prodSlider-viewport {
        width: calc(100% + 32px) !important;
        margin-left: -16px !important;
        padding-left: 16px !important;
        box-sizing: border-box !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .prodSlider-container {
        padding-left: 0 !important;
        gap: 16px !important;
    }
    
    .prodSlider-container .prodSlider-card:last-child {
        margin-right: 16px !important;
    }
    
    /* 统一移动端间距 */
    .page-equipment-custom .tab-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .tab-content .content-box,
    .tab-content .docs-grid-wrapper,
    .tab-content .news-titles-wrapper {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .tab-content .content-box {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* tabs 边框优化 */
    .page-equipment-custom .tabs-wrapper {
        border-bottom: none !important;
        box-shadow: 0 1px 0 0 #eaedf0 !important;
    }
    
    /* tabs 宽度溢出修复 */
    .page-equipment-custom .tabs-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .page-equipment-custom .tabs-wrapper .tabs-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        scrollbar-width: thin !important;
    }
    
    .page-equipment-custom .tabs-wrapper .tab-item {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
}


/* ========== Contact for more detail 简化文字链接样式 ========== */
.custom-contact-link-wrapper {
    margin-top: 16px;
    text-align: center;
}

.custom-contact-detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #005aed;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
    padding: 6px 12px;
    border-radius: 4px;
}

.custom-contact-detail-link:hover {
    color: #003d80;
    background: #f0f5ff;
}

.contact-arrow-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.custom-contact-detail-link:hover .contact-arrow-icon {
    transform: translateX(3px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .custom-contact-link-wrapper {
        margin-top: 12px;
    }
    
    .custom-contact-detail-link {
        font-size: 14px;
        padding: 4px 10px;
    }
    
    .contact-arrow-icon {
        width: 12px;
        height: 12px;
    }
}



/* ========== 自定义大箭头图标（不使用第三方库） ========== */
.custom-toggleBtn,
#briefToggleBtn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 16px auto 0 auto;
    background: transparent;
    border: 1px solid #005aed;
    border-radius: 20px;          
    width: 144px;                 /* 固定宽度 */
    height: 32px;                /* 固定高度 */
    padding: 0;                  /* 移除内边距 */
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.custom-toggleBtn:hover,
#briefToggleBtn:hover {
    background: #005aed;
    color: white;
}

/* 箭头图标放大一点，更显眼 */
.custom-toggleBtn .toggle-arrow,
#briefToggleBtn .toggle-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    transition: transform 0.2s ease;
}

/* 下箭头 */
.custom-toggleBtn .toggle-arrow.down,
#briefToggleBtn .toggle-arrow.down {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid currentColor;
}

/* 上箭头 */
.custom-toggleBtn .toggle-arrow.up,
#briefToggleBtn .toggle-arrow.up {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid currentColor;
}