/* ============================================
   武汉耘和智能机械 - 产品详情页样式 v2
   与 style.css 配合使用，完全独立命名空间
   响应式自适应 PC + 移动端
   ============================================ */

/* ============================================
   一、产品头部（图片 + 信息）
   ============================================ */
.pd-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    margin-bottom: 56px;
    align-items: start;
}

/* ---- 图片画廊 ---- */
.pd-gallery {
    position: relative;
}

.pd-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    cursor: zoom-in;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.4s ease;
}

.pd-gallery-main:hover {
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.06);
}

.pd-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 20px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pd-gallery-main:hover img {
    transform: scale(1.03);
}

.pd-gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(to top, rgba(15,23,42,0.15) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pd-gallery-main:hover .pd-gallery-overlay {
    opacity: 1;
}

.pd-gallery-zoom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.95);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    backdrop-filter: blur(8px);
}

/* 缩略图 */
.pd-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.pd-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.pd-thumb {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    background: var(--bg-light);
    transition: all 0.25s ease;
}

.pd-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.12);
}

.pd-thumb:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- 产品信息 ---- */
.pd-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 4px;
}

.pd-info-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pd-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pd-category::before {
    content: '';
    width: 18px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.pd-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0;
}

.pd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pd-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.pd-tag--blue {
    background: var(--primary-light);
    color: var(--primary);
}

.pd-tag--orange {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.pd-tag--red {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* 产品简介 */
.pd-summary {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-light);
    position: relative;
}

.pd-summary p {
    margin-bottom: 10px;
}

.pd-summary p:last-child {
    margin-bottom: 0;
}

/* 快速卖点 */
.pd-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pd-hl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.pd-hl-item:hover {
    background: #f0f7ff;
    border-color: #dbeafe;
    transform: translateX(3px);
}

.pd-hl-icon {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.pd-hl-text {
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.4;
}

/* CTA按钮 */
.pd-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.pd-actions .btn {
    min-height: 52px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    gap: 8px;
}

.pd-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 16px rgba(26, 95, 180, 0.25);
}

.pd-actions .btn-primary:hover {
    box-shadow: 0 6px 24px rgba(26, 95, 180, 0.35);
    transform: translateY(-2px);
}

.pd-actions .btn-outline {
    border-width: 1.5px;
    border-radius: 10px;
}

/* ============================================
   二、技术参数区块
   ============================================ */
.pd-specs {
    margin-bottom: 48px;
}

.pd-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pd-section-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 95, 180, 0.2);
}

.pd-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.pd-specs-body {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.pd-specs-content {
    padding: 28px;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* 表格样式 */
.pd-specs-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
}

.pd-specs-content table tr:nth-child(even) {
    background: #f8fafc;
}

.pd-specs-content table th,
.pd-specs-content table td {
    padding: 14px 22px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.pd-specs-content table th {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    font-weight: 600;
    font-size: 0.88rem;
    width: 32%;
    white-space: nowrap;
}

.pd-specs-content table td {
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
}

.pd-specs-content table tr:last-child th,
.pd-specs-content table tr:last-child td {
    border-bottom: none;
}

/* 纯文本参数 */
.pd-specs-content p {
    padding: 10px 0;
    margin: 0;
    border-bottom: 1px dashed #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.pd-specs-content p::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.5;
}

.pd-specs-content p:last-child {
    border-bottom: none;
}

/* ============================================
   三、Tab 切换区域
   ============================================ */
.pd-tabs {
    margin-bottom: 56px;
}

.pd-tab-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 6px;
}

.pd-tab-nav::-webkit-scrollbar {
    display: none;
}

.pd-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #64748b;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    background: transparent;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 10px;
    position: relative;
}

.pd-tab-btn svg {
    opacity: 0.5;
    transition: opacity 0.25s;
}

.pd-tab-btn:hover {
    color: var(--primary);
    background: rgba(255,255,255,0.6);
}

.pd-tab-btn:hover svg {
    opacity: 0.8;
}

.pd-tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 14px rgba(26, 95, 180, 0.25);
    font-weight: 600;
}

.pd-tab-btn.active svg {
    opacity: 1;
}

/* Tab 面板 */
.pd-tab-panels {
    background: #fff;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.pd-tab-panel {
    display: none;
    padding: 32px 28px;
    animation: pdPanelIn 0.35s ease;
}

.pd-tab-panel.active {
    display: block;
}

@keyframes pdPanelIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   四、编辑器内容样式
   ============================================ */
