/* 代理品牌頁 /brands/
   2026-10-19 起改版。使用者裁示累計：不用站上已用過的照片；授權書跟 YZNG 放一起（顯示 340px、不給放大）；
   不要綠色、不要深藍配金；不要 01／02 數字編號；
   2026-10-23 定案方向＝樣稿 J「側邊直書索引」，且「側標就不要再放大標了 不要過度重複」
   → 品牌名只出現一次：左側直書側標＝該區 h2（捲動時黏住）；內容區由英文小標＋中文品類開頭
   10-23 使用者「按鈕可以不要紅棕色嗎」→ 本頁按鈕改炭黑底白字（hover 變淺灰黑），紅色只留在小標與細線
   10-23 使用者「詢價下方就可以看到了 不要再放」→ 拿掉標題列的 LINE 詢問／線上詢價兩顆按鈕，詢問統一留給底部詢價帶（之後詢價帶也依使用者拿掉）
   10-23 使用者「需要選型或報價拿掉」→ 詢價帶整塊移除，聯絡方式只留頁尾
   結構：標題列 → YZNG 區（側標｜說明＋規格＋授權文字｜微斜授權書）→ 技冠區（側標｜說明＋規格）→ 頁尾 */
.br {
    --br-bg: #faf8f4;
    --br-paper: #f4f1eb;
    --br-ink: #242729;
    --br-text: #50534f;
    --br-soft: #6c6d66;
    --br-line: #deddd6;
    --br-red: #b94316;
    --br-red-dark: #96340f;
    --br-sand: #e4ddd0;
    --br-btn: #242729;
    --br-btn-hover: #44494d;
    background: var(--br-bg);
    color: var(--br-text);
}
.br img { display: block; max-width: 100%; }
.br main { padding-top: var(--nav-h); overflow: clip; } /* 不能用 hidden：會讓 main 變捲動容器，側標 sticky 失效（10-23 驗收抓到） */
.br main a { color: inherit; text-decoration: none; }
.br .container { max-width: 1160px; }
.br .br-wrap { width: calc(100% - 64px); max-width: 1160px; margin: 0 auto; padding: 0; }

.br-kicker, .br-eyebrow { margin: 0; color: var(--br-red); font-size: 12px; font-weight: 700; letter-spacing: .22em; }
.br h1, .br-rail-t, .br-sub, .br-authtxt h3, .br-stats span { color: var(--br-ink); font-family: 'Noto Serif TC', serif; font-weight: 500; }

