/* ============================================================
   产品详情页专用样式 - product-details.css
   包含：图片组图(含放大镜)、产品信息、推荐列表、详情介绍、响应式
   ============================================================ */

/* ========== 全局重置与基础 ========== */
.detail-page {
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

/* ========== 图片全局防拉伸规则 ========== */
.detail-page img {
    /* 防止图片超出容器宽度，具体高度由各容器类控制 */
    max-width: 100%;
}

/* 放大镜结果图例外：需要显示为原始像素尺寸（由JS动态设置），
 * 不受全局max-width约束，否则会被压缩导致拉伸+坐标错位 */
.detail-page .zoom-image {
    max-width: none;
    width: auto;
    height: auto;
}

/* ========== 第一板块：产品核心区域容器 ========== */
.detail-main-section {
    padding: 40px 0 20px;
}

.detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* ============================================================
   左侧：产品图片组图区域
   ============================================================ */
.detail-gallery {
    width: 420px;
    flex-shrink: 0;
}

/* --- 主图展示区（含放大镜效果） --- */
.gallery-main {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.main-image-box {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #fafafa;
    cursor: crosshair;
    border: 1px solid #e8eaed;
}

.main-image {
    width: 100%;
    height: 100%;
    /* 等比例包含显示，保持原图宽高比完整显示不裁剪 */
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* 放大镜透镜 - 磨砂玻璃矩形效果 */
.zoom-lens {
    position: absolute;
    width: 180px;
    height: 160px;
    /* 半透明白色底色 */
    background: rgba(255, 255, 255, 0.25);
    /* 磨砂玻璃核心：背景模糊 + 半透明融合 */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    /* 柔和阴影，与底层图片自然融合 */
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    /* 初始略小，悬停时放大到正常尺寸 */
    transform: scale(0.92);
}

/* 放大结果显示区（右侧悬浮） */
.zoom-result {
    position: absolute;
    left: calc(100% + 18px);
    top: 0;
    width: 400px;
    height: 380px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e8eaed;
    background: #fff;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        visibility 0.3s ease,
        transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 20;
    /* 入场时轻微上浮 */
    transform: translateY(6px) scale(0.97);
}

/* 悬停时放大面板归位 */
.main-image-box:hover ~ .zoom-result {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.zoom-image {
    position: absolute;
    /* 宽高由JS动态设置为原图原始尺寸(naturalWidth/naturalHeight)
     * 通过 left/top 平移来显示透镜覆盖的区域
     * 不使用 object-fit: cover/contain，避免二次缩放导致拉伸 */
    transform-origin: 0 0;
}

/* 鼠标进入主图时显示透镜（配合CSS transition实现淡入+微缩放效果） */
.main-image-box:hover .zoom-lens {
    opacity: 1;
    transform: scale(1);
}

/* --- 缩略图轮播区 --- */
.gallery-thumbs {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== 左右切换箭头（重设计：圆形精致风格） ===== */
.thumb-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 60px;
    /* 去除默认边框，使用渐变背景 */
    border: none;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
    color: #888;
    font-size: 0; /* 隐藏文字内容，改用伪元素画箭头 */
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04);
}

/* 用伪元素绘制箭头图标（CSS三角形 + 横线） */
.thumb-arrow::before {
    content: '';
    display: block;
    width: 9px;
    height: 9px;
    border-left: 2.5px solid currentColor;
    border-bottom: 2.5px solid currentColor;
    transform: rotate(45deg);
    margin-right: 2px;
    transition: all 0.25s ease;
}

/* 左箭头：箭头朝左 → 需要额外旋转 */
.thumb-prev::before {
    transform: rotate(45deg);
    margin-right: 3px;
    margin-bottom: 0;
}

/* 右箭头：箭头朝右 */
.thumb-next::before {
    transform: rotate(-135deg);
    margin-left: 1px;
    margin-bottom: 0;
}

/* hover 效果：背景变深 + 箭头变色 + 微上浮 */
.thumb-arrow:hover:not(.disabled) {
    background: linear-gradient(180deg, #f8f9fc 0%, #eef1f6 100%);
    color: var(--primary-color, #f43838);
    box-shadow:
        0 4px 12px rgba(244, 56, 56, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.thumb-arrow:hover:not(.disabled)::before {
    border-color: var(--primary-color, #f43838);
    transform: scale(1.08);
}

.thumb-prev:hover:not(.disabled)::before {
    transform: rotate(45deg) scale(1.08);
}

.thumb-next:hover:not(.disabled)::before {
    transform: rotate(-135deg) scale(1.08);
}

/* 禁用状态：降低透明度，不可点击 */
.thumb-arrow.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* 轨道容器：右侧留出充足安全边距防止最后一个缩略图边框被 overflow:hidden 截断 */
.thumb-track-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    /* 8px = 2px右边框 + 2px预留 + 4px视觉间距 */
    padding-right: 8px;
}

/* 轨道内部右侧再加一层安全边距，双重保障 */
.thumb-track {
    display: flex;
    gap: 10px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    /* 最末尾留白，确保最后一个缩略图完整显示 */
    padding-right: 4px;
}

.thumb-item {
    flex-shrink: 0;
    width: 75px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fafafa;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    /* 等比例包含显示，保持原图宽高比完整不裁剪 */
    object-fit: contain;
    display: block;
}

.thumb-item:hover {
    border-color: #ccc;
}

.thumb-item.active {
    border-color: var(--primary-color, #f43838);
    box-shadow: 0 2px 8px rgba(244, 56, 56, 0.2);
}

/* ============================================================
   中间：产品核心信息区域
   ============================================================ */
.detail-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.detail-product-name {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    line-height: 1.35;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.detail-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.75;
    margin-bottom: 22px;
    text-align: justify;
}

/* --- 产品参数列表 --- */
.detail-params {
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.param-row {
    display: flex;
    align-items: baseline;
    padding: 6px 0;
    font-size: 14px;
}

.param-label {
    color: #888;
    flex-shrink: 0;
}

.param-value {
    color: #333;
    word-break: break-word;
}

/* --- 分享图标 --- */
.detail-share {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.share-label {
    font-size: 14px;
    color: #888;
    margin-right: 4px;
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-decoration: none;
    font-style: normal;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    transition: all 0.25s ease;
}

.share-icon i {
    font-style: normal;
}

.icon-facebook { background: #3b5998; }
.icon-facebook:hover { background: #2d4373; }

.icon-twitter { background: #1da1f2; }
.icon-twitter:hover { background: #0c85d0; }

.icon-pinterest { background: #bd081c; }
.icon-pinterest:hover { background: #8c0615; }

.icon-linkedin { background: #0077b5; }
.icon-linkedin:hover { background: #005885; }

.icon-google { background: #db4437; }
.icon-google:hover { background: #c23321; }

/* --- 操作按钮（INQUIRY） --- */
.inquiry-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 14px 48px;
    background: #f43838;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.inquiry-btn:hover {
    background: var(--primary-color, #f43838);
    box-shadow: 0 6px 22px rgba(244, 56, 56, 0.35);
    transform: translateY(-2px);
}

/* ============================================================
   右侧：联系 + 推荐侧边栏
   ============================================================ */
.detail-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidebar-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.sidebar-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    letter-spacing: 0.3px;
}

/* --- 联系我们卡片 --- */
.contact-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    /* 等比例覆盖填充，保持原图宽高比 */
    object-fit: cover;
    background: #eee;
    flex-shrink: 0;
    display: block;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.contact-hint {
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
}

.contact-now-btn {
    width: 100%;
    padding: 11px 0;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.contact-now-btn:hover {
    border-color: var(--primary-color, #f43838);
    color: var(--primary-color, #f43838);
    background: #fef5f5;
}

/* --- 推荐产品卡片 --- */
.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.recommend-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.25s ease;
}

.recommend-item:hover {
    background: #f8f9fc;
}

.recommend-thumb {
    width: 70px;
    height: 52px;
    border-radius: 4px;
    /* 等比例覆盖填充，保持原图宽高比 */
    object-fit: cover;
    background: #f0f0f0;
    flex-shrink: 0;
    display: block;
}

.recommend-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.recommend-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.recommend-btn-text {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.recommend-item:hover .recommend-name {
    color: var(--primary-color, #f43838);
}

.recommend-item:hover .recommend-btn-text {
    color: var(--primary-color, #f43838);
}

/* ============================================================
   第二板块：产品文字详细介绍
   ============================================================ */
.detail-description-section {
    margin-top: 30px;
    padding-bottom: 30px;
}

.desc-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 标签栏 */
.desc-tab-bar {
    border-bottom: 2px solid #e8eaed;
    margin-bottom: 28px;
}

.desc-tab {
    display: inline-block;
    padding: 12px 4px;
    font-size: 17px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.25s ease;
}

.desc-tab.active {
    color: var(--primary-color, #f43838);
    border-bottom-color: var(--primary-color, #f43838);
}

/* 内容区 */
.desc-content {
    background: #fff;
    border-radius: 8px;
    padding: 36px 44px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.desc-section-title {
    font-size: 19px;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
    border-left: 4px solid var(--primary-color, #f43838);
    padding-left: 12px;
}

.desc-body p {
    font-size: 14px;
    color: #555;
    line-height: 1.85;
    margin-bottom: 14px;
    text-align: justify;
}

.desc-body p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   技术参数表格（Technical Specifications Table）
   三列结构：参数名 | 规格说明 | 选型备注
   ============================================================ */
.technical-specifications-section {
    margin-top: 30px;
    padding-bottom: 30px;
}

/* 表格横向滚动容器：超出视口时允许横向滑动 */
.spec-table-wrapper {
    width: 100%;
    overflow-x: auto;
    /* 隐藏纵向滚动条，仅保留横向 */
    overflow-y: hidden;
    /* 底部留出滚动条空间 + 视觉间距 */
    margin-bottom: 4px;
    /* 圆角裁剪：防止滚动内容溢出圆角区域 */
    border-radius: 6px;
    /* 自定义 Webkit 滚动条样式（Chrome / Safari / Edge） */
    -webkit-overflow-scrolling: touch; /* iOS 惯性滚动 */
}

/* ===== 自定义横向滚动条 ===== */
.spec-table-wrapper::-webkit-scrollbar {
    height: 8px; /* 横向滚动条高度 */
}

.spec-table-wrapper::-webkit-scrollbar-track {
    background: #f1f3f6;
    border-radius: 4px;
}

.spec-table-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #ccc, #bbb);
    border-radius: 4px;
    transition: background 0.25s ease;
}

/* hover 时滚动条变为主题色高亮 */
.spec-table-wrapper:hover::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary-color, #f43838), #d42f2f);
}

/* Firefox 滚动条 */
.spec-table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f3f6;
}

.spec-table-wrapper:hover {
    scrollbar-color: var(--primary-color, #f43838) #f1f3f6;
}

.spec-table {
    width: 100%;
    min-width: 700px; /* 保证表格最小宽度，触发横向滚动 */
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.65;
}

/* 表头 */
.spec-table thead th {
    background: #f8f9fc;
    color: #333;
    font-weight: 600;
    padding: 13px 18px;
    text-align: left;
    border-bottom: 2px solid var(--primary-color, #f43838);
    letter-spacing: 0.3px;
}

/* 单元格基础样式 */
.spec-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    color: #555;
}

/* 参数名列：加粗 + 固定宽度 */
.spec-table .spec-name {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    width: 170px;
    background: #fafbfe;
}

/* 斑马纹行：偶数行浅色背景 */
.spec-table tbody tr:nth-child(even) {
    background: #fdfdfd;
}

/* 悬停高亮行 */
.spec-table tbody tr:hover {
    background: #fef5f5;
}

/* 最后一行无边框底部 */
.spec-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================================
   Key Features 特性卡片区域
   4列网格布局：图标 + 标题 + 描述文字，响应式适配
   ============================================================ */
.key-features-section {
    margin-top: 30px;
    padding-bottom: 30px;
}

.key-features-grid {
    display: grid;
    /* 默认4列等宽布局 */
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

/* 单个特性卡片 */
.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    /* 柔和阴影 + hover 上浮效果 */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f2f5;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(244, 56, 56, 0.12);
    border-color: rgba(244, 56, 56, 0.2);
}

/* 图标容器：浅粉圆形背景 + 居中 */
.feature-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    /* 浅粉红底色：与参考图一致的淡粉色圆形背景 */
    background: linear-gradient(135deg, #fff8f8 0%, #fef2f2 100%);
    border-radius: 50%;
    /* 淡红细边框增强视觉层次感 */
    border: 1px solid rgba(232, 69, 69, 0.12);
    /* 图标容器也有过渡效果 */
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrap {
    background: linear-gradient(135deg, #fef5f5 0%, #fcebeb 100%);
    transform: scale(1.06);
    border-color: rgba(244, 56, 56, 0.25);
}

/* 图片/图标本身（SVG本身已为红色，无需额外滤镜） */
.feature-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

/* 标题 */
.feature-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

/* 描述文字 */
.feature-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   Manufacturing Advantages 制造优势横向轮播区域
   布局：左右箭头 + 中间滚动轨道，卡片水平排列
   ============================================================ */
.mfg-advantages-section {
    margin-top: 30px;
    padding-bottom: 30px;
}

/* 轮播容器：Flex 布局，箭头 + 轨道水平排列 */
.adv-carousel {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

/* ===== 左右切换箭头 ===== */
.adv-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 5;
}

.adv-arrow:hover:not(.disabled) {
    background: var(--primary-color, #f43838);
    border-color: var(--primary-color, #f43838);
    box-shadow: 0 4px 16px rgba(244, 56, 56, 0.25);
    transform: scale(1.08);
}

.adv-arrow:hover:not(.disabled) .adv-arrow-icon {
    border-color: #fff;
}

/* 箭头图标（CSS伪元素绘制） */
.adv-arrow-icon {
    width: 9px;
    height: 9px;
    border-left: 2.5px solid #888;
    border-bottom: 2.5px solid #888;
    transition: all 0.25s ease;
}

/* 左箭头朝左 */
.adv-prev .adv-arrow-icon {
    transform: rotate(45deg);
    margin-right: 3px;
}

/* 右箭头朝右 */
.adv-next .adv-arrow-icon {
    transform: rotate(-135deg);
    margin-left: 1px;
}

.adv-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* 滚动轨道容器：隐藏溢出内容 */
.adv-track-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* 卡片轨道：Flex 水平排列，支持平滑滚动 */
.adv-track {
    display: flex;
    gap: 22px;
    /* 平滑滚动 */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    will-change: transform;
    /* 隐藏默认滚动条但保留功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.adv-track::-webkit-scrollbar { display: none; }

/* ===== 单个优势卡片 ===== */
.adv-card {
    flex-shrink: 0;
    width: 300px;
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    border: 1px solid #eeeef0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.adv-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
    transform: translateY(-3px);
    border-color: rgba(244, 56, 56, 0.15);
}

/* 标题 */
.adv-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
    line-height: 1.35;
}

/* 描述文字 */
.adv-desc {
    font-size: 13.5px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* 图片容器 */
.adv-img-wrap {
    width: 100%;
    height: 170px;
    overflow: hidden;
    border-radius: 6px;
    background: #f7f8fa;
}

.adv-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.adv-card:hover .adv-img {
    transform: scale(1.05);
}

/* ============================================================
   Applications 应用场景区域
   布局：3列网格，图文并茂，每项含图片 + 编号 + 标题 + 描述
   ============================================================ */

.applications-section {
    margin-top: 30px;
    padding-bottom: 30px;
}

/* 网格容器：默认3列等宽布局 */
.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* 单个应用场景卡片 */
.app-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

/* hover效果：上浮 + 阴影加深 + 边框变色 */
.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 32px rgba(244, 56, 56, 0.1);
    border-color: rgba(244, 56, 56, 0.18);
}

/* 图片区域 */
.app-img-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fc 0%, #eef2f9 100%);
}

.app-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

/* 图片hover放大效果 */
.app-card:hover .app-img {
    transform: scale(1.08);
}

/* 左上角编号角标 */
.app-num {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 32px;
    padding: 0 10px;
    background: var(--primary-color, #f43838);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.8px;
    /* 半透明遮罩提升可读性 */
    background: rgba(244, 56, 56, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2;
    line-height: 1;
}

/* 文字内容区 */
.app-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* 标题 */
.app-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
    line-height: 1.35;
}

/* 描述文字 */
.app-desc {
    font-size: 13.5px;
    color: #666;
    line-height: 1.75;
    margin: 0;
}

/* ============================================================
   Problems & Solutions 常见问题与解决方案区域
   结构：标题 → 描述段落 → 3列数据表格（横向滚动支持）
   ============================================================ */

.problems-section {
    margin-top: 30px;
    padding-bottom: 30px;
}

/* 引导性描述文字 */
.problems-intro {
    font-size: 14.5px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fafbfe 0%, #f5f7fc 100%);
    border-left: 4px solid var(--primary-color, #f43838);
    border-radius: 0 8px 8px 0;
}

/* 表格横向滚动容器：移动端超出视口时允许滑动 */
.problem-table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 4px;
    border-radius: 6px;
    -webkit-overflow-scrolling: touch;
    /* 自定义滚动条 */
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.problem-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.problem-table-wrapper::-webkit-scrollbar-track {
    background: #f1f3f6;
    border-radius: 4px;
}

.problem-table-wrapper::-webkit-scrollbar-thumb {
    background: #c8ccd3;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.problem-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8adb6;
}

/* ===== 问题与解决方案表格主体 ===== */
.problem-table {
    width: 100%;
    min-width: 750px; /* 保证表格内容不压缩变形 */
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 14px;
    background: #fff;
    /* 表格外边框 */
    border: 1px solid #e4e7ec;
}

/* 表头行 */
.problem-table thead {
    background: linear-gradient(180deg, #f8f9fb 0%, #eef1f6 100%);
}

.problem-table thead th {
    padding: 14px 18px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.2px;
    white-space: nowrap;
    border-bottom: 2px solid #dcdfe6;
}

/* 数据单元格 */
.problem-table td {
    padding: 15px 18px;
    vertical-align: top;
    color: #555;
    line-height: 1.75;
    border-bottom: 1px solid #eeeef2;
    transition: background-color 0.2s ease;
}

/* 问题名称列：固定宽度 + 加粗 */
.problem-table .prob-name {
    width: 160px;
    min-width: 160px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    background-color: #fafbfd;
}

/* 行悬停效果 */
.problem-table tbody tr:hover td {
    background-color: #fdfdfd;
}

.problem-table tbody tr:hover .prob-name {
    background-color: #fef5f5;
    color: var(--primary-color, #f43838);
}

/* 斑马纹：奇偶行交替背景 */
.problem-table tbody tr:nth-child(even) td {
    background-color: #fafbfe;
}

.problem-table tbody tr:nth-child(even) .prob-name {
    background-color: #f4f6fa;
}

/* 最后一行去掉底部边框 */
.problem-table tbody tr:last-child td {
    border-bottom: none;
}

/* --- 平板端：1200px以下 --- */
@media screen and (max-width: 1200px) {
    .detail-container {
        padding: 0 28px;
        gap: 24px;
    }

    .detail-gallery {
        width: 360px;
    }

    .main-image-box {
        height: 320px;
    }

    .zoom-result {
        width: 340px;
        height: 320px;
        left: calc(100% + 14px);
    }

    .thumb-item {
        width: 68px;
        height: 52px;
    }

    .detail-sidebar {
        width: 250px;
    }

    .desc-container {
        padding: 0 28px;
    }

    .desc-content {
        padding: 28px 32px;
    }

    /* 平板端：4列 → 2列 */
    .key-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .feature-card {
        padding: 26px 20px;
    }

    .feature-icon-wrap {
        width: 76px;
        height: 76px;
        margin-bottom: 16px;
    }

    .feature-img {
        width: 38px;
        height: 38px;
    }

    /* 制造优势轮播：平板端卡片稍窄 */
    .adv-card {
        width: 260px;
        padding: 20px 18px;
    }

    .adv-title {
        font-size: 15.5px;
    }

    .adv-desc {
        font-size: 13px;
    }

    .adv-img-wrap {
        height: 145px;
    }

    /* 平板端：应用场景 3列 → 2列 */
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .app-img-wrap {
        height: 170px;
    }

    .app-body {
        padding: 18px 20px 22px;
    }

    .app-title {
        font-size: 15.5px;
    }

    .app-desc {
        font-size: 13px;
    }

    /* 平板端：问题与解决方案表格适度缩小 */
    .problems-intro {
        font-size: 13.5px;
        padding: 14px 18px;
        margin-bottom: 20px;
    }

    .problem-table {
        font-size: 13px;
        min-width: 680px;
    }

    .problem-table thead th {
        padding: 12px 15px;
        font-size: 13px;
    }

    .problem-table td {
        padding: 12px 15px;
    }

    .problem-table .prob-name {
        width: 140px;
        min-width: 140px;
        font-size: 13px;
    }
}

/* --- 小平板端：992px以下 --- */
@media screen and (max-width: 992px) {
    .detail-container {
        flex-direction: column;
        gap: 28px;
    }

    .detail-gallery {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .main-image-box {
        height: 420px;
    }

    .zoom-result {
        /* 移动端隐藏右侧放大镜 */
        display: none;
    }

    .zoom-lens {
        display: none;
    }

    .thumb-item {
        width: 80px;
        height: 60px;
    }

    .detail-sidebar {
        width: 100%;
        flex-direction: row;
        gap: 16px;
    }

    .sidebar-card {
        flex: 1;
    }
}

/* --- 手机端：650px以下 --- */
@media screen and (max-width: 650px) {
    .detail-main-section {
        padding: 24px 0 12px;
    }

    .detail-container {
        padding: 0 16px;
        gap: 20px;
    }

    .detail-gallery {
        max-width: 100%;
    }

    .main-image-box {
        height: 280px;
    }

    .gallery-thumbs {
        gap: 6px;
    }

    .thumb-arrow {
        width: 32px;
        height: 50px;
    }

    .thumb-item {
        width: 64px;
        height: 48px;
    }

    .detail-product-name {
        font-size: 21px;
        margin-bottom: 12px;
    }

    .detail-desc {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .param-row {
        font-size: 13px;
    }

    .inquiry-btn {
        width: 100%;
        padding: 13px 0;
        text-align: center;
    }

    .detail-sidebar {
        flex-direction: column;
    }

    .contact-avatar {
        width: 40px;
        height: 40px;
    }

    .desc-container {
        padding: 0 20px;
    }

    .desc-tab-bar {
        margin-bottom: 18px;
    }

    .desc-tab {
        font-size: 15px;
    }

    .desc-content {
        padding: 26px 22px;
    }

    .desc-section-title {
        font-size: 17px;
        margin-bottom: 14px;
    }

    .desc-body p {
        font-size: 13px;
        line-height: 1.75;
        margin-bottom: 12px;
    }

    /* 移动端表格：适度缩小内边距，通过横向滚动展示完整内容 */
    .spec-table {
        font-size: 13px;
        min-width: 600px;
    }

    .spec-table thead th,
    .spec-table td {
        padding: 10px 12px;
    }

    .spec-table .spec-name {
        width: 130px;
        font-size: 13px;
    }

    /* 移动端滚动条稍高一些便于触摸操作 */
    .spec-table-wrapper::-webkit-scrollbar {
        height: 10px;
    }

    /* 移动端：2列 → 单列堆叠 */
    .key-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 22px 18px;
    }

    .feature-icon-wrap {
        width: 68px;
        height: 68px;
        margin-bottom: 14px;
    }

    .feature-img {
        width: 34px;
        height: 34px;
    }

    .feature-title {
        font-size: 15.5px;
    }

    .feature-desc {
        font-size: 13px;
    }

    /* 移动端制造优势轮播：单卡片宽度占满 */
    .adv-carousel {
        gap: 8px;
    }

    .adv-arrow {
        width: 34px;
        height: 34px;
    }

    .adv-track {
        gap: 14px;
    }

    .adv-card {
        width: calc(100vw - 120px); /* 视口宽度减去左右箭头和间距 */
        max-width: 320px;
        padding: 18px 16px;
    }

    .adv-title {
        font-size: 15.5px;
    }

    .adv-desc {
        font-size: 12.5px;
        margin-bottom: 12px;
    }

    .adv-img-wrap {
        height: 130px;
    }

    /* 移动端：应用场景 2列 → 单列堆叠 */
    .app-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .app-card {
        border-radius: 10px;
    }

    .app-img-wrap {
        height: 180px;
    }

    .app-num {
        top: 10px;
        left: 10px;
        min-width: 34px;
        height: 28px;
        font-size: 12px;
        border-radius: 5px;
    }

    .app-body {
        padding: 18px 18px 22px;
    }

    .app-title {
        font-size: 15.5px;
        margin-bottom: 8px;
    }

    .app-desc {
        font-size: 13px;
        line-height: 1.7;
    }

    /* 移动端：问题与解决方案表格 */
    .problems-intro {
        font-size: 13.5px;
        padding: 14px 20px;
        margin-bottom: 20px;
        border-left-width: 3px;
        line-height: 1.75;
    }

    .problem-table-wrapper::-webkit-scrollbar {
        height: 6px;
    }

    /* 移动端：增大表格最小宽度 + 调整列宽比例 */
    .problem-table {
        font-size: 13px;
        min-width: 700px; /* 增大基础宽度，让横向滚动区域更宽 */
    }

    .problem-table thead th {
        padding: 11px 14px;
        font-size: 13px;
    }

    .problem-table td {
        padding: 12px 16px;
        line-height: 1.72;
    }

    /* 移动端：压缩问题名列宽度，将更多空间分配给内容列 */
    .problem-table th:first-child,
    .problem-table .prob-name {
        width: 160px;
        min-width: 160px;
        max-width: 160px;
        font-size: 13px;
        padding-right: 32px; /* 增大右侧内边距，与后续列内容明显隔开 */
    }

    /* 可能原因列：占据更大比例 + 左侧留出间距 */
    .problem-table td:nth-child(2) {
        width: 38%;
        min-width: 250px;
        padding-left: 20px; /* 左侧增加内边距，与问题名列拉开距离 */
    }
}

/* ============================================================
   Recommended Products 推荐产品板块
   布局：居中标题 + 产品网格（完全复用product.css的卡片和网格样式）
   ============================================================ */
.recommend-products-section {
    margin-top: 50px;
    padding: 50px 0 70px;
    background: #fff;
}

/* 推荐产品容器：与产品列表页.product-container保持一致 */
.recommend-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
}

/* 居中标题 */
.recommend-title {
    font-size: var(--font-size-h1);
    font-weight: 600;
    color: #222;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: -0.3px;
    position: relative;
}

/* 标题下方装饰线 - 已移除 */
.recommend-title::after {
    display: none;
}

/*
 * 推荐产品网格：覆盖product.css的3列为4列布局
 * 卡片样式（.product-card等）仍复用product.css定义
 */

/* 桌面端：4列网格 */
.recommend-products-section .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* 4列时图片高度适当缩小 */
.recommend-products-section .product-image-wrapper {
    height: 200px;
}

/* 4列时内容区内边距微调 */
.recommend-products-section .product-card-content {
    padding: 16px 14px 20px;
}

/* --- 平板端：1200px以下 - 4列 → 3列 --- */
@media screen and (max-width: 1200px) {
    .recommend-container {
        padding: 25px 30px;
    }

    .recommend-title {
        font-size: 26px;
        margin-bottom: 26px;
    }

    .recommend-products-section .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }

    .recommend-products-section .product-image-wrapper {
        height: 210px;
    }
}

/* --- 小平板端：992px以下 - 3列 → 2列 --- */
@media screen and (max-width: 992px) {
    .recommend-products-section {
        margin-top: 40px;
        padding: 40px 0 55px;
    }

    .recommend-title {
        font-size: 24px;
        margin-bottom: 22px;
    }

    .recommend-products-section .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* --- 手机端：650px以下 - 2列保持 --- */
@media screen and (max-width: 650px) {
    .recommend-container {
        padding: 18px 16px;
    }

    .recommend-title {
        font-size: var(--font-size-28);
        margin-bottom: 18px;
    }

    .recommend-products-section .product-grid {
        gap: 14px;
    }
}