
/* ==========================================================================
   BREADCRUMB NAVIGATION
   ========================================================================== */
.breadcrumb-section {
    background: #f8f8f8;
    padding: 10px 0 !important;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb .separator {
    color: #ccc;
}

.breadcrumb .current {
    color: #1a1a1a;
    font-weight: 500;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */
.product-detail-page {
    padding-top: 80px;
}

.product-main-section {
    padding-top: 40px;
}
/* ---------- 两列网格 ---------- */
.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
/* ==========================================================================
   1.1 LEFT: MEDIA GALLERY【修改重点：缩略图放主图下方】
   ========================================================================== */
.media-gallery {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}
/* 缩略图切换用的隐藏 radio（label 触发，无需 JS） */
.gallery-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
/* ---------- 缩略图栏 ---------- */
.media-rail {
    display: flex;
    flex-direction: row; /* 缩略图横向排列 */
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    flex-shrink: 0;
}
.rail-thumbnails {
    display: flex;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    max-width: 100%;
    padding: 2px 0;
}
.rail-thumb {
    display: block;
    width: 68px;
    height: 68px;
    border: 2px solid transparent;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    background: #F8FAFC;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    position: relative;
    padding: 0;
    line-height: 0;
}
.rail-thumb img,
.rail-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none; /* 点击穿透到 label */
}
/* 视频缩略图：播放按钮叠加层 */
.rail-thumb__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 16px;
    transition: background 0.2s;
}
.rail-thumb:hover .rail-thumb__play {
    background: rgba(0, 0, 0, 0.45);
}
/* 保留旧版占位类（备用） */
.rail-thumb .thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-color);
    text-align: center;
    padding: 4px;
    background: #F1F5F9;
    word-break: break-word;
    line-height: 1.2;
}
.rail-thumb .thumb-video-icon {
    font-size: 18px;
    margin-bottom: 2px;
    color: var(--secondary-color);
}
/* ---------- 缩略图选中态 ---------- */
/* 缩略图按钮 */
.rail-thumb {
    display: block;
    width: 68px;
    height: 68px;
    border: 2px solid transparent;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    background: #F8FAFC;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    position: relative;
    padding: 0;
    line-height: 0;
}
/* 缩略图选中态 */
.rail-thumb.is-active {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 1px var(--secondary-color);
}
/* 主视图默认隐藏，激活显示 */
.viewer-item {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}
.viewer-item.is-active {
    display: flex;
}
/* ---------- 主视图 ---------- */
.main-viewer {
    flex: 1;
    min-width: 0;
    width:100%;
    position: relative;
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}


.viewer-item {
    display: none;
    width: 100%;
    height: 400px;
    align-items: center;
    justify-content: center;
    position: relative;
}

.viewer-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Category Badge */
.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    backdrop-filter: blur(8px);
    color: #F8FAFC;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.category-badge i {
    color: #22d3ee;
    font-size: 12px;
}


.viewer-item img.cover {
    object-fit: cover;
}


.viewer-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}
/* 保留旧版占位样式（备用） */
.media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
    color: var(--text-color);
    font-size: 14px;
    width: 100%;
    height: 100%;
    background: #F8FAFC;
}
.media-placeholder .ph-icon {
    font-size: 32px;
    color: var(--secondary-color);
    opacity: 0.5;
}
.media-placeholder .ph-label {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--title-color);
}
.media-placeholder .ph-hint {
    font-size: 11px;
    color: var(--text-color);
    background: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    word-break: break-all;
}
/* 缩略图滚动条 */
.rail-thumbnails::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
.rail-thumbnails::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 2px;
}

/* ---------- Trust Badges ---------- */
.trust-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(34, 211, 238, 0.05));
    border-radius: 8px;
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--title-color);
    white-space: nowrap;
}

.trust-badge i {
    font-size: 16px;
    color: var(--accent-color);
}

.trust-badge span {
    color: var(--text-color);
}

/* ==========================================================================
   1.2 RIGHT: PRODUCT INFO
   ========================================================================== */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}
.product-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--title-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 15px;
    margin: 0;
}
.product-intro {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
}
.placeholder-note {
    font-size: 11px;
    color: #9CA3AF;
    font-style: italic;
}

