:root {
    --base-font-size: 16px;
    --mobile-font-size: 16px;
    --primary-color: #5f4c3f;
    --primary-color-rgb: 96, 76, 63;
    --secondary-color: #C9BAAE;
    --link-color: #5f4c3f;
    --link-hover-color: #968880;
    --header-bg-color: transparent;
    --header-text-color: #ffffff;
    --header-link-color: #ffffff;
    --header-link-hover-color: #ffffff;
    --header-link-hover-bg-color: transparent;
    --header-icon-color: #ffffff;
    --header-icon-hover-color: #ffffff;
    --header-mobile-icon-color: #5f4c3f;
    --button-bg-color: #5f4c3f;
    --button-text-color: #ffffff;
    --button-bg-hover-color: #968880;
    --button-text-hover-color: #ffffff;
    --outline-button-border-color: #5f4c3f;
    --outline-button-text-color: #ffffff;
    --outline-button-bg-color: #5f4c3f;
    --outline-button-border-hover-color: #968880;
    --outline-button-text-hover-color: #ffffff;
    --outline-button-bg-hover-color: #968880;
    --footer-bg-color: #C9BAAE;
    --footer-text-color: #5f4c3f;
    --footer-link-color: #5f4c3f;
    --footer-link-hover-color: #fff;
    --light-gray: #F5F5F5;
    --bg-color: #DBD5CC;
    --bg-light-color: #FAFAFA;
    --sub-color: #968880;
    --accent-color: #C5AE92;
    --highlight: #C5AE92;
    --gray: #C2C2C2;
    --font-family-base: "Noto Serif TC", serif;
    --font-family-heading: "Italiana", sans-serif;
    --font-family-secondary: "Noto Sans TC", sans-serif;
    --font-family-english: "Nunito", sans-serif;
    --text-color: #808080;
    --line-height: 1.5;
    --basic-margin: 1.5rem;

    --page-top-padding: 130px;
    /* 區塊間距變數 - 方便全站調整 */
    --section-padding: 40px;
    /* 標準區塊 */
    --section-padding-sm: 20px;
    /* 小區塊 */

    /* 標題字體大小變數 */
    --title-size: 4rem;
    /* 大標題（首頁區塊標題） */
    --page-title-size: 2rem;
    /* 頁面標題 */
    --section-title-size: 1.65rem;
    /* 區塊標題 */
    --middle-title-size: 1.2rem;
    /* 中標題（卡片標題） */
}

@media (max-width: 1220px) {
    :root {
        --page-top-padding: 10px;
    }
}

/* 區塊間距與字體大小響應式調整 */
@media (max-width: 991px) {
    :root {
        --section-padding: 30px;
        --section-padding-sm: 10px;
        --title-size: 3rem;
        --page-title-size: 1.8rem;
        --section-title-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 20px;
        --basic-margin: 1rem;
        --title-size: 2.5rem;
        --page-title-size: 1.6rem;
        --section-title-size: 1.4rem;
        --middle-title-size: 1.05rem;
    }
}

/* ============================================
   區塊間距 Section Spacing
   ============================================ */
.page-top-padding {
    padding-top: var(--page-top-padding);
}

.section-spacing,
.row.section-spacing {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.section-spacing-sm,
.row.section-spacing-sm {
    padding-top: var(--section-padding-sm);
    padding-bottom: var(--section-padding-sm);
}

/* 只有上方間距 */
.section-pt,
.row.section-pt {
    padding-top: var(--section-padding);
}

.section-pt-sm,
.row.section-pt-sm {
    padding-top: var(--section-padding-sm);
}

/* 只有下方間距 */
.section-pb,
.row.section-pb {
    padding-bottom: var(--section-padding);
}

.section-pb-sm,
.row.section-pb-sm {
    padding-bottom: var(--section-padding-sm);
}

/* ============================================
   共用樣式 - Utility Classes
   ============================================ */

/* --- 文字行數限制 --- */
.text-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    white-space: normal;
    text-align-last: left;
}

.text-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    white-space: normal;
    text-align-last: left;
}

/* --- Slick 輪播箭頭共用樣式（桌面版） --- */
.slick-arrow-base,
.news-slider .slick-prev,
.news-slider .slick-next,
.physician-slider .slick-prev,
.physician-slider .slick-next,
.certificate-slider .slick-prev,
.certificate-slider .slick-next,
.column-slider .slick-prev,
.column-slider .slick-next,
.card-slider .slick-prev,
.card-slider .slick-next,
.col3-slider .slick-prev,
.col3-slider .slick-next,
.col4-slider .slick-prev,
.col4-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 0;
    opacity: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* 桌面版箭頭位置 - 左箭頭 */
.news-slider .slick-prev,
.physician-slider .slick-prev {
    left: -50px;
}

/* 桌面版箭頭位置 - 右箭頭 */
.news-slider .slick-next,
.physician-slider .slick-next {
    right: -50px;
}

/* 小型輪播箭頭位置（證書、專欄、卡片等） */
.certificate-slider .slick-prev,
.column-slider .slick-prev,
.card-slider .slick-prev,
.col3-slider .slick-prev,
.col4-slider .slick-prev {
    left: -30px;
    top: 40%;
    width: 30px;
    height: 30px;
    transform: none;
    /* 取消共用區塊的 translateY(-50%) */
}

.certificate-slider .slick-next,
.column-slider .slick-next,
.card-slider .slick-next,
.col3-slider .slick-next,
.col4-slider .slick-next {
    right: -30px;
    top: 40%;
    width: 30px;
    height: 30px;
    transform: none;
    /* 取消共用區塊的 translateY(-50%) */
}

