/* 思源黑 */
/* @import url(//fonts.googleapis.com/earlyaccess/notosanstc.css); */
/* 黑體 */
/* @import url(//fonts.googleapis.com/earlyaccess/cwtexhei.css); */
/* 仿宋體 */
/* @import url(//fonts.googleapis.com/earlyaccess/cwtexfangsong.css); */
/* 楷書 */
/* @import url(//fonts.googleapis.com/earlyaccess/cwtexkai.css); */
/* 明體 */
/* @import url(//fonts.googleapis.com/earlyaccess/cwtexming.css); */
/* 圓體 */
/* @import url(//fonts.googleapis.com/earlyaccess/cwtexyen.css); */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Noto+Serif+TC:wght@200..900&family=Cormorant+Garamond:wght@300;400;500&family=Roboto:ital,wght@0,100..900;1,100..900&family=JetBrains+Mono:wght@400;500&family=Anton&family=Bebas+Neue&display=swap");

@font-face {
    font-family: "新微軟正黑體";
    unicode-range: U+7db0, U+78A7, U+7B75;
    font-style: normal;
    font-weight: bold;
    src: local(MS Gothic), local(Yu Gothic);
}

@font-face {
    font-family: "新微軟正黑體";
    unicode-range: U+7db0, U+78A7, U+7B75;
    font-style: normal;
    font-weight: normal;
    src: local(微軟正黑體), local(Microsoft JhengHei);
}

label.error {
    display: none !important;
}

input.error,
textarea.error,
select.error {
    border: 1px solid #ff0000 !important;
    background-color: #ffeeee !important;
}

.transition *,
.transition:hover * {
    -o-transition: all 0.2s linear !important;
    -webkit-transition: all 0.2s linear !important;
    -moz-transition: all 0.2s linear !important;
    transition: all 0.2s linear !important;
}

::placeholder {
    color: rgb(199, 199, 199) !important;
    font-style: italic;
}

[placeholder]:focus::-webkit-input-placeholder {
    transition: opacity 1s 0s ease;
    opacity: 0;
}

img.img-responsive,
img.img-fluid {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border: none !important;
}

.cms_around div:not(.col-sm-4):not(.col-sm-6) {
    margin: auto 15px;
}

#verifyImgCode {
    cursor: pointer;
}

.error404 {
    padding-top: 3em;
    padding-bottom: 3em;
    text-align: center;
}

.youtube_content {
    position: relative;
    padding-top: 30px;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
}

.youtube_content iframe,
.youtube_content object,
.youtube_content embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.all-trans {
    -o-transition: all 0.5s linear !important;
    -webkit-transition: all 0.5s linear !important;
    -moz-transition: all 0.5s linear !important;
    transition: all 0.5s linear !important;
}

.all-trans:hover {
    -o-transition: all 0.5s linear !important;
    -webkit-transition: all 0.5s linear !important;
    -moz-transition: all 0.5s linear !important;
    transition: all 0.5s linear !important;
}

.overlybox {
    display: block;
    overflow: hidden;
}

.overlybox img {
    transition: all 0.5s;
}

.overlybox:hover img {
    transform: scale(1.4);
}

.fullTexty {
    text-align: justify;
    text-justify: auto;
}

.justifyContain {
    display: block;
    text-align: justify;
    text-align-last: justify;
}

.overflowTexty {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.overflow_multi {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ckeditor_div_background {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hidden {
    display: none !important;
}

/* This code is tested with latest version of Firefox and Chrome */
.image-shadow-box {
    position: relative;
    background-color: #fff;
    box-shadow:
        0 1px 5px rgba(0, 0, 0, 0.25),
        0 0 50px rgba(0, 0, 0, 0.1) inset;
    border-radius: 0% 0% 0% 0% / 0% 0% 0% 0%;
    margin-bottom: 30px;
}

.image-shadow-box:before {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: 14px;
    left: 11px;
    width: 50%;
    height: 20%;
    box-shadow: 0 14px 10px rgba(0, 0, 0, 0.7);
    -webkit-transform: rotate(-5deg) skew(-0deg);
    -moz-transform: rotate(-5deg) skew(-0deg);
    -ms-transform: rotate(-5deg) skew(-0deg);
    -o-transform: rotate(-5deg) skew(-0deg);
    transform: rotate(-5deg) skew(-0deg);
}

.image-shadow-box:after {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: 14px;
    right: 11px;
    width: 50%;
    height: 20%;
    box-shadow: 0 14px 10px rgba(0, 0, 0, 0.7);
    -webkit-transform: rotate(5deg) skew(0deg);
    -moz-transform: rotate(5deg) skew(0deg);
    -ms-transform: rotate(5deg) skew(0deg);
    -o-transform: rotate(5deg) skew(0deg);
    transform: rotate(5deg) skew(0deg);
}

.cms_margin_auto {
    margin: auto !important;
}

.cms_no_margin {
    margin: 0 !important;
}

.cms_no_padding {
    padding: 0 !important;
}

/* ************************
Editor area style
************************ */

:root {
    --h1-font: 2rem;
    --h2-font: 1.8rem;
    --h3-font: 1.35rem;
    --h4-font: 1.25rem;
    --h5-font: 1.15rem;
    --h6-font: 1rem;
    --desc-font: 0.96rem;
    --head-line-height: 0.5rem;
    --desc-line-height: 0.7rem;
    --text-color: #cccccc;
    --title-margin: 0.6rem 0;
    --desc-margin: 0.6rem 0;
}
.editor-area {
    font-size: var(--desc-font);
    line-height: calc(var(--desc-font) + var(--desc-line-height));
}
.editor-area p {
    font-size: var(--desc-font);
    line-height: calc(var(--desc-font) + var(--desc-line-height));
    margin: var(--desc-margin);
}

.editor-area li {
    font-size: var(--desc-font);
    line-height: calc(var(--desc-font) + var(--desc-line-height));
}

.editor-area li:not(:last-child) {
    margin-bottom: 0.5rem;
}

div[class*="col-"] > img,
div[class*="col-"] > .img-fluid {
    margin: 0;
}

.editor-area ul {
    list-style-type: disc;
    margin: 0;
    padding: 0 0 0 15px;
}

.editor-area ol {
    list-style-type: decimal;
    margin: 0;
    padding: 0 0 0 15px;
}

.editor-area h1 {
    font-size: var(--h1-font);
    line-height: calc(var(--h1-font) + var(--desc-line-height));
}

.editor-area h2 {
    font-size: var(--h2-font);
    line-height: calc(var(--h2-font) + var(--desc-line-height));
}

.editor-area h3 {
    font-size: var(--h3-font);
    line-height: calc(var(--h3-font) + var(--desc-line-height));
}

.editor-area h4 {
    font-size: var(--h4-font);
    line-height: calc(var(--h4-font) + var(--desc-line-height));
}

.editor-area h5 {
    font-size: var(--h5-font);
    line-height: calc(var(--h5-font) + var(--desc-line-height));
}

.editor-area h6 {
    font-size: var(--h6-font);
    line-height: calc(var(--h6-font) + var(--desc-line-height));
}

.editor-area h1,
.editor-area h2,
.editor-area h3 {
    font-weight: 600;
    margin: var(--title-margin);
}

.editor-area h4,
.editor-area h5,
.editor-area h6 {
    font-weight: 600;
    margin: var(--title-margin);
}

.editor-area hr {
    color: #dbdbdb;
    opacity: 1;
    margin: 2rem 0;
}

/* ************************
Plugin Blueimp style
************************ */
.blueimp-gallery > .indicator > li {
    background-size: cover;
}

.blueimp-gallery > .next,
.blueimp-gallery > .prev,
.blueimp-gallery > .close,
.blueimp-gallery > .title,
.blueimp-gallery > .indicator {
    display: block;
}

.blueImpGallery #links a {
    max-width: 200px;
    height: 150px;
    display: inline-block;
    text-align: center;
    margin: 7px;
}

.blueImpGallery #links a img {
    width: auto;
    height: auto;
    max-height: 100%;
    max-width: 100%;
}

.gsc-adBlock {
    display: none !important;
}

/* ************************
Modal style
************************ */
.modal {
    z-index: 99999;
}

.modal-dialog-centered {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - (0.5rem * 2));
}

.modal-content {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
}

.modal-header .close {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
}

.modal-title {
    display: inline;
    font-size: 18px;
    font-weight: bold;
}

.modal-title,
.modal-body {
    color: #101010;
}

.modal-body div.contact_message {
    text-align: center;
    margin: 0;
    font-size: 20px;
    line-height: 26px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.modal-body .contact_message {
    color: #101010 !important;
    text-align: center;
    font-size: 16px !important;
    padding-top: 30px;
    padding-bottom: 30px;
}

.modal-title {
    color: #101010 !important;
    font-size: 20px !important;
    font-weight: bold !important;
}

.modal-footer {
    justify-content: center !important;
    border-top: none !important;
}

/* ************************
Facebook plugin style
************************ */
/* Facebook Plugin */
.fb-comments {
    width: 100% !important;
}

.fb-comments iframe[style] {
    width: 100% !important;
}

.fb-like-box {
    min-width: 280px;
    width: 100% !important;
}

.fb-like-box iframe[style] {
    min-width: 280px;
    width: 100% !important;
}

.fb-comments span {
    width: 100% !important;
}

.fb-comments iframe span[style] {
    width: 100% !important;
}

.fb-like-box span {
    min-width: 280px;
    width: 100% !important;
}

.fb-like-box iframe span[style] {
    min-width: 280px;
    width: 100% !important;
}

/* define bootstrap 5 columns */
.col-xs-1-5,
.col-sm-1-5,
.col-md-1-5,
.col-lg-1-5 {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

.col-xs-1-5 {
    width: 20%;
    float: left;
}

@media (max-width: 768px) {
    .fbBox {
        text-align: center;
        margin-right: auto;
        margin-left: auto;
    }
}

@media (min-width: 768px) {
    .col-sm-1-5 {
        width: 20%;
        float: left;
    }
}

@media (min-width: 992px) {
    .col-md-1-5 {
        width: 20%;
        float: left;
    }
}

@media (min-width: 1200px) {
    .col-lg-1-5 {
        width: 20%;
        float: left;
    }
}

@media (min-width: 576px) {
    .modal-dialog-centered {
        min-height: calc(100% - (1.75rem * 2));
    }

    .close:not(:disabled):not(.disabled) {
        cursor: pointer;
    }

    .close:focus,
    .close:hover {
        color: #101010;
        text-decoration: none;
        opacity: 0.75;
    }

    .close {
        float: right;
        font-size: 2.5rem;
        font-weight: 700;
        line-height: 1;
        color: #101010;
        text-shadow: 0 1px 0 #fff;
        opacity: 0.5;
    }

    .close:not(:disabled):not(.disabled) {
        cursor: pointer;
    }

    .close:focus,
    .close:hover {
        color: #101010;
        text-decoration: none;
        opacity: 0.75;
    }

    button.close {
        padding: 0;
        background-color: transparent;
        border: 0;
        appearance: none;
        -webkit-appearance: none;
    }
}

/* ************************
web Search popup
************************ */
.search-popup-btn {
    color: #101010;
    margin-left: 11px;
}

#searchpopup {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: transparent;
}

.search-popup-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.search-form {
    max-width: 800px;
    width: 100%;
}

.media-popup-style .fancybox__backdrop {
    background: rgba(255, 255, 255, 0.95);
}

.search-popup-style .fancybox__backdrop {
    background: rgba(255, 255, 255, 0.95);
}

.search-popup-style.fancybox__container:not(.is-compact) .fancybox__slide.has-close-btn {
    padding: 55px 15px 0 15px;
}

.search-popup-style .fancybox__content > .f-button.is-close-btn {
    opacity: 90%;
    color: #101010;
}

.search-popup-style .fancybox__content > .f-button.is-close-btn:hover {
    opacity: 100%;
}

.search-input-group {
    position: relative;
}

.search-input-group .search-input {
    margin-bottom: 0;
    background-color: transparent;
    border: 0;
    border-bottom: 1px solid #101010;
    padding: 15px 40px 15px 0;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 500;
    color: #101010;
    font-style: normal;
    letter-spacing: 0.5px;
}

.search-input-group .search-input.error {
    margin-bottom: 0;
    background-color: transparent !important;
    padding: 15px 0;
    font-size: 18px;
    border-right: none !important;
    border-left: none !important;
    border-top: none !important;
    border-bottom: 2px solid rgb(255, 0, 0) !important;
}

.search-input-group .search-input.error::placeholder {
    color: #ff5555 !important;
}

.search-input-group .search-input::placeholder {
    color: rgba(16, 16, 16, 0.5) !important;
    font-style: normal;
    opacity: 1;
}

.search-input-group .search-input:focus {
    border-color: #101010 !important;
}

.search-result-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    outline: unset;
    box-shadow: unset;
    border: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    border-radius: 50%;
    line-height: 1;
    letter-spacing: normal;
    padding: 0;
    font-size: 1.5rem;
    color: #101010;
    background-color: transparent;
}

.search-result-btn > span {
    display: none;
}

.search-popup-btn {
    font-size: 18px;
    line-height: normal;
    color: #101010;
    padding: 0;
    border-radius: 40px;
    font-weight: 500;
}

.search-popup-btn .t {
    display: none;
}

.search-popup-btn:active,
.search-popup-btn:hover {
    color: #101010;
    background-color: transparent;
}

@media (max-width: 767px) {
    .search-popup-btn {
        margin-left: 0;
    }

    .search-input-group .search-input {
        font-size: 1.15rem;
    }

    .search-result-btn {
        font-size: 1.15rem;
    }

    #searchpopup {
        padding: 1rem;
    }

    .is-compact .fancybox__content > .f-button.is-close-btn {
        top: 11px;
        right: 6px;
        color: rgba(0, 108, 146, 0.95);
        background-color: rgba(255, 255, 255, 0.9);
    }
}

/* ************************
AJAX loading
************************ */
#ajax_loading {
    width: 100%;
    height: 100%;
    display: block;
    background-color: rgba(255, 255, 255, 0.8);
    background-image: url("/images/common/ajax_loading.svg");
    background-repeat: no-repeat;
    background-position: center center;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99999;
}

/* ===================================================================
   Merged from css/style.css — 2026-05-28
   =================================================================== */

/* ===== 診斷開關:在 <html> 加上 data-no-fx 來關閉所有「閒置時也在跑」的特效。
   用來驗證捲動卡頓是否來自 backdrop-filter / fixed blur / 持續動畫的 layer 降級回升成本。
   驗證完請移除此區塊。 */
html[data-no-fx] body::before,
html[data-no-fx] .about-split__panel::before {
    display: none !important;
}

html[data-no-fx] *,
html[data-no-fx] *::before,
html[data-no-fx] *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    animation: none !important;
}

html[data-no-fx] .grain-canvas {
    display: none !important;
}

/* ===== Design Tokens(淺灰階 / 編輯黑白風) ===== */
:root {
    --brand: #3a3a3a;
    --brand-2: #1a1a1a;
    --bg: #f7f7f5;
    /* 米白頁面底 */
    --bg-elev-1: #ffffff;
    /* 卡片底 */
    --bg-elev-2: #fbfbf9;
    /* 第二層卡片(微暖白) */
    --text: #0a0a0a;
    /* 近黑(不用純黑) */
    --text-muted: #5a5a5a;
    /* 次文字 */
    --text-subtle: #8a8a8a;
    /* 輔助、metadata */
    --border: rgba(10, 10, 10, 0.1);
    --border-strong: rgba(10, 10, 10, 0.18);
    --danger: #e95555;
    --shadow-sm: 0 2px 8px rgba(10, 10, 10, 0.06);
    --shadow-md: 0 8px 24px rgba(10, 10, 10, 0.08);
    --shadow-lg: 0 20px 50px rgba(10, 10, 10, 0.12);

    --font-display: "Roboto", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    --font-body: "Roboto", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    --t-fast: 150ms;
    --t-base: 250ms;
    --t-slow: 400ms;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);

    --z-header: 1020;
    --z-grain: 100;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 105px;
}

body {
    font-family: "Segoe UI", "Microsoft JhengHei", Arial, sans-serif;
    background: #ededeb;
    color: var(--text);
    line-height: 1.6;
}

#main {
    position: relative;
    z-index: 1;
    /* 用 clip 而非 hidden:hidden 會讓 overflow-y 被瀏覽器改算成 auto,
       使 #main 變成獨立捲動容器而多出第二條捲軸。clip 只裁水平、不建立捲動容器。 */
    overflow-x: clip;
}

/* ===== Ambient page glow(整站底層慢速漂移光暈) =====
   兩層藍綠 radial-gradient 大幅 blur,30~45s 慢漂,固定在視窗。
   只在 body 沒被實心區段背景蓋住的地方透出來,所以視覺像「呼吸的色光」。
   prefers-reduced-motion 直接停用動畫,但顏色仍保留。 */
body::before {
    content: "";
    position: fixed;
    inset: -15vmax;
    z-index: 0;
    pointer-events: none;
    background:
        /* 上弧:暖粉橘,集中在右上,環狀(中空) */
        radial-gradient(
            circle 34vmax at 62% 38%,
            rgba(220, 175, 165, 0) 0%,
            rgba(220, 175, 165, 0) 35%,
            rgba(220, 175, 165, 0.85) 50%,
            rgba(220, 175, 165, 0) 70%
        ),
        /* 下弧:冷藍灰,集中在中下偏左,環狀(中空) */
        radial-gradient(
                circle 34vmax at 52% 70%,
                rgba(110, 135, 165, 0) 0%,
                rgba(110, 135, 165, 0) 35%,
                rgba(110, 135, 165, 0.85) 50%,
                rgba(110, 135, 165, 0) 70%
            ),
        /* 微亮中心墊一點霧氣,讓環的內側不死黑 */
        radial-gradient(ellipse 35% 28% at 56% 55%, rgba(200, 210, 220, 0.25) 0%, rgba(200, 210, 220, 0) 75%);
    filter: blur(80px);
    will-change: transform;
    animation: page-glow-drift 32s ease-in-out infinite alternate;
}

/* 平板/手機:全螢幕 blur 對行動 GPU 太貴,直接拿掉光暈 */
@media (max-width: 1024px) {
    body::before {
        display: none;
    }
}

@keyframes page-glow-drift {
    0% {
        transform: translate3d(-8%, -5%, 0) scale(1) rotate(-2deg);
    }

    33% {
        transform: translate3d(6%, -7%, 0) scale(1.12) rotate(1.5deg);
    }

    66% {
        transform: translate3d(8%, 6%, 0) scale(1.18) rotate(3deg);
    }

    100% {
        transform: translate3d(-5%, 8%, 0) scale(1.08) rotate(-1deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before {
        animation: none;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Skip link — 鍵盤族第一個按 Tab 會看到 */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 9999;
    padding: 10px 18px;
    background: var(--brand);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: top var(--t-base) var(--ease);
}

.skip-link:focus {
    top: 16px;
}

/* 全域 focus ring */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===== Grain Canvas Overlay(沉浸感招牌) ===== */
.grain-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: var(--z-grain);
    /* 淺底用 multiply,顆粒以「壓暗」呈現,不會洗白整個頁面 */
    mix-blend-mode: multiply;
    opacity: 0.18;
}

/* ===== Header / Navbar ===== */
html,
body {
    font-family: "Roboto", "Noto Sans TC", sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: transparent;
    padding: 30px 0;
    color: #f0e8df;
    transition:
        background-color var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease),
        color var(--t-base) var(--ease),
        backdrop-filter var(--t-base) var(--ease);
}

/* 捲動前(頁首):透明背景 + 反白文字 */
.header .header-nav__link {
    color: inherit;
}

.header .menu-toggle,
.header .header-search-toggle {
    color: inherit;
    border-color: rgba(240, 232, 223, 0.55);
}

.header .menu-toggle:hover,
.header .header-search-toggle:hover {
    border-color: currentColor;
    background: rgba(255, 255, 255, 0.08);
}

/* 兩張 logo 疊圖切換 */
.header .logo {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.header .logo__img {
    transition: opacity var(--t-base) var(--ease);
}

.header .logo__img--scrolled {
    position: absolute;
    inset: 0;
    opacity: 0;
}

/* 捲動後:白底 + 深字 + 換 logo */
.header.scrolled {
    background: rgba(247, 247, 245, 0.92);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    color: var(--text);
}

.header.scrolled .menu-toggle,
.header.scrolled .header-search-toggle {
    border-color: rgba(10, 10, 10, 0.25);
}

.header.scrolled .menu-toggle:hover,
.header.scrolled .header-search-toggle:hover {
    background: rgba(10, 10, 10, 0.04);
}

.header.scrolled .logo__img--default {
    opacity: 0;
}

.header.scrolled .logo__img--scrolled {
    opacity: 1;
}

.header .container-fluid,
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 55px;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Header Nav — 桌機僅露 3 主項 */
.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-right: 10px;
}

.header-nav__link {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--text);
    position: relative;
    padding: 6px 0;
    transition: color 0.25s ease;
}