/* ---------- Info Row (Specs + Advantages) ---------- */
.info-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* ---------- Specs ---------- */
.spec-block {
    display: grid;
    gap: 10px 20px;
}
.spec-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
}
.spec-label {
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--title-color);
    font-weight: 500;
    text-align: right;
}
.spec-value {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color);
}

/* ---------- Company Advantages ---------- */
.company-advantages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 200px;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(12, 97, 174, 0.05) 0%, rgba(17, 77, 131, 0.05) 100%);
    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}


.advantage-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.advantage-text {
    flex: 1;
}

.advantage-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--title-color);
    line-height: 1.2;
    margin-bottom: 2px;
}

.advantage-number span {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-color);
}

.advantage-label {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.85;
}

.placeholder {
    color: var(--text-color);
    opacity: 0.7;
}
/* ---------- Action Buttons ---------- */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}
.product-actions .btn {
    padding: 14px 20px;
    font-size: 15px;
}

.action-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.action-note i {
    color: #22d3ee;
    font-size: 14px;
}
/* ==========================================================================
   2. PRODUCT DETAIL CONTAINER WITH SIDEBAR
   ========================================================================== */
.product-detail-container {
    background: #f8fafc;
}

.detail-main-content {
    padding: 40px 0 60px;
}

.detail-main-content .section-content {
    position: relative;
    overflow: visible;
}

.detail-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    position: relative;
}

.detail-main {
    min-width: 0;
}

/* ==========================================================================
   2.1 FIXED SIDEBAR
   ========================================================================== */
.detail-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: flex-start;
}

/* Pricing Card */
.pricing-card {
    background: #fff;
    border-radius: 5px;
    padding: 10px;
    overflow: hidden;
    box-shadow: none;
}

.pricing-header {
    /*padding: 16px 20px 8px;*/
    border-bottom: none;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.stock-status {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px;
}

.pricing-note {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
    margin-bottom: 5px;
}

/* 码数标签：显示在 In Stock 行右侧，无规格时不渲染 */
.size-tags {
    margin-left: auto;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.size-tag {
    display: inline-block;
    min-width: 26px;
    padding: 2px 8px;
    border: 1px solid #D1D5DB;
    border-radius: 3px;
    background: #F9FAFB;
    color: #374151;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.size-tag:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.size-tag.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.pricing-table {
    overflow-x: auto;
}

/* 按码数分组的表格：默认只显示第一个，由 .size-tag 点击切换 */
.pricing-table.size-panel {
    display: none;
}

.pricing-table.size-panel.active {
    display: block;
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pricing-table th {
    background: var(--secondary-color);
    color: #fff;
    padding: 10px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

.pricing-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #E5E7EB;
    color: #111827;
    font-size: 14px;
}

.pricing-table tbody tr:hover td {
    background: transparent;
}

.pricing-table tbody tr:last-child td {
    border-bottom: 1px solid #E5E7EB;
}

.pricing-footer {
    /*padding: 16px 20px;*/
    border-top: none;
    margin-top: 10px;
    background: #fff;
}

.rfq-note {
    color: #DC2626;
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 12px 0;
}

/* Quantity + Add to Cart inside pricing card */
.pricing-footer .quantity-cart-row {
    display: grid;
    grid-template-columns: 1fr auto;
    margin-bottom: 0;
    gap: 8px;
}

.pricing-footer .quantity-input {
    width: 100%;
}

.pricing-footer .quantity-input input {
    width: 100%;
    padding: 10px 6px;
}

.pricing-footer .btn-cart {
    width: auto;
    padding: 10px 12px;
    font-size: 14px;
}

/* Sidebar Contact */
.sidebar-contact {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sidebar-contact h4 {
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 8px;
}

.sidebar-contact p {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #1F2937;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.contact-link:hover {
    color: var(--secondary-color);
}

.contact-link i {
    width: 18px;
    text-align: center;
    color: var(--secondary-color);
}

/* ==========================================================================
   2.2 CONTENT PANELS
   ========================================================================== */
#inquiry {
    scroll-margin-top: 90px;
}

.panel {
    padding: 32px 0;
    border-bottom: 1px solid #E5E7EB;
}

.panel:last-child {
    border-bottom: none;
}

.panel .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #0F172A;
    border-bottom: 3px solid var(--secondary-color);
}

.panel .section-title i {
    color: var(--secondary-color);
    font-size: 22px;
}
/* ==========================================================================
   2.3 OVERVIEW SECTION
   ========================================================================== */
.overview-content {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}

.overview-content > p {
    margin: 0 0 24px;
}

.overview-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    transition: all 0.2s;
}

.highlight-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(50, 150, 148, 0.1);
    transform: translateY(-2px);
}