/* 箭頭 before 內容 - 大型輪播 */
.news-slider .slick-prev:before,
.news-slider .slick-next:before,
.physician-slider .slick-prev:before,
.physician-slider .slick-next:before {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.news-slider .slick-prev:before {
    background-image: url('../images/customize/arrow-prev.svg');
}

.news-slider .slick-next:before {
    background-image: url('../images/customize/arrow-next.svg');
}

.physician-slider .slick-prev:before {
    background-image: url('../images/customize/arrow-prev-gray.svg');
}

.physician-slider .slick-next:before {
    background-image: url('../images/customize/arrow-next-gray.svg');
}

/* 箭頭 before 隱藏 - 小型輪播（使用 img 標籤） */
.certificate-slider .slick-prev::before,
.certificate-slider .slick-next::before,
.column-slider .slick-prev::before,
.column-slider .slick-next::before,
.card-slider .slick-prev::before,
.card-slider .slick-next::before,
.col3-slider .slick-prev::before,
.col3-slider .slick-next::before,
.col4-slider .slick-prev::before,
.col4-slider .slick-next::before {
    display: none;
}

/* 小型輪播箭頭圖片 */
.certificate-slider .slick-prev img,
.certificate-slider .slick-next img,
.column-slider .slick-prev img,
.column-slider .slick-next img,
.card-slider .slick-prev img,
.card-slider .slick-next img,
.col3-slider .slick-prev img,
.col3-slider .slick-next img,
.col4-slider .slick-prev img,
.col4-slider .slick-next img {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain;
    display: block !important;
}

/* 箭頭 hover 效果 */
.news-slider .slick-prev:hover,
.news-slider .slick-next:hover,
.physician-slider .slick-prev:hover,
.physician-slider .slick-next:hover,
.certificate-slider .slick-prev:hover,
.certificate-slider .slick-next:hover,
.column-slider .slick-prev:hover,
.column-slider .slick-next:hover,
.card-slider .slick-prev:hover,
.card-slider .slick-next:hover,
.col3-slider .slick-prev:hover,
.col3-slider .slick-next:hover,
.col4-slider .slick-prev:hover,
.col4-slider .slick-next:hover {
    opacity: 0.8;
}

/* --- 手機版輪播箭頭共用樣式 --- */
@media (max-width: 768px) {

    .news-slider .slick-prev,
    .news-slider .slick-next,
    .physician-slider .slick-prev,
    .physician-slider .slick-next,
    .column-slider .slick-prev,
    .column-slider .slick-next,
    .certificate-slider .slick-prev,
    .certificate-slider .slick-next,
    .col3-slider .slick-prev,
    .col3-slider .slick-next,
    .col4-slider .slick-prev,
    .col4-slider .slick-next {
        width: 35px;
        height: 35px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    /* 手機版箭頭位置 */
    .news-slider .slick-prev,
    .physician-slider .slick-prev,
    .column-slider .slick-prev,
    .certificate-slider .slick-prev,
    .col3-slider .slick-prev,
    .col4-slider .slick-prev {
        left: -10px;
        z-index: 10;
    }

    .news-slider .slick-next,
    .physician-slider .slick-next,
    .column-slider .slick-next,
    .certificate-slider .slick-next,
    .col3-slider .slick-next,
    .col4-slider .slick-next {
        right: -10px;
        z-index: 10;
    }

    /* 手機版隱藏 before 內容 */
    .news-slider .slick-prev:before,
    .news-slider .slick-next:before,
    .physician-slider .slick-prev:before,
    .physician-slider .slick-next:before,
    .column-slider .slick-prev:before,
    .column-slider .slick-next:before,
    .certificate-slider .slick-prev:before,
    .certificate-slider .slick-next:before,
    .col3-slider .slick-prev:before,
    .col3-slider .slick-next:before,
    .col4-slider .slick-prev:before,
    .col4-slider .slick-next:before {
        display: none;
    }

    /* 手機版箭頭圖片樣式 */
    .slick-arrow-mobile,
    .news-slider .slick-arrow-mobile,
    .physician-slider .slick-arrow-mobile,
    .column-slider .slick-arrow-mobile,
    .certificate-slider .slick-arrow-mobile,
    .col3-slider .slick-arrow-mobile,
    .col4-slider .slick-arrow-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .slick-arrow-mobile img,
    .news-slider .slick-arrow-mobile img,
    .physician-slider .slick-arrow-mobile img,
    .column-slider .slick-arrow-mobile img,
    .certificate-slider .slick-arrow-mobile img,
    .col3-slider .slick-arrow-mobile img,
    .col4-slider .slick-arrow-mobile img {
        width: 20px !important;
        height: 20px !important;
        object-fit: contain;
    }

    /* 調整 news-slider 手機版箭頭垂直位置 */
    .news-slider .slick-prev,
    .news-slider .slick-next {
        top: 36%;
    }
}


/* --- 圖片遮罩 + MORE 按鈕共用樣式 --- */
.img-hover-overlay {
    position: relative;
    overflow: hidden;
}

.img-hover-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.img-hover-overlay:hover::before {
    opacity: 1;
}

/* MORE 按鈕共用樣式 */
.hover-more-btn {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.hover-more-btn:hover {
    opacity: 1;
}

.hover-more-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hover-more-btn img {
    width: 30px;
    height: 30px;
    display: block;
}

/* --- 表單 Placeholder 共用樣式 --- */
.form-control::placeholder {
    color: var(--sub-color) !important;
    opacity: 1 !important;
    font-size: 1rem !important;
}

.form-control::-webkit-input-placeholder {
    color: var(--sub-color) !important;
    opacity: 1 !important;
    font-size: 1rem !important;
}

.form-control::-moz-placeholder {
    color: var(--sub-color) !important;
    opacity: 1 !important;
    font-size: 1rem !important;
}

.form-control:-ms-input-placeholder {
    color: var(--sub-color) !important;
    opacity: 1 !important;
    font-size: 1rem !important;
}

.form-control::-ms-input-placeholder {
    color: var(--sub-color) !important;
    opacity: 1 !important;
    font-size: 1rem !important;
}

/* --- Middle Title 共用樣式 --- */
.middle-title-clamp {
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    white-space: normal;
    text-align-last: left;
    margin: 1rem 0 0 0;
    color: var(--link-color);
}

.middle-title-clamp:hover {
    color: var(--link-hover-color);
}

/*選單調整*/
body {
    font-family: var(--font-family-base) !important;
    font-weight: 500;
    overflow-x: hidden;
    max-width: 100vw;
    color: var(--text-color);
    line-height: var(--line-height);
    scroll-padding-top: 150px;
}

main {
    padding-top: var(--page-top-padding);
}

.html-info p,
p,
.html-info,
.middle-title,
.clinic-detail-info {
    text-align: justify;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    line-height: var(--line-height);
}

html {
    overflow-x: hidden;
    max-width: 100vw;
    scroll-behavior: smooth;
}

section,
.row {
    padding-top: 0;
    padding-bottom: 0;
}

ul li,
ol li {
    margin-bottom: 0.5rem;
}

/* ============================================
   捲軸美化樣式
   ============================================ */
/* Firefox 捲軸樣式 */
* {
    scrollbar-width: thin;
    scrollbar-color: #cfc9c5 #f5f5f5;
}

/* Webkit 瀏覽器捲軸樣式（Chrome, Safari, Edge） */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #cfc9c5 #f5f5f5;
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #bfb7b2;
}

::-webkit-scrollbar-thumb:active {
    background: #bfb7b2;
}

/* 橫向捲軸 */
::-webkit-scrollbar-horizontal {
    height: 6px;
}

/* 捲軸角落 */
::-webkit-scrollbar-corner {
    background: #f5f5f5;
}

footer .small-title,
.navi-item ul li a span {
    font-family: var(--font-family-base);
    font-weight: 500;
    font-size: 1.02rem;
}

.navi-item ul li a span {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.navi-item {
    width: auto;
}

.navbar {
    background-color: var(--secondary-color);
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    top: 30px;
    z-index: 999;
}

a {
    text-decoration: none;
    transition: transform 0.3s ease;
}

ol {
    list-style: decimal;
    padding-left: 25px;
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style-position: outside;
    padding-left: 20px;
}

h4 {
    font-size: 1.1rem;
    margin-bottom: var(--basic-margin);
}

.btn {
    min-width: 80px;
}

.bg-light {
    background-color: var(--light-gray) !important;
}

.pagging-title {
    font-family: var(--font-family-heading);
}

.pagging-title span {
    font-family: var(--font-family-base);
}

.text-gray {
    color: var(--text-color);
}

.deco-color {
    color: var(--accent-color);
}

section.style404 {
    height: auto;
    padding-top: 0px;
    padding-bottom: 50px;
}

.style404 .title {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--font-family-base);
    text-align: center;
    font-weight: 400;
}

.style404 .title span {
    font-size: 2rem;
}

.style404 p.middle-title {
    font-size: 1rem;
    text-align: center;
}

.html-info.small p {
    font-size: 1rem;
}

.btn-full:hover {
    background-color: var(--button-bg-hover-color);
}

.breadcrumb {
    margin-bottom: 0;
    padding: 0.5rem 0 0.75rem 0;
}

.breadcrumb-item.active {
    color: var(--text-color);
}

@media (max-width: 1199px) {
    section.style404 {
        padding-top: 0px;
    }
}

@media (max-width: 768px) {
    section.style404 {
        padding-top: 2rem;
        height: auto;
        min-height: inherit;
    }

    .style404 .title {
        font-size: 6rem;
    }

    .style404 .title span {
        font-size: 1.5rem;
    }
}

@media (min-width: 1221px) {
    .navbar {
        max-width: 1300px;
    }

    .nav-logo .overlayer.active {
        display: none;
    }
}

@media (max-width: 1220px) {
    .navbar {
        display: none !important;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        display: flex;
        width: 100%;
        padding: 1rem 0;
        z-index: 1000;
        height: 67px;
    }

    .mobile-nav {
        display: block;
    }

    body {
        padding-top: 67px;
    }
}

.navbar.fixed {
    padding-top: 10px;
}

.navbar.fixed::after {
    display: none;
}

.navbar.fixed .navi-item.naviMain {
    -ms-flex-preferred-size: 0;
    flex-basis: auto;
    -ms-flex-positive: 1;
    -webkit-box-flex: 1;
    flex-grow: inherit;
    max-width: inherit;
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: inherit;
}

.naviMain {
    position: relative;
}

.naviMain ul {
    justify-content: space-around;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.naviMain ul li {
    position: relative;
    padding: 0px 20px;
    margin-bottom: 0;
}

.naviMain ul li a::after {
    content: '/';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%) scaleY(1.5);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 200;
    font-size: 1.2rem;
}

.naviMain ul li:last-child a::after {
    display: none;
}

.mobile-menu {
    background-color: var(--secondary-color);
}

.hamburger .line {
    background-color: var(--primary-color);
}

.mobile-nav,
.mobile-nav .submenu {
    background-color: #f5f5f4;
    color: #5a5a5a;
}

.zeynep ul>li:not(:last-child)>a,
.mobile-nav ul>li:not(:last-child)>a {
    border-bottom: 1px solid #e8e8e8;
}

.mobile-nav ul>li>a:hover {
    background-color: #f5f5f4;
    color: var(--primary-color);
}

.zeynep ul>li>a {
    font-weight: 500;
    padding: 18px 0px;
}

.zeynep .submenu>label {
    padding-left: 20px;
}

.navi-item:first-child {
    position: absolute;
    top: -26px;
    right: 30px;
    z-index: 10;
    display: flex;
    align-items: flex-end;
    height: auto;
    background: var(--primary-color);
    padding: 0 20px;
    border-radius: 20px 20px 0 0;
}

.member-item li>a {
    text-align: center;
    padding: 0 5px;
    font-size: 0.95rem;
}

.mobile-menu.left-style .mobile-logo {
    float: left;
    margin-left: 10px;
    flex-grow: 1;
}

.mobile-menu.left-style .mobile-btn {
    padding: 0 5px;
    font-size: 1.1rem;
}

.navbar.fixed .navi-item:nth-child(2) {
    -ms-flex: 0 0 180px;
    flex: 0 0 180px;
    max-width: 180px;
}

/* ============================================
   手機版選單 - 第三階層選單樣式
   ============================================ */

.mobile-submenu-item {
    margin-top: 0;
}

.mobile-submenu-group {
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.mobile-submenu-group:last-child {
    border-bottom: none;
}

.mobile-submenu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-submenu-header:hover {
    background-color: rgba(var(--primary-color-rgb), 0.05);
}

.mobile-submenu-group.is-open .mobile-submenu-header {
    background-color: rgba(var(--primary-color-rgb), 0.08);
}

.mobile-submenu-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
}

.mobile-submenu-icon {
    font-size: 0.85rem;
    color: var(--sub-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.mobile-submenu-group.is-open .mobile-submenu-icon {
    transform: rotate(180deg);
}

.mobile-submenu-content {
    display: none;
}

.mobile-submenu-link {
    display: block;
    padding: 10px 20px 10px 36px;
    color: #5a5a5a;
    font-size: 0.88rem;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
}

.mobile-submenu-link::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: var(--sub-color);
    border-radius: 50%;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.mobile-submenu-link:hover {
    background-color: rgba(var(--primary-color-rgb), 0.08);
    color: var(--primary-color);
    padding-left: 40px;
}

.mobile-submenu-link:hover::before {
    opacity: 1;
    background-color: var(--primary-color);
}

.social-link {
    margin-bottom: 0px;
}

.social-link>li>a {
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    color: var(--primary-color);
    font-size: 28px;
}

#share-btn {
    color: #fff;
    background-color: var(--primary-color);
    border: 1px solid transparent;
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 1rem;
    display: none;
}

#gotop {
    border: none;
    background-color: transparent;
    color: var(--primary-color);
}

/* 搜尋框樣式 */
.navSearch {
    display: flex;
    align-items: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 50px;
    padding: 0px 10px;
    width: 100%;
    max-width: 180px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-box input[type="text"] {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 8px 8px 0;
    color: #333;
    font-family: var(--font-family-base);
    font-size: 14px;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    border-radius: 0;
}

.search-box input[type="text"]::placeholder {
    color: #999;
}

.search-box .search-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 4px;
    transition: opacity 0.3s ease;
}

.search-box .search-btn:hover {
    opacity: 0.7;
}

.search-box .search-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.mobile-nav .search-box {
    margin-left: 20px;
    max-width: 80%;
}

/* 手機選單底部搜尋框 */
.mobile-nav .mobile-search-bottom {
    margin: 20px 20px 15px 20px;
    max-width: calc(100% - 40px);
    border: 1px solid #e8e8e8;
    transition: opacity 0.2s ease;
}

.mobile-nav .mobile-search-bottom:hover {
    border-color: var(--sub-color);
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.15);
}

.btn-reservation {
    background-color: var(--button-bg-color);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px 20px 0 0;
    text-decoration: none;
    font-weight: 500;
    height: auto;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(50, 43, 43, 0.1);
    transition: all 0.3s ease;
    margin-bottom: -1px;
    width: 160px;
    text-align: center;
}

.btn-reservation:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);

}

.mobile-nav .btn-reservation {
    padding: 8px 16px;
    border-radius: 20px;
    width: 80%;
    display: block;
    margin-left: 19px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

footer {
    border-top: 10px solid var(--primary-color);
}

/* 輪播圖弧形遮罩 */
.index-banner-slider {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.index-banner-for {
    max-height: 100vh;
    overflow: hidden;
    background-color: var(--bg-light-color);
    width: 100%;
    position: relative;
}

.index-banner-for .slick-list {
    overflow: hidden;
}

.index-banner-for .slick-slide {
    float: left;
}

.index-banner-for .slick-item {
    height: 100%;
    width: 100%;
    position: relative;
}

.index-banner-for .slick-item picture,
.index-banner-for .slick-item img {
    height: 100%;
    object-fit: cover;
    width: 100%;
    display: block;
    max-width: 100%;
}

.banner-arc-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 2;
    pointer-events: none;
    display: block;
}

.index-banner-slider .slick-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: auto;
}

.slick-dots li button::before {
    background-color: var(--secondary-color);
    opacity: 1;
}

.slick-dots li.slick-active button::before {
    background-color: var(--primary-color);
    opacity: 1;
}

.slick-dotted.slick-slider {
    margin-bottom: 0;
}

/* 響應式設計：手機版調整 */
@media (max-width: 768px) {
    .index-banner-slider {
        width: 100%;
        overflow: hidden;
    }

    .index-banner-for {
        max-height: none;
        height: auto;
        width: 100%;
    }

    .index-banner-for .slick-list {
        overflow: hidden;
    }

    .index-banner-for .slick-slide {
        float: left;
    }

    .index-banner-for .slick-item {
        height: auto;
        min-height: 300px;
    }

    .index-banner-for .slick-item picture,
    .index-banner-for .slick-item img {
        width: 100%;
        height: auto;
        min-height: 500px;
        max-height: 50vh;
        object-fit: cover;
        object-position: center;
    }

    .banner-arc-mask {
        bottom: 0;
    }

    .index-banner-slider .slick-dots {
        bottom: 15px;
    }

}

/*文字樣式*/
.title,
.html-info h2.title {
    color: var(--primary-color);
    font-size: var(--title-size);
    text-align: left;
    display: inline-block;
    margin-bottom: var(--basic-margin);
    font-family: var(--font-family-heading);
    border: none;
    padding: 0;
    line-height: 1;
    text-transform: uppercase;
}

.title>span:nth-child(2) {
    font-size: var(--middle-title-size);
    display: block;
    color: var(--primary-color);
    position: relative;
    z-index: 0;
    font-family: var(--font-family-base);
}

.page-title {
    text-align: left;
}

.middle-title {
    font-size: var(--middle-title-size);
    margin-bottom: var(--basic-margin);
    margin-top: 0.5rem;
    color: var(--link-color);
}

a:hover .middle-title {
    color: var(--link-hover-color);
}


p {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.title>span:nth-child(2)::before {
    display: none;
}

.title b {
    font-weight: 500;
}

.page-title-text {
    color: var(--primary-color);
    margin-bottom: 0px !important;
    font-size: var(--page-title-size);
}

.page-title-hr,
.divider {
    border: 0.7px solid var(--secondary-color);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* 文字區塊內的段落最多顯示三行 */
.text-box p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    white-space: normal;
    text-align-last: left;
}

/*首頁News列表*/
.index-news li a {
    font-size: 1rem;
    padding: 20px 0;
    display: block;
}

.index-news li a span {
    margin-right: 20px;
    color: var(--primary-color);
}

.index-news li {
    border-bottom: 1px solid var(--secondary-color);
}

.index-news-btn .btn-small {
    font-family: var(--font-family-english);
}

.index-news li a:hover,
.index-news li a:hover span {
    color: var(--sub-color);
}


.news-date,
.showcase-date,
.showcase-style-detail .article-date {
    color: var(--primary-color);
    display: block;
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    font-family: var(--font-family-english);
}

/* news-block 圖片固定比例 4:3 */
.news-block .img-box {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    /* 相容舊瀏覽器的備用方案 */
    padding-bottom: 75%;
    /* 3 / 4 × 100% */
}

.news-block .img-box>img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* hover 時圖片放大 */
a:hover .news-block .img-box>img {
    transform: scale(1.1);
}

/* 使用 aspect-ratio 時不需要 padding-bottom */
@supports (aspect-ratio: 1) {
    .news-block .img-box {
        padding-bottom: 0;
    }
}

/* More 按鈕樣式*/
.more-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--primary-color);
    font-family: var(--font-family-english);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.showcase-info .more-btn {
    bottom: 0;
    width: 100%;
}