.header-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease, ease);
}

.header-nav__link:hover::after,
.header-nav__link:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Menu Toggle — 4 點圓圈按鈕 */
.menu-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(10, 10, 10, 0.3);
    background: transparent;
    cursor: pointer;
    color: var(--text);
    position: relative;
    display: inline-block;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.4s var(--ease, ease);
}

.menu-toggle:hover {
    border-color: var(--text);
    background: rgba(10, 10, 10, 0.04);
}

.menu-toggle__dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    display: block;
    transition:
        transform 0.45s var(--ease, ease),
        width 0.45s var(--ease, ease),
        height 0.45s var(--ease, ease),
        border-radius 0.45s var(--ease, ease);
}

/* 預設:4 點分布於 2x2 (距中心 ±7.5px) */
.menu-toggle .menu-toggle__dot:nth-child(1) {
    transform: translate(-50%, -50%) translate(-7.5px, -7.5px);
}

.menu-toggle .menu-toggle__dot:nth-child(2) {
    transform: translate(-50%, -50%) translate(7.5px, -7.5px);
}

.menu-toggle .menu-toggle__dot:nth-child(3) {
    transform: translate(-50%, -50%) translate(-7.5px, 7.5px);
}

.menu-toggle .menu-toggle__dot:nth-child(4) {
    transform: translate(-50%, -50%) translate(7.5px, 7.5px);
}

/* Hover:4 點收攏至中心 */
.menu-toggle:hover .menu-toggle__dot:nth-child(1),
.menu-toggle:hover .menu-toggle__dot:nth-child(2),
.menu-toggle:hover .menu-toggle__dot:nth-child(3),
.menu-toggle:hover .menu-toggle__dot:nth-child(4) {
    transform: translate(-50%, -50%);
}

/* 啟用:從中心延伸成交叉 X */
.menu-toggle.active {
    transform: rotate(180deg);
    border-color: var(--text);
}

.menu-toggle.active .menu-toggle__dot,
.fullscreen-menu__close .menu-toggle__dot {
    width: 22px;
    height: 1.5px;
    border-radius: 2px;
}

.menu-toggle.active .menu-toggle__dot:nth-child(1),
.menu-toggle.active .menu-toggle__dot:nth-child(4),
.fullscreen-menu__close .menu-toggle__dot:nth-child(1),
.fullscreen-menu__close .menu-toggle__dot:nth-child(4) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-toggle.active .menu-toggle__dot:nth-child(2),
.menu-toggle.active .menu-toggle__dot:nth-child(3),
.fullscreen-menu__close .menu-toggle__dot:nth-child(2),
.fullscreen-menu__close .menu-toggle__dot:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Header Search Toggle — 圓形放大鏡按鈕,規格對齊 .menu-toggle */
.header-search-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(10, 10, 10, 0.3);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    padding: 0;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.4s var(--ease, ease);
}

.header-search-toggle:hover {
    border-color: var(--text);
    background: rgba(10, 10, 10, 0.04);
}

.header-search-toggle svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* 鎖背景滾動 — 全屏選單開啟時 */
body.menu-open,
body.search-open {
    overflow: hidden;
}

/* ===== Search Modal ===== */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-header) + 20);
    background: rgba(15, 15, 18, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.35s var(--ease, ease),
        visibility 0s linear 0.35s;
}

.search-modal.is-open {
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.35s var(--ease, ease),
        visibility 0s;
}

.search-modal__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.4s var(--ease, ease);
}

.search-modal__close:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(90deg);
}

.search-modal__close svg {
    width: 18px;
    height: 18px;
}

.search-modal__form {
    width: min(720px, 100%);
    transform: translateY(20px);
    opacity: 0;
    transition:
        transform 0.45s var(--ease, ease) 0.05s,
        opacity 0.45s ease 0.05s;
}

.search-modal.is-open .search-modal__form {
    transform: translateY(0);
    opacity: 1;
}

.search-modal__label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    letter-spacing: 0.24em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.search-modal__row {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 14px;
}

.search-modal__input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    font-family: inherit;
    font-size: clamp(22px, 3.6vw, 36px);
    font-weight: 300;
    font-style: normal;
    letter-spacing: 0.04em;
    padding: 4px 0;
}

.search-modal__input::placeholder {
    font-style: normal;
    color: rgba(255, 255, 255, 0.4);
}

.search-modal__submit {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.18em;
    padding: 12px 24px;
    border-radius: 999px;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
    white-space: nowrap;
}

.search-modal__submit:hover {
    background: #fff;
    color: #0a0a0a;
    border-color: #fff;
}

@media (max-width: 767px) {
    .search-modal__row {
        flex-wrap: wrap;
    }

    .search-modal__submit {
        width: 100%;
        padding: 14px 24px;
    }
}

/* ===== Fullscreen Menu ===== */
.fullscreen-menu {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-header) + 10);
    /* 參考 loading 背景的淺色版本 — 灰白光暈,對比加強 */
    background:
        radial-gradient(ellipse 60% 80% at 75% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(200, 200, 200, 0) 60%),
        radial-gradient(ellipse 55% 75% at 18% 38%, rgba(255, 255, 255, 0.85) 0%, rgba(200, 200, 200, 0) 65%),
        radial-gradient(ellipse 45% 60% at 85% 15%, rgba(180, 180, 180, 0.4) 0%, rgba(180, 180, 180, 0) 70%),
        linear-gradient(135deg, #c8c8c8 0%, #e8e8e8 45%, #b8b8b8 100%);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition:
        opacity 0.45s var(--ease, ease),
        visibility 0.45s var(--ease, ease);
}

/* SVG turbulence 紋理層:疊在底圖上做水紋肌理,選單開啟時緩慢漂移 */
.menu-bg-noise {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.85;
}

.fullscreen-menu.is-open .menu-bg-noise {
    animation: menu-water-drift 28s ease-in-out infinite alternate;
}

@keyframes menu-water-drift {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(-2%, -1.5%) scale(1.04) rotate(0.6deg);
    }

    100% {
        transform: translate(2%, 1.5%) scale(1.06) rotate(-0.4deg);
    }
}

/* WebGL 水波紋 canvas:疊在紋理上、內容下 */
.menu-ripple {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fullscreen-menu.is-open .menu-ripple {
    opacity: 0.5;
}

.fullscreen-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fullscreen-menu__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: clamp(20px, 5vw, 40px) clamp(20px, 5vw, 40px) 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.fullscreen-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 32px;
}

.fullscreen-menu__logo img {
    height: 55px;
    width: auto;
}

.fullscreen-menu__close {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(10, 10, 10, 0.3);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    position: relative;
    display: inline-block;
    transition:
        transform 0.4s var(--ease, ease),
        border-color 0.25s ease,
        background 0.25s ease;
}

.fullscreen-menu__close:hover {
    border-color: var(--text);
    background: rgba(10, 10, 10, 0.04);
}

.fullscreen-menu__close:hover .menu-toggle__dot:nth-child(1),
.fullscreen-menu__close:hover .menu-toggle__dot:nth-child(4) {
    transform: translate(-50%, -50%) rotate(45deg) scaleX(1.1);
}

.fullscreen-menu__close:hover .menu-toggle__dot:nth-child(2),
.fullscreen-menu__close:hover .menu-toggle__dot:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg) scaleX(1.1);
}

.fullscreen-nav {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(40px, 8vw, 120px);
    row-gap: 50px;
    align-content: center;
    padding: 24px 0;
}

.fullscreen-nav__item {
    position: relative;
}

.fullscreen-nav__link {
    font-family: var(--font-display, "Noto Serif TC", serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    color: var(--text);
    line-height: 1.05;
    letter-spacing: 0.01em;
    display: inline-block;
    margin-left: -2px;
    position: relative;
    padding-bottom: 6px;
    transition:
        color 0.3s ease,
        transform 0.5s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
        letter-spacing 0.5s var(--ease, ease);
}

.fullscreen-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.fullscreen-nav__link:hover,
.fullscreen-nav__link:focus-visible {
    color: var(--brand);
    letter-spacing: 0.04em;
}

.fullscreen-nav__link:hover::after,
.fullscreen-nav__link:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 桌機:子連結改用 ul/li,字級放大,/ 分隔 */
.fullscreen-nav__sub {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    font-family: var(--font-display, "Noto Serif TC", serif);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-muted, rgba(10, 10, 10, 0.6));
}

.fullscreen-nav__sub li {
    display: inline-flex;
    align-items: center;
    gap: 20px;
}

.fullscreen-nav__sub li + li::before {
    content: "";
    height: 17px;
    width: 1px;
    background-color: rgba(10, 10, 10, 0.22);
}

.fullscreen-nav__sub a {
    color: inherit;
    position: relative;
    font-size: 16px;
    transition: color 0.2s ease;
}

.fullscreen-nav__sub a:hover {
    color: var(--brand);
}

/* 桌機隱藏行動展開鈕 */
.fullscreen-nav__expand {
    display: none;
}

.fullscreen-menu__foot {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding-top: 40px;
    border-top: 1px solid rgba(10, 10, 10, 0.08);
}

.fullscreen-menu__social {
    display: flex;
    gap: 12px;
}

.fullscreen-menu__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text);
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.fullscreen-menu__social a:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-2px);
}

/* 行動版:全屏選單改成單欄 + 主項點擊展開二級 */
@media (max-width: 767px) {
    .header-nav {
        display: none;
    }

    .fullscreen-nav {
        grid-template-columns: 1fr;
        row-gap: 0;
        align-content: start;
        padding: 8px 0;
    }

    .fullscreen-nav__item {
        border-bottom: 1px solid rgba(10, 10, 10, 0.08);
        padding: 18px 0;
    }

    .fullscreen-nav__link {
        font-size: 24px;
        padding-bottom: 0;
    }

    .fullscreen-nav__expand {
        display: inline-flex;
        position: absolute;
        right: 0;
        top: 14px;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid rgba(10, 10, 10, 0.2);
        border-radius: 50%;
        color: var(--text);
        font-size: 12px;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .fullscreen-nav__item.is-expanded .fullscreen-nav__expand {
        transform: rotate(180deg);
    }

    .fullscreen-nav__sub {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        max-height: 0;
        margin-top: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        font-family: inherit;
        font-size: 15px;
        letter-spacing: 0;
    }

    .fullscreen-nav__item.is-expanded .fullscreen-nav__sub {
        max-height: 400px;
        margin-top: 12px;
        padding-bottom: 4px;
    }

    .fullscreen-nav__sub li {
        display: block;
        gap: 0;
        width: 100%;
    }

    .fullscreen-nav__sub a {
        display: block;
        padding: 8px 0;
    }

    .fullscreen-nav__sub li + li::before {
        display: none;
    }
}

/* ===== Hero Section / Banner Slider ===== */
/* ===== Hero(雜誌封面式版型,參考 MyHealthPrac) ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 720px;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #0a0f12;
    color: #f0e8df;
    /* 暖白(不是純白)— 跟照片膚色更融合 */
    overflow: hidden;
    isolation: isolate;
}

/* 漂浮背景層 — 繼承 .hero-slide 上 inline style 的 background-image,
   保留原 HTML 結構不動;只在 active slide 上跑動畫,避免閒置幻燈片浪費資源 */
.hero-slide::after {
    content: "";
    position: absolute;
    inset: -4%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translate3d(0, 0, 0) scale(1.04);
    transform-origin: 50% 50%;
    will-change: transform;
    backface-visibility: hidden;
    z-index: 0;
}

.swiper-slide-active.hero-slide::after {
    animation: heroSlideDrift 22s ease-in-out infinite alternate;
}

@keyframes heroSlideDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1.04);
    }

    50% {
        transform: translate3d(-0.8%, -0.6%, 0) scale(1.07);
    }

    100% {
        transform: translate3d(0.8%, 0.4%, 0) scale(1.09);
    }
}

@media (prefers-reduced-motion: reduce) {
    .swiper-slide-active.hero-slide::after {
        animation: none;
        transform: none;
    }
}

/* 漸層遮罩:左下重、右上淺,讓左側字清楚、右側照片仍有戲 */
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.33) 0%, rgba(0, 0, 0, 0.18) 30%, rgba(0, 0, 0, 0.45) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0.06) 100%);
    pointer-events: none;
    z-index: 1;
}

/* 整張 hero 的內容容器(左右兩側 padding,垂直撐滿) */
.hero-frame {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    gap: 24px;
    padding: clamp(100px, 14vh, 140px) clamp(24px, 5vw, 80px) clamp(60px, 8vh, 100px);
    margin: 0 auto;
}

/* ===== 背景大字(浮水印拼貼) ===== */
.editor-area .hero-bg-text {
    position: absolute;
    top: clamp(80px, 90vh, 160px);
    left: clamp(-20px, -1vw, -20px);
    right: 0;
    z-index: 1;
    font-family: "Anton", "Bebas Neue", sans-serif;
    font-size: clamp(8rem, 22vw, 22rem);
    font-weight: 400;
    line-height: 0.85;
    letter-spacing: -0.02em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(240, 232, 223, 0.1);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .editor-area .hero-bg-text {
        display: none;
    }
}

/* ===== 主標題 — 超粗描邊空心字、拼貼疊影 ===== */
.editor-area .hero-headline {
    align-self: end;
    position: relative;
    z-index: 2;
    font-family: "Noto Sans TC", var(--font-display);
    font-size: clamp(3rem, 11vw, 9.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 30px 0;
    max-width: 14ch;
    color: transparent;
    -webkit-text-stroke: 2px #f0e8df;
    transition: 0.3s ease-in-out;
}

.editor-area .hero-headline:hover {
    color: #f0e8df;
    -webkit-text-stroke: 0;
}

/* 每一行包一個容器,讓疊影定位有依據 */
.hero-line {
    display: block;
    position: relative;
}

/* SplitText 切出的字元(JS 加 .split-char):inline-block + 隱藏溢出由父層控制 */
.split-char {
    display: inline-block;
}

/* SplitText 切出的「詞」:整個英文片語(如 Jetpeel Pro)綁在一起不被空格折斷,
   中文每字也算一個 word,但因都 inline-block 仍可自然換行 */
.split-word {
    display: inline-block;
}

/* 被切過字的 section 標題,讓位移動畫不撐高行框 */
.about-split__title,
.news-split__title,
.block-headline {
    overflow: hidden;
}

/* 拼貼疊影層保留結構但預設關閉,避免影響主標可讀性 */
.hero-line::before,
.hero-line::after {
    display: none;
}

/* 左下三個 feature 條 */
.hero-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.5vw, 36px);
    max-width: 880px;
    align-self: end;
    border-top: 1px solid rgba(240, 232, 223, 0.18);
    padding-top: 28px;
}

.hero-features > ul {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    /* 蓋掉 .editor-area ul/li 預設清單樣式(disc、左內距) */
    list-style: none;
    margin: 0;
    padding: 0;
}

.editor-area .hero-features > ul > li {
    margin: 0;
    list-style: none;
}

/* 首頁:loader 還在時,把 hero-features 整體壓著,等 body.page-loaded 再上來,
   並以 stagger 錯開,延遲略晚於 hero 標題逐字進場,讓視覺節奏對齊 */
body:not(.page-loaded) .hero-features > ul {
    opacity: 0;
    transform: translateY(18px);
}

.hero-features > ul {
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0s;
}

body.page-loaded .hero-features > ul {
    opacity: 1;
    transform: translateY(0);
}

body.page-loaded .hero-features > ul:nth-child(1) {
    transition-delay: 0.55s;
}

body.page-loaded .hero-features > ul:nth-child(2) {
    transition-delay: 0.7s;
}

body.page-loaded .hero-features > ul:nth-child(3) {
    transition-delay: 0.85s;
}

@media (prefers-reduced-motion: reduce) {
    body:not(.page-loaded) .hero-features > ul,
    body.page-loaded .hero-features > ul {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.hero-features > ul i {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(240, 232, 223, 0.32);
    color: #f0e8df;
    font-size: 14px;
}

.hero-features > ul h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 2px 0 6px;
    color: #f0e8df;
    letter-spacing: 0.02em;
}

.hero-features > ul p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(240, 232, 223, 0.72);
    margin: 0;
}

/* 右下角:第二段 lead + CTA */
.hero-aside {
    position: absolute;
    right: clamp(24px, 5vw, 40px);
    bottom: clamp(60px, 8vh, 100px);
    max-width: 460px;
    text-align: right;
    z-index: 6;
}

.hero-cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 20px 20px 20px 32px;
    background: rgba(240, 232, 223, 0.92);
    color: #0a0a0a;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition:
        background var(--t-base) var(--ease),
        gap var(--t-base) var(--ease);
}

.hero-cta-pill:hover,
.hero-cta-pill:focus-visible {
    background: #ffffff;
    gap: 24px;
}

.hero-cta-pill::after {
    content: "\f08e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    color: #f0e8df;
    border-radius: 50%;
    font-size: 14px;
}

/* ===== 入場動畫(swiper-slide-active 才觸發) ===== */
.swiper-slide-active .hero-line,
.swiper-slide-active .hero-features > ul,
.swiper-slide-active .hero-cta-pill {
    animation: hero-rise 1.1s var(--ease-out-expo) both;
}

.swiper-slide-active .hero-line:nth-child(1) {
    animation-delay: 0.15s;
}

.swiper-slide-active .hero-line:nth-child(2) {
    animation-delay: 0.27s;
}

.swiper-slide-active .hero-features > ul:nth-child(1) {
    animation-delay: 0.55s;
}

.swiper-slide-active .hero-features > ul:nth-child(2) {
    animation-delay: 0.67s;
}

.swiper-slide-active .hero-features > ul:nth-child(3) {
    animation-delay: 0.79s;
}

.swiper-slide-active .hero-cta-pill {
    animation-delay: 0.65s;
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(36px);
    }

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

/* Swiper Pagination — editorial mono 數字索引 */
.hero-swiper .swiper-pagination {
    position: absolute;
    left: auto;
    right: clamp(24px, 5vw, 40px);
    top: 50%;
    bottom: auto !important;
    transform: translateY(-50%);
    width: auto !important;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
    z-index: 10;
}