.highlight-item i {
    font-size: 24px;
    color: var(--secondary-color);
}

.highlight-item span {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
}

/* ==========================================================================
   2.4 PAYMENT SECTION
   ========================================================================== */
.payment-intro {
    margin-bottom: 32px;
}

.payment-intro p {
    font-size: 15px;
    color: #4B5563;
    line-height: 1.8;
    margin: 0;
}

.payment-logos-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 40px;
}

.payment-logo-item {
    flex: 0 0 auto;
}

.payment-logo-item img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0);
    transition: transform 0.3s ease;
}

.payment-logo-item img:hover {
    transform: scale(1.05);
}

.payment-details {
    margin-bottom: 32px;
}

.payment-detail-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.payment-detail-row:last-child {
    border-bottom: none;
}

.payment-method-label {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}

.payment-method-desc {
    color: #64748b;
    line-height: 1.6;
    font-size: 14px;
}

.payment-notes {
    background: #f1f5f9;
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid #329694;
}

.payment-notes p {
    margin: 0 0 12px 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.payment-notes p:last-child {
    margin-bottom: 0;
}

.payment-notes strong {
    color: #1e293b;
    font-weight: 600;
}

/* ==========================================================================
   2.5 SHIPPING SECTION
   ========================================================================== */
.shipping-intro {
    margin-bottom: 32px;
}

.shipping-intro p {
    font-size: 15px;
    color: #4B5563;
    line-height: 1.8;
    margin: 0 0 16px;
}

.shipping-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #0F172A;
    margin: 40px 0 24px;
    padding-bottom: 10px;
    position: relative; /* 必须加上 relative，作为线的定位基准 */
}

.shipping-subtitle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}



.carriers-logos {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 32px;
    padding: 10px 25px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 40px;
}

.carrier-logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}


.carrier-logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.shipping-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.shipping-method-card {
    background: #fff;
    border-radius: 5px;
    padding: 20px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}


.method-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.method-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-icon i {
    font-size: 28px;
    color: #fff;
}

.method-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, #F97316, #F59E0B);
    color: #fff;
}

.shipping-method-card .card-title {
    font-size: 18px;
    font-weight: 500;
    color: #0F172A;
    margin: 0 0 16px;

}

.method-time {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 8px;
    margin-bottom: 16px;
}

.method-time i {
    font-size: 16px;
    color: #0284C7;
}

.method-time span {
    font-size: 14px;
    font-weight: 600;
    color: #0369A1;
}

.shipping-method-card p {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.7;
    margin: 0 0 20px;
    flex: 1;
}

.method-features {
    display: flex;
    flex-direction: column;
    /* flex-wrap: wrap; */
    gap: 8px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #059669;
    padding: 6px 12px;
    background: #D1FAE5;
    border-radius: 6px;
}

.feature-tag i {
    font-size: 11px;
}

.shipping-services {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 32px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: #329694;
    box-shadow: 0 4px 16px rgba(50, 150, 148, 0.08);
    transform: translateY(-4px);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #329694, #22D3EE);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.service-icon i {
    font-size: 24px;
    color: #fff;
}

.service-card h5 {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 10px;
}

.service-card p {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }

    .terms-grid {
        grid-template-columns: 1fr;
    }

    .shipping-methods-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .carriers-logos {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   2.6 QUALITY CONTROL SECTION
   ========================================================================== */
.qc-intro {
    margin-bottom: 20px;
}

.qc-intro p {
    font-size: 16px;
    color: #4B5563;
    line-height: 1.8;
    margin: 0 0 16px;
}

.qc-intro p:last-child {
    margin-bottom: 0;
}

.qc-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.qc-step {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.qc-step-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #F3F4F6;
}

.qc-step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.qc-step:hover .qc-step-image img {
    transform: scale(1.05);
}

.qc-step-content {
    padding: 10px 15px;
}

.qc-step-content h3 {
    font-size: 17px;
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.4;
}


.qc-step-content p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .qc-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ==========================================================================
   2.7 BLOG SECTION
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.blog-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.blog-card:hover {

}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #F8FAFC;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.08);
}