.more-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 65%;
    transform: translateY(-50%);
    width: calc(100% - 60px);
    height: 1px;
    background-color: var(--secondary-color);
}

.news-slider .slider-item {
    margin-bottom: var(--basic-margin);
    padding: 0 10px;
}

.news-slider {
    margin-left: -10px;
    position: relative;
}

/* news-slider 箭頭樣式已移至共用區塊 */

@media (max-width: 768px) {
    .news-slider {
        margin-left: 0px;
    }
}

#index-news-image,
#index-news {
    background-color: var(--bg-light-color);
}

#index-news-image .middle-title,
.news-list-block .middle-title,
.blog-grid .text-box .middle-title {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    white-space: normal;
    text-align-last: left;
    height: 88px;
}

/* index-about */
.index-about-bg {
    background-color: var(--bg-light-color);
}

#index-about {
    background-color: #fff;
    position: relative;
}

#index-about .row {
    align-items: stretch;
}

#index-about .col-md-5,
#index-about .col-md-7 {
    display: flex;
}

.about-title-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
}


.about-content-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.about-description,
.html-info p.about-description {
    font-size: 1rem;
    margin: 0;
    margin-bottom: var(--basic-margin);
    flex: 1;
}

.html-info {
    margin-bottom: 0;
}

.index-editor {
    background-color: transparent;
}

.about-content-section .more-btn {
    margin-top: auto;
    margin-bottom: 0;
}

/*熱門影音*/
.video-section {
    /* padding 改用 .section-spacing-sm class 控制 */
    position: relative;
}

/* 主影片區域樣式 */
.main-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 比例 */
    background: #000;
    overflow: hidden;
    /* 移除圓角與陰影，讓接合處無縫 */
    border-radius: 0;
    box-shadow: none;
}

.main-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 覆蓋在影片上的圖片 (封面圖) */
.video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-cover.hidden {
    opacity: 0;
    pointer-events: none;
    /* 隱藏後不阻擋點擊 iframe */
    z-index: 0;
}

/* 播放按鈕圖示 */
.play-btn {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px;
    /* 視覺修正 */
}

.video-cover:hover .play-btn {
    background-color: var(--accent-color);
    transform: scale(1.1);
    opacity: 0.8;
}

/* 右側資訊區塊 */
.video-info-box {
    background-color: var(--bg-color);
    padding: 30px;
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.video-info-box h3 {
    font-size: var(--middle-title-size);
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

/* 下方縮圖輪播區塊 */
.thumbnail-slider-container {
    position: relative;
    padding: 20px 60px 0 60px;
    border-top: 1px solid var(--secondary-color);
}

.thumbnail-slider,
.video-list {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    gap: 15px;
    padding: 5px 0;
    list-style: none;
    margin: 0;
}

.thumbnail-slider::-webkit-scrollbar,
.video-list::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.thumb-item,
.video-list-item {
    flex: 0 0 220px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    min-width: 220px;
    overflow: hidden;
}

.thumb-item img,
.video-list-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    border: 2px solid transparent;
    aspect-ratio: 16/9;
    object-fit: cover;
    /* 確保圖片有最小尺寸 */
    min-height: 100px;
    background-color: #f0f0f0;
    transition: transform 0.3s ease;
}

.thumb-item.active img,
.video-list-item.is-active img {
    border-color: var(--highlight);
    box-shadow: 0 0 8px rgba(212, 160, 23, 0.5);
}

.thumb-item:hover,
.video-list-item:hover {
    opacity: 1;
}

.thumb-item:hover img,
.video-list-item:hover img {
    transform: scale(1.05);
}

/* 縮圖播放按鈕 */
.thumb-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.thumb-play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
}

.thumb-item:hover .thumb-play-btn,
.video-list-item:hover .thumb-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.thumb-item:hover .thumb-play-btn:hover,
.video-list-item:hover .thumb-play-btn:hover {
    background-color: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.1);
}

/* 隱藏影片內容（用於 JS 提取） */
.video-content-hidden {
    display: none;
}

/* 精選案例區塊 */
.featured-cases-section {
    background-color: #fff;
    position: relative;
    border-top: 1px solid var(--secondary-color);
}

.featured-cases-section .page-title {
    margin-bottom: 0;
    padding-bottom: 0;
}

.case-item {
    display: block;
    text-align: center;
    margin-bottom: var(--basic-margin);
    text-decoration: none;
    color: var(--link-color);
    border: 1px solid var(--secondary-color);
}

.case-item:hover {
    text-decoration: none;
    color: var(--link-hover-color);
}

.case-img-box {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 396 / 368;
    /* 參考 case1.png 的比例 396x368 */
}

.html-info .container .case-img-box img {
    margin: 0;
}

.case-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.case-item:hover .case-img-box img {
    transform: scale(1.05);
}

.case-item h3,
.html-info .case-item h3 {
    color: var(--link-color);
    font-size: var(--middle-title-size);
    display: block;
    border-top: 1px solid var(--secondary-color);
    padding: 5px 0;
    margin-bottom: 0;
}

.case-item:hover h3 {
    color: var(--link-hover-color);
}

/* 案例分隔線 */
.case-divider {
    height: 1px;
    background-color: var(--secondary-color);
    margin: 20px 0;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .case-img-box {
        aspect-ratio: 396 / 368;
    }

    .case-item {
        margin-bottom: 0px;
    }
}

/* 醫師團隊區塊 */
.physician-team-section {
    position: relative;
}

.physician-slider {
    margin-left: -10px;
    position: relative;
}

.physician-item {
    display: block;
    text-decoration: none;
    border: 1px solid #e1dcd4;
    margin: 10px 10px 30px 10px;
}

.physician-item:hover {
    text-decoration: none;
    color: inherit;
}

.physician-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 440 / 400;
    overflow: hidden;
    background-color: #efefef;
}

.physician-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.physician-item:hover .physician-photo {
    transform: scale(1.05);
}

.physician-name {
    color: var(--link-color);
    font-size: var(--middle-title-size);
    border-top: 1px solid #e1dcd4;
    padding: 10px;
}

.physician-item:hover .physician-name {
    color: var(--link-hover-color);
}

/* physician-slider 箭頭樣式已移至共用區塊 */

@media (max-width: 768px) {
    .physician-slider .slider-item {
        padding: 0px;
    }

    .physician-slider {
        margin-left: 0px;
    }
}


/* 輪播控制按鈕 - 使用與 news-slider 相同的樣式 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 0;
    opacity: 1;
}

.slider-prev {
    left: 5px;
}

.slider-next {
    right: 5px;
}

.slider-prev:before,
.slider-next:before {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.slider-prev:before {
    background-image: url('../images/customize/arrow-prev.svg');
}

.slider-next:before {
    background-image: url('../images/customize/arrow-next.svg');
}

.slider-prev:hover,
.slider-next:hover {
    opacity: 0.8;
}

/* 手機版適配 */
@media (max-width: 991px) {
    .video-info-box {
        /* 手機版時，資訊區塊也不要有間距，緊貼影片下方 */
        margin-top: 0;
        height: auto;
        padding: 20px;
    }

    .thumb-item {
        flex: 0 0 140px;
    }
}

@media (max-width: 768px) {

    /* 手機版箭頭樣式 - 與 physician-slider 相同 */
    .slider-btn {
        width: 35px;
        height: 35px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slider-prev {
        left: -10px;
        z-index: 10;
    }

    .slider-next {
        right: -10px;
        z-index: 10;
    }

    .slider-prev:before,
    .slider-next:before {
        width: 20px;
        height: 20px;
        background-size: contain;
    }

    .thumbnail-slider-container {
        padding: 20px 10px;
    }
}

/* page_banner 樣式調整 */
.pagging-header {
    position: relative;
    height: 56vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 500px;
}

.pagging-header picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.pagging-header picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    display: block;
}

/* 黑色遮罩 40% 透明度 */
.pagging-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* top-text 靠左對齊 */
.pagging-header .top-text {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-align: left;
}

.top-text h2 {
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.top-text p {
    color: #fff;
    position: relative;
    padding-left: 33%;
    font-size: 1.1rem;
}

/* 白色裝飾線 */
.top-text p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 31%;
    height: 1px;
    background-color: #fff;
}

/* 手機版適配 */
@media (max-width: 768px) {
    .pagging-header {
        height: 50vh;
    }

    .pagging-header .top-text {
        padding: 1.5rem;
    }
}

@media (max-width: 479px) {
    .top-text p::before {
        top: 0;
        width: 50%;
    }

    .top-text p {
        padding-left: 0;
        padding-top: 10px;
        margin-top: 30px;
    }
}

/*最新消息 關於我們*/
.news-list {
    padding: 0;
}

.news-list li,
.info-list li {
    border-bottom: 0.7px solid var(--sub-color);
}

.news-list li,
.info-list li {
    padding-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 0;
}

.news-list li a span {
    color: var(--primary-color);
}

.news-list li a:hover,
.news-list li a:hover span {
    color: var(--sub-color);
}

/* 醫師團隊 */
.doctor-list,
.news-list-block,
.clinic-list-section {
    margin-top: var(--section-padding-sm);
    margin-bottom: var(--basic-margin);
}

.doctor-card {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: all 0.3s ease;
}

.doctor-image-wrapper {
    width: 100%;
    aspect-ratio: 326 / 276;
    background-color: #EFEFEF;
    overflow: hidden;
    position: relative;
}

.doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* 顯示圖片中上部分，確保人臉區域完整呈現 */
    transition: transform 0.3s ease;
}

/* hover 時圖片放大 */
.doctor-card:hover .doctor-image,
.doctor-card:hover .doctor-arrow img {
    transform: scale(1.05);
}

.doctor-title {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.94);
    margin: 0;
    letter-spacing: 1.1px;
}

.doctor-info {
    background-color: #968880;
    padding: 1rem;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.doctor-name {
    font-size: 1.3rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 0.5rem 0;
    letter-spacing: 2px;
}

.doctor-divider {
    width: 80%;
    height: 1px;
    background-color: #fff;
    margin: 0.5rem 0;
}

.doctor-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.doctor-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;

}

.doctor-arrow img {
    width: 30px;
    height: auto;
    transition: transform 0.3s ease;
}

/* 醫師介紹內頁 */
/* 1. 醫師介紹區塊 */
.doctor-intro-section {
    margin-bottom: var(--basic-margin);
}

.doctor-intro-wrapper {
    padding: 0;
    margin: 0;
}

.doctor-intro-image {
    aspect-ratio: 489 / 559;
    max-height: 559px;
    max-width: 489px;
    position: relative;
    overflow: hidden;
    background-color: var(--sub-color);
    border-top-left-radius: 30%;
    border-bottom-right-radius: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-bottom: 2rem;
}

.doctor-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border-top-left-radius: 30%;
    border-bottom-right-radius: 30%;
}

.doctor-intro-name-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.doctor-intro-name {
    font-size: 2rem;
    color: var(--primary-color);
    letter-spacing: 3px;
}

.doctor-intro-name-en {
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.doctor-intro-title {
    font-size: var(--middle-title-size);
    color: var(--primary-color);
    letter-spacing: 2px;
}

.doctor-intro-sections {
    display: flex;
    gap: 1rem;
    flex: 1;
    justify-content: space-between;
}

.section-title-text {
    font-size: var(--middle-title-size);
    margin-bottom: var(--basic-margin);
}

.doctor-intro-section .section-title-text {
    margin-bottom: 8px;
    margin-top: 10px;
}

.doctor-intro-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doctor-intro-list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0;
    letter-spacing: 1px;
}

.doctor-intro-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* 2. 專業證書區塊 */

.doctor-certificate-section {
    background-color: var(--light-gray);
}

.section-title {
    font-size: var(--section-title-size);
    color: var(--primary-color);
    margin-bottom: var(--basic-margin);
}

.english-title {
    font-family: var(--font-family-heading);
    display: inline-block;
}

.certificate-slider {
    margin: 0 -10px;
}

.certificate-item {
    padding: 0 10px;
}