.hero-swiper .swiper-pagination-bullet {
    width: auto;
    height: auto;
    margin: 0 !important;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(240, 232, 223, 0.55);
    font-family: var(--font-mono, "JetBrains Mono", monospace);
    font-size: 12px;
    letter-spacing: 0.12em;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 12px;
    border-radius: 0;
    opacity: 1;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet:hover {
    color: rgba(240, 232, 223, 0.9);
}

.hero-swiper .hero-bullet__num {
    display: inline-block;
    min-width: 22px;
    text-align: left;
}

.hero-swiper .hero-bullet__bar {
    display: inline-block;
    width: 24px;
    height: 1px;
    background: currentColor;
    transition:
        width 0.45s ease,
        background-color 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
    color: #f0e8df;
}

.hero-swiper .swiper-pagination-bullet-active .hero-bullet__bar {
    width: 56px;
    background: var(#fff, #fff);
}

/* ===== Hero RWD =====
   斷點順序(行動裝置優先):
   - 平板橫 / 小桌(min 768 ~ max 1199):維持桌面版式,各項縮一級。
   - 平板直以下(max 991):改為相對定位的單頁滿版排列、aside 改靜態。
   - 手機(max 767):字體改實心 + 陰影、features 改單欄、cta-pill 縮小。
*/

@media (min-width: 768px) and (max-width: 1199px) {
    .hero-section {
        min-height: 600px;
    }

    .hero-frame {
        padding: clamp(90px, 12vh, 120px) clamp(32px, 4vw, 56px) clamp(50px, 7vh, 80px);
        gap: 20px;
    }

    .editor-area .hero-bg-text {
        font-size: clamp(7rem, 18vw, 14rem);
        top: clamp(70px, 14vh, 130px);
    }

    /* 平板:背景照片對比不夠,改實心字 + 陰影 */
    .editor-area .hero-headline {
        font-size: clamp(3.4rem, 7vw, 5.6rem);
        max-width: 16ch;
        margin-bottom: 24px;
        color: #f0e8df;
        -webkit-text-stroke: 0;
        text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
    }

    .hero-features {
        max-width: 640px;
        gap: 20px;
        padding-top: 22px;
    }

    .hero-features > ul i {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .hero-features > ul h3 {
        font-size: 14px;
    }

    .hero-features > ul p {
        font-size: 12.5px;
    }

    .hero-aside {
        right: clamp(28px, 4vw, 48px);
        bottom: clamp(50px, 7vh, 80px);
        max-width: 360px;
    }

    .hero-cta-pill {
        padding: 16px 16px 16px 26px;
        font-size: 15px;
        gap: 14px;
    }

    .hero-cta-pill::after {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 991px) {
    .hero-section {
        height: auto;
        min-height: unset;
        margin-top: 0;
    }

    .hero-slide {
        min-height: 100vh;
    }

    .hero-frame {
        position: relative;
        padding: 180px 20px 120px;
        gap: 24px;
        justify-content: center;
    }

    .editor-area .hero-headline {
        max-width: 18ch;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 20px;
    }

    .hero-features > ul p {
        font-size: 12.5px;
    }

    .hero-aside {
        position: static;
        text-align: left;
        max-width: none;
        margin-top: 16px;
    }

    .hero-swiper .swiper-pagination {
        flex-direction: row;
        align-items: center;
        gap: 18px;
        top: auto;
        bottom: 24px !important;
        right: clamp(20px, 5vw, 32px);
        left: auto;
        transform: none;
    }

    .hero-swiper .hero-bullet__bar {
        width: 18px;
    }

    .hero-swiper .swiper-pagination-bullet-active .hero-bullet__bar {
        width: 36px;
    }
}

@media (max-width: 767px) {
    .hero-frame {
        padding: 130px clamp(20px, 6vw, 32px) 40px;
        gap: 24px;
    }

    /* 手機:背景照片對比不夠,改實心字 + 陰影,字級降、行距收緊 */
    .editor-area .hero-headline {
        font-size: clamp(2.6rem, 10.5vw, 3rem);
        margin-bottom: 20px;
        max-width: 12ch;
        color: #f0e8df;
        -webkit-text-stroke: 0;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
    }

    .hero-features {
        padding-top: 20px;
        gap: 14px;
    }

    .hero-features > ul h3 {
        font-size: 1rem;
    }

    .hero-features > ul p {
        font-size: 0.8rem;
    }

    .hero-aside {
        margin-top: 24px;
    }

    .hero-cta-pill {
        padding: 14px 14px 14px 24px;
        font-size: 15px;
        gap: 14px;
    }

    .hero-cta-pill::after {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }
}

/* ===== Inner Page Hero Banner ===== */
.inner-hero {
    position: relative;
    height: 500px;
    padding-top: 90px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a0f12;
    isolation: isolate;
}

/* dedicated moving background layer — inherits background-image from the
   .inner-hero element's inline style so existing CMS markup keeps working. */
.inner-hero__bg {
    position: absolute;
    inset: -4%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translate3d(0, 0, 0) scale(1.04);
    transform-origin: 50% 50%;
    will-change: transform;
    backface-visibility: hidden;
    animation: innerHeroDrift 22s ease-in-out infinite alternate;
    z-index: 0;
}

.inner-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(8, 18, 22, 0.85) 0%, rgba(8, 18, 22, 0.55) 50%, rgba(8, 18, 22, 0.75) 100%),
        linear-gradient(to bottom, transparent 60%, rgba(8, 18, 22, 0.7) 100%);
    z-index: 1;
}

@keyframes innerHeroDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1.04);
    }

    50% {
        transform: translate3d(-0.8%, -0.6%, 0) scale(1.07);
    }

    100% {
        transform: translate3d(0.8%, 0.4%, 0) scale(1.09);
    }
}

@media (prefers-reduced-motion: reduce) {
    .inner-hero__bg {
        animation: none;
        transform: none;
    }
}

.inner-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
}

.inner-hero-title {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: 6px;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
    line-height: 1.25;
}

.inner-hero-title i {
    color: #fff;
    margin-right: 15px;
}

/* Breadcrumb */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.78);
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
    margin: 0;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb li:not(:last-of-type)::after {
    font-family: "Font Awesome 6 Free";
    content: "\f054";
    font-size: 9px;
    font-weight: 900;
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb .active {
    color: #fff;
    font-weight: 600;
}

.breadcrumb i {
    font-size: 10px;
    color: #666;
}

/* ===== Inner Page Content ===== */

.inner-content {
    padding: 80px 0 80px;
}

.container-fluid,
.container {
    padding: 0 90px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* News List Page */
.news-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.news-filter-btn {
    padding: 10px 24px;
    background: rgba(10, 10, 10, 0.06);
    border: 1px solid rgba(10, 10, 10, 0.06);
    border-radius: 30px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-filter-btn:hover,
.news-filter-btn.active {
    background: linear-gradient(135deg, #3a3a3a, #1a1a1a);
    border-color: transparent;
    color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--bg-elev-1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #3a3a3a, #1a1a1a);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.news-card-content {
    padding: 25px;
}

.news-card-date {
    font-size: 13px;
    color: var(--text-subtle);
    margin-bottom: 10px;
}

.news-card-title {
    font-size: 18px;
    line-height: calc(18px + 0.5rem);
    font-weight: 600;
    margin-bottom: 12px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(2 * (18px + 0.5rem));
}

.news-card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* ===== CMS editor-area 衝突中和層 =====
   cms_template_style.css 對 .editor-area p / li / ul / ol / h1-h6 強加字級行高與 disc bullet。
   只在「未套用 about-* 自定義 class」的裸元素上重置;有自定 class 的元件由下方規則接手,
   並透過 .editor-area 前綴把元件選擇器特異度拉到 (0,2,0) 以上,壓過 CMS 的 (0,1,1)。 */
.editor-area .about-section ul:not([class]),
.editor-area .about-section ol:not([class]) {
    list-style: none;
    margin: 0;
    padding: 0;
}

.editor-area .about-section li:not([class]) {
    margin: 0;
}

/* About Page - Sections */

.about-section {
    padding: 90px 0;
    position: relative;
}

.about-section + .about-section {
    padding-top: 0;
}

.about-section--environment {
    padding-bottom: 110px;
}

.about-media {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.about-media__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.about-media:hover .about-media__img {
    transform: scale(1.04);
}

.about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 22px;
}

.about-eyebrow__num {
    font-weight: 600;
    color: var(--text);
}

.about-eyebrow__line {
    width: 48px;
    height: 1px;
    background: var(--border-strong);
}

.editor-area .about-title,
.about-title {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 4px;
    margin: 0 0 18px;
    color: var(--text);
    position: relative;
    padding-bottom: 18px;
}

.about-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 2px;
    background: var(--text);
}

.editor-area .about-lead,
.about-lead {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 22px;
}

.about-lead em {
    font-style: normal;
    color: var(--text-muted);
    border-bottom: 2px dotted var(--border-strong);
    padding-bottom: 2px;
}

.editor-area .about-paragraph,
.about-paragraph {
    font-size: 15px;
    line-height: 1.95;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.about-paragraph strong {
    color: var(--text);
    font-weight: 600;
}

.editor-area ul.about-chips,
.about-chips {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.editor-area .about-chips li,
.about-chips li {
    padding: 8px 16px;
    margin: 0;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 2px;
    color: var(--text);
    background: var(--bg-elev-1);
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.about-chips li:hover {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

.editor-area ul.about-info-list,
.about-info-list {
    list-style: none;
    padding: 0;
    margin: 26px 0 22px;
    display: grid;
    gap: 14px;
}

.editor-area ul.about-info-list li,
.about-info-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 0;
    line-height: 1.6;
}

.about-info-list__icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--text);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.about-info-list li > div {
    flex: 1;
    min-width: 0;
}

.about-info-list__label {
    display: block;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 4px;
}

.about-info-list__value {
    display: block;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    font-weight: 500;
}

.about-quote {
    position: relative;
    margin: 22px 0 0;
    padding: 18px 22px;
    border-left: 2px solid var(--text);
    background: var(--bg-elev-2);
    font-style: italic;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-muted);
}

.about-quote::before {
    content: "“";
    position: absolute;
    top: -10px;
    left: 12px;
    font-size: 48px;
    line-height: 1;
    color: var(--border-strong);
    font-family: Georgia, serif;
}

.about-env-head {
    margin-bottom: 48px;
}

.about-env-head .about-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.editor-area .about-env-desc,
.about-env-desc {
    font-size: 15px;
    line-height: 1.95;
    color: var(--text-muted);
    margin: 14px 0 0;
}

.about-env-card {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #111;
    height: 100%;
    min-height: 220px;
}

.about-env-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition:
        filter 0.6s ease,
        transform 0.8s ease;
}

.about-env-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.about-env-card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 18px;
    color: #fff;
    font-size: 13px;
    letter-spacing: 3px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 2;
}

.editor-content h3 {
    font-size: 22px;
    margin: 35px 0 15px;
    color: var(--text);
}

.editor-content p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.editor-content img {
    width: 100%;
    border-radius: 12px;
}

.editor-content ul,
.editor-content ol {
    margin: 20px 0 20px 20px;
    color: var(--text-muted);
}

.editor-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* ===== Doctor Detail Page ===== */
.doctor-detail {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.doctor-profile {
    display: flex;
    gap: 40px;
    background: var(--bg-elev-1);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    grid-column: 1 / -1;
}

.doctor-profile-image {
    width: 365px;
    flex-shrink: 0;
}

.doctor-profile-image img {
    width: 100%;
    aspect-ratio: 4/4;
    object-fit: cover;
    border-radius: 12px;
}

.doctor-profile-info {
    flex: 1;
}

.doctor-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.doctor-badge {
    display: inline-flex;
    padding: 9px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #3a3a3a, #1a1a1a);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.doctor-name {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.doctor-quick-info {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.quick-info-item i {
    color: #3a3a3a;
    font-size: 16px;
}

.btn-book {
    --pill-fg: #f5f5f5;
    --pill-bd: #1a1a1a;
    --pill-bg: #1a1a1a;
    --pill-circle-bg: #f5f5f5;
    --pill-circle-fg: #1a1a1a;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px;
    border: 1.5px solid var(--pill-bd);
    border-radius: 999px;
    background: var(--pill-bg);
    color: var(--pill-fg);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition:
        gap var(--t-base) var(--ease),
        background var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease);
}

.btn-book > i {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 12px;
    transition:
        background var(--t-base) var(--ease),
        color var(--t-base) var(--ease),
        width var(--t-base) var(--ease),
        height var(--t-base) var(--ease),
        transform var(--t-base) var(--ease);
}

.btn-book:hover,
.btn-book:focus-visible {
    gap: 18px;
    --pill-bg: #000000;
    --pill-bd: #000000;
}

.btn-book:hover > i,
.btn-book:focus-visible > i {
    background: var(--pill-circle-bg);
    color: var(--pill-circle-fg);
    transform: translateX(2px);
}

.doctor-content {
    grid-column: 1;
}

.doctor-section {
    background: var(--bg-elev-1);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
}

.doctor-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.doctor-section h2 i {
    color: #3a3a3a;
}

.doctor-section p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 15px;
}

.doctor-section p:last-child {
    margin-bottom: 0;
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.expertise-item {
    background: rgba(138, 138, 138, 0.1);
    border: 1px solid rgba(138, 138, 138, 0.2);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-5px);
    border-color: rgba(138, 138, 138, 0.4);
}

.expertise-item i {
    font-size: 32px;
    color: #3a3a3a;
    margin-bottom: 15px;
}

.expertise-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.expertise-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: linear-gradient(180deg, #3a3a3a, rgba(138, 138, 138, 0.2));
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #3a3a3a;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(138, 138, 138, 0.2);
}

.timeline-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Certification List */
.certification-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.certification-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(10, 10, 10, 0.05);
    font-size: 15px;
    color: var(--text-muted);
}

.certification-list li:last-child {
    border-bottom: none;
}

.certification-list i {
    color: #3a3a3a;
}

/* Schedule Table */
.schedule-table {
    overflow-x: auto;
}

.schedule-table table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
    padding: 15px 10px;
    text-align: center;
    border: 1px solid rgba(10, 10, 10, 0.06);
    font-size: 14px;
}

.schedule-table th {
    background: rgba(138, 138, 138, 0.1);
    font-weight: 600;
}

.schedule-table td {
    color: var(--text-muted);
}

.schedule-table td.available {
    background: rgba(138, 138, 138, 0.15);
    color: #3a3a3a;
}

.schedule-table small {
    font-size: 11px;
    color: #666;
}

.schedule-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

.schedule-note i {
    color: #3a3a3a;
}

/* Doctor Sidebar */
.doctor-sidebar {
    grid-column: 2;
}

.sidebar-card {
    background: var(--bg-elev-1);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.sidebar-card > p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.btn-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(135deg, #3a3a3a, #1a1a1a);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.btn-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(138, 138, 138, 0.3);
}

.btn-sidebar.outline {
    background: transparent;
    border: 1px solid rgba(10, 10, 10, 0.14);
}

.btn-sidebar.outline:hover {
    background: rgba(10, 10, 10, 0.06);
    box-shadow: none;
}

.btn-sidebar.btn-line {
    background: #06c755;
}

.btn-sidebar.btn-line:hover {
    background: #05b04c;
    box-shadow: 0 5px 20px rgba(6, 199, 85, 0.4);
}

.other-doctors {
    margin-bottom: 15px;
}

.other-doctor-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: background 0.3s ease;
}

.other-doctor-item:hover {
    background: rgba(138, 138, 138, 0.1);
}

.other-doctor-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.other-doctor-item h4 {
    font-size: 15px;
    margin-bottom: 3px;
}

.other-doctor-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.view-all-doctors {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #3a3a3a;
    transition: gap 0.3s ease;
}

.view-all-doctors:hover {
    gap: 12px;
}

/* Doctor Detail Responsive */
@media (max-width: 1199px) {
    .doctor-detail {
        grid-template-columns: 1fr;
    }

    .doctor-profile {
        flex-direction: column;
        text-align: center;
    }

    .doctor-profile-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .doctor-badges {
        justify-content: center;
    }

    .doctor-quick-info {
        justify-content: center;
    }

    .doctor-sidebar {
        grid-column: 1;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .doctor-profile {
        padding: 25px;
    }

    .doctor-name {
        font-size: 28px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 10px 5px;
        font-size: 12px;
    }
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: auto;
    position: sticky;
    top: 110px;
    height: 100%;
}

.contact-info__card {
    background: var(--bg-elev-1);
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 40px 38px 34px;
    box-shadow:
        0 24px 60px rgba(15, 20, 25, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.contact-form {
    width: auto;
    letter-spacing: 0.5px;
}

.col-form-button {
    padding-top: 20px;
}

.contact-map-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.contact-map {
    width: 100%;
    overflow: hidden;
    height: 480px;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    filter: grayscale(100%);
}

.contactDesc {
    margin-bottom: 28px;
}

.contactDesc h2 {
    font-size: 1.85rem;
    line-height: 1.35;
    margin: 0 0 14px;
    color: var(--text);
    letter-spacing: 0.02em;
}

.contactDesc p {
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 1px;
}

.contactInfo {
    display: grid;
    gap: 18px;
}

.contact-info h2 {
    margin-bottom: 15px;
    color: var(--text);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    letter-spacing: 0.8px;
    padding: 4px 0;
}

.contact-info-item + .contact-info-item {
    border-top: 1px dashed var(--border);
    padding-top: 20px;
}

.contact-info-item a {
    color: var(--text);
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: #3a3a3a;
}

.contact-info-item i {
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #1a1a1a;
    flex-shrink: 0;
    transition:
        border-color var(--t-base) var(--ease),
        color var(--t-base) var(--ease),
        background var(--t-base) var(--ease);
}

.contact-info-item:hover i {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: #fff;
}

.contact-info-item h4 {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-info-item p {
    font-size: 15px;
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

/* .editor-area 前綴提權重,蓋掉 .editor-area h2/h4/p 的通用字級/行高/margin 污染,
   並重新釘住被 JS 加上 .img-fluid 的 QR Code 尺寸 */
.editor-area .contactDesc h2 {
    font-size: 1.85rem;
    line-height: 1.35;
    margin: 0 0 14px;
}

.editor-area .contactDesc p {
    font-size: 14.5px;
    line-height: 1.85;
    margin: 0;
}

.editor-area .contact-info-item h4 {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 4px;
}

.editor-area .contact-info-item p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.editor-area .contact-info-item__qrcode {
    width: 140px;
    height: 140px;
    max-width: 140px;
}

.contact-form {
    height: 100%;
}

.contact-form form {
    padding: 44px 42px 38px;
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: 18px;
    height: 100%;
    box-shadow:
        0 24px 60px rgba(15, 20, 25, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.row-form {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.c-50 {
    width: calc(50% - 15px);
}

.c-100 {
    width: 100%;
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

.contact-form .form-header {
    margin: 0 0 32px;
    position: relative;
}

.contact-form .form-header__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.32em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.contact-form .form-header__eyebrow-line {
    width: 36px;
    height: 1px;
    background: #1a1a1a;
    display: inline-block;
}

.contact-form .form-title {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text);
    margin: 0 0 14px;
    line-height: 1.25;
}

.contact-form .form-title em {
    font-style: normal;
    position: relative;
    display: inline-block;
    padding: 0 2px;
}

.contact-form .form-title em::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 8px;
    background: linear-gradient(180deg, transparent 50%, rgba(26, 26, 26, 0.12) 50%);
    border-radius: 2px;
    z-index: -1;
}

.contact-form .form-subtitle {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    margin: 0;
    max-width: 92%;
}

@media (max-width: 767.98px) {
    .contact-form .form-header {
        margin-bottom: 26px;
        padding-bottom: 22px;
    }

    .contact-form .form-header__eyebrow {
        font-size: 11px;
        letter-spacing: 0.28em;
    }

    .contact-form .form-title {
        font-size: 24px;
    }

    .contact-form .form-subtitle {
        max-width: 100%;
    }
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-group .req::after {
    content: "\2a";
    font-family: "FontAwesome";
    color: #3a3a3a;
    font-size: 10px;
    font-weight: 400;
    display: inline-block;
    vertical-align: middle;
    padding: 0 0 2px 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--text);
    letter-spacing: inherit;
    transition:
        border-color var(--t-base) var(--ease),
        box-shadow var(--t-base) var(--ease),
        background var(--t-base) var(--ease);
}

.form-group select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='1,1.5 6,6.5 11,1.5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px;
    padding-right: 44px;
    appearance: none;
}

.form-group input.date-input {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='16' rx='2'/><line x1='3' y1='10' x2='21' y2='10'/><line x1='8' y1='3' x2='8' y2='7'/><line x1='16' y1='3' x2='16' y2='7'/></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    padding-right: 46px;
    appearance: none;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group select::placeholder {
    font-style: normal;
    color: #909090 !important;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #b5b5b5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.08);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 18px 28px;
    background: #1a1a1a;
    border: 1.5px solid #1a1a1a;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #f5f5f5;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition:
        background var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease),
        transform var(--t-base) var(--ease),
        box-shadow var(--t-base) var(--ease);
}

.btn-submit i {
    transition: transform var(--t-base) var(--ease);
}

.btn-submit:hover {
    background: #000000;
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.btn-submit:hover i {
    transform: translateX(4px) rotate(-8deg);
}

/* 稱謂 radio */

.form-radio-group {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding: 14px 4px;
    min-height: 52px;
}

.form-radio-group .hand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 15px;
    color: var(--text);
    cursor: pointer;
}

.form-radio-group input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition:
        border-color var(--t-base) var(--ease),
        box-shadow var(--t-base) var(--ease);
}

.form-radio-group input[type="radio"]:hover {
    border-color: #b5b5b5;
}

.form-radio-group input[type="radio"]:checked {
    border-color: #1a1a1a;
    background: #1a1a1a;
    box-shadow: inset 0 0 0 3px #fff;
}

.form-radio-group input[type="radio"]:focus-visible {
    outline: none;
    box-shadow:
        inset 0 0 0 3px #fff,
        0 0 0 4px rgba(26, 26, 26, 0.18);
}

/* 驗證碼 */
#capcha_image {
    display: flex !important;
    align-items: stretch;
    gap: 17px;
    width: 100% !important;
    margin: 0;
}

#capcha_image input.upperfont {
    flex: 1 1 auto;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

#capcha_image #verifyImgCode {
    flex: 0 0 auto;
    width: 130px;
    height: 52px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition:
        border-color var(--t-base) var(--ease),
        transform var(--t-base) var(--ease);
}

#capcha_image #verifyImgCode:hover {
    border-color: #1a1a1a;
    transform: translateY(-1px);
}

@media (max-width: 575.98px) {
    #capcha_image {
        flex-wrap: wrap;
    }

    #capcha_image #verifyImgCode {
        width: 100%;
        height: 56px;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.06);
    border-radius: 8px !important;
    font-size: 14px;
    color: var(--text-muted);
    border: unset;
    transition: all 0.3s ease;
}

