/* dHConcept custom CSS - 20260304-v8
 * 各區塊完全獨立，互不干擾
 *
 * 區塊 0：margin-header margin-top 修正（Slogan 完整顯示）
 * 區塊 1：Banner（.margin-header .carousel-section-case）- 橫向滑動
 * 區塊 2：Slogan（.carousel-consult h2）- 不動
 * 區塊 3：三張圖（#stepbystep）- 手機版修正
 * 區塊 4：單品改造空間（#dh-section-single）- min-width 修正
 * 區塊 5：探索更多（#dh-section-explore）- min-width 修正
 * 區塊 6：媒體聚光燈（#dh-section-media）- min-width 修正
 * 區塊 7：Apple 等級文字系統 - 全首頁字體大小統整
 */

/* ========================================================
   區塊 0：修正 margin-header margin-top
   原始設定 80px（只有 navbar 高度），但 fixed header = 124px
   需要改為 124px 才能讓 Slogan 第一行完整顯示
   ======================================================== */
.margin-header {
    margin-top: 124px !important;
}

/* ========================================================
   區塊 1：Banner 橫向滑動（僅限 .margin-header 內）
   ======================================================== */

.margin-header .carousel-section-case {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
}

.margin-header .carousel-section-case::-webkit-scrollbar {
    display: none !important;
}

.margin-header .carousel-section-case .content-carousel {
    flex: 0 0 75vw !important;
    width: 75vw !important;
    min-width: 75vw !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

@media (min-width: 1024px) {
    .margin-header .carousel-section-case {
        gap: 28px !important;
    }
    .margin-header .carousel-section-case .content-carousel {
        flex: 0 0 calc((100% - 2 * 28px) / 3.5) !important;
        width: calc((100% - 2 * 28px) / 3.5) !important;
        min-width: 0 !important;
    }
}

.margin-header .carousel-section-case .content-carousel img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    display: block !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07) !important;
}

.margin-header .carousel-section-case .embed-responsive {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    height: auto !important;
    overflow: hidden !important;
}

.margin-header .carousel-section-case .embed-responsive-item,
.margin-header .carousel-section-case .embed-responsive img {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
}

.margin-header .carousel-section-case .slick-list {
    overflow: hidden !important;
}

/* ========================================================
   區塊 2：Slogan - 完全不動，不加任何樣式
   ======================================================== */

/* ========================================================
   區塊 3：三張圖（#stepbystep）- 手機版修正
   ======================================================== */

@media (max-width: 767px) {
    #stepbystep .carousel-section {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
        gap: 16px !important;
        padding: 0 8px !important;
        box-sizing: border-box !important;
    }

    #stepbystep .carousel-section::-webkit-scrollbar {
        display: none !important;
    }

    #stepbystep .carousel-section .style-list {
        flex: 0 0 85vw !important;
        width: 85vw !important;
        min-width: 85vw !important;
        scroll-snap-align: start !important;
        box-sizing: border-box !important;
        float: none !important;
        display: block !important;
    }

    #stepbystep .carousel-section .style-list .check-div {
        position: relative !important;
        width: 100% !important;
        height: 0 !important;
        padding-top: 50.625% !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    #stepbystep .carousel-section .style-list h2 {
        position: static !important;
        color: #333 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-align: left !important;
        padding: 8px 4px 4px !important;
        margin: 0 !important;
        white-space: normal !important;
        height: auto !important;
        background: transparent !important;
    }

    #stepbystep .carousel-section .style-list label {
        height: auto !important;
        display: block !important;
    }
}

/* ========================================================
   區塊 4：單品改造空間（#dh-section-single）
   ======================================================== */

#dh-section-single .carousel-section-case {
    overflow-x: auto !important;
    overflow-y: visible !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
}

#dh-section-single .carousel-section-case .item.style-list {
    flex: 0 0 100px !important;
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    height: 100px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 8px 4px !important;
    border-radius: 12px !important;
}

#dh-section-single .carousel-section-case .item.style-list img {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 4px !important;
}

#dh-section-single .carousel-section-case .item.style-list .dh-dhshop-icon-title {
    white-space: nowrap !important;
    overflow: visible !important;
    height: auto !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    color: #1d1d1f !important;
}