.certificate-item a {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.certificate-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 287 / 203;
    object-fit: cover;
    display: block;
}

/* 專業證書和醫師專欄的 middle-title 樣式 */
.certificate-item .middle-title,
.column-content .middle-title,
.clinic-info .middle-title,
.card-content .middle-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    white-space: normal;
    text-align-last: left;
    margin: 0.5rem 0;
    color: var(--link-color);
}

.showcase-info .middle-title {
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    white-space: normal;
    text-align-last: left;
    text-overflow: ellipsis;
    margin: 0 0 0.5rem 0;
    color: var(--link-color);
}

.certificate-item a:hover .middle-title,
.column-item a:hover .middle-title,
.clinic-card:hover .middle-title,
.showcase-card:hover .middle-title,
.card-link:hover .middle-title {
    color: var(--link-hover-color);
}


/* 輪播箭頭樣式已移至共用區塊 */

/* 3. 醫師專欄區塊 */
.column-slider {
    margin: 0 -10px;
}

/* 4. 通用 4 欄卡片輪播 */
.card-slider {
    margin: 0 -10px;
}

.card-slider .card-item {
    padding: 0 10px;
}

.card-slider .card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.card-slider .card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* 預設 1:1，可用 .ratio-* class 覆蓋 */
    overflow: hidden;
    margin-bottom: 15px;
}

/* 圖片比例變體 */
.card-slider .card-image.ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.card-slider .card-image.ratio-3-4 {
    aspect-ratio: 3 / 4;
}

.card-slider .card-image.ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.card-slider .card-image.ratio-auto {
    aspect-ratio: auto;
    /* 依照圖片原始比例 */
}

.card-slider .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.card-slider .card-link:hover .card-image img {
    transform: scale(1.05);
}

.card-slider .card-content {
    padding: 0 5px;
}

/* card-slider 響應式調整 */
@media (max-width: 576px) {
    .card-slider .slick-dots {
        bottom: -30px;
    }

    .card-slider .slick-dots li button:before {
        font-size: 10px;
        color: var(--primary-color);
    }

    .card-slider .slick-dots li.slick-active button:before {
        color: var(--primary-color);
    }
}

.column-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    padding: 0 10px;
}

.column-image {
    width: 100%;
    overflow: hidden;
}

.column-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.column-link:hover .column-image img {
    transform: scale(1.05);
}

/* 推薦文章 / 新聞稿輪播：圖片固定 4:3 比例 */
.article-news-slider .column-image {
    position: relative;
    aspect-ratio: 4 / 3;
}

.article-news-slider .column-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.column-link:hover .middle-title {
    color: var(--link-hover-color);
}

/* 響應式設計 */
@media (max-width: 991px) {

    .doctor-intro-sections {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .doctor-intro-content {
        padding-left: 0;
    }
}

/* ========== 療程列表頁 - 分類導航 ========== */

.treatment-category-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.treatment-category-tab {
    padding: 8px 20px;
    border: 1px solid var(--secondary-color);
    background-color: #fff;
    color: var(--text-color);
    border-radius: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
}

.treatment-category-tab:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
}

.treatment-category-tab.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* 療程列表 Grid */
.treatment-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.treatment-list-item {
    position: relative;
}

.treatment-list-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.treatment-list-link:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.treatment-item-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
}

.treatment-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.treatment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.treatment-list-link:hover .treatment-overlay {
    opacity: 1;
}

.treatment-list-link:hover .treatment-item-img img {
    transform: scale(1.1);
}

.treatment-btn-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.treatment-btn-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
}

.treatment-btn-more img {
    width: 30px;
    height: 30px;
}

.treatment-item-title {
    padding: 15px 0;
}

@media (max-width: 991px) {
    .treatment-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .treatment-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .treatment-category-nav {
        gap: 8px;
    }

    .treatment-category-tab {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

/* ========== 症狀困擾列表頁面樣式（比照療程列表） ========== */
.symptom-category-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.symptom-category-tab {
    padding: 8px 20px;
    border: 1px solid var(--secondary-color);
    background-color: #fff;
    color: var(--text-color);
    border-radius: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
}

.symptom-category-tab:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
}

.symptom-category-tab.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* 症狀困擾列表 Grid */
.symptom-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.symptom-list-item {
    position: relative;
}

.symptom-list-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.symptom-list-link:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.symptom-item-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
}

.symptom-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.symptom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.symptom-list-link:hover .symptom-overlay {
    opacity: 1;
}

.symptom-list-link:hover .symptom-item-img img {
    transform: scale(1.1);
}

.symptom-btn-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.symptom-btn-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
}

.symptom-btn-more img {
    width: 30px;
    height: 30px;
}

.symptom-item-title {
    padding: 15px 0;
}

/* 列表頁標題下間距縮小（1.5rem → 0.5rem） */
.treatment-item-title .middle-title,
.symptom-item-title .middle-title {
    margin-bottom: 0.5rem;
}

@media (max-width: 991px) {
    .symptom-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .symptom-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .symptom-category-nav {
        gap: 8px;
    }

    .symptom-category-tab {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

/* ========== 療程詳情頁面樣式 ========== */

.treatment-detail-content ol li,
.treatment-detail-content ul li {
    margin-bottom: 0.5rem;
}

/* 療程區塊 - 錨點滾動偏移（header + 導航列高度） */
#treatment-principle,
#treatment-indications,
#treatment-precaution,
#treatment-faq {
    scroll-margin-top: 130px;
}

@media (max-width: 1199px) {

    #treatment-principle,
    #treatment-indications,
    #treatment-precaution,
    #treatment-faq {
        scroll-margin-top: 110px;
    }
}

/* 固定導航按鈕 */
.treatment-nav-section {
    margin-bottom: 0;
    padding: 0;
    position: -webkit-sticky;
    /* Safari 支援 */
    position: sticky;
    top: 110px;
    z-index: 88;
    /* 確保父容器不會影響 sticky */
    align-self: flex-start;
}

/* JavaScript 備用方案：當 sticky 不work時使用 fixed */
.treatment-nav-section.is-fixed {
    position: fixed !important;
    top: 110px;
    /* 與 sticky 的 top 值保持一致 */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 88;
    /* 移除動畫，保持自然的固定效果，像 sticky 一樣 */
}

@media (max-width: 1199px) {
    .treatment-nav-section {
        top: 67px;
    }

    .treatment-nav-section.is-fixed {
        top: 67px;
    }
}

.treatment-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 1rem 20px;
    background: #fff;
    transition: all 0.3s ease;
}

.nav-btn {
    background-color: var(--gray);
    color: white;
    border: none;
    border-radius: 35px;
    padding: 10px 30px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--button-bg-hover-color);
    color: #fff;
}

.nav-btn.active {
    background-color: var(--button-bg-hover-color);
}

@media (max-width: 768px) {
    .treatment-nav-buttons {
        gap: 10px;
        flex-wrap: wrap;
    }

    .nav-btn {
        border-radius: 35px;
        padding: 4px 10px;
        font-size: 0.9rem;
    }
}

/* 建議搭配療程區塊 */

.treatment-combo-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.treatment-combo-item {
    position: relative;
}

.treatment-combo-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.treatment-combo-link:hover {
    transform: translateY(-5px);
}

.combo-item-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* 1:1 比例 */
    overflow: hidden;
}

.combo-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.treatment-combo-link:hover .combo-item-img img {
    transform: scale(1.1);
}

/* 遮罩層 - hover 時覆蓋整個圖片 */
.combo-item-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.treatment-combo-link:hover .combo-item-img::before {
    opacity: 1;
}

.combo-btn-more {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.treatment-combo-link:hover .combo-btn-more {
    opacity: 1;
    transform: translateY(0);
}

.combo-btn-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.combo-btn-more img {
    width: 30px;
    height: 30px;
    display: block;
}

.treatment-combo-link:hover h3 {
    color: var(--sub-color);
}

/* 響應式設計 - 建議搭配療程 */
@media (max-width: 991px) {
    .treatment-combo-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .treatment-combo-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

}

/* ============================================
   諮詢表單樣式 - 參考 dr-shine.com.tw
   ============================================ */

/* 表單區塊容器 */
.contact-us-form {
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
}

@media (max-width: 768px) {
    .contact-us-form {
        margin-left: 0;
        margin-right: 0;
    }

    .contact-us-form div.col-12 {
        padding-right: 0;
        padding-left: 0;
    }
}

/* 基本表單欄位 */
.contact-us-form .form-group {
    margin-bottom: var(--basic-margin);
}

/* 浮動標籤容器 */
.floating-label-wrapper {
    position: relative;
}

.contact-us-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--sub-color);
}

.contact-us-form .form-group label abbr {
    color: #dc3545;
    text-decoration: none;
}

/* 浮動標籤樣式 */
.floating-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--sub-color);
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: white;
    padding: 0 5px;
    z-index: 1;
    white-space: nowrap;
}

.floating-label abbr,
h4 abbr {
    color: #dc3545;
    text-decoration: none !important;
}