.blog-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.blog-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6B7280;
}

.blog-date i {
    color: var(--secondary-color);
}

.blog-content h3 {
    font-size: 17px;
    font-weight: 500;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.4;
    transition: color 0.2s;
}

.blog-card:hover .blog-content h3 {
    color: var(--secondary-color);
}

.blog-content p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    transition: gap 0.2s;
    margin-top: auto;
}

.blog-card:hover .read-more {
    gap: 12px;
}

.read-more i {
    font-size: 12px;
}

/* ==========================================================================
   2. CONTENT SECTION (Specs / Packaging / FAQ)
   ========================================================================== */
.product-detail-page .section-container {
    padding: 30px 0;
}
.panel + .panel {
    /* 需要分隔线可取消注释 */
    /* border-top: 1px solid var(--border-color); */
}
/* ==========================================================================
   3. FAQ
   ========================================================================== */
#productFaqList {
    /* border-top: 1px solid var(--border-color); */
}
#productFaqList .faq-item {
    border-bottom: 1px solid var(--border-color);
}
#productFaqList .faq-q-wrap {
    margin: 0;
}
#productFaqList .faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-size: 18px;
    font-weight: 500;
    color: var(--title-color);
    transition: color 0.18s;
}
#productFaqList .faq-q:hover {
    color: var(--secondary-color);
}
#productFaqList .faq-q .faq-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: transform 0.25s, background 0.2s, color 0.2s, border-color 0.2s;
}
#productFaqList .faq-item.open .faq-q .faq-icon {
    transform: rotate(45deg);
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}
#productFaqList .faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s;
}
#productFaqList .faq-item.open .faq-a {
    grid-template-rows: 1fr;
}
#productFaqList .faq-a > div {
    overflow: hidden;
}
#productFaqList .faq-a p {
    margin: 0 0 20px;
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.7;
}
/* ==========================================================================
   4. RELATED PRODUCTS
   ========================================================================== */
.related-grid {
    display: grid;
   grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.related-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
}

