/* templet8 product detail */
.t8-pd { padding: 20px 0 40px; }
.t8-pd-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    background: #fff;
    border: 1px solid var(--t8-line);
    padding: 24px;
    margin-bottom: 24px;
}
.t8-pd-gallery { min-width: 0; }
.t8-pd-main {
    border: 1px solid #eee;
    background: #fafafa;
}
.t8-pd-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.t8-pd-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.t8-pd-thumb {
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}
.t8-pd-thumb.is-on { border-color: var(--t8-accent); }
.t8-pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t8-pd-empty {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #bbb;
}

.t8-pd-info h1 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.35;
    color: #222;
}
.t8-pd-summary {
    margin: 0 0 16px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}
.t8-pd-pricebar {
    background: #f8f8f8;
    padding: 14px 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.t8-pd-pricebar > span { color: #888; font-size: 13px; }
.t8-pd-pricebar strong {
    color: var(--t8-hotline);
    font-size: 28px;
    font-weight: 800;
}
.t8-pd-pricebar del { color: #bbb; font-size: 14px; }
.t8-pd-pricebar em {
    font-style: normal;
    font-size: 12px;
    background: var(--t8-hotline);
    color: #fff;
    padding: 2px 8px;
    border-radius: 2px;
}

.t8-pd-attrs {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    border-top: 1px solid #eee;
}
.t8-pd-attrs li {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}
.t8-pd-attrs li > span {
    width: 80px;
    flex-shrink: 0;
    color: #888;
}
.t8-pd-attrs li strong { flex: 1; font-weight: 500; }
.t8-pd-attrs a { color: var(--t8-accent); }

.t8-pd-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.t8-pd-qty {
    display: inline-flex;
    border: 1px solid #ddd;
    border-radius: 2px;
}
.t8-pd-qty-btn {
    width: 36px;
    height: 36px;
    border: 0;
    background: #f7f7f7;
    cursor: pointer;
    font-size: 18px;
}
.t8-pd-qty input {
    width: 52px;
    height: 36px;
    border: 0;
    text-align: center;
}
.t8-pd-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.t8-pd-btn {
    flex: 1;
    
display: flex;
    align-items: center;
    justify-content: center;
    
    min-width: 140px;
    height: 44px;
    border: 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
}
.t8-pd-btn-cart {
    background: #fff;
    border: 1px solid var(--t8-nav) !important;
    color: var(--t8-nav) !important;
}
.t8-pd-btn-cart:hover { background: #f0f8fd; }
.t8-pd-btn-buy {
    background: var(--t8-hotline);
    color: #fff !important;
}
.t8-pd-btn-buy:hover { background: #c62828; }
.t8-pd-btn:disabled { opacity: .5; cursor: not-allowed; }

/* 详情区：左图文 + 右侧栏（限制详情图宽度） */
.t8-pd-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: start;
    margin-bottom: 8px;
}

.t8-pd-detail {
    background: #fff;
    border: 1px solid var(--t8-line);
    min-width: 0;
}
.t8-pd-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f3f6fb;
    border-bottom: 2px solid var(--t8-nav);
    padding-right: 16px;
}
.t8-pd-tabs span {
    display: inline-block;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--t8-nav);
}
.t8-pd-tabs em {
    font-style: normal;
    font-size: 12px;
    color: #7a8799;
    letter-spacing: .04em;
}

.t8-pd-content {
    padding: 0;
    line-height: 1.8;
    color: #333;
    font-size: 14px;
}
.t8-pd-content-empty {
    padding: 28px 22px;
    color: #999;
    margin: 0;
}
.t8-pd-content img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: top;
}
.t8-pd-content p,
.t8-pd-content div,
.t8-pd-content figure,
.t8-pd-content .content-img {
    margin: 0;
    padding: 0;
}
.t8-pd-content .content-img,
.t8-pd-content p:has(> img:only-child),
.t8-pd-content p:has(> a > img:only-child) {
    line-height: 0;
    font-size: 0;
}
.t8-pd-content br { display: none; }
.t8-pd-content p:not(:has(img)) {
    padding: 12px 22px;
    line-height: 1.8;
    font-size: 14px;
}

/* 右侧栏 */
.t8-pd-rail {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 16px;
}
.t8-pd-rail-card {
    background: #fff;
    border: 1px solid var(--t8-line);
    padding: 14px 14px 16px;
}
.t8-pd-rail-card h2 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef1f5;
    font-size: 15px;
    color: var(--t8-nav);
    font-weight: 700;
}

.t8-pd-rail-consult {
    background: linear-gradient(165deg, #004098 0%, #0056b8 55%, #0066cc 100%);
    border-color: transparent;
    color: #fff;
    
    
    display:none;
}
.t8-pd-rail-consult h2 {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, .22);
}
.t8-pd-rail-consult > p {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .88);
}
.t8-pd-rail-phone {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #fff !important;
    letter-spacing: .02em;
    margin-bottom: 10px;
}
.t8-pd-rail-phone:hover { opacity: .9; }
.t8-pd-rail-link {
    display: inline-block;
    padding: 7px 14px;
    background: #fff;
    color: var(--t8-nav) !important;
    font-size: 13px;
    font-weight: 600;
}
.t8-pd-rail-link:hover { background: #e8f3ff; }

.t8-pd-rail-spec {
    margin: 0;
    display: grid;
    gap: 0;
}
.t8-pd-rail-spec > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #eef0f3;
    font-size: 13px;
}
.t8-pd-rail-spec > div:last-child { border-bottom: 0; }
.t8-pd-rail-spec dt {
    margin: 0;
    color: #888;
    flex-shrink: 0;
}
.t8-pd-rail-spec dd {
    margin: 0;
    color: #333;
    text-align: right;
    word-break: break-all;
}
.t8-pd-rail-spec a { color: var(--t8-accent); }

.t8-pd-rail-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.t8-pd-rail-list li { border-bottom: 1px solid #f2f4f7; }
.t8-pd-rail-list li:last-child { border-bottom: 0; }
.t8-pd-rail-list a {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    color: inherit;
}
.t8-pd-rail-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: #f5f5f5;
    border: 1px solid #eee;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.t8-pd-rail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.t8-pd-rail-thumb em {
    font-style: normal;
    font-size: 11px;
    color: #bbb;
}
.t8-pd-rail-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.t8-pd-rail-meta strong {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.t8-pd-rail-meta b {
    color: var(--t8-hotline);
    font-size: 14px;
}
.t8-pd-rail-more {
    display: block;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed #e8ecf1;
    text-align: center;
    font-size: 13px;
    color: var(--t8-accent) !important;
}
.t8-pd-rail-empty {
    margin: 0;
    color: #999;
    font-size: 13px;
    padding: 6px 0 4px;
}

.t8-pd-rail-tips ul {
    margin: 0;
    padding: 0 0 0 16px;
    color: #666;
    font-size: 13px;
    line-height: 1.9;
}

@media (max-width: 960px) {
    .t8-pd-body { grid-template-columns: 1fr; }
    .t8-pd-rail { position: static; display: grid; grid-template-columns: 1fr 1fr; }
    .t8-pd-rail-consult { grid-column: 1 / -1; }
    .t8-pd-rail-tips { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .t8-pd-card { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
    .t8-pd-info h1 { font-size: 18px; }
    .t8-pd-pricebar strong { font-size: 24px; }
    .t8-pd-rail { grid-template-columns: 1fr; }
    .t8-pd-tabs { flex-wrap: wrap; padding-right: 0; }
    .t8-pd-tabs em { padding: 0 14px 10px; width: 100%; }
}