/* 當 input focus 或有值時，label 上移並縮小 */
.floating-input:focus+.floating-label,
.floating-input.has-value+.floating-label {
    top: 0;
    font-size: 0.85rem;
    color: var(--primary-color, #0094cb);
    transform: translateY(-50%);
}

/* 移除 :not(:placeholder-shown) 以避免初始就觸發 */

/* select 特殊處理 */
.floating-input[multiple],
.floating-input select {
    padding-top: 10px;
}

/* textarea 特殊處理 */
.floating-input[rows]+.floating-label {
    top: 25px;
}

.floating-input[rows]:focus+.floating-label,
.floating-input[rows].has-value+.floating-label {
    top: 0;
    font-size: 0.85rem;
    transform: translateY(-50%);
}

/* placeholder 處理：只在 focus 時顯示，且沒有值時 */
.floating-input::placeholder {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease 0.2s, visibility 0s 0.2s;
    /* 延遲 0.2s 等 label 先移走 */
}

/* 只有當 focus 且沒有值且設置了 data-show-placeholder 時才顯示 */
.floating-input:focus:not(.has-value)[data-show-placeholder="true"]::placeholder {
    opacity: 1 !important;
    visibility: visible !important;
    transition-delay: 0.2s;
    transition-duration: 0.3s;
    /* 確保 label 移走後才顯示 */
}

/* 當有值時隱藏 placeholder */
.floating-input.has-value::placeholder {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 確保初始狀態不顯示 placeholder */
.contact-us-form .floating-input::placeholder {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Radio 選項群組 - 包在 input 樣式裡，欄位文字在框內 */
.radio-input-wrapper {
    position: relative;
    margin-bottom: 20px;
    border: 1px solid #707070;
    border-radius: 35px;
    background-color: white;
    padding: 10px 20px;
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.radio-field-label {
    color: var(--sub-color);
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.radio-field-label abbr {
    color: #dc3545;
    text-decoration: none;
}

.radio-input-wrapper .form-input-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    margin: 0;
}

.form-input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.form-input-group.group-all {
    gap: 20px;
}

.form-input-group .radio {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.form-input-group .radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.form-input-group .radio label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    padding-left: 25px;
    position: relative;
    font-weight: normal;
}

.form-input-group .radio label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.3s ease;
}

.form-input-group .radio input[type="radio"]:checked+label::before {
    border-color: var(--primary-color, #0094cb);
    background-color: #fff;
}

.form-input-group .radio input[type="radio"]:checked+label::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color, #0094cb);
}

/* 並排表單欄位（聯繫方式） */
.form-input-group .form-group.flex-2 {
    flex: 0 0 calc(40% - 7.5px);
}

.form-input-group .form-group.flex-3 {
    flex: 0 0 calc(60% - 7.5px);
}

/* 表單輸入框 - 保留原本樣式，只調整必要部分 */
.contact-us-form .form-control {
    /* 保留原本的所有樣式，不覆蓋 */
    border: 1px solid #707070;
    background-color: white;
    color: var(--sub-color);
}

/* textarea 高度調整 */
.contact-us-form textarea.form-control {
    min-height: 120px;
    height: auto;
}

/* Placeholder 樣式 - 保留原本樣式 */
/* 一般表單控制項的 placeholder（排除 floating-input） */
.contact-us-form .form-control:not(.floating-input)::placeholder {
    color: var(--sub-color) !important;
    opacity: 1 !important;
    font-size: 1rem !important;
}

.contact-us-form .form-control:not(.floating-input)::-webkit-input-placeholder {
    color: var(--sub-color) !important;
    opacity: 1 !important;
    font-size: 1rem !important;
}

.contact-us-form .form-control:not(.floating-input)::-moz-placeholder {
    color: var(--sub-color) !important;
    opacity: 1 !important;
    font-size: 1rem !important;
}

.contact-us-form .form-control:not(.floating-input):-ms-input-placeholder {
    color: var(--sub-color) !important;
    opacity: 1 !important;
    font-size: 1rem !important;
}

.contact-us-form .form-control:not(.floating-input)::-ms-input-placeholder {
    color: var(--sub-color) !important;
    opacity: 1 !important;
    font-size: 1rem !important;
}

/* 響應式設計 - 諮詢表單 */
@media (max-width: 768px) {

    .form-input-group .form-group.flex-2,
    .form-input-group .form-group.flex-3 {
        flex: 0 0 100%;
    }

    .form-input-group {
        gap: 0;
    }

    .form-submit {
        max-width: 100%;
    }
}

@media (max-width: 320px) {
    .treatment-combo-items {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
}

/* 常見問題區塊 */
.faq-item {
    border-bottom: 1px solid #bcbcbc;
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
}

.faq-content {
    margin-top: -1rem;
}

.faq-text {
    font-size: var(--middle-title-size);
    color: var(--link-color);
    transition: color 0.3s ease;
}

.faq-toggle {
    font-size: var(--middle-title-size);
    color: var(--link-color);
    transition: color 0.3s ease;
}

/* 展開狀態：文字和圖示變為主色 */
.faq-item.active .faq-text,
.faq-item.active .faq-toggle {
    color: var(--link-hover-color);
}

.faq-answer {
    display: none;
    padding-bottom: var(--basic-margin);
}

.faq-answer.active {
    display: block;
}

.faq-item:last-child {
    border-bottom: none;
}

/* 相關影片區塊 */
.videos-section .column-slider {
    margin: 0 -10px;
}


/* ============================================
   案例分享區塊（療程頁專用）
   ============================================ */
.treatment-showcase-section {
    /* padding 改用 .section-spacing class 控制 */
}

.treatment-showcase-section .section-subtitle {
    margin-bottom: var(--basic-margin);
}

.treatment-showcase-section .showcase-section-row {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.showcase-card-item:hover {
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.showcase-card-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 100%;
}

/* 圖片區域 */
.showcase-card-img {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.showcase-card-img img {
    width: 100%;
    height: auto;
    /*object-fit: cover;*/
    transition: transform 0.5s ease;
}

.showcase-card-item:hover .showcase-card-img img {
    transform: scale(1.05);
}

.more-btn-wrapper {
    padding: 0px 20px 20px 20px;
    margin-top: auto;
}

/* 如果 href 為空或沒有 href 屬性，只隱藏 More 按鈕（保留 hover 效果） */
a.showcase-card-item[href=""] .more-btn-wrapper,
a.showcase-card-item:not([href]) .more-btn-wrapper {
    display: none;
}

/* 如果是 div 標籤（沒有連結功能），也隱藏 More 按鈕 */
div.showcase-card-item .more-btn-wrapper {
    display: none;
}

/* 標題區域 - 簡潔設計，無邊框 */
.showcase-card-title {
    padding: 0.5rem 20px;
}

.showcase-card-title h3 {
    font-size: var(--middle-title-size);
    color: var(--link-color);
    margin: 0;
    font-weight: 600;
}

.showcase-card-item:hover .showcase-card-title h3 {
    color: var(--link-hover-color);
}

/* 描述區域 */
.showcase-card-desc {
    padding: 0px 20px;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.showcase-card-desc p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    white-space: normal;
    text-align-last: left;
    min-height: 75px;
}

.treatment-showcase-section .row {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

/* 響應式設計 - 案例分享區塊 */
@media (max-width: 991px) {
    .showcase-card-desc p {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .treatment-showcase-section .section-subtitle {
        font-size: 0.95rem;
    }

    .showcase-card-title {
        padding: 15px 15px 8px 15px;
    }

    .showcase-card-desc {
        padding: 8px 15px 15px 15px;
    }

    .showcase-card-desc p {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        word-break: break-word;
        white-space: normal;
        text-align-last: left;

        min-height: auto;
    }
}

/* 影片區塊 - 只顯示影片，獨立容器（療程影片專用） */
.column-video {
    width: 100%;
}

.embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 諮詢表單區塊 */
.btn {
    border-radius: 35px;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 10px 20px;
    border: 1px solid #707070;
    border-radius: 35px;
    background-color: white;
    font-size: 1rem;
    color: var(--sub-color);
    height: 50px;
}

/* Placeholder 樣式已移至共用區塊 */

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-control:focus::placeholder {
    color: #999;
}

/* Select 下拉選單樣式 */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23968880' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px 8px;
    padding-right: 45px;
    cursor: pointer;
    overflow: visible;
    white-space: nowrap;
    padding: 0 20px;
}

select.form-control option {
    color: black;
    white-space: normal;
}

select.form-control option:first-child {
    color: var(--sub-color);
    font-size: 1rem;
}

/* select 第一個選項（placeholder）樣式 */
select.form-control option[value=""] {
    color: var(--sub-color);
}

textarea.form-control {
    border-radius: 30px;
    resize: vertical;
}

.contact-info-text p {
    font-size: 0.9rem;
    text-align: center;
}

.about-detail-page .html-info {
    margin-bottom: 0;
}

.about-detail-page .row.section-pb {
    padding-bottom: var(--section-padding);
}

.about-detail-page section,
.about-detail-page .row {
    padding-bottom: 0rem;
}

.bg-rounded-top {
    background-color: #fff;
    position: relative;
    border-top: 1px solid var(--secondary-color);
    border-radius: 0 200px 0px 0px;
}

.border-color-top {
    border-top: 1px solid var(--secondary-color);
}

/* ============================================
   醫師門診表區塊
   ============================================ */
@media (max-width: 767px) {
    .about-doctor-section.bg-rounded-top {
        border-radius: 0px;
    }
}

.doctor-schedule-section {
    /* padding 改用 .section-spacing class 控制 */
    border-top: 1px solid var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}

/* 診所切換頁籤 */
.schedule-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.schedule-tab {
    padding: 8px 15px;
    border: 1px solid var(--secondary-color);
    background-color: #fff;
    color: #333;
    border-radius: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.schedule-tab:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.schedule-tab.active {
    background-color: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

/* 門診表內容 */
.clinic-hours {
    display: none;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.clinic-hours.active {
    display: grid;
}

/* 桌面版（960px 以上）才使用等高效果 */
@media (min-width: 960px) {
    .clinic-hours.active {
        align-items: stretch;
        grid-auto-rows: 1fr;
    }

    .week-schedule {
        height: 100%;
    }
}

.week-schedule {
    display: flex;
    flex-direction: column;
}

.week-title {
    font-size: 1.1rem;
    font-weight: bold;
    border-bottom: 2px solid var(--secondary-color);
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    flex-shrink: 0;
    padding-bottom: 5px;
    margin-bottom: 0;
}

.week-title .en {
    display: inline-block;
    font-family: var(--font-family-heading);
    color: var(--primary-color);
    letter-spacing: 2px;
}

.week-title .cn {
    display: inline-block;
    margin-right: 5px;
    color: var(--primary-color);
}

.clinic-hours-items {
    display: flex;
    flex-direction: column;
    gap: 0px;
    flex: 1;
    min-height: 0;
    background-color: var(--light-gray);
}

.clinic-hours-item {
    padding: 10px;
    background-color: var(--light-gray);
    transition: background-color 0.3s ease;
    border-top: 4px solid #fff;
}

.clinic-hours-item:first-child {
    border-top: none;
}

.clinic-hours-items.clinic-hours-closed {
    display: flex;
    align-items: center;
    justify-content: center;
}

.clinic-hours-item.closed {
    font-size: 1rem;
    color: var(--sub-color);
}

.item-doctor {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0px;
}

.item-doctor a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.item-doctor a:hover {
    color: var(--sub-color);
}

.item-time p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.note-text i {
    margin-right: 5px;
    color: var(--accent-color);
}

/* 響應式設計 - 門診表 */
@media (max-width: 959px) {
    .clinic-hours.active {
        grid-template-columns: 1fr;
        gap: 0;
        align-items: normal;
    }

    .clinic-hours-items.clinic-hours-closed {
        align-items: flex-start;
    }

    .week-schedule {
        flex-direction: row;
        border-bottom: 1px solid #f5f5f5;
        padding: 10px 0;
        height: auto;
        min-height: auto;
    }

    .week-title {
        text-orientation: mixed;
        margin-bottom: 0;
        margin-right: 5px;
        padding-bottom: 0;
        padding-right: 0;
        border-bottom: none;
        border-right: none;
        min-width: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--accent-color);
        color: #fff;
        padding: 10px 0;
        font-size: 1rem;
        flex-shrink: 0;
        flex-direction: column-reverse;
    }

    .week-title .en {
        transform: rotate(0deg);
        margin-right: 0;
        color: #fff;
    }

    .week-title .cn {
        transform: rotate(0deg);
        margin-right: 0;
        color: #fff;
    }

    .clinic-hours-items {
        flex: 1;
        justify-content: center;
    }

    .clinic-hours-item {
        padding: 12px;
        margin-bottom: 0;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .clinic-hours-item.closed {
        justify-content: center;
        width: 100%;
        text-align: center;
        align-items: center;
    }
}

.clinic-hours-item p.note-text {
    font-size: 13px;
    color: var(--accent-color);
}

/* ============================================
   範例選單樣式
   ============================================ */

/* 主選單容器 */
.naviMain .main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.naviMain .main-menu .menu-item {
    position: relative;
    margin: 0;
    padding: 0;
}


/* 主選單連結 */
.naviMain .main-menu .menu-link {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.02rem;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
    height: auto;
}

.naviMain .main-menu .menu-link:hover {
    color: var(--primary-color);
}

/* 有子選單的項目 */
.naviMain .main-menu .menu-item.has-submenu {
    position: static;
}

/* 讓子選單相對於 container 定位 */
.naviMain .container {
    position: relative;
}

/* 子選單容器 */
.submenu-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 12px 12px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 999;
    overflow: hidden;
    pointer-events: none;
    margin-top: -8px;
}

/* 讓子選單相對於 container 定位 */
.naviMain .container {
    position: relative;
}

.naviMain .main-menu .menu-item.has-submenu {
    position: static;
}

/* 點擊後顯示子選單 */
.naviMain .main-menu .menu-item.has-submenu.is-open .submenu-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(18px);
    pointer-events: auto;
}

.navbar.fixed .submenu-wrapper {
    transform: translateY(15px) !important;
}

/* 選單項目在開啟時的樣式 */
.naviMain .main-menu .menu-item.has-submenu.is-open>.menu-link {
    color: var(--primary-color);
}

/* 子選單頁籤容器 */
.submenu-tabs {
    display: flex;
    gap: 0;
    background: linear-gradient(to bottom, #fafafa, #ffffff);
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 0;
    flex-wrap: nowrap;
    padding: 0 20px;
    justify-content: space-evenly;
}

/* 子選單頁籤按鈕 */
.submenu-tab {
    background: none;
    border: none;
    padding: 16px 10px;
    font-size: 0.95rem;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    font-family: var(--font-family-base);
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.submenu-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
}

.submenu-tab:hover {
    color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.05);
}

.submenu-tab:hover::before {
    width: 30%;
}

.submenu-tab.active {
    color: var(--primary-color);
    font-weight: 600;
    background-color: rgba(var(--primary-color-rgb), 0.08);
}

.submenu-tab.active::before {
    width: 100%;
}

/* 子選單內容容器 */
.submenu-content {
    position: relative;
    min-height: 180px;
    padding: 24px 30px 30px;
    background: #fff;
}

/* 子選單面板 */
.submenu-panel {
    display: none;
    animation: submenuFadeIn 0.35s ease;
}

.submenu-panel.active {
    display: block;
}

@keyframes submenuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 子選單欄位容器 - 使用 Grid 自動排列 */
.submenu-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px 10px;
    width: 100%;
}

/* 子選單欄位 - 保留作為向下兼容，但不再需要使用 */
.submenu-column {
    display: contents;
    /* 讓子元素直接參與父級的 grid 佈局 */
}

/* 子選單項目 - 直接放在 submenu-columns 下即可自動排列 */
.submenu-item {
    display: flex;
    align-items: center;
    padding: 8px 4px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.25s ease;
    position: relative;
    padding-left: 28px;
    border-radius: 6px;
}

.submenu-item::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #d4a574 100%);
    border-radius: 50%;
    transition: all 0.25s ease;
    opacity: 0.7;
}

.submenu-item:hover {
    color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.08);
    padding-left: 32px;
}

.submenu-item:hover::before {
    opacity: 1;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .submenu-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px 12px;
    }
}

@media (max-width: 992px) {
    .submenu-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px 10px;
    }

    .submenu-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 15px;
    }

    .submenu-tab {
        flex-shrink: 0;
        padding: 14px 18px;
        font-size: 0.9rem;
    }

    .submenu-content {
        padding: 20px;
    }

    .submenu-item {
        padding: 8px 10px 8px 24px;
        font-size: 0.88rem;
    }

    .submenu-item::before {
        left: 8px;
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 768px) {
    .naviMain .main-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .naviMain .main-menu .menu-item::after {
        display: none;
    }

    .submenu-wrapper {
        position: static;
        min-width: 100%;
        transform: none;
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
        border-top: none;
    }

    .submenu-columns {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .submenu-tabs {
        background: #f5f5f5;
    }
}

/* ============================================
   院所資訊列表頁面樣式
   ============================================ */

/* 診所卡片 */
.clinic-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

/* 診所圖片區塊 */
.clinic-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 480 / 300;
    overflow: hidden;
}

.clinic-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* 遮罩層 - hover 時覆蓋整個圖片 */
.clinic-img-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

/* MORE 按鈕 - 與建議搭配療程相同效果 */
.clinic-btn-more {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    width: 100%;
    height: 100%;
}

/* Hover 效果只在支援滑鼠的裝置顯示，手機點擊直接跳轉 */
@media (hover: hover) {
    .clinic-card:hover .clinic-img-box img {
        transform: scale(1.1);
    }

    .clinic-card:hover .clinic-img-box::before {
        opacity: 1;
    }

    .clinic-card:hover .clinic-btn-more {
        opacity: 1;
        transform: translateY(0);
    }
}

.clinic-btn-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.clinic-btn-more img {
    width: 30px;
    height: 30px;
    display: block;
}

/* 診所詳細資訊 */
.clinic-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.clinic-address,
.clinic-phone {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #666;
}

.clinic-address i,
.clinic-phone i {
    color: var(--accent-color);
    font-size: 1rem;
    min-width: 18px;
    margin-top: 3px;
}

.clinic-address span,
.clinic-phone span {
    flex: 1;
}

/* 響應式設計 - 院所資訊 */
@media (max-width: 575px) {

    .clinic-address,
    .clinic-phone {
        font-size: 0.9rem;
    }
}

/* ============================================
   院所內頁樣式
   ============================================ */

/* 1. 院所資訊 + 圖片輪播區塊 */
.clinic-detail-section {
    /* padding 改用 .section-pb class 控制 */
}

.clinic-detail-info {
    margin-bottom: var(--basic-margin);
}

/* 院所資訊項目 */
.clinic-info-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: var(--basic-margin);
}

.clinic-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.clinic-info-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    min-width: 25px;
    margin-top: 3px;
}

.clinic-info-item .info-content {
    display: flex;
    flex-direction: column;
}

.clinic-info-item .info-label {
    font-size: 0.9rem;
    color: var(--sub-color);
    margin-bottom: 2px;
}

.clinic-info-item .info-text {
    color: var(--primary-color);
}

/* 社群媒體連結 */
.clinic-social-links {
    display: flex;
    gap: 15px;
}

.clinic-social-links .social-link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.clinic-social-links .social-link-item:hover {
    background-color: var(--sub-color);
    transform: translateY(-3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 圖片輪播區塊 */
.clinic-gallery-wrapper {
    position: relative;
    width: 100%;
}

.clinic-main-slider {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.clinic-main-slider .slick-list,
.clinic-main-slider .slick-track {
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 0;
    /* 消除 inline-block 間隙 */
}

.clinic-main-slider .slide-item {
    width: 100%;
    position: relative;
    padding-bottom: 62.5%;
    /* 16:10 比例 = 10/16 = 0.625 */
    overflow: hidden;
}

.clinic-main-slider .slide-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 修正 Slick fade 模式在手機上的留白問題 */
/* fade 模式下，讓當前顯示的 slide 用 relative 撐開容器高度 */
.clinic-main-slider .slick-slide {
    height: auto !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.clinic-main-slider .slick-slide.slick-active {
    position: relative !important;
}

.clinic-main-slider .slick-track {
    height: auto !important;
}

.clinic-main-slider .slick-list {
    height: auto !important;
}

/* 主圖輪播箭頭 - 已移除，改用縮圖區域的箭頭 */

/* 縮圖導航 - 使用純 CSS flexbox */
.clinic-thumb-nav-wrapper {
    position: relative;
    margin-top: 15px;
}

.clinic-thumb-nav {
    display: flex;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    padding: 5px 0;
}

.clinic-thumb-nav::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.clinic-thumb-nav .thumb-item {
    flex: 0 0 calc(25% - 7.5px);
    cursor: pointer;
    outline: none;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    min-width: 0;
}

.clinic-thumb-nav .thumb-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #e0e0e0;
    transition: all 0.3s ease;
    opacity: 0.7;
    display: block;
}

.clinic-thumb-nav .thumb-item:hover img {
    opacity: 0.9;
    border-color: var(--sub-color);
}

.clinic-thumb-nav .thumb-item.active img {
    border-color: var(--accent-color);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(197, 174, 146, 0.4);
}

/* 縮圖導航箭頭 */
.thumb-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.thumb-nav-arrow.prev {
    left: -15px;
}

.thumb-nav-arrow.next {
    right: -15px;
}

.thumb-nav-arrow:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.thumb-nav-arrow img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* 2. 門診表區塊（院所專用） */
.clinic-schedule-section {
    /* padding 改用 .section-spacing class 控制 */
    border-top: 1px solid var(--secondary-color);
}

.clinic-schedule-section .clinic-hours {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

/* 門診表備註 */
.schedule-notes {
    max-width: 800px;
    margin: 0 auto;
}

.schedule-notes .note-text {
    margin-bottom: 8px;
    display: flex;
    color: var(--text-color);
}

.schedule-notes .note-text i {
    color: var(--accent-color);
    margin-right: 8px;
    position: relative;
    top: 5px;
}

/* 3. 交通資訊區塊 */
.clinic-traffic-section {
    /* padding 改用 .section-spacing class 控制 */
}

.traffic-info-wrapper {
    margin-bottom: 2rem;
}

.traffic-method {
    margin-bottom: 25px;
}

.traffic-method h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.traffic-method h4 i {
    color: var(--accent-color);
    margin-right: 10px;
    width: 20px;
}

.traffic-list {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 30px;
}

.traffic-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 0.5rem;
}

.traffic-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--sub-color);
}

/* Google 地圖容器 */
.clinic-map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 400px;
}

.clinic-map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: block;
}

