/* =======================================================================
   Model List（/model-list/）與各型號電池資訊頁（/model-list/<slug>/）共用樣式。
   2026-11 新增頁面，不是原站搬過來的內容，class 一律用 bi- 前綴（battery info），
   不沿用 .column-title 那批泛用 class（那批在各頁 css 裡各自定義、寫死 800px 寬）。
   標題列配色沿用 DOWNLOAD 其他頁 .column-title 的藍色漸層，維持全站一致。
   ======================================================================= */

.bi-wrapper {
    max-width: 830px;
    font-family: 'Roboto', 'Noto Sans TC', 'Noto Sans SC', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}

/* 樣板對 .item_fulltext 內的 <p> 另有 padding-bottom: 25px，這裡要用更高 specificity 收掉 */
.item_fulltext .bi-wrapper p {
    margin: 0 0 10px;
    padding: 0;
}

/* 頁面主標題：比照 .column-title 的藍色漸層標題列 */
.bi-wrapper .bi-title {
    margin: 0 0 12px;
    padding: 10px 20px 8px;
    background: linear-gradient(to bottom, #7093BA 0%, #6382A5 100%);
    border-bottom: 2px solid #6382A5;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    color: #fff;
    font-family: 'Roboto', 'Noto Sans TC', sans-serif;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
}

.bi-subtitle {
    font-size: 16px;
    color: #333;
}

.bi-note {
    color: #777;
    font-size: 13px;
}

/* 型號頁標題區：左側型號／說明文字，右側 QR Code 卡片（版面比照參考頁） */
.bi-head {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d4d4d4;
}

.bi-head-text {
    flex: 1 1 auto;
}

.bi-qr {
    flex: 0 0 auto;
    padding: 12px 14px 10px;
    background: #fff;
    border: 1px solid #e1e6ee;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    text-align: center;
}

/* QR 是 41×41 模組的 SVG，顯示成 123px（整數 3 倍）讓模組邊緣落在整數像素上、不會糊 */
.item_fulltext img.bi-qr-img {
    display: block;
    width: 123px;
    height: 123px;
    margin: 0 auto;
}

.bi-qr-label {
    display: inline-block;
    margin-top: 6px;
    padding: 1px 10px;
    background: #eef2f7;
    border-radius: 10px;
    color: #2f4a6b;
    font-size: 12px;
    font-weight: bold;
}

/* 各區塊標題 */
.bi-wrapper .bi-heading {
    margin: 26px 0 10px;
    padding: 6px 12px;
    background: #eef2f7;
    border-left: 4px solid #6382A5;
    color: #2f4a6b;
    font-family: 'Roboto', 'Noto Sans TC', sans-serif;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
    text-transform: none;
}

.bi-wrapper .bi-subheading {
    margin: 14px 0 6px;
    color: #333;
    font-family: 'Roboto', 'Noto Sans TC', sans-serif;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
    text-transform: none;
}

/* 表格 */
.bi-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 10px;
}

.bi-table th,
.bi-table td {
    border: 1px solid #d4d4d4;
    padding: 7px 12px;
    text-align: left;
    vertical-align: middle;
}

.bi-table thead th {
    background: #eef2f7;
    color: #2f4a6b;
}

.bi-list tbody tr:nth-child(even),
.bi-grid tbody tr:nth-child(even) {
    background: #f8f9fb;
}

.bi-list tbody tr:hover {
    background: #eef4fb;
}

.bi-model {
    font-weight: bold;
}

/* 欄位名稱／值兩欄的表格 */
.bi-kv th {
    width: 32%;
    background: #f8f9fb;
    color: #555;
    font-weight: bold;
}

.bi-narrow {
    width: auto;
    min-width: 50%;
}

.bi-list-items {
    margin: 0 0 10px 20px;
}

.bi-list-items li {
    margin-bottom: 4px;
}

.bi-disclaimer {
    color: #777;
    font-size: 13px;
}

/* 圖片：style.default.css 有 .item_fulltext img { border; padding }（0,1,1），
   要用更高的 specificity 蓋掉，不然每張圖都會多一圈灰框（跟 .img-noborder 同一個坑）。 */
.item_fulltext img.bi-img {
    border: 0;
    padding: 0;
    max-width: 100%;
    height: auto;
}

/* Production Date/Batch Number：三張範例圖上下排列；標籤範例原檔只有 165×110，用原尺寸不放大 */
.item_fulltext img.bi-datecode,
.item_fulltext img.bi-batchlabel {
    display: block;
    margin: 6px 0 12px;
}

.item_fulltext img.bi-datecode {
    width: 420px;
}

.item_fulltext img.bi-batchlabel {
    width: 165px;
    margin-bottom: 6px;
}

/* Marking：上排標示圖示 + 下方黑底兒童警告框（版面比照參考頁） */
.bi-marking-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding: 16px 20px;
    margin-bottom: 14px;
    background: #fff; /* 圖檔本身是白底，底色也用白色才不會露出白框 */
    border: 1px solid #e1e6ee;
    border-radius: 8px;
}

.item_fulltext .bi-marking-icons img.bi-img {
    height: 96px;
    width: auto;
}

.bi-warning-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #000;
    border-radius: 8px;
}

.bi-warning-text {
    flex: 1 1 auto;
}

.item_fulltext .bi-wrapper .bi-warning-label {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 12px;
    background: #f5c400;
    border-radius: 4px;
    color: #000;
    font-size: 17px;
    font-weight: bold;
}

.item_fulltext .bi-wrapper .bi-warning-sub {
    display: inline-block;
    margin: 0 0 10px;
    padding: 3px 10px;
    background: #fff;
    border-radius: 4px;
    color: #000;
    font-size: 15px;
    font-weight: bold;
}

.item_fulltext .bi-wrapper .bi-warning-desc {
    margin: 0;
    padding: 6px 10px;
    background: #fff;
    border-radius: 4px;
    color: #000;
    font-size: 13px;
    line-height: 1.5;
}

.item_fulltext img.bi-warning-img {
    flex: 0 0 auto;
    width: 120px;
    background: #fff;
}

.bi-symbols td:first-child {
    width: 90px;
    text-align: center;
}

.item_fulltext .bi-symbols img.bi-img {
    max-width: 64px;
    max-height: 56px;
    width: auto;
}

@media screen and (max-width: 600px) {
    .bi-kv th {
        width: 40%;
    }

    .bi-table th,
    .bi-table td {
        padding: 6px 8px;
    }

    .bi-warning-box,
    .bi-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .item_fulltext .bi-marking-icons img.bi-img {
        height: 64px;
    }
}
