/* MRC theme — page styles for ProductDetail (delta over base.css) */

/* ============================================================
   产品详情页专属样式
   ============================================================ */
        /* 面包屑 */
        /* 面包屑（导航条正下方，白底深色文字） */
        .pd-breadcrumb {

            padding-top: var(--nav-height); /* 避开吸顶导航条 */
            background: var(--white);
            border-bottom: 1px solid #ececec;
}

.pd-breadcrumb .container {

            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px;
            padding-top: 14px;
            padding-bottom: 14px;
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-500);
}

.pd-breadcrumb a {

            color: var(--green-dark);
            transition: color 0.25s;
}

.pd-breadcrumb a:hover {

            color: var(--green);
}

.pd-breadcrumb .sep {

            color: var(--gray-300);
}

.pd-breadcrumb .current {

            color: var(--gray-900);
}

/* 产品主区：左图右信息 */
        .pd-main {

            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 56px;
            padding-top: 48px;
            padding-bottom: 72px;
            align-items: start;
}

.pd-gallery {

            position: sticky;
            top: calc(var(--nav-height) + 24px);
            display: flex;
            gap: 14px;
            align-items: stretch;
}

.pd-thumbs {

            display: flex;
            flex-direction: column;
            gap: 8px;
            width: 84px;
            flex-shrink: 0;
}

.pd-thumb {

            flex: 1 1 0;
            min-height: 0;
            max-height: 88px;
            width: 84px;
            background: var(--white);
            border: 2px solid #e8ece9;
            border-radius: 12px;
            padding: 5px;
            cursor: pointer;
            overflow: hidden;
            transition: border-color 0.2s;
            box-sizing: border-box;
}

.pd-thumb img {

            width: 100%;
            height: 100%;
            object-fit: contain;
            pointer-events: none;
}

.pd-thumb:hover {

            border-color: rgba(0, 167, 58, 0.5);
}

.pd-thumb.active {

            border-color: var(--green);
            box-shadow: 0 0 0 3px rgba(0, 167, 58, 0.12);
}

.pd-stage {

            flex: 1;
            background: var(--gray-100);
            border-radius: 20px;
            aspect-ratio: 1 / 1;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
}

.pd-stage img {

            max-width: 80%;
            max-height: 80%;
            object-fit: contain;
            transition: opacity 0.18s ease;
}

.pd-stage img.fading {

            opacity: 0;
}

@media (max-width: 768px) {

            /* 移动端：主图在上，缩略图改为下方横向可滑动条 */
            .pd-gallery {
                flex-direction: column-reverse;
                gap: 12px;
                min-width: 0;
                max-width: 100%;
            }
            .pd-thumbs {
                flex-direction: row;
                width: 100%;
                min-width: 0;
                max-width: 100%;
                box-sizing: border-box;
                gap: 8px;
                overflow-x: auto;
                padding-bottom: 4px;
                -webkit-overflow-scrolling: touch;
            }
            .pd-thumb {
                flex: 0 0 auto;
                width: 56px;
                height: 56px;
                max-height: 56px;
                border-radius: 10px;
            }
            .pd-stage {
                width: 100%;
            }
}

.pd-info .pd-brand {

            display: inline-block;
            padding: 6px 16px;
            background: var(--green-light);
            color: var(--green-dark);
            border-radius: 60px;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            margin-bottom: 16px;
}

.pd-info h1 {

            font-family: 'Fredoka One', cursive;
            font-size: 40px;
            font-weight: 400;
            color: var(--gray-900);
            margin-bottom: 14px;
            line-height: 1.25;
}

.pd-info .pd-desc {

            font-size: 16px;
            line-height: 1.85;
            color: var(--gray-500);
            margin-bottom: 22px;
}

.pd-info .pd-chips {

            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 28px;
}

.pd-info .pd-chips span {

            padding: 8px 18px;
            background: var(--gray-100);
            border-radius: 60px;
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-700);
}

.pd-info .pd-actions {

            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            margin-bottom: 30px;
}

.pd-info .btn-quote {

            display: inline-block;
            padding: 14px 36px;
            background: var(--green);
            color: var(--white) !important;
            border-radius: 60px;
            font-size: 15px;
            font-weight: 700;
            transition: background 0.3s, transform 0.3s;
}

.pd-info .btn-quote:hover {

            background: var(--green-dark);
            transform: translateY(-2px);
}

.pd-info .btn-wa {

            display: inline-block;
            padding: 14px 36px;
            border: 2px solid var(--green);
            color: var(--green-dark) !important;
            border-radius: 60px;
            font-size: 15px;
            font-weight: 700;
            transition: background 0.3s;
}

.pd-info .btn-wa:hover {

            background: var(--green-light);
}

.pd-info .pd-contact {

            padding: 16px 20px;
            background: var(--green-light);
            border-radius: 14px;
            font-size: 14px;
            line-height: 2;
            color: var(--gray-700);
}

.pd-info .pd-contact a {

            color: var(--green-dark);
            font-weight: 700;
}