.disabled > .page-link,
.page-link.disabled {
    background: rgba(10, 10, 10, 0.05);
    color: var(--text-subtle);
}

.pagination a:hover,
.pagination .active a {
    background: linear-gradient(135deg, #3a3a3a, #1a1a1a);
    color: #fff;
}

/* ===== Content Section ===== */
.content-section {
    padding: 40px 0 80px;
}

/* Video Grid - 九宮格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ===== Footer ===== */
.footer {
    position: relative;
    isolation: isolate;
    background-color: #1a1612;
    background-image: url("../../images/footer_texture.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0;
    color: #ebebe8;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 8, 6, 0.1) 0%, rgba(10, 8, 6, 0.2) 100%);
    z-index: -1;
}

.footer .container-fluid {
    position: relative;
    padding: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 2fr;
    gap: 0;
    margin: 0;
    border-bottom: 1px solid rgba(235, 235, 232, 0.14);
}

.footer-left {
    padding: 56px 48px;
    border-right: 1px solid rgba(235, 235, 232, 0.14);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
}

.footer-right > .footer-links {
    padding: 48px 36px;
    border-right: 1px solid rgba(235, 235, 232, 0.14);
    border-bottom: 1px solid rgba(235, 235, 232, 0.14);
}

.footer-right > .footer-links:nth-child(3n) {
    border-right: none;
}

.footer-right > .footer-links:nth-last-child(-n + 3) {
    border-bottom: none;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 22px;
}

.footer-brand .logo img {
    width: 180px;
    height: auto;
    opacity: 0.92;
}

.footer-brand p {
    font-size: 14px;
    letter-spacing: 0.05em;
    color: rgba(235, 235, 232, 0.62);
    line-height: 1.85;
    margin-bottom: 0;
    text-align: justify;
    text-align-last: left;
}

.footer-brand p .split-line {
    display: block;
    overflow: hidden;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(235, 235, 232, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(235, 235, 232, 0.78);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.footer-links h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 22px;
    color: #fff;
    letter-spacing: 0.05em;
}

.footer-links ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 11px;
    font-size: 14px;
    color: rgba(235, 235, 232, 0.62);
    letter-spacing: 0.05em;
}

.footer-links ul a {
    color: rgba(235, 235, 232, 0.62);
    transition: color 0.25s ease;
    text-decoration: none;
}

.footer-links ul a:hover {
    color: #fff;
}

.footer-info-list {
    list-style: none;
    padding: 10px 0 0;
    margin: 0;
}

.footer-info-list li {
    display: grid;
    align-items: center;
    grid-template-columns: 64px 1fr;
    gap: 10px;
    align-items: normal;
    margin-bottom: 12px;
    font-size: 14px;
    letter-spacing: 0.05em;
    color: rgba(235, 235, 232, 0.7);
}

.footer-info-list a {
    color: rgba(235, 235, 232, 0.7);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-info-list a:hover {
    color: #fff;
}

.footer-info__label {
    font-weight: 600;
    color: rgba(235, 235, 232, 0.95);
    letter-spacing: 0.06em;
}

.footer-info__qrcode {
    width: 110px;
    height: 110px;
    background: #fff;
    padding: 4px;
    object-fit: contain;
    display: block;
}

/* footer 置於 .editor-area 內時,壓回被 .editor-area 通用 ul/li/p/h4 污染的樣式 */
.editor-area.footer-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.editor-area.footer-content .footer-info-list {
    padding: 10px 0 0;
}

.editor-area.footer-content .footer-links ul li {
    margin: 0 0 11px;
}

.editor-area.footer-content .footer-info-list li {
    margin: 0 0 12px;
}

.editor-area.footer-content .footer-brand p {
    margin: 0;
}

.editor-area.footer-content .footer-links h4 {
    line-height: 1.2;
}

.contact-info-item__qrcode {
    width: 140px;
    height: 140px;
    background: #fff;
    padding: 6px;
    border-radius: 6px;
    margin-top: 10px;
    object-fit: contain;
    display: block;
    border: 1px solid #e6e6e6;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 28px 40px;
    border-bottom: 1px solid rgba(235, 235, 232, 0.14);
}

.copyright {
    font-size: 13px;
    color: rgba(235, 235, 232, 0.45);
    margin: 0;
    letter-spacing: 0.05em;
}

.copyright a {
    color: rgba(235, 235, 232, 0.7);
    text-decoration: none;
    transition: color 0.25s ease;
}

.copyright a:hover {
    color: #ebebe8;
}

.copyright__sep {
    display: inline-block;
    margin: 0 10px;
    color: rgba(235, 235, 232, 0.25);
}

.scroll-to-top {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: rgba(235, 235, 232, 0.85);
    text-decoration: none;
    margin-left: auto;
    transition: color 0.25s ease;
}

.scroll-to-top i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(235, 235, 232, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.25s ease;
}

.scroll-to-top:hover {
    color: #fff;
}

.scroll-to-top:hover i {
    background: var(--bg-elev-1);
    border-color: var(--bg-elev-1);
    color: #000000;
    transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 1199px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1199px) {
    .header-right {
        gap: 20px;
    }

    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-left {
        border-right: none;
        border-bottom: 1px solid rgba(235, 235, 232, 0.14);
        padding: 48px 36px;
    }

    .footer-right {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-right > .footer-links {
        padding: 40px 28px;
    }
}

@media (max-width: 767px) {
    .header .container-fluid,
    .header .container {
        padding: 0 20px;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-left {
        padding: 40px 24px;
        gap: 24px;
    }

    .footer-right {
        grid-template-columns: 1fr 1fr;
    }

    .footer-right > .footer-links {
        padding: 32px 24px;
        border-right: 1px solid rgba(235, 235, 232, 0.14);
        border-bottom: 1px solid rgba(235, 235, 232, 0.14);
    }

    .footer-right > .footer-links:nth-child(3n) {
        border-right: 1px solid rgba(235, 235, 232, 0.14);
    }

    .footer-right > .footer-links:nth-child(2n) {
        border-right: none;
    }

    .footer-right > .footer-links:nth-last-child(-n + 3) {
        border-bottom: 1px solid rgba(235, 235, 232, 0.14);
    }

    .footer-right > .footer-links:nth-last-child(-n + 2) {
        border-bottom: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 24px 24px 85px 24px;
    }

    .container-fluid,
    .container {
        padding: 0 20px;
    }

    .scroll-to-top {
        margin-right: auto;
    }
}

@media (max-width: 479px) {
    .video-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ===== FAQ Page Styles ===== */
.faq-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.faq-intro h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.faq-intro p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
}

.faq-intro a {
    color: #3a3a3a;
    text-decoration: underline;
}

.faq-categories {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.faq-cat-btn {
    padding: 10px 24px;
    background: rgba(10, 10, 10, 0.06);
    border: 1px solid rgba(10, 10, 10, 0.06);
    border-radius: 30px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-cat-btn:hover,
.faq-cat-btn.active {
    background: linear-gradient(135deg, #3a3a3a, #1a1a1a);
    border-color: transparent;
    color: #fff;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-elev-1);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(10, 10, 10, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(138, 138, 138, 0.3);
}

.faq-item.active {
    border-color: rgba(138, 138, 138, 0.5);
}

.faq-question {
    display: flex;
    gap: 15px;
    padding: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(138, 138, 138, 0.05);
}

.faq-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(138, 138, 138, 0.2), rgba(68, 160, 141, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #3a3a3a;
    flex-shrink: 0;
}

.faq-question-ttl {
    flex: 1;
    padding: 12px 0 0 0;
    letter-spacing: 0.5px;
}

.faq-question h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.faq-toggle {
    width: 30px;
    height: 30px;
    background: rgba(10, 10, 10, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 7px;
}

.faq-item.active .faq-toggle {
    background: linear-gradient(135deg, #3a3a3a, #1a1a1a);
    color: #fff;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px 0 25px;
    display: flex;
    gap: 15px;
    transition:
        max-height 0.4s ease,
        padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 25px 25px 25px 25px;
}

.faq-answer-txt {
    letter-spacing: 0.5px;
}

.faq-answer p {
    color: var(--text-muted);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 0 0 0 15px;
}

.faq-answer li {
    margin-bottom: 8px;
    line-height: 1.7;
    font-size: 15px;
}

.faq-answer strong {
    color: var(--text);
}

.faq-answer a {
    color: #3a3a3a;
    text-decoration: underline;
}

/* FAQ Bootstrap Accordion (white card style) */
.faq-content {
    max-width: 980px;
    margin: 0 auto;
}

.faq-content .accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: transparent;
    --bs-accordion-border-width: 0;
    --bs-accordion-border-radius: 16px;
    --bs-accordion-inner-border-radius: 16px;
    --bs-accordion-btn-padding-x: 32px;
    --bs-accordion-btn-padding-y: 26px;
    --bs-accordion-btn-color: #1a1a1a;
    --bs-accordion-btn-bg: #ffffff;
    --bs-accordion-btn-focus-border-color: transparent;
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-active-color: #1a1a1a;
    --bs-accordion-active-bg: #ffffff;
    --bs-accordion-body-padding-x: 32px;
    --bs-accordion-body-padding-y: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-content .accordion-item {
    background: #ffffff;
    border: 1px solid rgba(10, 10, 10, 0.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.03);
    transition:
        box-shadow var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease);
}

.faq-content .accordion-item:hover {
    border-color: rgba(10, 10, 10, 0.12);
    box-shadow: 0 6px 18px rgba(10, 10, 10, 0.06);
}

.faq-content .accordion-header {
    margin: 0;
}

.faq-content .accordion-button {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #1a1a1a;
    background: #ffffff;
    box-shadow: none !important;
    border: 0;
}

.faq-content .accordion-button::before {
    content: "Q";
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f3f3;
    color: #1a1a1a;
    border-radius: 10px;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
}

.faq-content .accordion-button::after {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    margin-left: auto;
    background-color: #f3f3f3;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231a1a1a' stroke-width='1.6' stroke-linecap='round'><line x1='8' y1='3' x2='8' y2='13'/><line x1='3' y1='8' x2='13' y2='8'/></svg>");
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    transition:
        transform var(--t-base) var(--ease),
        background-color var(--t-base) var(--ease);
}

.faq-content .accordion-button:not(.collapsed) {
    background: #ffffff;
    color: #1a1a1a;
}

.faq-content .accordion-button:not(.collapsed)::after {
    background-color: #1a1a1a;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'><line x1='3' y1='8' x2='13' y2='8'/></svg>");
    transform: rotate(180deg);
}

.faq-content .accordion-button:focus-visible {
    outline: 2px solid rgba(26, 26, 26, 0.35);
    outline-offset: -2px;
}

.faq-content .accordion-body {
    padding: 0 32px 28px;
    padding-left: 98px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.85;
    letter-spacing: 0.02em;
}

.faq-content .accordion-body p {
    margin: 0;
    color: var(--text-muted);
}

.faq-content .accordion-body p + p {
    margin-top: 10px;
}

@media (max-width: 767.98px) {
    .faq-content .accordion-button {
        padding: 20px 18px;
        gap: 14px;
        font-size: 15px;
    }

    .faq-content .accordion-button::before {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 8px;
    }

    .faq-content .accordion-button::after {
        width: 28px;
        height: 28px;
    }

    .faq-content .accordion-body {
        padding: 0 18px 20px;
        padding-left: 18px;
        font-size: 14px;
    }
}

/* FAQ CTA Section */
.faq-cta {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, rgba(138, 138, 138, 0.1), rgba(68, 160, 141, 0.05));
    border: 1px solid rgba(138, 138, 138, 0.2);
    border-radius: 20px;
    max-width: 980px;
    margin: 80px auto 0;
}

.faq-cta h3 {
    font-size: 26px;
    margin-bottom: 10px;
}

.faq-cta p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.faq-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.faq-cta .btn-primary,
.faq-cta .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 11px 22px 11px 10px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    border: 1.5px solid #1a1a1a;
    transition:
        gap var(--t-base) var(--ease),
        background var(--t-base) var(--ease),
        color var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease);
}

.faq-cta .btn-primary > i,
.faq-cta .btn-secondary > i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    letter-spacing: normal;
    font-size: 18px;
    transition:
        background var(--t-base) var(--ease),
        color var(--t-base) var(--ease),
        width var(--t-base) var(--ease),
        height var(--t-base) var(--ease),
        transform var(--t-base) var(--ease);
}

.faq-cta .btn-primary {
    background: #1a1a1a;
    color: #f5f5f5;
}

.faq-cta .btn-primary:hover {
    gap: 10px;
    background: #000000;
    border-color: #000000;
}

.faq-cta .btn-primary:hover > i {
    background: #f5f5f5;
    color: #1a1a1a;
    transform: translateX(2px);
}

.faq-cta .btn-secondary {
    background: transparent;
    color: #1a1a1a;
}

.faq-cta .btn-secondary:hover {
    gap: 10px;
    background: transparent;
}

.faq-cta .btn-secondary:hover > i {
    background: #1a1a1a;
    color: #f5f5f5;
    transform: translateX(2px);
}

/* FAQ Responsive */
@media (max-width: 767px) {
    .faq-categories {
        gap: 8px;
    }

    .faq-cat-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .faq-question h3 {
        font-size: 15px;
    }

    .faq-item.active .faq-answer {
        padding: 20px 20px 20px 20px;
    }

    .faq-cta {
        padding: 30px 20px;
    }
}

/* Inner Page Responsive */
@media (max-width: 1199px) {
    .inner-hero {
        height: 350px;
    }

    .inner-hero-title {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-info {
        position: static;
        top: auto;
    }

    .contact-info__card {
        padding: 36px 32px 30px;
    }

    .contact-form form {
        padding: 36px 32px 32px;
    }
}

@media (max-width: 767px) {
    .inner-hero {
        height: 290px;
    }

    .inner-content {
        padding: 50px 0;
    }

    .inner-hero-title {
        font-size: 32px;
        letter-spacing: 1.5px;
        margin-bottom: 20px;
    }

    .inner-hero-title i {
        display: none;
    }

    .inner-hero-content::before {
        width: 40px;
        margin-bottom: 16px;
    }

    .breadcrumb {
        font-size: 12px;
        padding: 6px 14px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .editor-content h2 {
        font-size: 22px;
    }
}

.view-main {
    flex: 1;
    display: flex;
    height: calc(100vh - 50px);
    background: #0a0f12;
}

.video-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, 0.05) 0%, transparent 60%), #0a0f12;
    padding: 120px 20px 30px;
    position: relative;
}

.video-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(120, 120, 120, 0.08) 0%, transparent 55%);
    pointer-events: none;
}

.video-wrapper {
    position: relative;
    height: 100%;
    max-height: calc(100vh - 50px - 120px - 30px);
    aspect-ratio: 9/16;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

.info-section {
    flex: 1;
    min-width: 360px;
    background: #0a0f12;
    display: flex;
    flex-direction: column;
    padding: 120px 90px 45px 45px;
    overflow-y: auto;
}

.info-wrapper {
    background: var(--bg-elev-1);
    border-radius: 18px;
    padding: 45px 45px 40px;
    display: flex;
    flex-direction: column;
    flex: 1;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        gap 0.25s ease;
    margin-bottom: 28px;
    align-self: flex-start;
    border-radius: 0;
}

.btn-back:hover {
    color: var(--text);
    border-bottom-color: var(--text);
    gap: 12px;
}

.btn-back i {
    font-size: 12px;
}

.video-main-title {
    font-weight: 700;
    line-height: 1.25;
    font-size: 2.4rem;
    margin: 0 0 18px;
    color: var(--text);
}

.video-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.video-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    padding: 6px 12px;
    background: rgba(10, 10, 10, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.video-stats i {
    color: #3a3a3a;
    font-size: 11px;
}

.video-description {
    position: relative;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 30px;
    flex: 1;
}

.video-description p {
    margin-bottom: 12px;
}

.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: auto;
}

.action-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 50%;
}

.action-buttons .btn-line {
    background: #06c755;
    color: #fff;
}

.action-buttons .btn-line:hover {
    background: #05b04c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.4);
}

.action-buttons .btn-quiz {
    background: linear-gradient(135deg, #3a3a3a, #1a1a1a);
    color: #fff;
}

.action-buttons .btn-quiz:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(138, 138, 138, 0.4);
}

.action-buttons .btn i {
    font-size: 16px;
}

/* Video Detail RWD */
@media (max-width: 1199px) {
    .view-main {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .video-section {
        width: 100%;
        padding: 105px 15px 35px;
        flex: none;
    }

    .video-wrapper {
        width: 100%;
        max-width: 360px;
        height: auto;
        aspect-ratio: 9/16;
        margin: 0 auto;
    }

    .video-wrapper iframe {
        aspect-ratio: 9/16;
    }

    .info-section {
        width: 100%;
        min-width: unset;
        padding: 0 15px 30px;
        overflow-y: visible;
    }

    .info-wrapper {
        padding: 38px 32px 40px;
        border-radius: 16px;
    }
}

@media (max-width: 767px) {
    .video-section {
        padding: 120px 10px 24px;
    }

    .video-wrapper {
        max-width: 300px;
    }

    .info-section {
        padding: 0 10px 24px;
    }

    .info-wrapper {
        padding: 30px 22px 34px;
        border-radius: 14px;
    }

    .contact-info__card {
        padding: 30px 24px 26px;
        border-radius: 14px;
    }

    .contact-form form {
        padding: 30px 24px;
        border-radius: 14px;
    }

    .contact-form form .c-50 {
        width: 100%;
    }

    .contact-info {
        width: 100%;
    }

    .contact-form {
        width: 100%;
    }

    .contactDesc h2 {
        font-size: 1.5rem;
    }

    .contact-map {
        height: 320px;
    }

    .video-main-title {
        line-height: 1.3;
        font-size: 1.7rem;
        margin-bottom: 14px;
    }

    .video-description {
        font-size: 14px;
        line-height: 1.85;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }
}

/* ===== Policy Page (Privacy & Terms) ===== */

.policy-content {
    max-width: 900px;
    margin: 0 auto;
}

.policy-intro {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(138, 138, 138, 0.1);
    border-left: 4px solid #3a3a3a;
    border-radius: 0 8px 8px 0;
}

.policy-content h2 {
    font-size: 22px;
    color: var(--text);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.policy-content h3 {
    font-size: 18px;
    color: #3a3a3a;
    margin: 25px 0 15px;
}

.policy-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.policy-content ul li {
    margin-bottom: 10px;
    color: var(--text-muted);
    line-height: 1.8;
}

.contact-info-box {
    background: var(--bg-elev-1);
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
}

.contact-info-box p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.contact-info-box p:last-child {
    margin-bottom: 0;
}

.contact-info-box i {
    color: #3a3a3a;
}

.editor-content .policy-date {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: #666666;
    text-align: right;
}

.flatpickr-day {
    border-radius: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    line-height: normal;
    font-size: 14px;
    letter-spacing: normal;
    font-weight: 500;
}

.flatpickr-day.selected {
    background-color: #3a3a3a;
    border-color: #3a3a3a;
}

@media (max-width: 991px) {
    .text-lg-end {
        text-align: left !important;
    }

    .ms-lg-auto {
        margin-left: 0 !important;
    }
}

/* ============================================================
   首頁區塊樣式(2026 改版)
   結構:hero → video → project → schedule → environment → doctors → news
   ============================================================ */

/* visually-hidden(無障礙) */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section-environment {
    padding-bottom: 0;
}

.block-headline-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section-environment__desc {
    max-width: 640px;
    margin: 0;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.9;
    color: #555;
}

.section-environment__desc:empty {
    display: none;
}

/* ===== Block Header(統一的區塊大標) ===== */
.content-section {
    padding: clamp(60px, 8vw, 120px) 0;
    position: relative;
}

.block-cta {
    --pill-fg: #1a1a1a;
    --pill-bd: #1a1a1a;
    --pill-bg: transparent;
    --pill-circle-bg: #1a1a1a;
    --pill-circle-fg: #f5f5f5;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 15px 24px;
    border: 1.5px solid var(--pill-bd);
    border-radius: 999px;
    background: var(--pill-bg);
    color: var(--pill-fg);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition:
        gap var(--t-base) var(--ease),
        background var(--t-base) var(--ease),
        color var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease);
    white-space: nowrap;
    align-self: end;
}

.block-cta::after {
    content: "\f061"; /* fa-arrow-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 12px;
    transition:
        background var(--t-base) var(--ease),
        color var(--t-base) var(--ease),
        width var(--t-base) var(--ease),
        height var(--t-base) var(--ease),
        transform var(--t-base) var(--ease);
}

.block-cta:hover,
.block-cta:focus-visible {
    gap: 18px;
}

.block-cta:hover::after,
.block-cta:focus-visible::after {
    background: var(--pill-circle-bg);
    color: var(--pill-circle-fg);
    transform: translateX(2px);
}

@media (max-width: 767px) {
    .block-cta {
        grid-column: 1 / -1;
        justify-self: start;
        margin-top: 8px;
        padding: 13px 24px;
    }
}

/* ===== Block Headline Row(統一大標題列,單行或雙行皆可) ===== */
.block-headline-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(40px, 5vw, 60px);
    padding-bottom: 0;
    border-bottom: none;
}

.block-headline {
    font-size: clamp(2rem, 5.4vw, 4.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
    margin: 0;
    color: var(--text);
    max-width: 22ch;
}

.block-headline__line {
    display: block;
}

.block-headline-row .block-cta {
    flex-shrink: 0;
    align-self: end;
    margin-bottom: 8px;
}

@media (max-width: 767px) {
    .block-headline-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
}

/* ===== Video Tabs(分類切換) ===== */
.video-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.video-tab {
    padding: 10px 22px 10px 21px;
    background: rgba(10, 10, 10, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--t-base) var(--ease);
}

.video-tab:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

.video-tab.is-active {
    background: linear-gradient(135deg, #3a3a3a, #1a1a1a);
    border-color: transparent;
    color: #fff;
}

/* ===== Video Swiper(水平慣性卡片流,參考 MyHealthPrac) ===== */

.section-video {
    padding-bottom: 0;
}

.video-swiper {
    width: 100%;
    padding-left: clamp(20px, 4.5vw, 80px);
    padding-right: clamp(20px, 4.5vw, 80px);
    overflow: visible;
    cursor: grab;
}

.video-swiper:active {
    cursor: grabbing;
}

.video-swiper .swiper-wrapper {
    align-items: stretch;
}

.video-card-v {
    flex-shrink: 0;
    width: clamp(280px, 30vw, 460px);
    aspect-ratio: 3 / 4;
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--bg-elev-2);
    text-decoration: none;
    color: #f0e8df;
    transition: transform var(--t-base) var(--ease-out-expo);
    user-select: none;
}

.video-card-v:hover,
.video-card-v:focus-visible {
    transform: translateY(-6px);
}

/* 背景照片 */
.video-card-v__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.video-card-v__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.video-card-v:hover .video-card-v__bg img {
    transform: scale(1.06);
}

/* 照片上的暗化漸層,讓上方數值與下方文字都可讀 */
.video-card-v__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45) 0%,
        transparent 28%,
        transparent 55%,
        rgba(0, 0, 0, 0.85) 100%
    );
    pointer-events: none;
}

/* 卡片頂端:左數值 + 右分類 + 強度條,grid 佈局 */
.video-card-v__head {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(240, 232, 223, 0.28);
}

/* 左上:時長(大)+ 觀看數(小) */
.video-card-v__metric {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--font-mono);
}