/* 4. 推薦療程區塊 */
.clinic-recommend-section {
    /* padding 改用 .section-spacing class 控制 */
    border-top: 1px solid var(--secondary-color);
}

/* 響應式設計 - 院所內頁 */
@media (max-width: 991px) {
    .clinic-detail-info {
        padding-right: 0;
    }

    .clinic-schedule-section .clinic-hours {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .clinic-schedule-section .week-schedule {
        flex-direction: row;
        border-bottom: 1px solid #f5f5f5;
        padding: 4px 0;
    }

    .clinic-schedule-section .week-schedule:last-child {
        border-bottom: none;
    }

    .clinic-schedule-section .week-title {
        text-orientation: mixed;
        margin-bottom: 0;
        margin-right: 5px;
        padding-bottom: 0;
        border-bottom: none;
        min-width: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--accent-color);
        color: #fff;
        padding: 10px 0;
        font-size: 1rem;
        flex-shrink: 0;
        flex-direction: column-reverse;
    }

    .clinic-schedule-section .week-title .en,
    .clinic-schedule-section .week-title .cn {
        transform: rotate(0deg);
        margin-right: 0;
        color: #fff;
    }

    .clinic-map-wrapper {
        margin-bottom: var(--basic-margin);
    }
}

@media (max-width: 768px) {
    .clinic-notice-box {
        padding: 15px;
    }

    .clinic-notice-box .notice-list li {
        font-size: 0.9rem;
    }
}

@media (max-width: 991px) {
    .clinic-thumb-nav .thumb-item {
        flex: 0 0 calc(33.333% - 7px);
        /* 顯示 3 張 */
    }

    .thumb-nav-arrow {
        display: flex;
    }
}

@media (max-width: 768px) {
    .clinic-thumb-nav {
        gap: 8px;
    }

    .clinic-thumb-nav .thumb-item {
        flex: 0 0 calc(33.333% - 6px);
        /* 顯示 3 張 */
    }

    .clinic-thumb-nav .thumb-item img {
        border-width: 2px;
    }

    .thumb-nav-arrow {
        width: 30px;
        height: 30px;
    }

    .thumb-nav-arrow img {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 575px) {
    .clinic-thumb-nav {
        gap: 6px;
    }

    .clinic-thumb-nav .thumb-item {
        flex: 0 0 calc(33.333% - 5px);
        /* 顯示 3 張 */
    }

    .clinic-thumb-nav .thumb-item img {
        border-width: 2px;
        border-radius: 5px;
    }

    .thumb-nav-arrow {
        width: 28px;
        height: 28px;
    }

    .thumb-nav-arrow.prev {
        left: -10px;
    }

    .thumb-nav-arrow.next {
        right: -10px;
    }

    .thumb-nav-arrow img {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   美麗分享 - 列表頁樣式
   ============================================ */

/* 搜尋區塊 */

.showcase-search-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

/* 下拉選單包裝器 */
.search-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    padding: 0 20px;
    min-width: 280px;
    height: 50px;
    transition: all 0.3s ease;
}

.search-select-wrapper:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-select-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.15);
}

/* 選單圖標 */
.search-select-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.search-select-icon img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

/* 下拉選單 */
.search-select {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--sub-color);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 30px;
    height: 100%;
}

.search-select:focus {
    outline: none;
}

/* 下拉箭頭 */
.search-select-arrow {
    position: absolute;
    right: 20px;
    pointer-events: none;
    display: flex;
    align-items: center;
}

