a {
    text-decoration: none;
}

/* 主容器 限制最大宽度1560px 居中 */
.product-detail-page-wrap {
    max-width: 1560px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* 产品主体双栏布局 */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* 左侧图片区域 */
.product-detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 大图预览框 正方形比例 + 触摸滑动容器 */
.product-detail-gallery-main-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.16);
    position: relative;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(6, 182, 212, 0.15);
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
}

.product-detail-gallery-main-box:active {
    cursor: grabbing;
}

.product-detail-gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    pointer-events: none;
}

.product-detail-gallery-main-box:hover .product-detail-gallery-main-img {
    transform: scale(1.03);
}

/* 轮播圆点指示器：电脑端隐藏，仅移动端显示 */
.product-detail-gallery-dots {
    position: absolute;
    bottom: 16px;
    left: 0;
    width: 100%;
    display: none;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

@media (max-width: 992px) {
    .product-detail-gallery-dots {
        display: flex;
    }
}

.product-detail-dot-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.25s ease;
}

.product-detail-dot-btn.active {
    background: #06b6d4;
    width: 24px;
    border-radius: 5px;
}

.product-detail-dot-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* 缩略图列表 6张正方形 */
.product-detail-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

@media (max-width: 992px) {
    .product-detail-gallery-thumbs {
        display: none !important;
    }
}

.product-detail-thumb-item {
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    opacity: 0.75;
}

.product-detail-thumb-item.active {
    border-color: #06b6d4;
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.product-detail-thumb-item:hover {
    opacity: 1;
}

.product-detail-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 右侧产品信息区域 玻璃卡片 */
.product-detail-info-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(6, 182, 212, 0.12);
    border-radius: 20px;
    padding: 40px 40px 10px;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.12);
}

.product-detail-brand-tag {
    display: inline-block;
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
    color: white;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.product-detail-title {
    font-size: 30px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

/* 分区标题 */
.product-detail-section-heading {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin: 10px 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-detail-section-heading::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #06b6d4;
    border-radius: 2px;
}

/* 核心优势列表 */
.product-detail-feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 10px;
}

.product-detail-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.product-detail-feature-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.12);
    color: #06b6d4;
    display: grid;
    place-items: center;
    font-weight: bold;
}

.product-detail-feature-text h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.product-detail-feature-text p {
    font-size: 14px;
    color: #64748b;
}

/* 规格参数表格 */
.product-detail-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.product-detail-spec-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.product-detail-spec-table td {
    padding: 14px 8px;
    font-size: 15px;
}

.product-detail-spec-table td:first-child {
    width: 40%;
    font-weight: 500;
    color: #1e293b;
}

.product-detail-spec-table td:last-child {
    color: #64748b;
}

/* 咨询按钮 */
.product-detail-inquiry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.product-detail-inquiry-btn:hover {
    background: linear-gradient(135deg, #0284c7, #22d3ee);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.25);
    transform: translateY(-2px);
}

/* ================= 产品长图文详情区域样式 ================= */
.product-detail-content-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(6, 182, 212, 0.12);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.12);
}

.product-detail-tabs {
    display: flex;
    gap: 16px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
    overflow-x: auto;
    scroll-behavior: smooth; /* 平滑滚动 */
    scrollbar-width: none; /* Firefox 隐藏横向滚动条 */
    padding-bottom: 2px;
}

/* 完全隐藏横向滚动条美化（Chrome/Safari/Edge） */
.product-detail-tabs::-webkit-scrollbar {
    height: 0;
    display: none;
}

.product-detail-tab-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    padding: 12px 20px;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.product-detail-tab-btn.active {
    color: #0891b2;
}

.product-detail-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #06b6d4;
    border-radius: 3px 3px 0 0;
}

.product-detail-tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.product-detail-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-detail-content-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: #64748b;
    font-size: 15px;
}

.product-detail-content-block h3 {
    color: #0f172a;
    font-size: 22px;
    margin-top: 12px;
}

.product-detail-content-block h4 {
    color: #1e293b;
    font-size: 18px;
    margin-top: 8px;
}

.product-detail-content-block img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 20px;
}

.product-detail-content-block ul {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ================= 相关推荐产品区域样式 ================= */
.product-detail-related-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(6, 182, 212, 0.12);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.12);
}

.product-detail-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.product-detail-related-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-detail-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.12);
    border-color: #22d3ee;
}

/* 正方形图片框 可点击跳转 */
.product-detail-related-img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f1f5f9;
    cursor: pointer;
}

.product-detail-related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-detail-related-card:hover .product-detail-related-img {
    transform: scale(1.05);
}

.product-detail-related-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

/* 修复单行省略核心样式 */
.product-detail-related-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    /* 单行省略必备三属性 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.product-detail-related-title a {
    color: inherit;
    display: block;
    /* 内层链接同步截断 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 双按钮并排布局 */
.product-detail-related-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

/* View Details 左到右滚动渐变动画 */
.product-detail-related-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #0891b2;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.product-detail-related-link-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #0891b2);
    transition: left 0.3s ease-in-out;
    z-index: -1;
}

.product-detail-related-link-btn:hover {
    color: #ffffff;
}

.product-detail-related-link-btn:hover::before {
    left: 0;
}

.product-detail-related-inquiry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.product-detail-related-inquiry-btn:hover {
    background: linear-gradient(135deg, #0284c7, #22d3ee);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

/* 响应式适配补充 */
@media (max-width: 1200px) {
    .product-detail-container {
        gap: 40px;
    }

    .product-detail-title {
        font-size: 26px;
    }

    .product-detail-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }

    .product-detail-feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .product-detail-page-wrap {
        padding: 24px 12px;
        gap: 30px;
    }

    .product-detail-info-card, .product-detail-content-section, .product-detail-related-section {
        padding: 24px 16px;
    }

    .product-detail-title {
        font-size: 22px;
    }

    .product-detail-spec-table td {
        padding: 12px 4px;
        font-size: 14px;
    }

    .product-detail-related-grid {
        grid-template-columns: 1fr;
    }
}

:focus-visible {
    outline: 3px solid rgba(6, 182, 212, 0.4);
    outline-offset: 2px;
}