/* ==========================================================================
   單一品牌頁 brand.css
   開場（共用 .page-hero--brand）→ 品牌故事 → 水晶外觀大圖帶 → 品牌特色
   → 產品 → 相關文章
   ========================================================================== */

/* ---------- 品牌故事：左圖右文 ---------- */
.brand-intro {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 90px;
}

.brand-intro__media {
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.brand-intro__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 25% center;
}

.brand-intro__body p {
    font-size: 16px;
    line-height: 2;
    color: var(--color-muted);
}

.brand-intro__en {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--color-line);
    font-family: var(--font-en);
    font-size: 18px !important;
    font-style: italic;
    line-height: 1.8 !important;
}

/* ---------- 水晶外觀：全幅大圖帶 ---------- */
.brand-band {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 86vh;
    padding: 0 0 12vh;
    overflow: hidden;
}

.brand-band__media {
    position: absolute;
    inset: 0;
}

.brand-band__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-band__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, transparent 25%, rgba(21, 16, 13, 0.35) 60%, rgba(21, 16, 13, 0.92) 100%);
}

.brand-band__inner {
    position: relative;
}

.brand-band__en {
    margin: 0 0 14px;
    font-family: var(--font-en);
    font-size: clamp(56px, 9vw, 150px);
    font-weight: 500;
    line-height: 1;
}

.brand-band__en em {
    color: var(--color-gold);
}

.brand-band__zh {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 20px;
    letter-spacing: 0.2em;
    color: var(--color-muted);
}

/* ---------- 品牌特色：四欄編號 ---------- */
.brand-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--color-line);
    counter-reset: feature;
}

.brand-features li {
    padding: 36px 28px 12px 0;
    counter-increment: feature;
}

.brand-features li + li {
    padding-left: 28px;
    border-left: 1px solid var(--color-line);
}

.brand-features li::before {
    content: "0" counter(feature);
    display: block;
    margin-bottom: 22px;
    font-family: var(--font-en);
    font-size: 40px;
    line-height: 1;
    color: var(--color-gold);
}

.brand-features h3 {
    margin-bottom: 12px;
    font-size: 19px;
}

.brand-features p {
    font-size: 15px;
    color: var(--color-muted);
}

.brand-filter {
    justify-content: flex-end;
}

/* ---------- 企業與設計師合作（VEYRON） ---------- */
.brand-partner {
    padding: 120px 0;
    border-top: 1px solid var(--color-line);
    background: var(--color-dark);
}

.brand-partner__inner {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
}

.brand-partner__body p {
    font-size: 17px;
    line-height: 2;
    color: var(--color-text);
}

.brand-partner__body .brand-partner__note {
    font-size: 14px;
    color: var(--color-muted);
}

.brand-partner__info {
    margin: 32px 0 40px;
    border-top: 1px solid var(--color-line);
}

.brand-partner__info > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-line);
    font-size: 15px;
}

.brand-partner__info dt {
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--color-gold);
}

.brand-partner__info dd {
    margin: 0;
}

.brand-partner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ==========================================================================
   X AUDIO SUB 重低音系列頁（xaudio-sub.html）
   ========================================================================== */

/* 三欄版的特色清單（箱體設計） */
.brand-features--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 尺寸與價格：圓形依吋數等比例縮放（--in = 吋數） */
.sub-sizes {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--color-line);
}

.sub-size {
    display: flex;
    flex-direction: column;
    padding: 36px 22px 10px;
    text-align: center;
}

.sub-size + .sub-size {
    border-left: 1px solid var(--color-line);
}

.sub-size__driver {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 150px;
    margin-bottom: 26px;
}