/* 卖点区 */
        .pd-features {

            padding: 72px 0;
            background: var(--gray-100);
}

.pd-features .sec-title {

            text-align: center;
            font-family: 'Fredoka One', cursive;
            font-size: 36px;
            font-weight: 400;
            color: var(--gray-900);
            margin-bottom: 40px;
}

.pd-features .sec-title span {

            color: var(--green);
}

.pd-features-grid {

            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
}

.pd-feat {

            background: var(--white);
            border-radius: 16px;
            padding: 28px 24px;
            text-align: center;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
            transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.pd-feat:hover {

            transform: translateY(-5px);
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
}

.pd-feat .icon {

            width: 62px;
            height: 62px;
            margin: 0 auto 16px;
            border-radius: 50%;
            background: var(--green-light);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 26px;
}

.pd-feat h3 {

            font-size: 17px;
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: 8px;
}

.pd-feat p {

            font-size: 13.5px;
            line-height: 1.7;
            color: var(--gray-500);
}

/* 规格参数表 */
        .pd-specs {

            padding: 72px 0;
            background: var(--white);
}

.pd-specs .sec-title {

            text-align: center;
            font-family: 'Fredoka One', cursive;
            font-size: 36px;
            font-weight: 400;
            color: var(--gray-900);
            margin-bottom: 40px;
}

.pd-specs .sec-title span {

            color: var(--green);
}

.pd-spec-table {

            max-width: 860px;
            margin: 0; /* 靠左 */
            border: 1px solid #eef0ee;
            border-radius: 16px;
            overflow: hidden;
}

.pd-spec-table .row {

            display: grid;
            grid-template-columns: 240px 1fr;
            border-bottom: 1px solid #f0f0f0;
}

.pd-spec-table .row:last-child {

            border-bottom: none;
}

.pd-spec-table .row:nth-child(even) {

            background: var(--gray-100);
}

.pd-spec-table .row .label {

            padding: 15px 24px;
            font-size: 14px;
            font-weight: 700;
            color: var(--gray-700);
}

.pd-spec-table .row .value {

            padding: 15px 24px;
            font-size: 14px;
            color: var(--gray-500);
}

/* OEM 定制带 */
        .pd-custom {

            padding: 64px 0;
            background: linear-gradient(155deg, #004e1d 0%, #007a2b 55%, #00581f 100%);
            color: var(--white);
            text-align: center;
}

.pd-custom h2 {

            font-family: 'Fredoka One', cursive;
            font-size: 38px;
            font-weight: 400;
            margin-bottom: 14px;
}

.pd-custom p {

            font-size: 16px;
            color: rgba(255, 255, 255, 0.85);
            max-width: 700px;
            margin: 0 auto 30px;
            line-height: 1.8;
}

.pd-custom .cta-btns {

            display: flex;
            justify-content: center;
            gap: 16px;
            flex-wrap: wrap;
}

.pd-custom .btn-main {

            display: inline-block;
            padding: 14px 38px;
            background: var(--white);
            color: var(--green-dark) !important;
            border-radius: 60px;
            font-size: 15px;
            font-weight: 700;
            transition: transform 0.3s, box-shadow 0.3s;
}

.pd-custom .btn-main:hover {

            transform: translateY(-2px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.pd-custom .btn-ghost {

            display: inline-block;
            padding: 14px 38px;
            border: 2px solid rgba(255, 255, 255, 0.6);
            color: var(--white);
            border-radius: 60px;
            font-size: 15px;
            font-weight: 700;
            transition: background 0.3s, border-color 0.3s;
}

.pd-custom .btn-ghost:hover {

            background: rgba(255, 255, 255, 0.12);
            border-color: var(--white);
}

/* 相关产品 */
        .pd-related {

            padding: 72px 0;
            background: var(--white);
}

.pd-related .sec-title {

            text-align: center;
            font-family: 'Fredoka One', cursive;
            font-size: 36px;
            font-weight: 400;
            color: var(--gray-900);
            margin-bottom: 40px;
}

.pd-related .sec-title span {

            color: var(--green);
}

.pd-related-grid {

            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;
}

.pd-rel-card {

            display: block;
            background: var(--gray-100);
            border-radius: 16px;
            padding: 16px 16px 20px;
            border: 1px solid #eef0ee;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
            transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.pd-rel-card:hover {

            transform: translateY(-5px);
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* 产品图已统一为 650×650 正方形白底图：图片自适应铺满、无阴影；卡片浅灰底 */
        .pd-rel-card .thumb {

            aspect-ratio: 1 / 1;
            background: transparent;
            border-radius: 14px;
            margin-bottom: 16px;
            padding: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: visible;
}

.pd-rel-card .thumb img {

            width: 100%;
            height: 100%;
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 12px;
            transition: transform 0.35s var(--ease);
}

.pd-rel-card:hover .thumb img {

            transform: scale(1.04);
}

.pd-rel-card h4 {

            font-size: 15px;
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: 4px;
}

.pd-rel-card .brand {

            font-size: 12px;
            font-weight: 700;
            color: var(--green);
            text-transform: uppercase;
            letter-spacing: 0.4px;
}

/* 导航当前页高亮 */
        .nav-links a.active {

            color: var(--green);
}

.navbar.scrolled .nav-links a.active {

            color: var(--green);
}

/* 响应式 */
        @media (max-width: 992px) {

            .pd-main {
                grid-template-columns: 1fr;
                gap: 36px;
            }
            .pd-gallery {
                position: static;
            }
            .pd-features-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .pd-related-grid {
                grid-template-columns: repeat(2, 1fr);
            }
}

@media (max-width: 768px) {

            .pd-info h1 {
                font-size: 30px;
            }
            .pd-features-grid {
                grid-template-columns: 1fr;
            }
            .pd-spec-table .row {
                grid-template-columns: 1fr;
            }
            .pd-spec-table .row .label {
                padding-bottom: 4px;
            }
            .pd-features .sec-title,
            .pd-specs .sec-title,
            .pd-related .sec-title {
                font-size: 28px;
            }
}

@media (max-width: 480px) {

            .pd-related-grid {
                grid-template-columns: 1fr 1fr;
                gap: 14px;
            }

            /* 手机端两个按钮等宽铺满，避免 160px / 205px 左对齐、右边缘参差 */
            .pd-info .pd-actions {
                flex-direction: column;
                align-items: stretch;
            }

            .pd-info .pd-actions .btn-quote,
            .pd-info .pd-actions .btn-wa {
                width: 100%;
                text-align: center;
            }
}

/* Specifications / Related Products 切换（参考 ELSKY2 Products2） */
        .pd-tabs {

            padding: 72px 0;
            background: var(--white);
}

.pd-tab-bar {

            display: flex;
            gap: 4px;
            margin-bottom: 36px;
            border-bottom: 2px solid #e8eaf0;
}

.pd-tab {

            font-family: inherit;
            font-size: 16px;
            font-weight: 600;
            padding: 13px 30px;
            background: none;
            border: none;
            cursor: pointer;
            color: var(--gray-500);
            border-bottom: 3px solid transparent;
            margin-bottom: -2px;
            transition: color 0.3s, border-color 0.3s;
}

.pd-tab:hover {

            color: var(--green-dark);
}

.pd-tab.active {

            color: var(--green);
            border-bottom-color: var(--green);
}

.pd-tab-content {

            display: none;
}

.pd-tab-content.active {

            display: block;
            animation: tabFade 0.45s var(--ease);
}

@keyframes tabFade {

            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: none; }
}

@media (max-width: 768px) {

            .pd-tab-bar {
                overflow-x: auto;
            }
            .pd-tab {
                font-size: 14px;
                padding: 11px 18px;
                white-space: nowrap;
            }
}

/* 详情页顶部无深色 Hero：导航默认白底黑字 */
        .navbar {

            background: rgba(255, 255, 255, 0.94);
            backdrop-filter: blur(14px);
            box-shadow: 0 1px 30px rgba(0, 0, 0, 0.05);
}

.navbar .logo .logo-white {

            display: none;
}

.navbar .logo .logo-green {

            display: block;
}

.navbar .nav-links {

            color: var(--gray-700);
}

.navbar .search-btn {

            color: var(--gray-700);
}

.navbar .lang-switch {

            color: var(--gray-500);
            background: rgba(0, 0, 0, 0.03);
}

.navbar .nav-toggle span {

            background: var(--gray-900);
}

/* ---------- Editor content (product intro + specifications WYSIWYG) ---------- */
.mrc-entry {
    color: var(--gray-600);
    font-size: 15.5px;
    line-height: 1.8;
}

.mrc-entry > *:first-child { margin-top: 0; }
.mrc-entry > *:last-child { margin-bottom: 0; }

.mrc-entry p,
.mrc-entry ul,
.mrc-entry ol { margin: 0 0 14px; }

.mrc-entry ul,
.mrc-entry ol { padding-left: 22px; }

.mrc-entry li { margin-bottom: 6px; }

.mrc-entry table {
    width: 100%;
    max-width: 860px;
    border-collapse: collapse;
    margin: 0 0 18px;
}

.mrc-entry th,
.mrc-entry td {
    padding: 12px 16px;
    border: 1px solid #e9ece9;
    text-align: left;
    font-size: 14.5px;
    vertical-align: top;
}

.mrc-entry th {
    width: 240px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 700;
}

.mrc-entry thead th { width: auto; }

.mrc-entry img { max-width: 100%; height: auto; }

/* The right-hand column shows the full editor content as the intro */
.pd-info .pd-desc.mrc-entry {
    font-size: 15px;
    line-height: 1.75;
    color: var(--gray-500);
    margin-bottom: 22px;
}

.pd-info .pd-desc.mrc-entry table {
    display: block;
    overflow-x: auto;
}

.pd-info .pd-desc.mrc-entry th {
    width: auto;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .mrc-entry table {
        display: block;
        overflow-x: auto;
    }

    .mrc-entry th { width: auto; }
}