.metric-value {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01em;
    color: #f0e8df;
}

.metric-unit {
    font-size: 11px;
    letter-spacing: 0.06em;
    color: rgba(240, 232, 223, 0.72);
    text-transform: lowercase;
}

/* 右上:分類英文 + 中文(靠右) */
.video-card-v__cat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    line-height: 1.2;
}

.cat-en {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    color: #f0e8df;
    font-weight: 500;
}

.cat-zh {
    font-size: 11px;
    color: rgba(240, 232, 223, 0.7);
    margin-top: 2px;
    letter-spacing: 0.04em;
}

/* 卡片底部:標題 + 描述 */
.video-card-v__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0 20px 22px;
    color: #f0e8df;
}

.video-card-v__title {
    font-size: clamp(15px, 1.4vw, 20px);
    line-height: 1.45;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-v__desc {
    font-size: 15px;
    letter-spacing: 1px;
    line-height: 1.6;
    color: rgba(240, 232, 223, 0.82);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 中央播放圖示(hover 才出現) */
.video-card-v__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    transform: translate(-50%, -50%) scale(0.85);
    width: 78px;
    height: 78px;
    background: rgba(240, 232, 223, 0.62);
    color: #0a0a0a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition:
        opacity var(--t-base) var(--ease),
        transform var(--t-base) var(--ease-out-expo);
    pointer-events: none;
}

.video-card-v:hover .video-card-v__play,
.video-card-v:focus-visible .video-card-v__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 767px) {
    .video-card-v {
        width: 78vw;
    }

    .video-card-v__head {
        padding: 14px 16px 12px;
    }

    .video-card-v__caption {
        padding: 0 16px 18px;
    }

    .video-grid--v .video-card-v {
        width: 100%;
    }
}

/* 影音實驗室列表頁:沿用同款卡片但改 grid 排列 */
.video-grid--v {
    gap: 24px;
}

.video-grid--v .video-card-v {
    width: 100%;
    flex-shrink: 1;
}

/* ===== Project Steps(沃土計畫,極簡虛線分隔) ===== */

.section-project {
    padding-bottom: 0;
}

.project-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding-top: clamp(0, 5vw, 60px);
}

.project-step {
    display: flex;
    flex-direction: column;
    padding: 70px clamp(20px, 3.5vw, 80px);
    border-top: 1px dashed rgba(10, 10, 10, 0.22);
    border-left: 1px dashed rgba(10, 10, 10, 0.22);
}

.project-step:first-child {
    border-left: none;
}

.project-step__icon {
    width: clamp(2.4rem, 3.2vw, 3rem);
    height: auto;
    margin-bottom: clamp(50px, 8vw, 40px);
    align-self: flex-start;
    line-height: 1;
}

.project-step__title {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 24px;
    color: var(--text);
    letter-spacing: 0.02em;
}

.project-step__desc {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-muted);
    margin: 0 0 32px;
}

.project-step__more {
    --pill-fg: #1a1a1a;
    --pill-bd: #1a1a1a;
    --pill-bg: transparent;
    --pill-circle-bg: #1a1a1a;
    --pill-circle-fg: #f5f5f5;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1.5px solid var(--pill-bd);
    border-radius: 999px;
    background: var(--pill-bg);
    color: var(--pill-fg);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition:
        gap var(--t-base) var(--ease),
        background var(--t-base) var(--ease),
        color var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease);
    margin-top: auto;
    align-self: flex-start;
}

.project-step__more > i {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 10px;
    transition:
        background var(--t-base) var(--ease),
        color var(--t-base) var(--ease),
        width var(--t-base) var(--ease),
        height var(--t-base) var(--ease),
        transform var(--t-base) var(--ease);
}

.project-step__more:hover,
.project-step__more:focus-visible {
    gap: 14px;
}

.project-step__more:hover > i,
.project-step__more:focus-visible > i {
    background: var(--pill-circle-bg);
    color: var(--pill-circle-fg);
    transform: translateX(2px);
}

@media (max-width: 991px) {
    .project-steps {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 0;
    }

    .project-step {
        padding: clamp(36px, 5vw, 56px) clamp(20px, 3vw, 36px);
    }

    .project-step:nth-child(odd) {
        border-left: none;
    }

    .project-step:nth-child(n + 3) {
        border-top: 1px dashed rgba(10, 10, 10, 0.22);
    }

    .project-step__icon {
        margin-bottom: clamp(28px, 4vw, 36px);
    }

    .project-step__title {
        font-size: 1.2rem;
        margin-bottom: 18px;
    }

    .project-step__desc {
        font-size: 13.5px;
        line-height: 1.7;
        margin-bottom: 26px;
    }
}

@media (max-width: 767px) {
    .project-step {
        padding: clamp(28px, 4.5vw, 44px) clamp(16px, 2.4vw, 24px);
    }

    .project-step__more {
        font-size: 12px;
        padding: 9px 18px;
    }

    .section-project {
        padding: 0 !important;
    }
}

@media (max-width: 767px) {
    .project-step:nth-child(n + 3) {
        border-top: none;
    }

    .project-step + .project-step {
        border-top: 1px dashed rgba(10, 10, 10, 0.22);
        padding-top: clamp(28px, 5vw, 40px);
    }

    .project-step__icon {
        width: 2.1rem;
        margin-bottom: 20px;
    }

    .project-step__title {
        font-size: 1.1rem;
        margin-bottom: 14px;
    }

    .project-step__desc {
        font-size: 13px;
        margin-bottom: 22px;
    }
}

/* ===== Project List(沃土計畫列表 — 三合一療程卡片) ===== */
.section-project-list {
    padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 10vw, 140px);
}

.search-result__meta {
    margin-bottom: clamp(28px, 4vw, 48px);
    padding: clamp(18px, 2.4vw, 28px) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.search-result__meta::before {
    content: "RESULTS";
    font-family: var(--font-mono, ui-monospace, "SFMono-Regular", Menlo, monospace);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted, #888);
    padding-right: 16px;
    border-right: 1px solid var(--border);
}

.search-result__summary {
    margin: 0;
    flex: 1;
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.6;
    color: var(--text-secondary, #555);
    letter-spacing: 0.02em;
}

.search-result__summary strong {
    font-weight: 600;
    color: var(--text-primary, #111);
    font-variant-numeric: tabular-nums;
}

.search-result__keyword {
    position: relative;
    color: var(--accent, #c9a06b);
    padding: 0 2px;
    background-image: linear-gradient(
        transparent 62%,
        color-mix(in srgb, var(--accent, #c9a06b) 22%, transparent) 62%,
        color-mix(in srgb, var(--accent, #c9a06b) 22%, transparent) 92%,
        transparent 92%
    );
}

@media (max-width: 767px) {
    .search-result__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .search-result__meta::before {
        padding-right: 0;
        padding-bottom: 8px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        align-self: stretch;
    }
}

.project-list__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(18px, 2vw, 28px);
}

.project-list-card--lead {
    background: var(--bg-elev-1);
    border-color: var(--border-strong);
}

.project-list-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
    transition:
        background var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease),
        transform var(--t-base) var(--ease),
        box-shadow var(--t-base) var(--ease);
}

.project-list-card:hover {
    background: var(--bg-elev-1);
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: 0 22px 48px -28px rgba(10, 10, 10, 0.18);
}

.project-list-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #ededeb;
}

.project-list-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-list-card:hover .project-list-card__media img {
    transform: scale(1.04);
}

.project-list-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: clamp(28px, 2.6vw, 40px) clamp(24px, 2.4vw, 36px) clamp(32px, 3vw, 44px);
}

.project-list-card__title {
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
    margin: 0 0 16px;
}

.project-list-card__title a {
    color: var(--text);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size var(--t-base) var(--ease);
}

.project-list-card__title a:hover {
    background-size: 100% 1px;
}

.project-list-card__desc {
    font-size: 14px;
    line-height: 1.85;
    color: var(--text-muted);
    margin: 0 0 28px;
}

.project-list-card__more {
    margin-top: auto;
}

@media (max-width: 1199px) {
    .project-list__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .project-list__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-list-card__body {
        padding: 24px 22px 28px;
    }

    .project-list-card__desc {
        font-size: 13.5px;
        margin-bottom: 22px;
    }
}

/* ===== About Split(關於髮盛診所 — 雜誌雙欄式) ===== */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    overflow: hidden;
}

.about-split__media {
    position: relative;
    margin: 0;
    background: #1a1612;
    /* 暖暗底,圖載入前先有色 */
    overflow: hidden;
}

.about-split__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-split__panel {
    position: relative;
    background:
        radial-gradient(ellipse 60% 80% at 75% 50%, rgba(220, 220, 220, 0.18) 0%, rgba(180, 180, 180, 0) 60%),
        radial-gradient(ellipse 50% 70% at 20% 40%, rgba(255, 255, 255, 0.08) 0%, rgba(180, 180, 180, 0) 65%),
        linear-gradient(135deg, #2a2a2a 0%, #4a4a4a 50%, #3a3a3a 100%);
    color: #f0f0f0;
    display: flex;
    align-items: center;
    padding: clamp(60px, 8vw, 120px) clamp(40px, 6vw, 100px);
    overflow: hidden;
}

.about-split__panel::before {
    content: "";
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(circle 35vmax at 78% 45%, rgba(230, 230, 230, 0.22) 0%, rgba(230, 230, 230, 0) 60%),
        radial-gradient(circle 28vmax at 18% 60%, rgba(200, 200, 200, 0.14) 0%, rgba(200, 200, 200, 0) 65%);
    filter: blur(60px);
    animation: about-split-drift 9s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes about-split-drift {
    0% {
        transform: translate3d(-3%, -2%, 0) scale(1);
    }

    100% {
        transform: translate3d(4%, 3%, 0) scale(1.08);
    }
}

.about-split__panel > * {
    position: relative;
    z-index: 1;
}

.about-split__inner {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 6vw, 80px);
}

/* 大標題 */
/* .editor-area 前綴提高權重,蓋掉 .editor-area h2/p 的通用字級污染 */
.editor-area .about-split__title {
    font-size: clamp(2.2rem, 4.4vw, 4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0;
    color: #f5f5f5;
}

.about-split__line {
    display: block;
    overflow: hidden;
}

.about-split__line .split-char {
    display: inline-block;
}

.about-split__body .split-line {
    overflow: hidden;
    display: block;
}

/* 內文 */
.about-split__body {
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.75;
    color: rgba(245, 245, 245, 0.78);
    max-width: 36ch;
}

.editor-area .about-split__body p {
    margin: 0 0 18px;
    font-size: inherit;
    line-height: inherit;
}

.editor-area .about-split__body p:last-child {
    margin: 0;
}

/* CTA 列 */
.about-split__ctas {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: auto;
}

/* CTA 按鈕(膠囊) — 沿用 btn-pill 樣式系統 */
.about-cta {
    --pill-fg: #1a1a1a;
    --pill-bd: #1a1a1a;
    --pill-bg: transparent;
    --pill-circle-bg: #1a1a1a;
    --pill-circle-fg: #f5f5f5;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 15px 28px;
    border: 1.5px solid var(--pill-bd);
    border-radius: 999px;
    background: var(--pill-bg);
    color: var(--pill-fg);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition:
        gap var(--t-base) var(--ease),
        background var(--t-base) var(--ease),
        color var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease);
}

.about-cta::after {
    content: "\f061"; /* 預設 arrow-right;各 variant 覆寫 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 12px;
    transition:
        background var(--t-base) var(--ease),
        color var(--t-base) var(--ease),
        width var(--t-base) var(--ease),
        height var(--t-base) var(--ease),
        transform var(--t-base) var(--ease);
}

.about-cta:hover,
.about-cta:focus-visible {
    gap: 18px;
}

.about-cta:hover::after,
.about-cta:focus-visible::after {
    background: var(--pill-circle-bg);
    color: var(--pill-circle-fg);
    transform: translateX(2px);
}

/* 主 CTA:實心(深底版本) */
.about-cta--primary {
    --pill-fg: #f5f5f5;
    --pill-bd: #1a1a1a;
    --pill-bg: #1a1a1a;
    --pill-circle-bg: #f5f5f5;
    --pill-circle-fg: #1a1a1a;
}

.about-cta--primary::after {
    content: "\f08e"; /* arrow-up-right-from-square */
}

.about-cta--primary:hover,
.about-cta--primary:focus-visible {
    --pill-bg: #000000;
    --pill-bd: #000000;
}

/* 第二 CTA:描邊(深底版本) */
.about-cta--solid {
    --pill-fg: #f5f5f5;
    --pill-bd: #f5f5f5;
    --pill-bg: transparent;
    --pill-circle-bg: #f5f5f5;
    --pill-circle-fg: #1a1a1a;
}

.about-cta--solid::after {
    content: "\f061"; /* arrow-right */
}

.about-cta--solid:hover,
.about-cta--solid:focus-visible {
    --pill-fg: #ffffff;
    --pill-bd: #ffffff;
}

/* RWD */
@media (max-width: 991px) {
    .about-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .about-split__media {
        aspect-ratio: 4 / 3;
    }

    .about-split__panel {
        padding: clamp(50px, 8vw, 80px) clamp(24px, 5vw, 50px);
    }

    .about-split__inner {
        gap: 36px;
    }
}

@media (max-width: 767px) {
    .about-split__ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .about-cta {
        justify-content: space-between;
    }
}

/* ===== Schedule(門診時刻表 — 日曆風) ===== */

/* 卡片外框 */
.schedule-card {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* 工具列(月份標題 + 切換按鈕) */
.schedule-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: clamp(20px, 2.5vw, 32px) clamp(20px, 2.5vw, 32px) clamp(16px, 2vw, 24px);
    border-bottom: 1px solid var(--border);
}

.schedule-toolbar__title {
    display: flex;
    align-items: baseline;
    gap: 24px;
    flex-wrap: wrap;
}

.schedule-eyebrow {
    font-family: var(--font-mono);
    font-size: clamp(13px, 1.3vw, 17px);
    letter-spacing: 0.18em;
    color: var(--text);
    font-weight: 500;
    text-transform: uppercase;
}

.schedule-week {
    font-family: var(--font-mono);
    font-size: clamp(15px, 1.5vw, 19px);
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.04em;
}

/* 表格本體 */
.schedule-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 720px;
}

/* 表頭(週一到週六) */
.schedule-grid thead th {
    padding: 16px 12px 14px;
    font-weight: 500;
    text-align: center;
    background: transparent;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.schedule-grid thead th:first-child {
    text-align: left;
    padding-left: clamp(20px, 2.5vw, 32px);
    color: var(--text-subtle);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
}

.schedule-grid .day-en {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--text-subtle);
    margin-bottom: 4px;
    font-weight: 500;
}

.schedule-grid .day-zh {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* 時段欄(左側時間 — 大標 + 小範圍) */
.schedule-grid tbody th[scope="row"] {
    text-align: left;
    padding: 28px clamp(20px, 2.5vw, 32px);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.015);
    font-weight: 500;
    white-space: nowrap;
}

.schedule-grid .time-label {
    display: block;
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 4px;
}

.schedule-grid .time-range {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--text-subtle);
    font-weight: 400;
}

/* 一般日格 */
.schedule-grid tbody td {
    padding: 24px 8px;
    text-align: center;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    background: var(--bg-elev-1);
    transition: background var(--t-fast) var(--ease);
}

.schedule-grid tbody td:last-child,
.schedule-grid thead th:last-child {
    border-right: none;
}

.schedule-grid tbody tr:last-child th,
.schedule-grid tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 767px) {
    .schedule-grid tbody tr:last-child td:last-child {
        border-bottom: none;
    }

    .schedule-grid thead th {
        border-top: 1px solid var(--border);
    }
}

.schedule-grid tbody td:hover {
    background: rgb(249, 249, 249);
}

/* 醫師名膠囊 */
.doc-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 8px 16px;
    background: rgba(10, 10, 10, 0.06);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.02em;
    transition: background var(--t-fast) var(--ease);
}

.schedule-grid tbody td:hover .doc-pill {
    background: var(--text);
    color: var(--bg-elev-1);
}

/* 休診 */
.doc-off {
    display: inline-block;
    color: var(--text-subtle);
    font-size: 14px;
    letter-spacing: 0.04em;
}

/* Note */
.schedule-note {
    margin: 0;
    padding: clamp(14px, 1.6vw, 20px) clamp(20px, 2.5vw, 32px);
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.015);
}

/* 在 .editor-area 內時,蓋掉 .editor-area p 的 margin/font 覆寫,維持貼齊表格的頁腳樣式 */
.editor-area .schedule-note {
    margin: 0;
    font-size: 13px;
}

.schedule-note i {
    color: var(--brand);
}

/* 滑動提示 — 預設隱藏,只在手機顯示 */
.schedule-scroll-hint {
    display: none;
}

