/* templet7 商品详情 — edi 风格：图库+参数卡 / 相似商品+介绍 */
.t7-pd {
    --t7-pd-navy: #1e3a5f;
    --t7-pd-teal: #1e6fd9;
    --t7-pd-price: #e23c3c;
    padding: 0 0 48px;
    background: #f4f6f9;
}

.t7-pd-topband {
    background: var(--t7-pd-navy);
    padding: 16px 0 28px;
}

.t7-pd-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: rgba(255,255,255,.55);
    font-size: 13px;
}
.t7-pd-crumb a { color: rgba(255,255,255,.7); }
.t7-pd-crumb a:hover { color: #fff; }
.t7-pd-crumb em {
    font-style: normal;
    color: rgba(255,255,255,.92);
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.t7-pd-card {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 28px;
    background: #fff;
    border-radius: 10px;
    padding: 22px;
}

.t7-pd-gallery { min-width: 0; }
.t7-pd-main {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #f7f8fa;
}
.t7-pd-slide {
    aspect-ratio: 1;
    background: #f7f8fa;
}
.t7-pd-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.t7-pd-empty {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: #999;
    background: #f7f8fa;
    border-radius: 8px;
}
.t7-pd-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.t7-pd-thumb {
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f2f5;
    cursor: pointer;
}
.t7-pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.t7-pd-thumb.is-on {
    border-color: var(--t7-pd-teal);
}

.t7-pd-info { min-width: 0; }
.t7-pd-info h1 {
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 1.4;
    color: #222;
    font-weight: 700;
}

.t7-pd-pricebar {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: #f0f5fb;
    border-radius: 6px;
}
.t7-pd-price-label {
    color: #888;
    font-size: 13px;
}
.t7-pd-pricebar strong {
    color: var(--t7-pd-price);
    font-size: 28px;
    font-weight: 800;
}
.t7-pd-pricebar del {
    color: #999;
    font-size: 14px;
}
.t7-pd-pricebar em {
    font-style: normal;
    font-size: 12px;
    padding: 2px 8px;
    background: var(--t7-pd-teal);
    color: #fff;
    border-radius: 3px;
}

.t7-pd-attrs {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}
.t7-pd-attrs li {
    display: flex;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px dashed #e8ebf0;
    font-size: 14px;
}
.t7-pd-attrs span {
    width: 72px;
    flex-shrink: 0;
    color: #999;
}
.t7-pd-attrs strong {
    font-weight: 500;
    color: #333;
}
.t7-pd-attrs a {
    color: var(--t7-pd-teal);
}
.t7-pd-attrs a:hover { text-decoration: underline; }

.t7-pd-qty-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    color: #666;
    font-size: 14px;
}
.t7-pd-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d8dde5;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}
.t7-pd-qty-btn {
    width: 36px;
    height: 36px;
    border: 0;
    background: #f5f6f8;
    cursor: pointer;
    font-size: 18px;
    color: #333;
}
.t7-pd-qty input {
    width: 56px;
    height: 36px;
    border: 0;
    border-left: 1px solid #e5e8ee;
    border-right: 1px solid #e5e8ee;
    text-align: center;
    font-size: 14px;
}

.t7-pd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.t7-pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 44px;
    padding: 0 22px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
}
.t7-pd-btn-cart {
    background: var(--t7-pd-teal);
    color: #fff !important;
    border-color: var(--t7-pd-teal);
}
.t7-pd-btn-cart:hover { filter: brightness(1.05); }
.t7-pd-btn-cart:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.t7-pd-btn-buy {
    background: #fff;
    color: var(--t7-pd-teal) !important;
    border-color: var(--t7-pd-teal);
}
.t7-pd-btn-buy:hover { background: #f3f8ff; }

.t7-pd-guarantee {
    padding: 14px 16px;
    background: #fafbfc;
    border: 1px solid #eef0f3;
    border-radius: 6px;
}
.t7-pd-guarantee h3 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #333;
}
.t7-pd-guarantee ul {
    margin: 0;
    padding-left: 18px;
    color: #777;
    font-size: 13px;
    line-height: 1.8;
}

/* 下半区：相似 + 介绍 */
.t7-pd-bottom {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 16px;
    padding-top: 18px;
    align-items: start;
}

.t7-pd-side-box {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    padding: 14px;
}
.t7-pd-side-box h2 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #222;
}
.t7-pd-similar {
    list-style: none;
    margin: 0;
    padding: 0;
}
.t7-pd-similar li {
    border-bottom: 1px solid #f0f2f5;
}
.t7-pd-similar li:last-child { border-bottom: 0; }
.t7-pd-similar-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    color: inherit;
}
.t7-pd-similar-media {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f6f8;
    border: 1px solid #eee;
}
.t7-pd-similar-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.t7-pd-similar-media em {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-style: normal;
    color: #bbb;
    font-size: 12px;
}
.t7-pd-similar-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.t7-pd-similar-text strong {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.t7-pd-similar-text b {
    color: var(--t7-pd-price);
    font-size: 14px;
}
.t7-pd-side-more {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    color: var(--t7-pd-teal);
    font-size: 13px;
}
.t7-pd-side-empty {
    margin: 0;
    color: #999;
    font-size: 13px;
    padding: 12px 0;
}

.t7-pd-content-wrap {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    overflow: hidden;
}
.t7-pd-tabs {
    display: flex;
    background: #fafbfc;
    border-bottom: 1px solid #eef0f3;
}
.t7-pd-tabs span {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    border-right: 1px solid #eef0f3;
}
.t7-pd-tabs .is-on {
    background: #fff;
    color: var(--t7-pd-teal);
    border-top: 2px solid var(--t7-pd-teal);
    margin-top: -1px;
}
.t7-pd-content {
    padding: 0;
    line-height: 1.8;
    color: #333;
    font-size: 14px;
}
.t7-pd-content-empty {
    padding: 28px 22px;
    color: #999;
    margin: 0;
}

/* 详细介绍图片无空隙 */
.t7-pd-content img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: top;
}
.t7-pd-content p,
.t7-pd-content div,
.t7-pd-content figure,
.t7-pd-content .content-img {
    margin: 0;
    padding: 0;
}
.t7-pd-content .content-img,
.t7-pd-content p:has(> img:only-child),
.t7-pd-content p:has(> a > img:only-child) {
    line-height: 0;
    font-size: 0;
}
.t7-pd-content br { display: none; }
.t7-pd-content p:not(:has(img)) {
    padding: 12px 22px;
    line-height: 1.8;
    font-size: 14px;
}

@media (max-width: 960px) {
    .t7-pd-card {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .t7-pd-bottom {
        grid-template-columns: 1fr;
    }
    .t7-pd-side { order: 2; }
    .t7-pd-maincol { order: 1; }
}
@media (max-width: 640px) {
    .t7-pd-card { padding: 14px; }
    .t7-pd-info h1 { font-size: 18px; }
    .t7-pd-btn { min-width: 0; flex: 1; }
    .t7-pd-crumb em { max-width: 40%; }
}
