﻿/* ==========================================
   产品详情页样式 - E-YOOSO
   ========================================== */

/* ----- 面包屑导航 ----- */
.pd-breadcrumb {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}
.pd-breadcrumb .pd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}
.pd-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #111;
    text-decoration: none;
    transition: color .2s;
}
.pd-breadcrumb-link:hover { color: #000; }
.pd-breadcrumb-link svg { flex-shrink: 0; }
.pd-breadcrumb-sep {
    color: #9ca3af;
    font-size: 16px;
    margin: 0 2px;
}
.pd-breadcrumb-current {
    color: #374151;
    font-weight: 500;
}

/* ----- 容器 ----- */
.pd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- 主内容区布局 ----- */
.pd-main {
    padding: 40px 0 60px;
}
.pd-main-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* ========== 左侧：画廊 ========== */
.pd-gallery-col {
    position: sticky;
    top: 20px;
}

.pd-gallery-box {
    width: 100%;
}

/* 主画廊区 */
.pd-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.pd-gallery-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity .45s ease;
    pointer-events: none;
}
.pd-gallery-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.pd-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 画廊箭头 */
.pd-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.85);
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: all .2s;
    z-index: 5;
    line-height: 1;
}
.pd-gallery-arrow:hover { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.pd-gallery-prev { left: 12px; }
.pd-gallery-next { right: 12px; }

/* 画廊计数器 */
.pd-gallery-index {
    position: absolute;
    bottom: 12px;
    left: 16px;
    background: rgba(0,0,0,.55);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(6px);
    pointer-events: none;
}

/* 缩略图导航 */
.pd-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-behavior: smooth;
}
.pd-gallery-thumbs::-webkit-scrollbar { height: 3px; }
.pd-gallery-thumbs::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
.pd-gallery-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: .55;
    transition: all .2s;
    background: #f8f9fa;
}
.pd-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pd-gallery-thumb:hover { opacity: .8; }
.pd-gallery-thumb.active {
    opacity: 1;
    border-color: #111;
}

/* ========== 灯箱 ========== */
.pd-lb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-lb-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}
.pd-lb-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    opacity: .7;
    transition: opacity .2s;
}
.pd-lb-close:hover { opacity: 1; }
.pd-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 10;
}
.pd-lb-nav:hover { background: rgba(255,255,255,.3); }
.pd-lb-prev { left: 20px; }
.pd-lb-next { right: 20px; }
.pd-lb-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.55);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* ========== 右侧：产品信息 ========== */
.pd-info-col { padding-top: 8px; }

.pd-model-badge {
    display: inline-block;
    background: #f3f4f6;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.pd-title {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    margin: 0 0 20px;
}

/* 侧栏通用标题 */
.pd-side-heading {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

/* 快速特性列表 */
.pd-features-quick {
    margin-bottom: 24px;
}
.pd-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pd-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
    font-size: 14px;
    color: #4b5563;
}
.pd-features-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #111;
}

/* 下载区域 */
.pd-download-section {
    margin-bottom: 24px;
}
.pd-download-btns {
    display: flex;
    gap: 10px;
}
.pd-btn-dl {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all .2s;
    border: 2px solid transparent;
}
.pd-btn-driver {
    background: #f3f4f6;
    color: #111;
    border-color: #d1d5db;
}
.pd-btn-driver:hover { background: #e5e7eb; transform: translateY(-1px); }
.pd-btn-manual {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}
.pd-btn-manual:hover { background: #dcfce7; transform: translateY(-1px); }

/* 操作按钮区 */
.pd-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.pd-btn-inquiry {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    background: transparent;
    color: #111;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid #111;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}
.pd-btn-inquiry:hover { background: #111; color: #fff; transform: translateY(-1px); }
.pd-btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 18px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}
.pd-btn-back:hover { background: #f9fafb; border-color: #9ca3af; }

/* 额外链接标签 */
.pd-extra-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pd-link-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
}
.pd-link-tag:hover { background: #e5e7eb; }

/* ========== 内容块(Section)通用 ========== */
.pd-section {
    padding: 60px 0;
}
.pd-section-header {
    text-align: center;
    margin-bottom: 32px;
}
.pd-section-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
}
.pd-section-header p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

/* ========== 规格参数 ========== */
.pd-specs-section {
    background: #f8fafc;
}
.pd-specs-table-wrap {
    max-width: 800px;
    margin: 0 auto;
}
.pd-specs-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.pd-specs-table tr:nth-child(odd) { background: #fff; }
.pd-specs-table tr:nth-child(even) { background: #f9fafb; }
.pd-specs-table td, .pd-specs-table th {
    padding: 13px 20px;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
}
.pd-specs-table th {
    font-weight: 600;
    color: #374151;
    width: 30%;
    text-align: left;
}
.pd-specs-table td { color: #6b7280; }

/* ========== 产品描述 ========== */
.pd-desc-section {
    padding-bottom: 80px;
}

/* 内容文本区域 - 保留换行 */
.pd-content-text {
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.85;
    color: #374151;
    font-size: 15px;
    white-space: pre-line;
    word-wrap: break-word;
}
.pd-content-text > p {
    margin: 0 0 18px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 3px solid #111;
    line-height: 1.8;
    color: #334155;
}
.pd-content-text > p:last-child { margin-bottom: 0; }
.pd-content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}
.pd-content-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 28px 0 12px;
}
.pd-content-text ul, .pd-content-text ol {
    padding-left: 20px;
    margin: 0 0 16px;
}
.pd-content-text li { margin-bottom: 6px; }

/* ========== 响应式 ========== */
@media (max-width: 860px) {
    .pd-main-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .pd-gallery-col {
        position: static;
    }
    .pd-title { font-size: 22px; }
    .pd-gallery-thumb { width: 56px; height: 44px; }
    .pd-gallery-arrow { width: 34px; height: 34px; }
}

@media (max-width: 480px) {
    .pd-main { padding: 24px 0 40px; }
    .pd-section { padding: 40px 0; }
    .pd-breadcrumb .pd-container,
    .pd-container { padding: 0 16px; }
    .pd-gallery-thumbs { display: none; }
    .pd-actions { flex-direction: column; }
    .pd-download-btns { flex-direction: column; }
    .pd-lb-nav { width: 36px; height: 36px; font-size: 16px; }
    .pd-lb-prev { left: 10px; }
    .pd-lb-next { right: 10px; }
}