@media (max-width: 767px) {
    .schedule-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .schedule-toolbar__title {
        gap: 12px;
    }

    .doc-pill {
        min-width: 0;
        padding: 6px 12px;
        font-size: 13px;
    }

    /* 滑動提示列 */
    .schedule-scroll-hint {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 16px;
        padding: 6px 12px;
        border-radius: 999px;
        background: rgba(10, 10, 10, 0.06);
        color: var(--text);
        font-size: 12px;
        letter-spacing: 0.04em;
    }

    .schedule-scroll-hint i {
        font-size: 13px;
        animation: scrollHintShake 1.6s ease-in-out infinite;
    }

    @keyframes scrollHintShake {
        0%,
        100% {
            transform: translateX(0);
        }

        50% {
            transform: translateX(4px);
        }
    }

    /* 表格外層 — 水平卷軸 */
    .schedule-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 calc(-1 * clamp(16px, 4vw, 24px));
        padding: 0 clamp(16px, 4vw, 24px) 0;
        scrollbar-width: thin;
    }

    .schedule-scroll .schedule-grid {
        min-width: 720px;
    }
}

/* ===== Environment(診所環境 — 無縫向左跑馬燈) ===== */
/* 跑馬燈外框 — 全寬,溢出隱藏 */
.env-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: clamp(20px, 3vw, 40px) 0;
    /* 細紋背景:用 repeating-linear-gradient 模擬參考圖那種音紋 */
    background: repeating-linear-gradient(
        180deg,
        transparent 0,
        transparent 6px,
        rgba(10, 10, 10, 0.03) 6px,
        rgba(10, 10, 10, 0.03) 7px
    );
}

/* 浮水印英文(像參考圖那行 "...Therapy..." 淡淡的字) */
.env-marquee__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    font-family: "Anton", "Bebas Neue", sans-serif;
    font-size: clamp(8rem, 18vw, 18rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.01em;
    color: rgba(10, 10, 10, 0.06);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
}

/* 跑馬燈軌道(高低錯落用 align-items 控制基線) */
.env-marquee__track {
    display: flex;
    align-items: center;
    /* 卡片以中線對齊,高低自然錯落 */
    /* 不可用 gap:flex 的 gap 只在卡片「之間」產生,8 張只有 7 個間距,
       導致 translateX(-50%) 的位移量比「原始批寬+一個間距」少 0.5 個間距,
       接龍時會錯位/露縫。改用每張卡 margin-right(含最後一張)讓總寬可被 -50% 整除。 */
    width: max-content;
    position: relative;
    z-index: 1;
    min-height: clamp(400px, 38vw, 620px);
    /* 撐起跑馬燈高度 */
    /* 8 張卡片(4 原 + 4 副本),滑到 -50% 即無縫接龍 */
    animation: env-scroll 40s linear infinite;
}

/* hover 暫停 */
.env-marquee:hover .env-marquee__track,
.env-marquee:focus-within .env-marquee__track {
    animation-play-state: paused;
}

@keyframes env-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* 單張卡片(基底)— 對齊 .video-card-v 的視覺語彙 */
.env-card {
    flex-shrink: 0;
    /* 每張卡(含最後一張)右側固定間距,讓 8 張總寬可被 translateX(-50%) 整除而無縫接龍 */
    margin: 0 clamp(20px, 3vw, 48px) 0 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-elev-2);
    color: #f0e8df;
    text-decoration: none;
    transition: transform var(--t-base) var(--ease-out-expo);
    user-select: none;
}

.env-card:hover,
.env-card:focus-visible {
    transform: translateY(-6px);
}

/* 高低錯落:奇數張窄而高、偶數張寬而矮 — 由 nth-child 控制,不靠 modifier class */
.env-card:nth-child(odd) {
    width: clamp(220px, 22vw, 360px);
    aspect-ratio: 3 / 4;
}

.env-card:nth-child(even) {
    width: clamp(300px, 32vw, 520px);
    aspect-ratio: 4 / 3;
}

.env-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s var(--ease);
}

.env-card:hover img {
    transform: scale(1.06);
}

/* 照片上的暗化漸層,對齊 .video-card-v__bg::after */
.env-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45) 0%,
        transparent 28%,
        transparent 55%,
        rgba(0, 0, 0, 0.85) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* 圖片內側細框線 — hover 時內縮、邊色更亮一階 */
.env-card::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(240, 232, 223, 0.45);
    pointer-events: none;
    z-index: 2;
    transition:
        inset var(--t-base) var(--ease-out-expo),
        border-color var(--t-base) var(--ease);
}

.env-card:hover::before,
.env-card:focus-visible::before {
    inset: 10px;
    border-color: rgba(255, 255, 255, 0.75);
}

/* 卡片下緣的 caption(編號 + 名稱)— 對齊 .video-card-v__caption */
.env-card__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 0 30px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f0e8df;
    font-size: clamp(15px, 1.4vw, 20px);
    line-height: 1.45;
    letter-spacing: 1px;
    font-weight: 600;
}

.env-card__name {
    color: #ffffff;
    font-weight: 600;
}

/* RWD */
@media (max-width: 767px) {
    .env-card:nth-child(odd) {
        width: 56vw;
    }

    .env-card:nth-child(even) {
        width: 70vw;
    }

    .env-marquee__track {
        animation-duration: 32s;
        min-height: clamp(360px, 80vw, 480px);
    }
}

/* prefers-reduced-motion:停止跑馬燈 */
@media (prefers-reduced-motion: reduce) {
    .env-marquee__track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        padding: 0 24px;
    }

    .env-marquee__bg {
        display: none;
    }
}

/* ===== Doctor Feature(醫師團隊 — 深底淺卡型錄式) ===== */
/* 整段切深底,反相整個區塊的視覺重量 */
.section-doctors {
    position: relative;
    color: #f0f0f0;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 80% at 75% 50%, rgba(220, 220, 220, 0.18) 0%, rgba(180, 180, 180, 0) 60%),
        radial-gradient(ellipse 50% 70% at 20% 40%, rgba(255, 255, 255, 0.08) 0%, rgba(180, 180, 180, 0) 65%),
        linear-gradient(135deg, #2a2a2a 0%, #4a4a4a 50%, #3a3a3a 100%);
}

.section-doctors::before {
    content: "";
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(circle 35vmax at 78% 45%, rgba(230, 230, 230, 0.22) 0%, rgba(230, 230, 230, 0) 60%),
        radial-gradient(circle 28vmax at 18% 60%, rgba(200, 200, 200, 0.14) 0%, rgba(200, 200, 200, 0) 65%);
    filter: blur(60px);
    animation: about-split-drift 9s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

.section-doctors > .container-fluid {
    position: relative;
    z-index: 1;
}

/* 深底區標題改用淺色文字 */
.section-doctors .block-headline {
    color: #ebebe8;
}

/* 深底版 CTA 反相 */
.block-cta--invert {
    --pill-fg: #ebebe8;
    --pill-bd: #ebebe8;
    --pill-bg: transparent;
    --pill-circle-bg: #ebebe8;
    --pill-circle-fg: #1a1a1a;
}

/* 卡片容器 */
.doctor-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(14px, 1.6vw, 24px);
}

/* 單張型錄卡 — 淺米卡片包黑白人像 */
.doctor-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ebebe8;
    color: #2a2622;
    text-decoration: none;
    padding: clamp(16px, 1.6vw, 24px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    transition: transform var(--t-base) var(--ease-out-expo);
}

.doctor-feature:hover,
.doctor-feature:focus-visible {
    transform: translateY(-6px);
}

/* 人像區 — 黑白、白底、4:5 比例(留上下白邊) */
.doctor-feature__media {
    position: relative;
    aspect-ratio: 4 / 5;
    background: #ffffff;
    overflow: hidden;
    margin-bottom: clamp(20px, 2vw, 28px);
}

.doctor-feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform var(--t-slow) var(--ease);
}

.doctor-feature:hover .doctor-feature__media img {
    transform: scale(1.03);
}

/* hover 時的色片(蓋在人像上,從下往上淡入) */
.doctor-feature__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(20, 18, 16, 0) 20%,
        rgba(20, 18, 16, 0.55) 65%,
        rgba(20, 18, 16, 0.8) 100%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-base) var(--ease);
}

.doctor-feature:hover .doctor-feature__media::after,
.doctor-feature:focus-visible .doctor-feature__media::after {
    opacity: 1;
}

/* 左下裝飾(階梯式條紋,hover 時由下而上、每條 width 0→100% 依序展開) */
.doctor-feature__deco {
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 160px;
    height: 120px;
    pointer-events: none;
    display: flex;
    flex-direction: column-reverse;
    /* 從下往上排,讓最先出現的在底 */
    justify-content: flex-start;
    gap: 9px;
    padding: 0;
    z-index: 1;
}

.doctor-feature__deco i {
    display: block;
    height: 1px;
    width: 0;
    background: rgba(255, 255, 255, 0.7);
    transition: width 0.28s var(--ease, cubic-bezier(0.4, 0, 0.2, 1));
}

/* 由下往上依序延遲 + 寬度由短到長(6 條,第 1 條最短最快,第 6 條最長最晚) */
.doctor-feature:hover .doctor-feature__deco i:nth-child(1),
.doctor-feature:focus-visible .doctor-feature__deco i:nth-child(1) {
    width: 18%;
    transition-delay: 0s;
}

.doctor-feature:hover .doctor-feature__deco i:nth-child(2),
.doctor-feature:focus-visible .doctor-feature__deco i:nth-child(2) {
    width: 32%;
    transition-delay: 0.04s;
}

.doctor-feature:hover .doctor-feature__deco i:nth-child(3),
.doctor-feature:focus-visible .doctor-feature__deco i:nth-child(3) {
    width: 48%;
    transition-delay: 0.08s;
}

.doctor-feature:hover .doctor-feature__deco i:nth-child(4),
.doctor-feature:focus-visible .doctor-feature__deco i:nth-child(4) {
    width: 64%;
    transition-delay: 0.12s;
}

.doctor-feature:hover .doctor-feature__deco i:nth-child(5),
.doctor-feature:focus-visible .doctor-feature__deco i:nth-child(5) {
    width: 82%;
    transition-delay: 0.16s;
}

.doctor-feature:hover .doctor-feature__deco i:nth-child(6),
.doctor-feature:focus-visible .doctor-feature__deco i:nth-child(6) {
    width: 100%;
    transition-delay: 0.2s;
}

/* 文字資訊區 */
.doctor-feature__info {
    padding: 0 6px 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 中文姓名(主標) */
.doctor-feature__cn {
    font-size: clamp(1.25rem, 1.7vw, 1.55rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.04em;
    margin: 0;
    color: #2a2622;
}

/* 部門 / 加入年份 */
.doctor-feature__title {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(42, 38, 34, 0.62);
    margin: 4px 0 0;
    letter-spacing: 0.02em;
}

/* RWD */
@media (max-width: 1199px) {
    .doctor-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .doctor-cards {
        grid-template-columns: 1fr;
    }
}

/* ===== News(最新消息 — 雙欄編輯式列表) ===== */

.section-news {
    padding: 0;
}

.news-split {
    display: grid;
    grid-template-columns: minmax(280px, 5fr) 7fr;
    align-items: start;
    border-top: 1px solid var(--border);
}

/* 左側介紹欄 */
.news-split__intro {
    border-right: 1px solid var(--border);
    height: 100%;
}

.news-split__intro-text {
    display: flex;
    flex-direction: column;
    padding: 40px;
    gap: clamp(28px, 3vw, 40px);
}

/* SplitText:標題字、lead 行的 overflow clip,確保 yPercent 110% 看不到 */
.news-split__title {
    overflow: hidden;
}

.news-split__title .split-char {
    display: inline-block;
}

.news-split__lead .split-line {
    overflow: hidden;
    display: block;
}

/* 介紹欄圖片(靠上) */
.news-split__media {
    margin: 0;
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: var(--border);
    order: -1;
}

.news-split__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 大標題(.editor-area 前綴提權重,蓋掉 .editor-area h2 字級污染) */
.editor-area .news-split__title {
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--text);
}

/* 介紹文(.editor-area 前綴蓋掉 .editor-area p 污染) */
.editor-area .news-split__lead {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-muted);
    margin: 0;
    max-width: 40ch;
}

.news-split__intro-text .block-cta {
    align-self: flex-start;
}

/* 右側列表(扁平單列、整列 hover 變色) */
.news-split__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-split__list > li {
    flex: auto;
}

.news-split__list > li + li {
    border-top: 1px solid var(--border);
}

/* 每列 — 主內容佔主、metadata 次、細箭頭尾 */
.news-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
    padding: clamp(20px, 2.4vw, 20px) clamp(20px, 5vw, 90px) clamp(20px, 2.4vw, 20px) clamp(20px, 2vw, 40px);
    color: inherit;
    text-decoration: none;
    height: 100%;
    transition: background var(--t-base) var(--ease);
}

.news-row:hover,
.news-row:focus-visible {
    background: rgb(157 157 157 / 10%);
}

/* 主內容容器(meta + 標題 + 描述) */
.news-row__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 主標題 */
.news-row__title {
    font-size: clamp(1rem, 1.5vw, 1.34rem);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.005em;
    margin: 0;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* SplitText 後改為 block,並讓字位移時被裁切 */
.news-row__title.is-split {
    display: block;
    overflow: hidden;
}

.news-row__title .split-char {
    display: inline-block;
}

/* 描述(2 行 line-clamp) */
.news-row__excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
    max-width: 65ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: justify;
    overflow: hidden;
}

.news-row__excerpt.is-split {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.news-row__excerpt .split-line {
    display: block;
    overflow: hidden;
}

/* metadata(分類 + 日期):次要、等寬字、置右 */
.news-row__meta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--text-subtle);
    white-space: nowrap;
}

.news-row__cat {
    color: var(--text-muted);
    letter-spacing: 0.12em;
}

.news-row__cat::after {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-strong);
    margin-left: 14px;
    vertical-align: middle;
}

.news-row__date {
    color: var(--text-subtle);
}

/* 圓形箭頭按鈕 — 黑底白箭頭 */
.news-row__arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    overflow: hidden;
    transition: background-color var(--t-base) var(--ease);
}

.news-row__arrow::before {
    content: "";
    width: 18px;
    height: 12px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='2' y1='8' x2='22' y2='8'/><polyline points='15,1 22,8 15,15'/></svg>")
        no-repeat center / contain;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='2' y1='8' x2='22' y2='8'/><polyline points='15,1 22,8 15,15'/></svg>")
        no-repeat center / contain;
}

@keyframes news-arrow-out {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(160%);
        opacity: 0;
    }
}