.related-img {
    width: auto;
    height: 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
    margin-bottom: 5px;
}
.related-item:hover .related-img {
    border-color: var(--secondary-color);
}
.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.related-item:hover .related-img img {
    transform: scale(1.05);
}
.related-img .ph-text {
    font-size: 11px;
    color: var(--text-color);
    text-align: center;
    padding: 8px;
}
.related-item .related-name {
    font-size: 17px;
    font-weight: 500;
    color: var(--title-color);
    margin: 0;
    transition: color 0.2s;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.related-item:hover .related-name {
    color: var(--secondary-color);
}
.related-item .model {
    font-size: 16px;
    text-align: center;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   5. FINAL CTA（与 factory/oem 页共用，若已定义可删除）
   ========================================================================== */
.final-cta {
    background: linear-gradient(135deg, #0B2A4A 0%, #123E6B 100%);
    position: relative;
    overflow: hidden;
}
.final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
            radial-gradient(circle at 20% 50%, rgba(50, 150, 148, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(50, 150, 148, 0.1) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}
.final-cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.final-cta .section-title {
    margin-bottom: 12px;
}
.final-cta p {
    color: #CBD5E1;
    max-width: 600px;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}
/* ==========================================================================
   6. SCROLLBAR
   ========================================================================== */
.rail-thumbnails::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
.rail-thumbnails::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 2px;
}
/* ==========================================================================
   7. 响应式 —— 1024 / 996 / 768 / 480
   ========================================================================== */
/* ---------- 1024px ---------- */
@media (max-width: 1024px) {
    /* 产品主区：两列 → 单列 */
    .product-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Detail container with sidebar */
    .detail-content-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .detail-sidebar {
        order: -1;
    }

    .sidebar-sticky {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .payment-logos-row{
        flex-wrap: wrap;
    }

    /* 删掉原来移动端order，现在桌面已经是主图在上缩略图在下 */
    .media-gallery {
        flex-direction: column;
    }
    .media-rail {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
    }
    .rail-thumbnails {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        max-width: 100%;
        padding: 2px;
        gap: 4px;
    }
    .rail-thumb {
        width: 56px;
        height: 56px;
        flex-shrink: 0;
    }
    .main-viewer {
        aspect-ratio: 16 / 10;
    }
    /* 相关产品：4 → 2 列 */
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Shipping & QC */
    .qc-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .shipping-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- 996px ---------- */
@media (max-width: 996px) {
    .product-title {
        font-size: 24px;
    }
    .panel .section-title {
        font-size: 20px;
    }

    .company-advantages{
        min-width: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }

    .payment-detail-row{
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ---------- 768px ---------- */
@media (max-width: 768px) {
    .breadcrumb-section {
        padding: 15px 0;
    }

    .breadcrumb {
        font-size: 13px;
    }

    .breadcrumb .current {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 200px;
    }

    .product-main-section {
        padding-top: 24px;
    }
    .product-title {
        font-size: 22px;
        padding-bottom: 12px;
    }
    .product-intro {
        font-size: 14px;
    }

    /* Trust Badges */
    .trust-badges {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px;
    }

    .trust-badge {
        font-size: 12px;
    }

    .trust-badge i {
        font-size: 14px;
    }

    /* Info Row - Stack vertically */
    .info-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .company-advantages {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .advantage-item {
        flex: 1 1 calc(50% - 6px);
        min-width: 150px;
    }

    /* Sidebar stacking */
    .sidebar-sticky {
        grid-template-columns: 1fr;
    }

    /* Spec 单列堆叠 */
    .spec-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .spec-label {
        text-align: left;
        font-size: 13px;
        background: #f9f9f9;
        padding: 8px 0;
        padding-left: 5px;
    }

    .spec-value {
        font-size: 14px;
        padding-left: 5px;

    }

    .main-viewer {
        aspect-ratio: 4 / 3;
    }

    /* Overview highlights */
    .overview-highlights {
        grid-template-columns: 1fr;
    }

    /* Payment methods */
    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Shipping */
    .shipping-options {
        grid-template-columns: 1fr;
    }

    .shipping-info-grid {
        grid-template-columns: 1fr;
    }

    /* QC Steps */
    .qc-steps {
        grid-template-columns: 1fr;
    }

    /* 相关产品：2 列 */
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 24px 0;
    }
    /* Final CTA 纵向 */
    .final-cta__inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .final-cta .cta-row {
        width: 100%;
    }
    .final-cta .btn {
        width: 100%;
    }
}

/* ---------- 480px ---------- */
@media (max-width: 480px) {
    .breadcrumb {
        font-size: 12px;
    }

    .breadcrumb .current {
        max-width: 150px;
    }

    /* Company Advantages - Single column on mobile */
    .company-advantages {
        flex-direction: column;
    }

    .advantage-item {
        flex: 1 1 100%;
    }

    /* Trust Badges - 2x2 grid on mobile */
    .trust-badges {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 10px;
    }

    .trust-badge {
        font-size: 11px;
        justify-content: center;
    }

    .trust-badge i {
        font-size: 12px;
    }

    .product-title {
        font-size: 20px;
    }
    .rail-thumb {
        width: 48px;
        height: 48px;
    }
    .media-placeholder .ph-icon {
        font-size: 26px;
    }

    /* Payment methods single column */
    .payment-methods {
        grid-template-columns: 1fr;
    }

    .payment-method {
        padding: 20px 16px;
    }

    /* 相关产品：单列 */
    .related-grid {
        grid-template-columns: 1fr;
    }
    .related-item .related-name {
        font-size: 14px;
    }
    .product-actions .btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ==========================================================================
   SHOPPING CART COMPONENTS
   ========================================================================== */

/* Quantity + Add to Cart Row */
.quantity-cart-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}

.quantity-input {
    flex: 0 0 100px;
}

.quantity-input input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
}

.btn-cart {
    flex: 1;
    background: #10B981;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.btn-cart:hover {
    background: #059669;
}

