/* ========== 产品详情页样式 ========== */

.product-detail-section {
    padding: 40px 0 60px;
    background: #f5f5f5;
    min-height: calc(100vh - 300px);
}

/* 面包屑 */
.detail-breadcrumb {
    padding: 12px 0 24px;
    font-size: 14px;
    color: #888;
}
.detail-breadcrumb a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}
.detail-breadcrumb a:hover { color: rgb(0, 80, 156); }
.detail-breadcrumb .sep { margin: 0 8px; color: #ccc; }
.detail-breadcrumb .current { color: #333; font-weight: 500; }

/* ========== Part 1: 图片区域 ========== */

.detail-image-col {
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

/* 主图容器 — overflow:visible 允许放大窗口溢出 */
.main-image-wrap {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: visible;
    cursor: crosshair;
}

.main-image-wrap img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

/* 放大镜方框 */
.zoom-lens {
    display: none;
    position: absolute;
    border: 2px solid rgb(0, 80, 156);
    background: rgba(0, 80, 156, 0.08);
    cursor: crosshair;
    z-index: 10;
    pointer-events: none;
    border-radius: 2px;
}

/* 放大结果窗口 — fixed 定位，完全不受父容器裁剪影响 */
.zoom-result {
    display: none;
    position: fixed;
    width: 420px;
    height: 420px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    background-repeat: no-repeat;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 9999;
    overflow: hidden;
    pointer-events: none;
}

/* 缩略图列表 */
.thumb-list {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.thumb-item {
    width: 68px;
    height: 68px;
    border: 2px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: rgb(0, 80, 156);
}

/* ========== Part 2: 商品简介 ========== */

.detail-info-col {
    padding-left: 30px;
}

.detail-product-name {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.4;
}

.detail-model {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

.detail-model span {
    color: #555;
    font-weight: 500;
}

.detail-divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 18px 0;
}

.detail-summary {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 24px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.btn-inquiry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    background: rgb(0, 80, 156);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-inquiry:hover {
    background: rgb(0, 60, 120);
    color: #fff;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: transparent;
    color: rgb(0, 80, 156);
    font-size: 15px;
    font-weight: 600;
    border: 2px solid rgb(0, 80, 156);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-back:hover {
    background: rgb(0, 80, 156);
    color: #fff;
}

/* ========== Part 3: 富文本描述 ========== */

.detail-content-section {
    margin-top: 48px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
}

.detail-content-tabs {
    display: flex;
    border-bottom: 2px solid #e8e8e8;
    background: #fafafa;
}

.detail-tab {
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    user-select: none;
}

.detail-tab.active {
    color: rgb(0, 80, 156);
    border-bottom-color: rgb(0, 80, 156);
    background: #fff;
}

.detail-tab-content {
    padding: 36px 40px;
}

.detail-rich-content {
    font-size: 15px;
    color: #444;
    line-height: 1.9;
}

.detail-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 12px 0;
}

.detail-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.detail-rich-content table th,
.detail-rich-content table td {
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    text-align: left;
}

.detail-rich-content table th {
    background: rgb(0, 80, 156);
    color: #fff;
    font-weight: 600;
}

.detail-rich-content table tr:nth-child(even) td {
    background: #f9f9f9;
}

.detail-rich-content h1,
.detail-rich-content h2,
.detail-rich-content h3 {
    color: #222;
    margin: 24px 0 12px;
}

.detail-rich-content ul,
.detail-rich-content ol {
    padding-left: 24px;
    margin: 12px 0;
}

.detail-rich-content li { margin-bottom: 6px; }

/* ========== 相关产品 ========== */

.related-section { margin-top: 48px; }

.related-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgb(0, 80, 156);
    display: inline-block;
}

/* ========== 响应式 ========== */

@media (max-width: 1199px) {
    .zoom-result { width: 360px; height: 360px; }
}

@media (max-width: 991px) {
    .detail-image-col { position: static; }
    .detail-info-col { padding-left: 0; margin-top: 24px; }
    .zoom-result { display: none !important; }
    .zoom-lens { display: none !important; }
    .main-image-wrap img { height: 320px; }
    .detail-tab-content { padding: 24px 20px; }
}

@media (max-width: 767px) {
    .detail-product-name { font-size: 20px; }
    .main-image-wrap img { height: 260px; }
    .detail-tab { padding: 12px 20px; font-size: 14px; }
    .thumb-item { width: 56px; height: 56px; }
}