#dh-section-single .carousel-section-case .item.style-list .dh-dhshop-icon-sub-title {
    white-space: nowrap !important;
    overflow: visible !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    color: #bf4800 !important;
}

/* ========================================================
   區塊 5：探索更多（#dh-section-explore）
   ======================================================== */

#dh-section-explore .carousel-section-case {
    gap: 12px !important;
}

#dh-section-explore .carousel-section-case .style-list {
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    flex: 0 0 240px !important;
    box-sizing: border-box !important;
}

#dh-section-explore .carousel-section-case .style-list img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 10px !important;
}

@media (min-width: 768px) {
    #dh-section-explore .carousel-section-case .style-list {
        width: 340px !important;
        min-width: 340px !important;
        max-width: 340px !important;
        flex: 0 0 340px !important;
    }
}

/* ========================================================
   區塊 6：媒體聚光燈（#dh-section-media）
   ======================================================== */

#dh-section-media .carousel-section-case {
    gap: 12px !important;
}

#dh-section-media .carousel-section-case .style-list {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    flex: 0 0 220px !important;
    box-sizing: border-box !important;
}

#dh-section-media .carousel-section-case .style-list img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

@media (min-width: 768px) {
    #dh-section-media .carousel-section-case .style-list {
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
        flex: 0 0 280px !important;
    }
}

/* ========================================================
   區塊 7：Apple 等級文字系統
   設計標準：Apple SF Pro / apple.com 排版層級
   字體層級（繁體中文適用）：
     Title 1  : 28px  weight 600  → 區塊大標題（H2）
     Title 2  : 22px  weight 600  → 子區塊標題（H3）
     Title 3  : 17px  weight 600  → card 標題
     Body     : 14-15px weight 400 → 說明文字
     Footnote : 13px  weight 500  → icon 標題
     Caption  : 11px  weight 400  → icon 副標
   ======================================================== */

/* 全域字體渲染優化 */
body {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

/* ── Slogan 第一行：主標 Title 1 ─────────────────────── */
.carousel-consult h2 span:first-child {
    font-size: 28px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.5 !important;
    color: #1d1d1f !important;
}

/* ── Slogan 第二、三行：副標 Title 2 ─────────────────── */
.carousel-consult h2 span:not(:first-child) {
    font-size: 20px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.6 !important;
    color: #6e6e73 !important;
}

/* ── 各區塊大標題 H2：Title 1 ────────────────────────── */
#stepbystep > h2,
#dh-section-single > h2,
#dh-section-explore > h2,
#dh-section-media > h2 {
    font-size: 28px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.4 !important;
    color: #1d1d1f !important;
}

/* 區塊大標題內的橘色 highlight span */
#stepbystep > h2 span,
#dh-section-single > h2 span,
#dh-section-explore > h2 span,
#dh-section-media > h2 span {
    font-size: inherit !important;
    font-weight: 600 !important;
}

/* ── 三張圖子標題（歐巴地板® 地面打造超方便）Title 2 ── */
#stepbystep .carousel-section h2 {
    font-size: 20px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.45 !important;
    color: #1d1d1f !important;
}

/* ── 探索更多 card 標題 Title 3 ──────────────────────── */
#dh-section-explore .carousel-section-case .style-list h3 {
    font-size: 17px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1.5 !important;
    color: #1d1d1f !important;
    margin: 8px 0 4px !important;
}

/* ── 探索更多 card 說明文字 Body ─────────────────────── */
#dh-section-explore .carousel-section-case .style-list h4 {
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.6 !important;
    color: #6e6e73 !important;
    margin: 0 0 8px !important;
}

/* ── 媒體聚光燈 card 標題 Title 3 ────────────────────── */
#dh-section-media .carousel-section-case .style-list h3 {
    font-size: 17px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1.5 !important;
    color: #1d1d1f !important;
    margin: 8px 0 4px !important;
}

/* ── 媒體聚光燈 card 說明文字 Body ──────────────────── */
#dh-section-media .carousel-section-case .style-list h4 {
    font-size: 13px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.6 !important;
    color: #6e6e73 !important;
    margin: 0 0 8px !important;
}