.pd-editor {
    font-size: 1rem;
    line-height: 1.9;
    color: #334155;
}

.pd-editor > *:first-child {
    margin-top: 0;
}

.pd-editor p {
    margin-bottom: 1.2em;
}

.pd-editor p:first-of-type {
    font-size: 1.05rem;
    color: #1e293b;
    font-weight: 500;
    padding: 18px 22px;
    background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%);
    border-left: 3px solid var(--primary);
    border-radius: 0 10px 10px 0;
    margin-bottom: 1.4em;
}

.pd-editor h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1.8em 0 0.7em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.pd-editor h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.pd-editor h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 1.6em 0 0.6em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pd-editor h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.pd-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.2em 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: block;
}

.pd-editor ul,
.pd-editor ol {
    padding-left: 0;
    margin: 1.2em 0;
    list-style: none;
}

.pd-editor ul li {
    position: relative;
    padding: 6px 0 6px 26px;
    margin-bottom: 4px;
    color: #475569;
}

.pd-editor ul li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 14px;
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.4;
}

.pd-editor ol {
    counter-reset: pd-item;
}

.pd-editor ol li {
    position: relative;
    padding: 12px 14px 12px 50px;
    margin-bottom: 10px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.pd-editor ol li:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.pd-editor ol li::before {
    counter-increment: pd-item;
    content: counter(pd-item);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-editor strong,
.pd-editor b {
    color: #0f172a;
    font-weight: 600;
}

.pd-editor table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.2em 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.pd-editor table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.88rem;
}

.pd-editor table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.9rem;
}

.pd-editor table tr:nth-child(even) td {
    background: #f8fafc;
}

.pd-editor blockquote {
    margin: 1.2em 0;
    padding: 18px 22px;
    background: #fefce8;
    border-left: 3px solid #eab308;
    border-radius: 0 10px 10px 0;
    color: #713f12;
    font-style: italic;
}

/* 图集网格 */
.pd-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.pd-photo-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.pd-photo-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* 视频容器 */
.pd-video-wrap {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    aspect-ratio: 16 / 9;
}

.pd-video-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* ============================================
   售后服务独立区块
   ============================================ */
.pd-afterservice {
    margin-bottom: 48px;
}

.pd-afterservice-body {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.pd-afterservice-body .pd-editor {
    padding: 28px;
}

.pd-afterservice-body .pd-editor p:first-of-type {
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
    border-left-color: #22c55e;
}

/* ============================================
   五、相关产品
   ============================================ */
.pd-related {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.pd-related-header {
    text-align: center;
    margin-bottom: 32px;
}

.pd-related-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.pd-related-subtitle {
    color: var(--text-light);
    font-size: 0.92rem;
}

.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pd-related-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pd-related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    border-color: #e2e8f0;
}

.pd-related-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pd-related-img {
    height: 190px;
    overflow: hidden;
    background: #f8fafc;
}

.pd-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pd-related-card:hover .pd-related-img img {
    transform: scale(1.08);
}

.pd-related-body {
    padding: 18px 20px 20px;
}

.pd-related-name {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pd-related-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.2s;
}

.pd-related-card:hover .pd-related-more {
    gap: 8px;
}

/* ============================================
   六、侧栏组件
   ============================================ */
.sub-widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    border-bottom: 2px solid var(--primary);
    color: var(--text);
    margin: 0;
}

.sub-widget-title svg {
    color: var(--primary);
}

.sub-form-group input,
.sub-form-group textarea {
    transition: all 0.2s ease;
}

.sub-form-group input:hover,
.sub-form-group textarea:hover {
    border-color: #cbd5e1;
}

.sub-form-submit {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

.sub-form-submit:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0c3d75 100%) !important;
}

/* 热门产品侧栏 */
.sub-widget-products .sub-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
}

.sub-product-item {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
    border: 1px solid var(--border-light);
}

.sub-product-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.sub-product-link {
    display: block;
    text-decoration: none;
    color: var(--text);
}

.sub-product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f0f0f0;
}

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

.sub-product-item:hover .sub-product-img img {
    transform: scale(1.05);
}

.sub-product-info {
    padding: 8px 10px 10px;
}

.sub-product-name {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
    transition: color 0.2s;
}

.sub-product-item:hover .sub-product-name {
    color: var(--primary);
}

/* 最新资讯列表 */
.sub-latest-link {
    transition: all 0.2s ease;
}