/* 標題列 */
.br-head { padding: 54px 0 42px; border-bottom: 1px solid var(--br-line); }
.br .br-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.br-head .br-lead { padding-bottom: 4px; }
.br-head h1 { margin: 18px 0 0; font-size: clamp(30px, 3.2vw, 42px); letter-spacing: .12em; line-height: 1.3; }
.br-rule { display: block; width: 34px; height: 3px; margin: 18px 0 0; background: var(--br-red); }
.br-lead { max-width: 420px; margin: 0; color: var(--br-text); font-size: 16.5px; line-height: 1.95; }
.br-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.br-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 108px; padding: 12px 23px; border: 1px solid transparent; border-radius: 3px; font-size: 14px; font-weight: 500; transition: .18s ease; }
.br-btn-primary { background: var(--br-btn); color: #fff !important; }
.br-btn-primary:hover { background: var(--br-btn-hover); }
.br-btn-outline { border-color: #43474c; background: #fff; color: var(--br-ink) !important; }
.br-btn-outline:hover { border-color: var(--br-btn); background: var(--br-btn); color: #fff !important; }

/* 品牌區：左側直書側標（＝h2）＋右側內容 */
.br-band { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 52px; width: calc(100% - 64px); max-width: 1160px; margin: 0 auto; padding: 64px 0 72px; scroll-margin-top: var(--nav-h); }
.br-band + .br-band { border-top: 1px solid var(--br-line); }
.br-rail { border-right: 1px solid var(--br-line); }
.br-rail-in { position: sticky; top: calc(var(--nav-h) + 28px); padding-top: 14px; border-top: 3px solid var(--br-red); }
.br-rail-t { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: .16em; writing-mode: vertical-rl; }
.br-rail-t sup { color: var(--br-red); font-size: .5em; }
.br-body { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 56px; align-items: start; }
.br-body--jg { grid-template-columns: minmax(0, 1fr); }
.br-sub { margin: 14px 0 0; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: .08em; line-height: 1.4; }
.br-p { max-width: 660px; margin: 18px 0 0; font-size: 16px; line-height: 2; text-wrap: pretty; }
.br-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--br-ink); border-bottom: 1px solid var(--br-line); }
.br-stats li { padding: 18px 16px 18px 0; border-right: 1px solid var(--br-line); }
.br-stats li + li { padding-left: 18px; }
.br-stats li:last-child { border-right: 0; }
.br-stats b { display: block; color: var(--br-soft); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; }
.br-stats span { display: block; margin-top: 8px; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; } /* 只在標點／空格換行，避免「鐵／甲」「丈／量」被拆；塞不下才強制斷 */
.br-more { display: inline-flex; margin-top: 30px; padding: 13px 26px; border: 1px solid var(--br-ink); color: var(--br-ink) !important; font-size: 15px; letter-spacing: .06em; transition: .18s ease; }
.br-more:hover { border-color: var(--br-btn); background: var(--br-btn); color: #fff !important; }

/* 授權：文字在左欄、證書在右欄 */
.br-authtxt { margin-top: 40px; padding: 24px 26px; border-left: 3px solid var(--br-red); background: var(--br-paper); }
.br-authtxt h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: .07em; }
.br-authtxt p { margin: 0 0 8px; font-size: 15px; line-height: 1.9; }
.br-authtxt p a { color: var(--br-red) !important; border-bottom: 1px solid var(--br-red); }
.br-authtxt p a:hover { color: var(--br-red-dark) !important; }
.br-authtxt .br-note { margin: 10px 0 0; color: var(--br-soft); font-size: 13.5px; }
.br-auth { align-self: center; }
.br-cert { position: relative; width: fit-content; max-width: 100%; padding: 26px 0 30px 26px; transform: rotate(1.4deg); transform-origin: 50% 0; }
.br-cert::before { content: ''; position: absolute; left: 0; bottom: 0; width: 76%; height: 72%; background: var(--br-sand); }
.br-cert figure { position: relative; z-index: 1; max-width: 100%; margin: 0; padding: 12px; background: #fff; box-shadow: 0 22px 44px rgba(22,25,29,.18); }
.br-cert img { width: 340px; max-width: 100%; height: auto; }
.br-cert figcaption { margin-top: 8px; color: var(--br-soft); font-size: 12.5px; letter-spacing: .06em; text-align: center; }
.br-tag { position: absolute; z-index: 2; top: 0; left: 26px; padding: 7px 12px; background: var(--br-red); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; }

.br .page-updated { max-width: 1160px; margin: 8px auto 28px; padding: 0 24px; font-size: 13px; color: #7a7f78; letter-spacing: .04em; }

/* 技冠第一格型號最長，給寬一點，避免「鐵／甲」被拆開 */
@media (min-width: 901px) {
    .br-band--jg .br-stats { grid-template-columns: 1.35fr .75fr 1fr 1fr; }
}

/* 桌機 YZNG 左欄較窄，規格改 2×2，避免「手動／氣動／電動」被擠成兩行 */
@media (min-width: 1081px) {
    .br-band--yz .br-stats { grid-template-columns: 1fr 1fr; }
    .br-band--yz .br-stats li:nth-child(2) { border-right: 0; }
    .br-band--yz .br-stats li:nth-child(3) { padding-left: 0; }
    .br-band--yz .br-stats li:nth-child(n+3) { border-top: 1px solid var(--br-line); }
}

@media (max-width: 1080px) {
    .br-body { grid-template-columns: 1fr; gap: 48px; }
    .br-cert { margin: 0 auto; }
}

@media (max-width: 900px) {
    .br main { padding-top: var(--nav-h-sm); }
    .br-band { scroll-margin-top: var(--nav-h-sm); }
    .br-rail-in { top: calc(var(--nav-h-sm) + 20px); }
}

/* 901px 以下內容欄不夠放四格，規格一律 2×2 */
@media (max-width: 900px) {
    .br-stats { grid-template-columns: 1fr 1fr; }
    .br-stats li:nth-child(2) { border-right: 0; }
    .br-stats li:nth-child(3) { padding-left: 0; }
    .br-stats li:nth-child(n+3) { border-top: 1px solid var(--br-line); }
}

@media (max-width: 760px) {
    .br-band { grid-template-columns: 1fr; padding: 48px 0 56px; }
    .br-rail { margin-bottom: 26px; border-right: 0; }
    .br-rail-in { position: static; padding-top: 12px; }
    .br-rail-t { font-size: clamp(28px, 8vw, 34px); letter-spacing: .08em; writing-mode: horizontal-tb; }
}

@media (max-width: 620px) {
    .br .br-wrap, .br-band { width: calc(100% - 40px); }
    .br-head { padding: 44px 0 34px; }
    .br-head h1 { letter-spacing: .07em; }
    .br-lead { font-size: 16px; line-height: 1.9; }
    .br-btn { min-width: 0; padding: 12px 20px; }
    .br-sub { font-size: 23px; }
    .br-stats li, .br-stats li + li { padding: 16px 10px 16px 0; }
    .br-stats li:nth-child(even) { padding-left: 12px; }
    .br-authtxt { padding: 20px 18px; }
    .br-cert { padding: 34px 0 22px 18px; }
    .br-tag { left: 18px; top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .br *, .br *::before, .br *::after { transition-duration: .01ms !important; }
}