@keyframes news-arrow-in {
    0% {
        transform: translateX(-160%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.news-row:hover .news-row__arrow,
.news-row:focus-visible .news-row__arrow {
    background: #000000;
}

.news-row:hover .news-row__arrow::before,
.news-row:focus-visible .news-row__arrow::before {
    animation:
        news-arrow-out 0.28s cubic-bezier(0.7, 0, 0.84, 0) forwards,
        news-arrow-in 0.36s cubic-bezier(0.16, 1, 0.3, 1) 0.28s forwards;
}

/* RWD */
@media (max-width: 991px) {
    .header .container-fluid,
    .header .container {
        padding: 0 20px;
    }

    .container-fluid,
    .container {
        padding: 0 20px;
    }

    .news-split {
        grid-template-columns: 1fr;
    }

    .news-split__intro {
        position: static;
    }
}

@media (max-width: 767px) {
    .news-row {
        align-items: center;
        column-gap: 16px;
    }

    .news-row__meta {
        font-size: 11px;
    }

    .news-row__arrow {
        width: 40px;
        height: 40px;
    }

    .news-split__intro-text {
        padding: 40px 20px;
    }
}

/* ===== Floating Contact(側邊浮動膠囊) ===== */
.floating-contact {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(140%);
    z-index: 1030;
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.55s var(--ease, ease),
        opacity 0.35s ease;
}

.floating-contact.is-visible {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    pointer-events: auto;
}

body.menu-open .floating-contact {
    transform: translateY(-50%) translateX(140%);
    opacity: 0;
    pointer-events: none;
}

.fc-capsule {
    width: 70px;
    background: rgba(248, 248, 248, 0.92);
    border-radius: 18px 0 0 18px;
    padding: 10px 8px 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    box-shadow:
        0 12px 36px rgba(80, 80, 80, 0.14),
        0 2px 8px rgba(80, 80, 80, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.fc-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 4px;
    text-decoration: none;
    color: #4a4a4a;
    transition: transform var(--t-base) var(--ease);
}

.fc-cell + .fc-cell::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 1px;
    background: rgba(120, 120, 120, 0.22);
}

.fc-cell:hover,
.fc-cell:focus-visible {
    transform: translateY(-1px);
}

.fc-icon {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.fc-icon--line {
    background: transparent;
    color: #4a4a4a;
}

.fc-icon--line i {
    font-size: 24px;
}

.fc-icon--web {
    background: transparent;
    color: #4a4a4a;
}

.fc-icon--web i {
    font-size: 20px;
}

.fc-icon--phone {
    background: transparent;
    color: #4a4a4a;
}

.fc-icon--phone i {
    font-size: 20px;
}

.fc-icon--cal {
    background: transparent;
    color: #4a4a4a;
}

.fc-icon--cal i {
    font-size: 24px;
}

.fc-text {
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
    color: #4a4a4a;
    letter-spacing: 0.02em;
    font-weight: 500;
}

/* 透明底圖標（line / web / phone / cal）：hover 時顏色加深 + 文字同步 */
.fc-icon i {
    transition:
        transform var(--t-base) var(--ease),
        color var(--t-base) var(--ease);
}

.fc-cell:hover .fc-icon--line,
.fc-cell:hover .fc-icon--web,
.fc-cell:hover .fc-icon--phone,
.fc-cell:hover .fc-icon--cal,
.fc-cell:focus-visible .fc-icon--line,
.fc-cell:focus-visible .fc-icon--web,
.fc-cell:focus-visible .fc-icon--phone,
.fc-cell:focus-visible .fc-icon--cal {
    color: #1f1f1f;
}

.fc-cell:hover .fc-text,
.fc-cell:focus-visible .fc-text {
    color: #1f1f1f;
}

/* 電話圖標 hover 時微微擺動，呼應「來電」的意象 */
.fc-cell:hover .fc-icon--phone i,
.fc-cell:focus-visible .fc-icon--phone i {
    animation: fcPhoneShake 0.6s ease;
}

@keyframes fcPhoneShake {
    0%,
    100% {
        transform: rotate(0);
    }

    20% {
        transform: rotate(-12deg);
    }

    40% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(-6deg);
    }

    80% {
        transform: rotate(4deg);
    }
}

.fc-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 12px;
    position: relative;
}

.fc-socials::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 1px;
    background: rgba(120, 120, 120, 0.22);
}

.fc-social {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(120, 120, 120, 0.08);
    border: 1px solid rgba(120, 120, 120, 0.22);
    color: #6b6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: all var(--t-base) var(--ease);
}

.fc-social:hover,
.fc-social:focus-visible {
    background: #6b6b6b;
    border-color: #6b6b6b;
    color: #fff;
}

@media (max-width: 767px) {
    /* 手機版：從右側豎排，改為「貼底橫排」浮動列 */
    .floating-contact {
        right: 0;
        left: 0;
        top: auto;
        bottom: 0;
        transform: translateY(110%);
        display: flex;
        justify-content: center;
        padding: 0 10px env(safe-area-inset-bottom, 8px);
    }

    .floating-contact.is-visible {
        transform: translateY(0);
    }

    body.menu-open .floating-contact {
        transform: translateY(110%);
    }

    .fc-capsule {
        width: auto;
        max-width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        gap: 2px;
        padding: 8px 10px;
        border-radius: 16px 16px 0 0;
        box-shadow:
            0 -8px 28px rgba(80, 80, 80, 0.14),
            0 -2px 6px rgba(80, 80, 80, 0.06),
            inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    }

    .fc-cell {
        flex: 1 1 0;
        min-width: 60px;
        padding: 4px 6px;
        gap: 4px;
    }

    /* 橫排時把 cell 間的分隔線改為左側豎線（與 socials 分隔線等長） */
    .fc-cell + .fc-cell::before {
        top: 50%;
        bottom: auto;
        left: 0;
        right: auto;
        height: 28px;
        width: 1px;
        transform: translateY(-50%);
    }

    .fc-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .fc-icon--line i {
        font-size: 20px;
    }

    .fc-icon--cal i {
        font-size: 19px;
    }

    .fc-icon--web i,
    .fc-icon--phone i {
        font-size: 16px;
    }

    .fc-text {
        font-size: 10px;
        letter-spacing: 0.01em;
    }

    /* 社群區：橫排接在右側，並改為左側豎線分隔 */
    .fc-socials {
        flex-direction: row;
        gap: 6px;
        margin-top: 0;
        margin-left: 4px;
        padding-top: 0;
        padding-left: 8px;
    }

    .fc-socials::before {
        top: 50%;
        bottom: auto;
        left: 0;
        right: auto;
        height: 28px;
        width: 1px;
        transform: translateY(-50%);
    }

    .fc-social {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 479px) {
    .fc-text {
        font-size: 9.5px;
    }

    .fc-icon {
        width: 30px;
        height: 30px;
    }

    .fc-social {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .fc-socials {
        gap: 4px;
        padding-left: 6px;
    }

    .fc-cell {
        min-width: 55px;
    }
}

/* ===== Page Loader(首次進站全屏遮罩) ===== */
/* 只有首頁顯示,內頁由 JS 直接移除 */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: linear-gradient(135deg, #1a1a1a 0%, #5a5a5a 35%, #2a2a2a 65%, #4a4a4a 100%);
    background-size: 300% 300%;
    animation: page-loader-bg-shift 8s ease-in-out infinite alternate;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition:
        opacity 0.7s ease,
        visibility 0s linear 0.7s;
}

.page-loader::before,
.page-loader::after {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
    z-index: 0;
}

.page-loader::before {
    background:
        radial-gradient(ellipse 55% 70% at 70% 45%, rgba(255, 255, 255, 0.45) 0%, rgba(180, 180, 180, 0) 60%),
        radial-gradient(ellipse 50% 70% at 25% 65%, rgba(255, 255, 255, 0.32) 0%, rgba(180, 180, 180, 0) 65%);
    filter: blur(40px);
    animation: page-loader-glow-a 6s ease-in-out infinite alternate;
}

.page-loader::after {
    background:
        radial-gradient(ellipse 35% 50% at 50% 50%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 65%),
        radial-gradient(ellipse 25% 35% at 80% 20%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(45px);
    animation: page-loader-glow-b 4.5s ease-in-out infinite alternate;
    mix-blend-mode: screen;
}

@keyframes page-loader-bg-shift {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

@keyframes page-loader-glow-a {
    0% {
        transform: translate3d(-12%, -8%, 0) scale(0.95);
        opacity: 0.7;
    }

    100% {
        transform: translate3d(14%, 10%, 0) scale(1.25);
        opacity: 1;
    }
}

@keyframes page-loader-glow-b {
    0% {
        transform: translate3d(15%, 6%, 0) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate3d(-12%, -8%, 0) scale(1.2);
        opacity: 1;
    }
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader__glow {
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(circle 35vmax at 78% 45%, rgba(230, 230, 230, 0.22) 0%, rgba(230, 230, 230, 0) 60%),
        radial-gradient(circle 28vmax at 18% 60%, rgba(200, 200, 200, 0.14) 0%, rgba(200, 200, 200, 0) 65%);
    filter: blur(60px);
    animation: page-loader-drift 6s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes page-loader-drift {
    0% {
        transform: translate3d(-3%, -2%, 0) scale(1);
    }

    100% {
        transform: translate3d(4%, 3%, 0) scale(1.08);
    }
}

.page-loader__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    color: #f0f0f0;
}

.page-loader__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.92;
    animation: page-loader-fade 1.6s ease-in-out infinite alternate;
}

.page-loader__brand img {
    display: block;
    width: clamp(140px, 18vw, 200px);
    height: auto;
}

@keyframes page-loader-fade {
    from {
        opacity: 0.55;
    }

    to {
        opacity: 0.95;
    }
}

.page-loader__bar {
    width: 200px;
    height: 1px;
    background: rgba(240, 240, 240, 0.18);
    overflow: hidden;
    position: relative;
}

.page-loader__bar-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(240, 240, 240, 0) 0%,
        rgba(240, 240, 240, 0.85) 50%,
        rgba(240, 240, 240, 0) 100%
    );
    transform: translateX(-100%);
    animation: page-loader-sweep 1.4s ease-in-out infinite;
}

@keyframes page-loader-sweep {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

body.page-loaded .page-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===== prefers-reduced-motion(無障礙底線) ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .grain-canvas {
        display: none;
    }

    .swiper-slide-active .hero-line,
    .swiper-slide-active .hero-features > ul,
    .swiper-slide-active .hero-cta-pill {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* About Page - RWD */
@media (max-width: 991px) {
    .about-section {
        padding: 64px 0;
    }

    .about-title {
        font-size: 2.1rem;
        letter-spacing: 3px;
    }

    .about-lead {
        font-size: 1.1rem;
    }

    .about-env-card {
        min-height: 200px;
    }
}

@media (max-width: 767px) {
    .about-section {
        padding: 48px 0;
    }

    .about-section--environment {
        padding-bottom: 72px;
    }

    .about-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .about-lead {
        font-size: 1rem;
    }

    .about-info-list li {
        padding: 12px 14px;
    }
}

/* ===== Doctor Page - 列表頁章節頭 + 卡片列表 ===== */
.inner-content--doctors {
    padding: 90px 0 110px;
}

/* 內頁卡片列表 — 沿用首頁 .doctor-feature,僅 grid 與直排間距微調 */
.doctor-cards--list {
    grid-template-columns: repeat(4, 1fr);
    row-gap: clamp(28px, 3vw, 44px);
}

.doctor-cards--list .doctor-feature:hover,
.doctor-cards--list .doctor-feature:focus-visible {
    transform: none;
}

@media (max-width: 1199px) {
    .doctor-cards--list {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 767px) {
    .inner-content--doctors {
        padding: 56px 0 72px;
    }

    .doctor-cards--list {
        grid-template-columns: 1fr;
    }
}

/* ===== Policy Page - 章節頭 + 條款細節重構 ===== */
.inner-content--policy {
    padding: 90px 0 110px;
}

.policy-content--refined {
    max-width: 880px;
}

.policy-content--refined .policy-intro {
    position: relative;
    padding: 26px 28px 26px 32px;
    background: var(--bg-elev-1, rgba(255, 255, 255, 0.04));
    border-left: 2px solid var(--text);
    border-radius: 0 12px 12px 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.95;
    letter-spacing: 0.04em;
    margin-bottom: 56px;
}

.policy-section {
    margin: 0 0 48px;
    padding: 0;
}

.policy-section__head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.policy-section__num {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--text);
    background: transparent;
}

.policy-content--refined .policy-section__title {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text);
    line-height: 1.5;
}

.policy-content--refined .policy-section p {
    color: var(--text-muted);
    line-height: 1.95;
    letter-spacing: 0.03em;
    margin: 0 0 14px;
}

.policy-content--refined .policy-section ul {
    margin: 14px 0 6px;
    padding: 0;
    list-style: none;
}

.policy-content--refined .policy-section ul li {
    position: relative;
    padding: 8px 0 8px 22px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.85;
    letter-spacing: 0.03em;
}

.policy-content--refined .policy-section ul li::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 0;
    width: 10px;
    height: 1px;
    background: var(--text);
}

.policy-content--refined .policy-section ul li strong {
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-right: 4px;
}

.policy-subsection {
    margin: 22px 0 0;
}

.policy-subsection + .policy-subsection {
    margin-top: 28px;
}

.policy-content--refined .policy-subsection__title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 8px;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text);
    line-height: 1.6;
}

.policy-subsection__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 3px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    background: transparent;
}