.sub-latest-link:hover {
    background: var(--bg-light);
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

/* ============================================
   七、无障碍辅助
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   八、动画
   ============================================ */
@keyframes pdFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   九、响应式适配
   ============================================ */
@media (max-width: 1024px) {
    .pd-hero {
        gap: 36px;
    }

    .pd-title {
        font-size: 1.7rem;
    }

    .pd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pd-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 36px;
    }

    .pd-gallery-main {
        aspect-ratio: 3 / 2;
        border-radius: 16px;
    }

    .pd-gallery-main img {
        padding: 14px;
    }

    .pd-thumb {
        width: 56px;
        height: 56px;
        border-radius: 8px;
    }

    .pd-title {
        font-size: 1.35rem;
    }

    .pd-tags {
        gap: 6px;
    }

    .pd-tag {
        padding: 4px 12px;
        font-size: 0.75rem;
    }

    .pd-highlights {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .pd-hl-item {
        padding: 8px 10px;
    }

    .pd-hl-icon {
        width: 28px;
        height: 28px;
    }

    .pd-hl-text {
        font-size: 0.78rem;
    }

    .pd-actions {
        flex-direction: column;
    }

    .pd-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* 技术参数 */
    .pd-section-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .pd-section-title {
        font-size: 1.15rem;
    }

    .pd-specs-content {
        padding: 18px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pd-specs-content table {
        min-width: 480px;
    }

    .pd-specs-content table th,
    .pd-specs-content table td {
        padding: 10px 14px;
        font-size: 0.84rem;
    }

    /* Tab */
    .pd-tab-btn {
        padding: 10px 14px;
        font-size: 0.82rem;
    }

    .pd-tab-btn svg {
        display: none;
    }

    .pd-tab-panel {
        padding: 20px 16px;
    }

    .pd-editor {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .pd-editor p:first-of-type {
        font-size: 1rem;
        padding: 14px 16px;
    }

    .pd-editor h2 {
        font-size: 1.15rem;
    }

    .pd-editor h3 {
        font-size: 1.05rem;
    }

    .pd-photo-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pd-photo-grid img {
        height: 200px;
    }

    /* 售后服务 */
    .pd-afterservice-body .pd-editor {
        padding: 18px;
    }

    /* 相关产品 */
    .pd-related {
        margin-top: 40px;
    }

    .pd-related-title {
        font-size: 1.25rem;
    }

    .pd-related-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pd-related-card {
        display: flex;
        flex-direction: row;
        border-radius: 12px;
    }

    .pd-related-img {
        width: 120px;
        min-width: 120px;
        height: auto;
    }

    .pd-related-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 14px 16px;
    }

    .pd-related-name {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    /* 侧栏 */
    .sub-sidebar {
        width: 100%;
        margin-top: 32px;
    }

    .sub-widget-products .sub-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .pd-gallery-main {
        aspect-ratio: 1 / 1;
        border-radius: 12px;
    }

    .pd-title {
        font-size: 1.2rem;
    }

    .pd-highlights {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .pd-hl-item {
        padding: 6px 8px;
    }

    .pd-hl-icon {
        width: 24px;
        height: 24px;
    }

    .pd-hl-icon svg {
        width: 14px;
        height: 14px;
    }

    .pd-hl-text {
        font-size: 0.72rem;
    }

    .pd-tab-btn {
        padding: 8px 12px;
        font-size: 0.78rem;
        border-radius: 8px;
    }

    .pd-tab-nav {
        border-radius: 10px;
    }

    .pd-tab-panels {
        border-radius: 0 0 12px 12px;
    }

    .pd-section-icon {
        width: 32px;
        height: 32px;
    }

    .pd-section-icon svg {
        width: 18px;
        height: 18px;
    }

    .pd-section-title {
        font-size: 1.05rem;
    }

    .sub-widget-products .sub-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-related-img {
        width: 100px;
        min-width: 100px;
    }
}

/* ============================================
   十、打印样式
   ============================================ */
@media print {
    .pd-gallery,
    .pd-actions,
    .pd-tabs,
    .sub-sidebar,
    .pd-related,
    .pd-gallery-overlay {
        display: none !important;
    }

    .pd-hero {
        grid-template-columns: 1fr;
    }

    .pd-title {
        font-size: 1.4rem;
    }

    .pd-tab-panel {
        display: block !important;
        border: 1px solid #ddd;
        margin-bottom: 16px;
        page-break-inside: avoid;
    }

    .pd-editor img {
        max-width: 50%;
    }
}