/*! 产品详情统一为笔记本电池页的白底、双栏首屏和同规格卡片；只限定产品容器，不改变支付页。 */
.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;
}

/* 容量比较卡片：缩小标题、容量、规格、价格间距；不改变库存、金额或购买按钮行为。 */
.bt-capacity-compact h3 { min-height: 0; }
.bt-capacity-compact h3 + div { margin-top: .65rem; padding-bottom: .65rem; }
.bt-capacity-compact dl { margin-top: .65rem; }
.bt-capacity-compact dl > div + div { margin-top: .4rem; }
.bt-capacity-compact dl + div { margin-top: .75rem; padding-top: .65rem; }
.bt-capacity-compact .mt-auto { padding-top: .85rem; }
/* 兼容搜索卡片与笔记本电池保持同样的白底结果、绿色兼容状态及独立型号链接。
   手机端自动换行，长品牌/型号不能挤出屏幕。 */
/* 日文、繁体及泰文提示可能没有空格，允许长文本在窄屏内换行。 */
.bt-compat-search { min-width: 0; overflow-wrap: anywhere; }
.bt-compat-result-actions { min-width: 0; max-width: 100%; }
.bt-compat-search input { margin-top: .5rem; background: #fff; }
.bt-compat-results { list-style: none; margin: 1rem 0 0; padding: 0; }
.bt-compat-results > li { margin-top: .65rem; padding: .9rem; border: 1px solid #dce3eb; border-radius: .75rem; background: #fff; }
.bt-compat-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; }
.bt-compat-result > strong { min-width: 0; overflow-wrap: anywhere; font-size: .875rem; }
.bt-compat-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; font-size: .875rem; }
.bt-compat-status { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .65rem; border-radius: 2rem; background: #f0fdf4; color: #15803d; font-size: .75rem; font-weight: 600; }
.bt-compat-result-actions a { color: #196bde; font-weight: 600; }