.sub-size__driver span {
    display: block;
    width: calc(var(--in) * 9px);
    aspect-ratio: 1;
    border: 1px solid rgba(184, 154, 112, 0.55);
    border-radius: 50%;
    background: radial-gradient(circle, #3A2F27 0 18%, #1A1411 19% 62%, #2A211B 63% 100%);
    box-shadow: inset 0 0 0 6px #120E0B;
    transition: border-color 0.4s var(--ease), transform 0.6s var(--ease);
}

.sub-size:hover .sub-size__driver span {
    border-color: var(--color-gold);
    transform: scale(1.04);
}

.sub-size__name {
    margin: 0;
    font-size: 16px;
    letter-spacing: 0.12em;
}

.sub-size__name span {
    margin-right: 4px;
    font-family: var(--font-en);
    font-size: 46px;
    line-height: 1;
    letter-spacing: 0;
}

.sub-size__price {
    margin: 10px 0 22px;
    font-family: var(--font-en);
    font-size: 20px;
    color: var(--color-gold);
}

.sub-size__info {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid var(--color-line);
    text-align: left;
}

.sub-size__info div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

.sub-size__info dt {
    color: var(--color-muted);
}

.sub-size__info dd {
    margin: 0;
    text-align: right;
}

/* 產品展示：四張方形照片 */
.sub-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.sub-gallery figure {
    margin: 0;
}

.sub-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #000;
}

.sub-gallery figure.is-light img {
    background: #fff;
}

.sub-gallery figcaption {
    margin-top: 12px;
    font-size: 13px;
    letter-spacing: 0.12em;
    color: var(--color-muted);
}

/* 詳細規格：預設收起 */
.sub-specs {
    margin-top: 56px;
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.sub-specs summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    font-size: 15px;
    letter-spacing: 0.12em;
    cursor: pointer;
    list-style: none;
}

.sub-specs summary::-webkit-details-marker {
    display: none;
}

.sub-specs summary::after {
    content: "+";
    font-family: var(--font-en);
    font-size: 24px;
    line-height: 1;
    color: var(--color-gold);
    transition: transform 0.3s var(--ease);
}

.sub-specs[open] summary::after {
    transform: rotate(45deg);
}

.sub-specs__scroll {
    overflow-x: auto;
}

.sub-specs__table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 14px;
}

.sub-specs__table th,
.sub-specs__table td {
    padding: 14px 12px 14px 0;
    border-top: 1px solid var(--color-line);
    text-align: left;
    vertical-align: top;
}

.sub-specs__table thead th {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--color-gold);
}

.sub-specs__table tbody th {
    font-family: var(--font-en);
    font-weight: 500;
    white-space: nowrap;
}

.sub-specs__note {
    margin: 4px 0 22px;
    font-size: 13px;
    color: var(--color-muted);
}

/* ---------- RWD ---------- */
@media (max-width: 960px) {
    .brand-intro {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .brand-intro__media {
        aspect-ratio: 16 / 11;
    }

    .brand-band {
        min-height: 70vh;
    }

    .brand-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-features li:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .brand-filter {
        justify-content: flex-start;
    }

    .brand-partner {
        padding: 90px 0;
    }

    .brand-partner__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .brand-features--3 {
        grid-template-columns: 1fr;
    }

    .brand-features--3 li,
    .brand-features--3 li + li {
        padding: 28px 0 8px;
        border-left: 0;
    }

    .brand-features--3 li + li {
        border-top: 1px solid var(--color-line);
    }

    /* 尺寸：平板改成可左右滑動的一排 */
    .sub-sizes {
        grid-template-columns: repeat(5, minmax(180px, 1fr));
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .sub-size {
        scroll-snap-align: start;
    }

    .sub-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    /* 劇院圖在直式畫面保留左側喇叭 */
    .brand-band--theater .brand-band__media img {
        object-position: 16% center;
    }

    .brand-band__zh {
        font-size: 16px;
        letter-spacing: 0.1em;
    }

    .brand-features {
        grid-template-columns: 1fr;
    }

    .brand-features li,
    .brand-features li + li {
        padding: 28px 0 8px;
        border-left: 0;
    }

    .brand-features li + li {
        border-top: 1px solid var(--color-line);
    }
}
