/*! 产品详情统一为笔记本电池页的白底、双栏首屏和同规格卡片；只限定产品容器，不改变支付页。 */
.bt-product-unified {
    background: #fff;
    max-width: 1280px;
    padding-bottom: 32px;
}
.bt-product-unified .bt-commerce-hero {
    gap: 40px;
    align-items: start;
}
.bt-product-unified .bt-commerce-gallery > a {
    display: block;
    aspect-ratio: 1;
}
.bt-product-unified .bt-commerce-gallery > a > img {
    height: 100%;
    width: 100%;
    background: #f8fafc;
}
.bt-product-unified .bt-buy-box {
    border: 1px solid #dce6f1;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}
.bt-product-specification {
    margin-top: 24px;
}
.bt-product-specification h2, .bt-compatible-heading h2 {
    font-size: 24px;
    font-weight: 600;
    color: #102b45;
}
.bt-product-specification > p, .bt-compatible-panel > p {
    font-size: 14px;
    color: #526278;
    margin-top: 8px;
}
.bt-product-unified .bt-commerce-specs {
    border: 1px solid #dce6f1;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px;
    background: #fff;
}
.bt-product-unified .bt-commerce-specs > div {
    padding: 16px;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
}
.bt-product-unified .bt-commerce-specs > div:last-child {
    border-bottom: 0;
}
.bt-product-unified .bt-commerce-specs dt {
    color: #526278;
}
.bt-product-unified .bt-commerce-specs dd {
    text-align: right;
    font-weight: 500;
}
/*! 零件号先于兼容设备；型号搜索在同一蓝色卡片内，无论兼容总数多少都不会落到页面末尾。 */
.bt-compatible-panel {
    margin-top: 32px;
    padding: 28px;
    border: 1px solid #dce6f1;
    border-radius: 12px;
    background: #fff;
}
.bt-compatible-models {
    background: #eff6ff;
    border-color: transparent;
}
.bt-compatible-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.bt-compatible-heading > span {
    font-size: 14px;
    color: #64748b;
}
.bt-compatible-grid, .bt-compatible-parts {
    margin-top: 20px;
    gap: 12px;
}
.bt-compatible-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
}
.bt-compatible-parts {
    display: flex;
    flex-wrap: wrap;
}
.bt-compatible-grid > a, .bt-compatible-parts > a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    color: #164575;
    border: 1px solid #dce6f1;
    border-radius: 8px;
    background: #fff;
    overflow-wrap: anywhere;
}
.bt-compatible-parts > a {
    padding: 8px 16px;
    background: #eff6ff;
    border-color: #dbeafe;
}
.bt-compatible-grid > a:hover, .bt-compatible-parts > a:hover {
    border-color: #196bde;
}
.bt-compatible-models .bt-compat-search {
    border-top: 1px solid #dbeafe;
    padding-top: 20px;
    margin-top: 20px;
}
/*! 显式星号始终紧跟字段名称；不使用依赖 DOM 相邻结构的伪元素，关闭 JS 后也只有一颗。 */
.bt-required {
    display: inline;
    color: #c82431;
    font-weight: 700;
    white-space: nowrap;
}
.bt-resume-panel {
    width: min(100%,600px);
    margin: 24px auto;
    padding: 24px;
    border: 1px solid #dce6f1;
    border-radius: 12px;
    background: #fff;
}
.bt-resume-panel h1 {
    font-size: 28px;
    margin-bottom: 12px;
}
.bt-resume-panel form {
    margin-top: 20px;
    display: grid;
    gap: 16px;
}
.bt-resume-panel label {
    display: block;
    font-weight: 600;
}
.bt-resume-panel input {
    display: block;
    width: 100%;
    margin-top: 6px;
}
@media (max-width: 1023px) {
    .bt-compatible-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}
@media (max-width: 640px) {
    .bt-compatible-panel, .bt-product-unified .bt-buy-box {
        padding: 20px;
    }
    .bt-compatible-grid {
        grid-template-columns: minmax(0,1fr);
    }
    .bt-compatible-heading h2, .bt-product-specification h2 {
        font-size: 21px;
    }
    .bt-product-unified .bt-commerce-hero {
        gap: 24px;
    }
}
/*! 覆盖旧版“首个 section 为灰色横幅”的全局规则，产品详情背景与笔记本电池保持白色。 */
main > section.bt-commerce-product.bt-product-unified {
    background: #fff;
}
/*! 联系/RMA 表单旧 label 使用 grid，内联星号也会被拆成一行；改成文字同行、控件另起一行。 */
.bt-contact-form label {
    display: block;
}
.bt-contact-form label > input, .bt-contact-form label > select, .bt-contact-form label > textarea {
    display: block;
    margin-top: 8px;
}