.contact-info-box--refined {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0 8px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.contact-info-box--refined .contact-info-box__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 22px;
    background: var(--bg-elev-1, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    text-decoration: none;
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.contact-info-box--refined .contact-info-box__item:hover,
.contact-info-box--refined .contact-info-box__item:focus-visible {
    border-color: var(--border-strong);
    background: var(--bg-elev-2, rgba(255, 255, 255, 0.06));
}

.contact-info-box--refined .contact-info-box__icon {
    flex: none;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    color: var(--text);
    font-size: 14px;
}

.contact-info-box--refined .contact-info-box__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.contact-info-box--refined .contact-info-box__label {
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact-info-box--refined .contact-info-box__value {
    font-size: 14px;
    letter-spacing: 0.04em;
    color: var(--text);
    line-height: 1.55;
    word-break: break-word;
}

.policy-content--refined .policy-date {
    margin-top: 56px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    text-align: right;
    font-size: 13px;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

@media (max-width: 991px) {
    .contact-info-box--refined {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .inner-content--policy {
        padding: 56px 0 72px;
    }

    .policy-content--refined .policy-intro {
        padding: 22px 20px;
    }

    .policy-section {
        margin-bottom: 36px;
    }

    .policy-section__head {
        gap: 14px;
        padding-bottom: 12px;
        margin-bottom: 18px;
    }

    .policy-section__num {
        min-width: 40px;
        height: 40px;
        font-size: 12px;
    }

    .contact-info-box--refined {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ===== Project page (沃土計畫) ===== */
.inner-content--project {
    padding: 90px 0 110px;
}

.project-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    margin-bottom: clamp(50px, 6vw, 84px);
}

.project-head__title {
    margin: 0;
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.06em;
    color: var(--text);
}

.project-head__row {
    display: block;
}

.project-head__title::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    background: var(--text);
    margin: 22px auto 0;
}

.project-head__desc {
    margin: 4px auto 0;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-muted);
}

.project-stages {
    display: flex;
    flex-direction: column;
    gap: clamp(56px, 7vw, 96px);
}

.project-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
}

.project-stage--reverse .project-stage__media {
    order: 2;
}

.project-stage--reverse .project-stage__body {
    order: 1;
    text-align: right;
}

.project-stage--reverse .project-stage__body .project-stage__divider {
    margin-left: auto;
}

.project-stage__media {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--border);
}

.project-stage__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-stage:hover .project-stage__media img {
    transform: scale(1.04);
}

.project-stage__badge {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.project-stage__body {
    display: flex;
    flex-direction: column;
}

.project-stage__num {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.project-stage__title {
    margin: 0 0 12px;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.45;
    color: var(--text);
}

.project-stage__lead {
    margin: 0 0 22px;
    font-size: 15px;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    line-height: 1.7;
}

.project-stage__divider {
    display: block;
    width: 56px;
    height: 2px;
    background: var(--text);
    margin-bottom: 24px;
}

.project-stage__desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 2;
    letter-spacing: 0.04em;
    text-align: justify;
}

@media (max-width: 991px) {
    .project-stage {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-stage--reverse .project-stage__media {
        order: 0;
    }

    .project-stage--reverse .project-stage__body {
        order: 0;
        text-align: left;
    }

    .project-stage--reverse .project-stage__body .project-stage__divider {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .inner-content--project {
        padding: 56px 0 72px;
    }

    .project-head__title {
        letter-spacing: 0.04em;
    }

    .project-stage__badge {
        top: 12px;
        right: 12px;
        padding: 6px 12px;
        font-size: 10px;
    }

    .project-stage__desc {
        text-align: left;
    }
}

/* =========================================================
   News View (Article Detail) — Unified Editorial Design
   ========================================================= */
.inner-content--news-view {
    padding: 90px 0 110px;
}

.news-view-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding-bottom: clamp(36px, 4vw, 56px);
    margin-bottom: clamp(40px, 5vw, 64px);
    border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}

.news-view-category {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(68, 160, 141, 0.08);
    color: var(--brand, #44a08d);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.news-view-title {
    position: relative;
    font-size: clamp(24px, 3.2vw, 36px);
    line-height: 1.45;
    font-weight: 700;
    color: var(--ink, #0a0a0a);
    margin: 0;
    padding-bottom: 24px;
}

.news-view-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 48px;
    height: 2px;
    background: var(--brand, #44a08d);
    opacity: 0.7;
}

.news-view-title__sub {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85em;
    color: var(--muted, #555);
    font-weight: 500;
}

.news-view-meta {
    display: flex;
    justify-content: center;
    gap: 14px;
    color: var(--muted, #888);
    font-size: 13px;
    letter-spacing: 0.06em;
}

.news-view-meta__item i {
    margin-right: 6px;
    color: var(--brand, #44a08d);
}

.news-view-meta__divider {
    width: 1px;
    height: 12px;
    background: rgba(10, 10, 10, 0.18);
}

.news-view-body {
    color: #3a3a3a;
    font-size: 16px;
    line-height: 1.95;
}

.news-view-quote {
    position: relative;
    margin: 0 0 40px;
    padding: 28px 32px 28px 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(68, 160, 141, 0.06), rgba(10, 10, 10, 0.02));
    border-left: 3px solid var(--brand, #44a08d);
    font-size: clamp(17px, 1.6vw, 19px);
    font-weight: 500;
    color: #2a2a2a;
    font-style: italic;
    line-height: 1.7;
}

.news-view-quote__mark {
    position: absolute;
    top: 6px;
    left: 18px;
    font-family: Georgia, serif;
    font-size: 60px;
    line-height: 1;
    color: var(--brand, #44a08d);
    opacity: 0.4;
    font-style: normal;
}

.news-view-p {
    margin: 0 0 28px;
    text-align: justify;
}

.news-view-p strong {
    color: var(--ink, #0a0a0a);
    background: linear-gradient(transparent 60%, rgba(68, 160, 141, 0.18) 60%);
    padding: 0 2px;
    font-weight: 700;
}

.news-view-figure {
    margin: 48px 0;
    text-align: center;
}

.news-view-figure img {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(10, 10, 10, 0.1);
    display: block;
}

.news-view-figure figcaption {
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted, #888);
    letter-spacing: 0.06em;
}

.news-view-cta {
    margin-top: 64px;
    padding: clamp(32px, 4vw, 48px);
    border-radius: 16px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(68, 160, 141, 0.1), transparent 55%),
        linear-gradient(135deg, #fff, #f4f4f4);
    border: 1px solid rgba(10, 10, 10, 0.06);
    text-align: center;
}

.news-view-cta__lead {
    margin: 0 0 18px;
    font-size: 15px;
    color: var(--muted, #555);
    letter-spacing: 0.08em;
}

.news-view-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    border-radius: 999px;
    background: var(--ink, #0a0a0a);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.news-view-cta__btn i {
    transition: transform 0.3s ease;
}

.news-view-cta__btn:hover {
    background: var(--brand, #44a08d);
    color: #fff;
    transform: translateY(-2px);
}

.news-view-cta__btn:hover i {
    transform: translateX(4px);
}

.news-view-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    margin-top: clamp(56px, 6vw, 84px);
    padding-top: clamp(32px, 4vw, 48px);
    border-top: 1px solid rgba(10, 10, 10, 0.08);
}

.news-view-nav__btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border-radius: 12px;
    border: 1px solid rgba(10, 10, 10, 0.08);
    background: #fff;
    color: var(--ink, #0a0a0a);
    text-decoration: none;
    transition:
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
    min-width: 0;
}

.news-view-nav__btn:hover {
    border-color: var(--brand, #44a08d);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(10, 10, 10, 0.06);
}

.news-view-nav__btn i {
    color: var(--brand, #44a08d);
    flex-shrink: 0;
}

.news-view-nav__label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.news-view-nav__label--right {
    text-align: right;
}

.news-view-nav__label em {
    font-style: normal;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--muted, #888);
    text-transform: uppercase;
}

.news-view-nav__label strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink, #0a0a0a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-view-nav__btn--next {
    justify-content: flex-end;
}

.news-view-nav__btn--list {
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

@media (max-width: 991px) {
    .inner-content--news-view {
        padding: 60px 0 80px;
    }

    .news-view-head {
        gap: 14px;
        padding-bottom: 32px;
        margin-bottom: 36px;
    }

    .news-view-title {
        font-size: clamp(20px, 5.4vw, 26px);
        line-height: 1.5;
        padding-bottom: 20px;
    }

    .news-view-title__sub {
        font-size: 0.82em;
        margin-top: 6px;
    }

    .news-view-meta {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        font-size: 12px;
    }

    .news-view-body {
        font-size: 15px;
        line-height: 1.85;
    }

    .news-view-quote {
        margin: 0 0 28px;
        padding: 22px 20px 22px 40px;
        font-size: 15px;
        border-radius: 12px;
    }

    .news-view-quote__mark {
        font-size: 44px;
        top: 4px;
        left: 12px;
    }

    .news-view-p {
        margin-bottom: 20px;
    }

    .news-view-figure {
        margin: 32px 0;
    }

    .news-view-cta {
        margin-top: 44px;
        padding: 28px 22px;
        border-radius: 14px;
    }

    .news-view-cta__lead {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .news-view-cta__btn {
        padding: 12px 24px;
        font-size: 13px;
    }

    .news-view-nav {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 44px;
        padding-top: 28px;
    }

    .news-view-nav__btn {
        padding: 14px 18px;
        gap: 12px;
    }

    .news-view-nav__btn--next,
    .news-view-nav__btn--prev {
        justify-content: flex-start;
    }

    .news-view-nav__label--right {
        text-align: left;
    }

    .news-view-nav__btn--next {
        flex-direction: row-reverse;
        justify-content: flex-end;
    }

    .news-view-nav__btn--list {
        order: 3;
        justify-content: center;
        padding: 14px 18px;
    }

    .news-view-nav__label strong {
        font-size: 13px;
    }
}

@media (max-width: 479px) {
    .news-view-category {
        padding: 5px 14px;
        font-size: 11px;
    }

    .news-view-title {
        font-size: 19px;
    }

    .news-view-meta__divider {
        display: none;
    }

    .news-view-figure img {
        border-radius: 8px;
    }

    .news-view-figure figcaption {
        font-size: 12px;
    }

    .news-view-p {
        text-align: left;
    }
}

/* ===== 首頁區塊 RWD 補強(平板 ≤991 / 手機 ≤768) ===== */
@media (max-width: 991px) {
    /* 醫師團隊:平板兩欄 */
    .doctor-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 767px) {
    /* 1. content-section 上下 padding 收一些 */
    .content-section {
        padding: clamp(48px, 10vw, 80px) 0;
    }

    .section-news {
        padding: 0;
    }

    /* 3. 醫師團隊:手機單欄 */
    .doctor-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .doctor-feature__cn {
        font-size: 1.1rem;
    }

    .doctor-feature__title {
        font-size: 0.85rem;
    }

    /* 4. about-split:手機端 媒體區改較矮 */
    .about-split__media {
        aspect-ratio: 16 / 11;
    }

    /* 6. news-split:手機端列表上下間距收窄 */
    .news-split__list > li + li {
        margin-top: 14px;
    }

    .news-row__title {
        font-size: 1.05rem;
    }

    .news-row__excerpt {
        font-size: 0.85rem;
    }

    /* Header 高度縮減:logo 變小、圓鈕變小、上下 padding 收窄 */
    .header {
        padding: 24px 0;
    }

    .logo img,
    .header .logo__img {
        height: 42px;
        width: auto;
    }

    .menu-toggle,
    .header-search-toggle,
    .fullscreen-menu__close {
        width: 42px;
        height: 42px;
    }

    .menu-toggle {
        gap: 4px;
        padding: 10px;
    }

    /* 手機版 4 點縮近,距中心 ±6px(含關閉按鈕共用同一組 dot) */
    .menu-toggle .menu-toggle__dot:nth-child(1) {
        transform: translate(-50%, -50%) translate(-6px, -6px);
    }

    .menu-toggle .menu-toggle__dot:nth-child(2) {
        transform: translate(-50%, -50%) translate(6px, -6px);
    }

    .menu-toggle .menu-toggle__dot:nth-child(3) {
        transform: translate(-50%, -50%) translate(-6px, 6px);
    }

    .menu-toggle .menu-toggle__dot:nth-child(4) {
        transform: translate(-50%, -50%) translate(6px, 6px);
    }

    /* 手機版 X 線條長度縮為 20px */
    .menu-toggle.active .menu-toggle__dot,
    .fullscreen-menu__close .menu-toggle__dot {
        width: 20px;
    }

    .header-search-toggle svg {
        width: 16px;
        height: 16px;
    }

    .header-right {
        gap: 10px;
    }
}

/* ============================================================
   Project View(三合一頭皮深層修復療程) — 暖米白編輯版
   ============================================================ */
.pv-tag {
    font-family: "JetBrains Mono", "Roboto Mono", monospace;
    font-size: 15px;
    letter-spacing: 0.24em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin: 0 0 18px;
    padding-left: 14px;
    border-left: 1px solid var(--border-strong);
    line-height: 1.4;
}

.pv-section-title {
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 clamp(28px, 4vw, 56px);
}

.pv-section-title span {
    display: block;
}

/* ---------- Intro ---------- */
.pv-intro {
    padding: clamp(56px, 7vw, 110px) 0 clamp(48px, 6vw, 90px);
}

.pv-intro__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
}

.pv-intro__title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0 0 28px;
    color: var(--text);
}

.pv-intro__title span {
    display: block;
}

.pv-intro__title em {
    font-style: normal;
    font-family: "Cormorant Garamond", "Noto Serif TC", serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.pv-intro__lead {
    font-size: clamp(15px, 1.05vw, 16.5px);
    line-height: 1.95;
    color: var(--text-muted);
    margin: 0 0 36px;
}

.pv-intro__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.pv-cta-ghost {
    --pill-fg: var(--text-muted);
    --pill-bd: var(--border-strong);
}

.pv-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 28px);
    margin: 0;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.pv-stats > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pv-stats dt {
    font-family: "Cormorant Garamond", "Noto Serif TC", serif;
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-weight: 500;
    line-height: 1;
    color: var(--text);
    margin: 0;
}

.pv-stats dt small {
    font-size: 0.45em;
    margin-left: 2px;
    color: var(--text-muted);
    font-family: var(--font-display, "Roboto", sans-serif);
}

.pv-stats dd {
    font-size: 12.5px;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin: 0;
}

/* Orbit visual */
.pv-intro__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pv-orbit {
    position: relative;
    width: min(380px, 100%);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pv-orbit__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed var(--border-strong);
    animation: pvOrbitSpin 80s linear infinite;
}

.pv-orbit__ring--inner {
    inset: 14%;
    border-style: solid;
    border-color: var(--border);
    animation-duration: 120s;
    animation-direction: reverse;
}

@keyframes pvOrbitSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pv-orbit__ring {
        animation: none;
    }
}

.pv-orbit__core {
    position: relative;
    width: 56%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--bg-elev-1);
    border: 1px solid var(--border-strong);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 24px 48px -30px rgba(10, 10, 10, 0.2);
}

.pv-orbit__big {
    font-family: "Cormorant Garamond", "Noto Serif TC", serif;
    font-size: clamp(3rem, 5vw, 4.2rem);
    font-weight: 400;
    color: var(--text);
    line-height: 1;
}

.pv-orbit__big-label {
    font-size: 12px;
    letter-spacing: 0.22em;
    color: var(--text-muted);
}

.pv-orbit__item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.pv-orbit__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-elev-1);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 18px;
}

.pv-orbit__label {
    font-size: 11.5px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.pv-orbit__item--top {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.pv-orbit__item--left {
    bottom: 10%;
    left: -10px;
}

.pv-orbit__item--right {
    bottom: 10%;
    right: -10px;
}

/* ---------- Steps ---------- */
.pv-steps {
    padding: clamp(60px, 7vw, 110px) 0;
    background: var(--bg-elev-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pv-steps__head {
    text-align: center;
    margin-bottom: clamp(36px, 4vw, 56px);
}

.pv-steps__head .pv-tag {
    display: inline-block;
    padding: 0 0 6px;
    border-left: none;
    border-bottom: 1px solid var(--border-strong);
}

.pv-steps__head .pv-section-title {
    margin-bottom: 0;
}

.pv-steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(18px, 2vw, 28px);
}

.pv-step {
    position: relative;
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    padding: clamp(28px, 2.6vw, 40px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-radius: 2px;
    transition:
        border-color var(--t-base) var(--ease),
        transform var(--t-base) var(--ease),
        box-shadow var(--t-base) var(--ease);
}

.pv-step:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: 0 22px 48px -28px rgba(10, 10, 10, 0.16);
}

.pv-step__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.pv-step__num {
    font-family: "Cormorant Garamond", "Noto Serif TC", serif;
    font-size: clamp(2.8rem, 4vw, 3.6rem);
    font-weight: 400;
    line-height: 1;
    color: var(--text);
    opacity: 0.18;
}

.pv-step__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text);
}

.pv-step__badge {
    font-family: "JetBrains Mono", "Roboto Mono", monospace;
    font-size: 10.5px;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    text-transform: uppercase;
    align-self: flex-start;
}

.pv-step__title {
    font-size: clamp(1.3rem, 1.8vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    margin: 0;
    color: var(--text);
}

.pv-step__subtitle {
    font-size: 13.5px;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin: 0;
}

.pv-step__desc {
    font-size: 14px;
    line-height: 1.85;
    color: var(--text-muted);
    margin: 6px 0 0;
}

.pv-step__tags {
    list-style: none;
    padding: 0;
    margin: auto 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pv-step__tags li {
    font-size: 11.5px;
    letter-spacing: 0.06em;
    padding: 5px 11px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--text-muted);
}

/* ---------- Mechanism ---------- */
.pv-mechanism {
    padding: clamp(60px, 7vw, 110px) 0;
}

.pv-mechanism__head {
    margin-bottom: clamp(28px, 3.5vw, 48px);
}

.pv-mechanism__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 4vw, 64px);
    align-items: center;
}

.pv-mechanism__visual {
    margin: 0;
    border: 1px solid var(--border);
    background: var(--bg-elev-1);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.pv-mechanism__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pv-mechanism__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.pv-mechanism__list li {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.pv-mechanism__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text);
}

.pv-mechanism__list h4 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0 0 6px;
    color: var(--text);
}

.pv-mechanism__list p {
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--text-muted);
    margin: 0;
}

/* ---------- Flow Timeline ---------- */
.pv-flow {
    padding: clamp(60px, 7vw, 110px) 0;
    background: var(--bg-elev-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pv-flow__head {
    text-align: center;
    margin-bottom: clamp(28px, 3.5vw, 48px);
}

.pv-flow__head .pv-tag {
    display: inline-block;
    padding: 0 0 6px;
    border-left: none;
    border-bottom: 1px solid var(--border-strong);
}

.pv-flow__head .pv-section-title {
    margin-bottom: 0;
}

.pv-flow__timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
}

.pv-flow__step {
    padding: clamp(22px, 2vw, 32px) clamp(18px, 1.6vw, 24px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background var(--t-base) var(--ease);
}

.pv-flow__step:last-child {
    border-right: none;
}

.pv-flow__step:hover {
    background: var(--bg-elev-2);
}

.pv-flow__num {
    font-family: "JetBrains Mono", "Roboto Mono", monospace;
    font-size: 10.5px;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.pv-flow__icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--text);
    margin: 4px 0;
}

.pv-flow__step h4 {
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0;
    color: var(--text);
}

.pv-flow__time {
    font-size: 12.5px;
    letter-spacing: 0.04em;
    color: var(--text);
    margin: 0;
    font-weight: 500;
}

.pv-flow__desc {
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 4px 0 0;
}

.pv-flow__total {
    text-align: center;
    margin: clamp(20px, 2.5vw, 32px) 0 0;
    font-size: 14px;
    color: var(--text-muted);
}

.pv-flow__total strong {
    color: var(--text);
    font-weight: 700;
}

/* ---------- Benefits ---------- */
.pv-benefits {
    padding: clamp(60px, 7vw, 110px) 0;
}

.pv-benefits__head {
    text-align: center;
    margin-bottom: clamp(36px, 4vw, 56px);
}

.pv-benefits__head .pv-tag {
    display: inline-block;
    padding: 0 0 6px;
    border-left: none;
    border-bottom: 1px solid var(--border-strong);
}

.pv-benefits__head .pv-section-title {
    margin-bottom: 0;
}

.pv-benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(18px, 2vw, 28px);
}

.pv-benefit {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    padding: clamp(24px, 2.4vw, 36px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition:
        border-color var(--t-base) var(--ease),
        transform var(--t-base) var(--ease);
}

.pv-benefit:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
}

.pv-benefit__icon {
    font-size: 24px;
    color: var(--text);
    margin-bottom: 6px;
}

.pv-benefit h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.02em;
    color: var(--text);
}

.pv-benefit p {
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--text-muted);
    margin: 0;
}

.pv-benefit__line {
    width: 36px;
    height: 2px;
    background: var(--text);
    margin-top: 14px;
    border-radius: 2px;
    opacity: 0.6;
}

/* ---------- Suitable ---------- */
.pv-suitable {
    padding: clamp(60px, 7vw, 100px) 0;
    background: var(--bg-elev-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pv-suitable__head {
    text-align: center;
    margin-bottom: clamp(32px, 4vw, 52px);
}

.pv-suitable__head .pv-tag {
    display: inline-block;
    padding: 0 0 6px;
    border-left: none;
    border-bottom: 1px solid var(--border-strong);
}

.pv-suitable__head .pv-section-title {
    margin-bottom: 0;
}

.pv-suitable__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 1.8vw, 24px);
}

.pv-suitable-card {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    padding: clamp(22px, 2.2vw, 32px) clamp(18px, 2vw, 24px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition:
        border-color var(--t-base) var(--ease),
        box-shadow var(--t-base) var(--ease);
}

.pv-suitable-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 18px 40px -28px rgba(10, 10, 10, 0.18);
}

.pv-suitable-card__icon {
    font-size: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    margin-bottom: 6px;
}

.pv-suitable-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
    letter-spacing: 0.02em;
}

.pv-suitable-card p {
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-muted);
    margin: 0;
}

/* ---------- CTA + Note ---------- */
.pv-cta {
    padding: clamp(60px, 7vw, 110px) 0 clamp(48px, 6vw, 90px);
}

.pv-cta__inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.pv-cta__brand {
    font-family: "Cormorant Garamond", "Noto Serif TC", serif;
    font-size: 14px;
    letter-spacing: 0.32em;
    color: var(--text-muted);
    margin: 0 0 22px;
    text-transform: uppercase;
}

.pv-cta__title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 22px;
    color: var(--text);
}

.pv-cta__title span {
    display: block;
}

.pv-cta__desc {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-muted);
    margin: 0 0 32px;
}

.pv-cta__btn {
    --pill-fg: #f5f5f3;
    --pill-bd: var(--text);
    --pill-bg: var(--text);
    --pill-circle-bg: #f5f5f3;
    --pill-circle-fg: var(--text);
    padding: 14px 28px;
    font-size: 14px;
}

.pv-cta__note {
    margin: 18px 0 0;
    font-size: 12.5px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.pv-note {
    max-width: 1040px;
    margin: clamp(40px, 5vw, 64px) auto 0;
    padding: clamp(20px, 2vw, 28px);
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.pv-note__icon {
    color: var(--text);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.pv-note__text {
    font-size: 14px;
    line-height: 1.85;
    color: var(--text-muted);
    margin: 0;
}

.pv-note__text strong {
    color: var(--text);
    font-weight: 700;
    margin-right: 4px;
}

/* ===== .editor-area 前綴提權重(0,2,x),蓋掉 .editor-area h2/h3/h4/p/ul/ol/li
   的通用字級・行高・margin・disc/decimal 清單污染,維持 project_view 自訂版型 ===== */
.editor-area .pv-intro__title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.1;
    margin: 0 0 28px;
}

.editor-area .pv-intro__lead {
    font-size: clamp(15px, 1.05vw, 16.5px);
    line-height: 1.95;
    margin: 0 0 36px;
}

.editor-area .pv-step__title {
    font-size: clamp(1.3rem, 1.8vw, 1.6rem);
    line-height: 1.2;
    margin: 0;
}

.editor-area .pv-step__subtitle {
    font-size: 13.5px;
    margin: 0;
}

.editor-area .pv-step__desc {
    font-size: 14px;
    line-height: 1.85;
    margin: 6px 0 0;
}

.editor-area .pv-step__tags {
    list-style: none;
    padding: 0;
    margin: auto 0 0;
}

.editor-area .pv-step__tags li {
    font-size: 11.5px;
    list-style: none;
    margin: 0;
}

.editor-area .pv-mechanism__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.editor-area .pv-mechanism__list li {
    list-style: none;
    margin: 0;
}

.editor-area .pv-mechanism__list h4 {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 6px;
}

.editor-area .pv-mechanism__list p {
    font-size: 13.5px;
    line-height: 1.85;
    margin: 0;
}

.editor-area .pv-flow__timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.editor-area .pv-flow__step {
    list-style: none;
    margin: 0;
}

.editor-area .pv-flow__step h4 {
    font-size: 14.5px;
    line-height: 1.3;
    margin: 0;
}

.editor-area .pv-flow__time {
    font-size: 12.5px;
    margin: 0;
}

.editor-area .pv-flow__desc {
    font-size: 12.5px;
    line-height: 1.7;
    margin: 4px 0 0;
}

.editor-area .pv-flow__total {
    font-size: 14px;
    margin: clamp(20px, 2.5vw, 32px) 0 0;
}

.editor-area .pv-benefit h4 {
    font-size: 1.05rem;
    margin: 0;
}

.editor-area .pv-benefit p {
    font-size: 13.5px;
    line-height: 1.8;
    margin: 0;
}

.editor-area .pv-suitable-card h4 {
    font-size: 1rem;
    margin: 0;
}

.editor-area .pv-suitable-card p {
    font-size: 13px;
    line-height: 1.75;
    margin: 0;
}

.editor-area .pv-cta__title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.15;
    margin: 0 0 22px;
}

.editor-area .pv-cta__desc {
    font-size: 15px;
    line-height: 1.9;
    margin: 0 0 32px;
}

.editor-area .pv-cta__note {
    font-size: 12.5px;
    margin: 18px 0 0;
}

.editor-area .pv-note__text {
    font-size: 14px;
    line-height: 1.85;
    margin: 0;
}

/* ---------- RWD ---------- */
@media (max-width: 1199px) {
    .pv-flow__timeline {
        grid-template-columns: repeat(3, 1fr);
    }

    .pv-flow__step:nth-child(3) {
        border-right: none;
    }

    .pv-flow__step:nth-child(n + 4) {
        border-top: 1px solid var(--border);
    }

    .pv-suitable__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .pv-intro__grid {
        grid-template-columns: 1fr;
    }

    .pv-intro__visual {
        order: -1;
    }

    .pv-orbit {
        width: min(320px, 80%);
    }

    .pv-steps__grid,
    .pv-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pv-mechanism__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .pv-intro__cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .pv-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .pv-stats dt {
        font-size: 1.9rem;
    }

    .pv-stats dd {
        font-size: 11.5px;
    }

    .pv-steps__grid,
    .pv-benefits__grid {
        grid-template-columns: 1fr;
    }

    .pv-flow__timeline {
        grid-template-columns: 1fr;
    }

    .pv-flow__step {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .pv-flow__step:last-child {
        border-bottom: none;
    }

    .pv-flow__step:nth-child(n + 4) {
        border-top: none;
    }

    .pv-suitable__grid {
        grid-template-columns: 1fr;
    }
}

.pv-back {
    display: flex;
    justify-content: center;
    margin: clamp(36px, 4vw, 56px) 0 clamp(48px, 6vw, 80px);
}

.pv-back__btn {
    --pill-fg: var(--text);
    --pill-bd: var(--border-strong);
}

.pv-back__btn > i {
    margin-right: 2px;
    transition: transform var(--t-base) var(--ease);
}

.pv-back__btn:hover > i,
.pv-back__btn:focus-visible > i {
    transform: translateX(-3px);
}

/* ===== 跟隨游標:互動目標滑鼠停留時才出現 =====
   外圈(米白描邊)滑入頁面後跟著游標;實心箭頭圓僅在停留可互動元素時淡入放大。
   行動裝置與不支援精準游標的裝置隱藏。 */
.cursor-fx {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    opacity: 0;
    transform: translate3d(var(--cursor-x, -100px), var(--cursor-y, -100px), 0);
    will-change: transform, opacity;
    transition: opacity var(--t-base) var(--ease);
}

.cursor-fx--ring {
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border: 1.5px solid #fff;
    mix-blend-mode: difference;
    transform: translate3d(var(--cursor-x, -100px), var(--cursor-y, -100px), 0) scale(1);
    transition:
        opacity 280ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cursor-fx--dot {
    width: 78px;
    height: 78px;
    margin: -39px 0 0 -39px;
    background: rgba(26, 26, 26, 0.8);
    color: rgba(245, 245, 245, 0.8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    display: grid;
    place-items: center;
    font-size: 20px;
    transform: translate3d(var(--cursor-x, -100px), var(--cursor-y, -100px), 0) scale(0.6);
    transition:
        opacity 280ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cursor-active .cursor-fx--ring {
    opacity: 1;
}

.cursor-active.cursor-hover .cursor-fx--ring {
    opacity: 0;
    transform: translate3d(var(--cursor-x, -100px), var(--cursor-y, -100px), 0) scale(1.3);
}

.cursor-active.cursor-hover .cursor-fx--dot {
    opacity: 1;
    transform: translate3d(var(--cursor-x, -100px), var(--cursor-y, -100px), 0) scale(1);
}

@media (hover: none), (pointer: coarse) {
    .cursor-fx {
        display: none !important;
    }
}

/* ===== Cases(案例見證 — Before / After 雙圖卡) ===== */

.section-cases.content-section {
    padding-bottom: 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 2.4vw, 36px);
    margin-top: clamp(28px, 3vw, 48px);
}

.case-card {
    display: flex;
    flex-direction: column;
    background: #ebebe8;
    color: #2a2622;
    text-decoration: none;
    padding: clamp(18px, 1.8vw, 28px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    transition:
        transform var(--t-base) var(--ease-out-expo),
        box-shadow var(--t-base) var(--ease);
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.case-card__imgs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: clamp(20px, 2vw, 28px);
}

.case-card__img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #ffffff;
    margin: 0;
}

.case-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(60%);
    transition:
        filter var(--t-base) var(--ease),
        transform var(--t-slow) var(--ease);
}

.case-card:hover .case-card__img img {
    filter: grayscale(0%);
    transform: scale(1.04);
}

.case-card__tag {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    border-radius: 999px;
}

.case-card__tag--after {
    background: #1a1a1a;
}

.case-card__info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.case-card__eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #8a8478;
    text-transform: uppercase;
}

.case-card__title {
    font-size: clamp(18px, 1.4vw, 22px);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.case-card__desc {
    font-size: 14px;
    line-height: 1.8;
    color: #4a4640;
    margin: 0;
}

@media (max-width: 767px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .video-tab {
        padding: 8px 20px 8px 20px;
        font-size: 14px;
    }
}

/* ===== 行動裝置捲動效能修正 =====
   iOS / Android / iPad 上會卡頓的主因是 fixed 元素的 backdrop-filter blur、
   全螢幕 mix-blend-mode 噪點層,以及永遠在跑的背景漂移動畫 —
   每次捲動都要 promote 整層做合成,GPU 來不及就會掉幀。
   平板與手機統一停用這些奢侈合成,捲動明顯滑順。 */
@media (max-width: 1024px) {
    /* header 捲動後改純色,避免 fixed + blur 在 scroll 期間反覆重繪 */
    .header.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #f7f7f5;
    }

    /* 整頁覆蓋的噪點 multiply 在行動 GPU 太貴,直接隱藏 */
    .grain-canvas {
        display: none;
    }

    /* 內頁 hero 背景漂移、首頁 hero 漂移 — 捲動時都會被一起合成,停掉 */
    .inner-hero__bg,
    .swiper-slide-active.hero-slide::after {
        animation: none !important;
        transform: translate3d(0, 0, 0) scale(1.04);
    }

    /* breadcrumb 的 blur 在 inner-hero 上,捲過會帶動重繪 */
    .breadcrumb {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(0, 0, 0, 0.28);
    }
}

/* ===== 案例見證：詳細頁 Before／After 對照圖 ===== */
.case-view-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(10px, 1.6vw, 18px);
    margin: clamp(24px, 3vw, 40px) 0;
}

.case-view-compare__item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #ffffff;
    margin: 0;
}

.case-view-compare__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 640px) {
    .case-view-compare {
        grid-template-columns: 1fr;
    }
}

/* ===== 影音實驗室（videos）：測驗 SweetAlert 選項 + 影片錯誤提示 ===== */
.quiz-options { display: flex; flex-direction: column; }
.quiz-option {
    display: flex; align-items: center; width: 100%;
    padding: 12px 15px; margin-bottom: 10px;
    background: #2a2a2a; border: 2px solid transparent; border-radius: 8px;
    color: #fff; font-size: 14px; cursor: pointer; transition: all .3s ease; text-align: left;
}
.quiz-option:hover { border-color: #3a3a3a; background: #333; }
.quiz-option .opt-label {
    width: 28px; height: 28px; background: #3a3a3a; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; margin-right: 12px; flex-shrink: 0;
}
.quiz-option .opt-text { flex: 1; }

.video-url-error {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; height: 100%; min-height: 240px;
    background: #1a1a1a; color: #ccc; border-radius: 8px; text-align: center;
}
.video-url-error i { font-size: 42px; margin-bottom: 14px; color: #e0a800; }
.video-url-error p { font-size: 16px; margin: 0; }