/* 搜尋按鈕 */
.showcase-search-btn {
    background: var(--button-bg-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0 40px;
    height: 50px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-search-btn:hover {
    background: var(--button-bg-hover-color);
}

/* 案例列表區塊 */

.showcase-list-section .col-lg-6 {
    padding-bottom: 20px;
    display: flex;
}

/* 案例卡片 */
.showcase-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    background: #fff;
    overflow: visible;
    padding: 0;
    width: 100%;
    height: 100%;
}

.showcase-card:hover {
    transform: translateY(-5px);
}

.showcase-card:hover .showcase-card-inner {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* 卡片內部 - 水平排列 */
.showcase-card-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
}

/* 圖片區塊 - 左側 */
.showcase-img-box {
    position: relative;
    flex: 0 0 45%;
    max-width: 45%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
}

.showcase-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

/* 時尚雜誌風格 Before/After 設計 */
.showcase-label {
    position: absolute;
    font-family: var(--font-family-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 12px;
    z-index: 4;
    backdrop-filter: blur(4px);
}

.showcase-info-content-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 圓形術前小圖 - 左右排列時在圖片左下角 */
.showcase-before-frame {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    padding: 0;
    background: #fff;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    border: 3px solid #fff;
    z-index: 10;
    transition: all 0.3s ease;
    transform: none;
    margin-top: 0;
}

.showcase-before-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 50%;
}

.showcase-before-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Before 標籤 - 隱藏 */
.showcase-label-before {
    display: none;
}

/* Hover 效果 */
.showcase-card:hover .showcase-before-frame {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* 遮罩層 */
.showcase-img-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.showcase-card:hover .showcase-img-box::before {
    opacity: 1;
}

/* MORE 按鈕 */
.showcase-btn-more {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.showcase-card:hover .showcase-btn-more {
    opacity: 1;
}

.showcase-btn-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.showcase-btn-more img {
    width: 30px;
    height: 30px;
    display: block;
}

/* 案例資訊區塊 - 右側 */
.showcase-info {
    flex: 1;
    padding: 15px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
    min-height: 0;
    position: relative;
    justify-content: space-around;
}

/* 資訊頂部 - 已移除，meta 直接在 info 下 */

/* 文字內容區塊 */
.showcase-info-content {
    width: 100%;
}

/* 案例摘要 */
.showcase-excerpt {
    color: #777;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    white-space: normal;
    text-align-last: left;
    margin-top: 10px;
}

/* 案例 meta 資訊 */
.showcase-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.showcase-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.85rem;
    background: #f8f8f8;
    padding: 5px 12px;
    border-radius: 20px;
}

.showcase-meta-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.showcase-meta-item i.showcase-meta-icon {
    font-size: 12px;
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

/* ============================================
   美麗分享 - 內頁樣式
   ============================================ */

/* 頂部資訊區塊 - 白光呼吸效果 */
.showcase-header-section {
    padding: 170px 0 0px 0;
    position: relative;
    overflow: hidden;
}


@media (max-width: 1199px) {
    .showcase-header-section {
        padding-top: 0px;
    }
}

/* Meta 連結 */
.showcase-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.showcase-meta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #f8f8f8;
    border-radius: 30px;
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.showcase-meta-link:hover {
    background: var(--primary-color);
    color: #fff;
}

.showcase-meta-link .meta-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.showcase-meta-link:hover .meta-icon {
    opacity: 1;
    filter: brightness(10);
}

.showcase-meta-link i.meta-icon {
    font-size: 14px;
    width: 18px;
}

/* Before/After 對比區塊 */
.showcase-compare-section {
    padding: 50px 0;
    background: var(--bg-light-color, #faf9f7);
}

.compare-container {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.compare-item {
    flex: 1;
    position: relative;
}

/* 標籤移到圖片外上方 */
.compare-label {
    display: block;
    text-align: center;
    font-family: var(--font-family-heading, 'Playfair Display', serif);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sub-color);
    padding: 15px 0;
    background: #fff;
}

/* 圖片比例 1:1 */
.compare-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.compare-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* 分隔線 - 簡潔版 */
.compare-divider {
    width: 1px;
    background: #e5e5e5;
}

/* 相關案例區塊 */
.related-cases-section {
    padding: 60px 0;
    background: var(--bg-light-color, #faf9f7);
}

/* 推薦療程區塊 */
.showcase-recommend-section {
    padding: 60px 0 80px;
    background: #fff;
}

/* ============================================
   美麗分享 - 響應式設計
   ============================================ */

@media (max-width: 991px) {

    /* 平板以下：卡片改為垂直排列 */
    .showcase-card-inner {
        flex-direction: column;
    }

    .showcase-img-box {
        flex: none;
        max-width: 100%;
        width: 100%;
        aspect-ratio: 4 / 3;
        border-radius: 8px 8px 0 0;
    }

    .showcase-info {
        padding: 15px;
    }
}

@media (max-width: 767px) {

    .showcase-search-bar {
        gap: 15px;
    }

    .showcase-info {
        padding: 12px;
        gap: 6px;
    }

    .showcase-excerpt {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .compare-container {
        flex-direction: column;
        border-radius: 15px;
    }

    .compare-divider {
        width: 100%;
        height: 1px;
    }

    .compare-label {
        font-size: 0.9rem;
        padding: 12px 0;
    }

    .search-select-wrapper {
        min-width: 100%;
    }

    .showcase-search-btn {
        width: 100%;
    }
}

@media (max-width: 575px) {

    .showcase-meta {
        gap: 5px;
    }

    .showcase-meta-item {
        padding: 3px 8px;
        font-size: 0.75rem;
    }

    .showcase-info {
        padding: 10px;
    }

    .showcase-info .more-btn {
        margin-top: 5px;
    }

    .showcase-detail-meta {
        gap: 10px;
    }

    .showcase-meta-link {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    .showcase-compare-section,
    .showcase-content-section,
    .showcase-recommend-section {
        padding: 40px 0;
    }

    .page-title-text {
        line-height: 1.1;
    }

    .compare-image {
        max-height: 400px;
    }

    .compare-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

}

/* ============================================
   側邊欄線上諮詢按鈕
   ============================================ */

/* 線上諮詢按鈕樣式 */
.fixed-bottom-contant {
    z-index: 90;
}

.fixed-bottom-contant .booking-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px 15px 8px;
    background: linear-gradient(to bottom, #efe8e2 0%, #e4d8cf 100%);
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 50px;
    margin-bottom: 10px;
}

.fixed-bottom-contant .booking-btn:hover {
    background: linear-gradient(to bottom, #e4d8cf 0%, #d4c4b7 100%);
    box-shadow: 0 0px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* 圖示樣式 */
.fixed-bottom-contant .booking-icon {
    width: 26px;
    height: auto;
    margin-bottom: 8px;
    display: block;
}

/* 文字樣式 - 直式排列 */
.fixed-bottom-contant .booking-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 4px;
}

@media (max-width: 992px) {

    .social-link>li>a:hover,
    .social-link>li>a:active {
        background-color: transparent;
        color: var(--primary-color);
    }
}

/* 平板/手機版底部選單 - 獨立結構 */
.mobile-bottom-bar {
    display: none;
}

.mobile-bottom-buttons .mobile-booking .btn-icon {
    border-radius: 0;
}

@media (max-width: 991px) {

    /* 隱藏桌面版側邊欄 */
    .fixed-bottom-contant {
        display: none !important;
    }

    /* 顯示手機版底部選單 */
    .mobile-bottom-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 90;
    }

    /* 底部三按鈕容器 */
    .mobile-bottom-buttons {
        display: flex;
        align-items: center;
        background: linear-gradient(to bottom, #efe8e2 0%, #e4d8cf 100%);
        box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.08);
    }

    /* 按鈕基礎樣式 */
    .mobile-btn {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 15px 10px;
        border: none;
        text-decoration: none;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    /* 線上諮詢按鈕 */
    .mobile-booking {
        flex: 1;
        background: linear-gradient(to bottom, #efe8e2 0%, #e4d8cf 100%);
        border-right: 1px solid rgba(0, 0, 0, 0.08);
        color: var(--primary-color);
        font-weight: 600;
        font-size: 0.95rem;
    }

    .mobile-booking:hover {
        background: linear-gradient(to bottom, #e4d8cf 0%, #d4c4b7 100%);
        color: var(--primary-color);
    }

    .mobile-booking .btn-icon {
        width: 22px;
        height: auto;
    }

    /* 追蹤彤顏按鈕 */
    .mobile-follow {
        flex: 1;
        background: linear-gradient(to bottom, #efe8e2 0%, #e4d8cf 100%);
        border-right: 1px solid rgba(0, 0, 0, 0.08);
        color: var(--primary-color);
        font-weight: 600;
        font-size: 0.95rem;
    }

    .mobile-follow:hover,
    .mobile-follow.active {
        background: linear-gradient(to bottom, #e4d8cf 0%, #d4c4b7 100%);
    }

    .mobile-follow i {
        font-size: 18px;
    }

    /* Top 按鈕 - 比較窄 */
    .mobile-top {
        flex: 0 0 50px;
        background: linear-gradient(to bottom, #efe8e2 0%, #e4d8cf 100%);
        color: var(--primary-color);
        font-size: 20px;
        padding: 15px 10px;
    }

    /* 社群連結淡入面板 */
    .social-slide-panel {
        position: fixed;
        bottom: 54px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
        padding: 15px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 89;
    }

    .social-slide-panel.active {
        opacity: 1;
        visibility: visible;
    }

    .social-link-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .social-link-mobile li a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: #f5f5f5;
        color: var(--primary-color);
        font-size: 20px;
        transition: all 0.3s ease;
    }

    .social-link-mobile li a:hover {
        background: #e8e8e8;
        transform: translateY(-3px);
    }
}

/* 手機尺寸優化 */
@media (max-width: 768px) {

    .social-link-mobile {
        gap: 15px;
    }

    .social-link-mobile li a {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    /* 桌面版側邊欄保持原樣 */
    .fixed-bottom-contant .booking-btn {
        border-radius: 30px 0 0 30px;
        width: 50px;
    }

    .fixed-bottom-contant .booking-text {
        font-size: 14px;
        letter-spacing: 3px;
    }

    .fixed-bottom-contant {
        width: 50px;
    }
}

/* 小手機優化 */
@media (max-width: 480px) {

    .social-link-mobile {
        gap: 12px;
    }

    .social-link-mobile li a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ============================================
   部落格文章 - Showcase 風格樣式
   ============================================ */

/* 讓所有卡片等高 - 從外層開始設定 */
/* 父層 col 需要 flex 和 stretch */
.blog-showcase-style {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.blog-showcase-style>.row {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    padding-top: 0;
}

/* 圖片區塊固定大小 */
.blog-showcase-style .col-12:first-child {
    flex: 0 0 auto;
}

/* 內容區塊填滿剩餘空間 */
.blog-showcase-style .col-12.article-intro {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* 圖片區塊 - 參考 showcase-img-box，固定比例 */
.blog-showcase-style .blog-img-box,
.blog-grid .img-box {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
}

/* 圖片本身 */
.blog-showcase-style .blog-main-img,
.blog-grid img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

/* Hover 時圖片放大 */
.blog-showcase-style .blog-img-box:hover .blog-main-img {
    transform: scale(1.1);
}

/* 遮罩層 - hover 時顯示 */
.blog-showcase-style .blog-img-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.blog-showcase-style .blog-img-box:hover::before {
    opacity: 1;
}


.blog-showcase-style .blog-btn-more img {
    width: 40px;
    height: 40px;
    display: block;
}

/* Meta 資訊包裝器 - 包含小圓圖和分類資訊 */
.blog-showcase-style .blog-meta-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 小圓形縮圖 - 參考 showcase-before-frame */
.blog-showcase-style .blog-before-frame {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    padding: 0;
    background: #fff;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    border: 3px solid #fff;
    transition: all 0.3s ease;
}

.blog-showcase-style .blog-before-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 50%;
}

.blog-showcase-style .blog-before-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Hover 時小圓圖放大 */
.blog-showcase-style:hover .blog-before-frame {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.08);
}

/* 調整 article-classify 在新佈局下的樣式 */
.blog-showcase-style .article-classify {
    flex: 1;
    margin-bottom: 0;
}

.blog-showcase-style .article-classify {
    font-size: 0.8rem;
}

.blog-showcase-style .article-classify>a:first-of-type::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f02d";
    display: inline-block;
    margin-right: 5px;
    color: var(--link-color);
}

/* 調整 article-date 樣式 */
.blog-showcase-style .article-classify .article-date {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-family-english);
}

.blog-showcase-style .article-classify>.article-date {
    border-right: 0px solid #e5e5e5;
}

.blog-showcase-style .article-classify a {
    display: inline-block;
    color: var(--link-color);
}

.blog-showcase-style .article-classify>a+a::before {
    content: "、";
}

.blog-showcase-style .article-classify a:hover {
    color: var(--link-hover-color);
}

/* article-intro 內部元素排列 */
.blog-showcase-style .article-intro .blog-meta-wrapper {
    flex: 0 0 auto;
}

.blog-showcase-style .article-intro .middle-title {
    flex: 0 0 auto;
}

.blog-showcase-style .article-intro p {
    flex: 1 1 auto;
    margin-bottom: 0.5rem;
}

.blog-showcase-style .article-intro .more-btn {
    flex: 0 0 auto;
    margin-top: auto;
}

.blog-grid .text-box .middle-title {
    font-weight: 500;
    color: var(--link-color);
    text-align: left;
}

.blog-grid .text-box .middle-title:hover {
    color: var(--link-hover-color);
}

.blog-grid .text-box .info-group>p,
.blog-grid .text-box .middle-title {
    line-height: var(--line-height);
}

.html-info a {
    color: var(--link-hover-color);
}

.html-info a:active,
.html-info a:focus,
.html-info a:hover,
.html-info a:visited {
    color: var(--link-color);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .blog-showcase-style .blog-before-frame {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }

    .blog-showcase-style .blog-meta-wrapper {
        gap: 10px;
    }

    .blog-showcase-style .article-classify {
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .blog-showcase-style .blog-before-frame {
        width: 45px;
        height: 45px;
    }

    .blog-showcase-style .blog-btn-more img {
        width: 35px;
        height: 35px;
    }
}

aside>ul>li>a:hover {
    color: var(--link-hover-color);
}

aside>ul>li>a {
    color: var(--link-color);
}

aside>ul small {
    position: relative;
    top: -2px;
    color: var(--accent-color);
}

aside .tag-group::before {
    display: none;
}

aside .tag-group {
    border: 0px solid #afafaf;
    border-radius: 0px;
}

aside .tag-group {
    padding: 0px;
    border-radius: 0px;
}

aside .tag-group .article-tag,
.blog-footer>ul>li a.article-tag {
    margin-top: 10px;
    font-size: 0.9rem;
    display: inline-block;
    margin-left: 0px;
    background: rgba(var(--primary-color-rgb), 0.08);
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--primary-color);
    margin-right: 8px;
}

aside .tag-group .article-tag:hover,
.blog-footer>ul>li a.article-tag:hover {
    background: var(--primary-color);
    color: #fff;
}

aside .tag-group .article-tag small {
    position: relative;
    top: -1px;
}

/* ============================================
   文章列表 - 浮動分類按鈕與抽屜式選單
   ============================================ */

/* 搜尋容器 */
.blog-search-filter-wrapper {
    display: none;
    margin-bottom: 20px;
}

.blog-search-box {
    margin-bottom: 0;
    width: 100%;
}

.blog-search-box .form-control,
.drawer-content .form-control,
.blog-search-box .btn-outline-secondary,
.drawer-content .btn-outline-secondary {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* 分類按鈕 - 固定在左側，垂直排列 */
.blog-category-float-btn {
    position: fixed;
    left: 0;
    bottom: 20%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 15px 10px;
    min-height: 100px;
    min-width: 50px;
    background: var(--button-bg-color);
    border: none;
    border-radius: 0 12px 12px 0;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 95;
}

.blog-category-float-btn:hover {
    background: var(--button-bg-hover-color);
    min-width: 55px;
    box-shadow: 3px 0 20px rgba(0, 0, 0, 0.25);
}

.blog-category-float-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.blog-category-float-btn i {
    font-size: 22px;
    display: block;
    margin: 0;
}

.blog-category-float-btn span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    text-orientation: upright;
}

/* 遮罩層 */
.blog-category-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 97;
    backdrop-filter: blur(2px);
}

.blog-category-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 抽屜式側邊欄 - 從左側滑出 */
.blog-category-drawer {
    position: fixed;
    left: -100%;
    top: 67px;
    width: 85%;
    max-width: 380px;
    height: calc(100vh - 67px);
    background: #fff;
    box-shadow: 2px 0 30px rgba(0, 0, 0, 0.2);
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 98;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-category-drawer.active {
    left: 0;
}

/* 抽屜標題列 */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    position: relative;
    padding: 10px 0;
}

.drawer-title i {
    font-size: 1.2rem;
}

.drawer-close-btn {
    border: none;
    color: var(--link-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 抽屜內容區 */
.drawer-content {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    min-height: 0;
    max-height: 85vh;
}

.drawer-content aside {
    height: auto;
}


/* 側邊欄隱藏狀態 (使用 class 控制，不使用 media query) */
.blog-category-drawer.drawer-hidden:not(.active) {
    display: none;
}

/* 當側邊欄開啟時，確保顯示（覆蓋 drawer-hidden） */
.blog-category-drawer.drawer-hidden.active {
    display: flex !important;
}

/* 響應式斷點 */
/* 平板和手機顯示浮動按鈕和抽屜 */
@media (max-width: 991px) {
    .blog-search-filter-wrapper {
        display: block;
    }

    .blog-category-float-btn {
        display: flex;
    }

    .drawer-content .tag-box {
        height: auto;
        padding-bottom: 30px;
    }

    .drawer-content .form-group {
        display: none;
    }

}

/* 手機尺寸優化 */
@media (max-width: 768px) {
    .blog-category-drawer {
        width: 90%;
        max-width: 340px;
    }

    .blog-category-float-btn {
        min-height: 90px;
        min-width: 45px;
        padding: 12px 8px;
    }

    .blog-category-float-btn i {
        font-size: 20px;
    }
}

/* 小手機優化 */
@media (max-width: 480px) {
    .blog-category-float-btn {
        min-height: 85px;
        min-width: 42px;
        padding: 10px 6px;
    }

    .blog-category-float-btn i {
        font-size: 18px;
    }

    .blog-category-float-btn span {
        font-size: 12px;
    }
}

/* 按鈕隱藏狀態 - 由 JS 控制 */
.blog-category-float-btn.btn-hidden {
    display: none !important;
}

/* 桌面版 - 保持原本的側邊欄樣式 */
@media (min-width: 992px) {

    /* 桌面版預設隱藏遮罩層 */
    .blog-category-overlay {
        display: none;
    }

    /* always-hidden 模式：桌面版也需要遮罩層 */
    .blog-category-overlay.active {
        display: block !important;
        z-index: 999;
    }

    /* 桌面版預設隱藏按鈕，但在 always-hidden 模式下會由 JS 控制顯示 */
    .blog-category-float-btn {
        display: none;
    }

    /* 側邊欄在桌面版的預設樣式 */
    .blog-category-drawer {
        position: relative;
        left: auto;
        top: auto;
        width: auto;
        max-width: none;
        height: auto;
        box-shadow: none;
        transition: none;
    }

    /* always-hidden 模式：桌面版也使用抽屜模式 */
    .blog-category-drawer.drawer-hidden {
        position: fixed;
        left: -100%;
        top: 0px;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        box-shadow: 2px 0 30px rgba(0, 0, 0, 0.2);
        transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1000;
    }

    /* always-hidden 模式開啟時：移到可見位置 */
    .blog-category-drawer.drawer-hidden.active {
        left: 0;
    }

    .drawer-header {
        display: none;
    }

    /* always-hidden 模式：桌面版也顯示抽屜標題列 */
    .blog-category-drawer.drawer-hidden .drawer-header {
        display: flex;
    }

    .drawer-content {
        overflow: visible;
    }

    /* always-hidden 模式：抽屜內容需要滾動 */
    .blog-category-drawer.drawer-hidden .drawer-content {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .blog-category-drawer.drawer-hidden .tag-box {
        height: auto;
        padding-bottom: 30px;
    }

}

@media (max-width: 992px) {
    aside>ul>li:last-child {
        border-bottom: 0px solid #666666;
    }
}

@media (max-width: 992px) {
    aside>ul>li+li {
        border-top: 0px solid #666666;
    }
}

aside .article-group>ul>li {
    margin-bottom: 0;
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid #efefef;
}

aside .article-group>ul>li:last-child {
    border-bottom: 0;
}

aside>ul>li>a,
aside .article-group .group-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
}

@media (max-width: 768px) {

    aside>ul>li>a[aria-expanded=true],
    aside>ul>li>a.selected {
        padding-left: 0;
        background-color: transparent;
        color: var(--accent-color);
    }
}

.btn-outline-secondary {
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    border: 1px solid var(--button-bg-color);
    letter-spacing: 1px;
}

.btn-outline-secondary:hover {
    background-color:
        color-mix(in srgb, var(--button-bg-hover-color), #fff 10%);
    color: var(--button-text-hover-color);
}

/* ============================================
    部落格文章內頁 - Showcase 風格樣式
   ============================================ */
.showcase-style-detail.blog-info .subTitle {
    display: block;
    font-size: 1rem;
    text-align: left;
    margin-bottom: 0;
    color: var(--text-color);
}

.showcase-style-detail.blog-info .article-classify>a:first-of-type {
    margin-left: 0px;
}

.showcase-style-detail.blog-info .article-img {
    margin-bottom: 1.5rem;
    text-align: center;
    background-color: #EFEFEF;
}

.showcase-style-detail .article-classify a {
    font-size: 0.9rem;
    color: var(--link-color);
}

.showcase-style-detail .article-classify a:hover {
    color: var(--link-color-hover);
}

.html-info h2,
.symptom-introduction h2 {
    font-weight: 500;
    margin: 0 0 var(--basic-margin) 0;
    font-size: var(--section-title-size);
    color: var(--primary-color);
}

.html-info h3,
.symptom-introduction h3 {
    font-weight: 500;
    font-size: var(--middle-title-size);
    margin: 1rem 0;
    color: var(--primary-color);
}

.article-category .article-category-header {
    margin-bottom: 0;
}

.category-inner {
    margin-top: 10px;
}

.article-category {
    border: 1px solid #efefef;
}

/* ============================================
   Cookie Consent 同意通知樣式
   ============================================ */

/* Cookie 通知容器 - 固定在左下角 */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

/* 顯示狀態 */
.cookie-consent.show {
    opacity: 1;
    pointer-events: auto;
}

/* 內容容器 */
.cookie-consent-content {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 文字樣式 */
.cookie-consent-content p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

/* 連結樣式 */
.cookie-consent-content a {
    color: var(--primary-color);
    text-decoration: underline !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-consent-content a:hover {
    color: var(--sub-color);
    text-decoration: underline;
}

/* 同意按鈕 */
.cookie-consent-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 4px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 1px;
    align-self: flex-end;
}

.cookie-consent-btn:hover {
    background-color: var(--sub-color);
    color: #fff;
    border-color: var(--sub-color);
    transform: translateY(-2px);
}

.cookie-consent-btn:active {
    transform: translateY(0);
}

@media (max-width: 992px) {
    .clinic-detail-row {
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    .cookie-consent {
        bottom: 15px;
        left: 15px;
        right: 15px;
        max-width: calc(100% - 30px);
    }

    .cookie-consent-content {
        padding: 15px;
    }

    .cookie-consent-content p {
        font-size: 0.8rem;
    }

    .cookie-consent-btn {
        align-self: stretch;
        text-align: center;
    }

    #index-news-image .middle-title,
    .news-list-block .middle-title,
    .blog-grid .text-box .middle-title {
        height: 75px;
    }

    .text-box p {
        position: relative;
        display: block;
        max-height: calc(2 * var(--line-height) * 1em);
        overflow: hidden;
    }

    .text-box p::after {
        content: '...';
        position: absolute;
        right: 0;
        bottom: 0;
        padding-left: 20px;
        background: linear-gradient(to right, transparent, white 40%);
    }

    /* 首頁最新消息區塊（淺灰背景） */
    #index-news .text-box p::after,
    #index-news-image .text-box p::after {
        background: linear-gradient(to right, transparent, var(--bg-light-color) 40%);
    }
}

/* 響應式設計 - 手機 */
@media (max-width: 479px) {
    .cookie-consent {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }

    .cookie-consent-content {
        padding: 12px 15px;
        gap: 12px;
    }

    .cookie-consent-content p {
        font-size: 0.8rem;
    }

    .cookie-consent-btn {
        padding: 7px 20px;
        font-size: 0.85rem;
    }
}

.container .showcase-recommend-section .container {
    padding-left: 0px;
    padding-right: 0px;
}

/* ============================================
   美麗分享 - Before/After 無圖片灰化效果
   ============================================ */

/* 列表頁：小圓縮圖無圖片時灰化 */
.blog-showcase-style .blog-before-frame.no-image {
    opacity: 0.6;
}

.blog-showcase-style .blog-before-frame.no-image img {
    filter: grayscale(100%);
}

/* 詳細頁：對比圖無圖片時灰化 */
.compare-container .compare-image.no-image {
    opacity: 0.6;
}

.compare-container .compare-image.no-image img {
    filter: grayscale(100%);
}

/* 無標籤時調整間距 */
.compare-container .compare-item .compare-image:first-child {
    border-radius: 20px 20px 0 0;
}

@media (max-width: 767px) {
    .compare-container .compare-item .compare-image:first-child {
        border-radius: 15px 15px 0 0;
    }
}

/* ============================================
   影片區塊 RWD + Slider 樣式
   ============================================ */

@media (max-width: 600px) {
    #videoDesc p {
        display: none;
    }

    .video-info-box {
        padding-bottom: 0;
    }
}

.recommended-container {
    margin: 0 -8px;
}

.col4-slider .slick-slide,
.col3-slider .slick-slide,
.col2-slider .slick-slide {
    padding: 0 10px;
}

.col4-slider .slick-list,
.col3-slider .slick-list,
.col2-slider .slick-list {
    margin: 0px;
}

/* 遮蓋左側因 padding 造成的邊框突出 */
.border-mask-left::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 15px;
    height: 1px;
    background-color: #fff;
    z-index: 1;
}

@media (min-width: 993px) {
    aside {
        padding-top: 0;
    }
}

/* ========== 全站搜尋結果頁 ========== */
.search-result-summary {
    margin-bottom: 30px;
    color: #666;
}

.search-section {
    margin-bottom: 40px;
}

.search-section-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}