    /* ===== 醫師列表 ===== */
    body {
        --c-brand: #604C3E;
        --c-brown: #5b4336;
        --c-brown-2: #725847;
        --c-accent: #C49C69;
        /* #C49C69 */
        --c-text: #604C3E;
        --c-muted: #AD9B8E;

        background-color: #F4F4F4;
        font-family: "Noto Serif TC", Sans-serif !important;
    }

    .rtm-docs {
        --wrap: 1200px;
        --gap: 22px;
        --c-brand: #604C3E;
        --c-light: #AA978A;
        --c-text: #604C3E;
    }

    .rtm-docs * {
        box-sizing: border-box;
    }

    .rtm-docs .wrap {
        max-width: var(--wrap);
        margin: 0 auto;
        padding: 6px 16px 36px;
    }

    /* 搜尋列 */
    .searchbar {
        max-width: 400px;
        margin: 0 auto 30px;
        width: 100%;
        /* 讓外層容器可隨螢幕縮放 */
        padding-top: 50px;
    }

    .searchbar .search-group {
        display: flex;
        border: 2px solid #AA978A;
        border-radius: 40px;
        /* 移掉這個或只給左邊 */
        overflow: hidden;
    }

    .searchbar input[type="text"] {
        flex: 1;
        border: none;
        padding: 12px 16px;
        font-size: 16px;
        outline: none;
        color: #604C3E;
        min-width: 0;
        /* 避免在flex中撐破 */
    }

    /* 搜尋輸入框容器 */
    .searchbar .search-input-wrap {
        position: relative;
        display: flex;
        flex: 1;
        align-items: center;
    }

    .searchbar .search-input-wrap input[type="text"] {
        width: 100%;
        padding-right: 36px;
        /* 給清除按鈕留空間 */
    }

    /* 清除按鈕 */
    .searchbar .search-clear-btn {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 22px;
        height: 22px;
        padding: 0;
        border: none;
        background: #AA978A;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background .2s, transform .15s;
    }

    .searchbar .search-clear-btn svg {
        width: 12px;
        height: 12px;
        color: #fff;
    }

    .searchbar .search-clear-btn:hover {
        background: #604C3E;
        transform: translateY(-50%) scale(1.1);
    }

    .searchbar .search-clear-btn:active {
        transform: translateY(-50%) scale(0.95);
    }

    .searchbar select.search-scope {
        border: none;
        background: #F4F4F4;
        width: 90px;
        padding: 12px 24px 12px 8px;
        /* 右邊 padding 調大，留出空間給箭頭 */
        font-size: 15px;
        color: #604C3E;
        cursor: pointer;
        flex-shrink: 0;
        text-align: center;
        /* 顯示時的文字置中 */
        text-align-last: center;
        /* 部分瀏覽器需要 */

        /* 自訂箭頭 */
        appearance: none;
        /* 隱藏系統箭頭 */
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml;utf8,<svg fill='%23604C3E' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
        background-repeat: no-repeat;
        background-position: right 6px center;
        /* 控制箭頭靠左一點 */
        background-size: 12px;
        font-weight: 600;
    }

    /* 下拉選單打開的 option */
    .searchbar select.search-scope option {
        text-align: center;
        /* 選單中的文字置中 */
        font-weight: 600;
    }

    .searchbar .search-btn {
        border: none;
        background: #604C3E;
        color: #fff;
        padding: 12px 20px;
        font-size: 15px;
        cursor: pointer;
        transition: background .2s;
        flex-shrink: 0;
        border-radius: 0 40px 40px 0;
        /* 只給右側圓角 */
        font-weight: 700;
    }

    .searchbar .search-btn:hover {
        background: #C49C69;
    }

    /* 手機版響應式處理 */
    @media (max-width: 768px) {
        .searchbar {
            max-width: 100%;
            /* 手機版撐滿螢幕 */
            padding: 0 12px;
            /* 左右留點空隙 */
            padding-top: 30px;
        }

        .searchbar .search-group {
            max-width: 100%;
            /* 手機版撐滿螢幕 */
            border-radius: 30px;
        }
    }



    /* 第一層 Tabs */
    /* ------ 第一層 Tabs（大區域） ------ */
    .rtm-tabs {
        display: flex;
        gap: .75rem;
        justify-content: center;
        margin: 1rem 0 1rem;
        flex-wrap: wrap
    }

    .rtm-tab {
        min-width: 8rem;
        text-align: center;
        text-decoration: none;
        font-weight: 800;
        padding: .85rem 3.2rem;
        border-radius: 10px;
        color: #fff;
        background: var(--c-light);
        transition: background .18s ease, transform .12s ease, box-shadow .18s ease;
        font-size: 18px;
        box-shadow: 0 1px 0 rgba(0, 0, 0, .06) inset;
    }

    .rtm-tab:hover,
    .rtm-tab:focus {
        background: var(--c-brand);
        color: #fff;
        outline: none;
        transform: translateY(-1px)
    }

    .rtm-tab.is-active {
        background: var(--c-brand);
        color: #fff
    }

    /* ✅ 手機版 (<=768px) Tabs 一列兩個 */
    @media (max-width: 768px) {
        .rtm-tabs {
            justify-content: space-between;
            /* 讓左右平均分佈 */
            gap: 12px;
            /* 可依需求調整間距 */
        }

        .rtm-tab {
            flex: 0 0 calc(50% - 12px);
            /* 每個剛好佔一半，扣掉間距避免換行 */
            padding: .85rem 0;
            /* 手機縮小 padding 避免太擠 */
            font-size: 16px;
            /* 手機字體稍微縮小 */
        }
    }

    /* 第二層 Chips */
    .rtm-docs .lvl2 {
        display: flex;
        gap: 18px 26px;
        justify-content: center;
        flex-wrap: wrap;
        margin: 6px 0 24px;
    }

    .rtm-docs .lvl2 a {
        position: relative;
        text-decoration: none;
        font-weight: 700;
        color: var(--c-light);
    }

    .rtm-docs .lvl2 a.is-active,
    .rtm-docs .lvl2 a:hover {
        color: var(--c-brand);
    }

    .rtm-docs .lvl2 a.is-active::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -6px;
        height: 2px;
        background: var(--c-brand);
    }

    /* Grid */
    .rtm-docs .grid {
        display: grid;
        gap: var(--gap);
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    @media (max-width:1100px) {
        .rtm-docs .grid {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
    }

    @media (max-width:900px) {
        .rtm-docs .grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    @media (max-width:640px) {
        .rtm-docs .grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    .rtm-docs .card {
        background: #fff;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
    }

    .rtm-docs .pic {
        aspect-ratio: 3/4;
        background: #f6f6f6;
        overflow: hidden;
    }

    .rtm-docs .pic img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .rtm-docs .meta {
        padding: 12px 8px 18px;
        text-align: center;
        color: var(--c-text);
    }

    .rtm-docs .name {
        font-weight: 800;
        font-size: 18px;
        margin: 2px 0 4px;
    }

    .rtm-docs .name small {
        font-weight: 500;
        font-size: .92em;
        color: var(--c-light);
        margin-left: 2px;
    }

    .rtm-docs .sub {
        font-size: 14px;
        line-height: 1.5;
        color: var(--c-light);
    }


    /* ===================== 醫師陣容(假資料用) ===================== */
    section#sec-doctors {
        position: relative;
        padding: 0px 0 72px;
        color: var(--c-text);
    }

    /* 容器寬度沿用前面變數 */
    #sec-doctors .rtm-doc-wrap {
        max-width: var(--wrap);
        margin: 0 auto;
        padding: 0 16px;
        width: 1180px;
        /* 桌機時 */
        max-width: 1180px;
    }

    @media (max-width: 768px) {
        #sec-doctors .rtm-doc-wrap {
            width: 100%;
            /* 手機改為 100% */
            max-width: 100%;
            padding: 0 12px;
            /* 手機左右留白 */
        }

        #sec-doctors .rtm-doc-grid {
            grid-template-columns: repeat(2, 1fr);
            /* 一列兩張 */
            gap: 16px 12px;
            /* 手機間距縮小 */
        }
    }

    /* 標題區 */
    #sec-doctors .rtm-doc-head {
        text-align: center;
        margin-bottom: 28px;
    }

    #sec-doctors .rtm-doc-head .ico {
        width: 32px;
        height: 32px;
        margin: 0 auto 8px;
        background: url("/wp-content/uploads/title_icon.png") center/contain no-repeat;
    }

    #sec-doctors .rtm-doc-head h2 {
        margin: 0;
        font-weight: 700;
        letter-spacing: .08em;
        font-size: 28px;
        line-height: 1.2;
    }

    /* 卡片格：桌機四欄 */
    #sec-doctors .rtm-doc-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 28px 36px;
    }

    /* 卡片 */
    .rtm-doc-card {
        text-align: center;
    }

    .rtm-doc-card .pic {
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
        /* 固定比例：3:4 */
        aspect-ratio: 3 / 4;
    }

    .rtm-doc-card .pic img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
        /* 這裡確保向上對齊 */
    }

    .rtm-doc-card .name {
        margin: 10px 0 2px;
        font-weight: 700;
        color: #604C3E;
    }

    .rtm-doc-card .role {
        color: #C49C69;
        font-size: 14px;
        letter-spacing: .06em;
        font-weight: 700;
    }

    /* RWD：平板三欄、手機兩欄 */
    @media (max-width: 1100px) {
        #sec-doctors .rtm-doc-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 768px) {
        #sec-doctors {
            padding: 40px 0 56px;
        }

        #sec-doctors .rtm-doc-head h2 {
            font-size: 24px;
        }

        #sec-doctors .rtm-doc-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 18px 16px;
        }
    }

    /* 讓整張卡片就是連結區域 */
    .rtm-doc-card .rtm-doc-link {
        display: block;
        text-decoration: none;
        color: inherit;
    }

    /* hover/焦點小互動，不會破壞原本的陰影與比例 */
    .rtm-doc-card .rtm-doc-link:hover .pic img {
        transform: scale(1.03);
    }

    .rtm-doc-card .pic img {
        transition: transform .25s ease;
    }

    /* 鍵盤可及性：清楚的 focus 樣式 */
    .rtm-doc-card .rtm-doc-link:focus-visible {
        outline: 3px solid var(--c-accent, #C49C69);
        outline-offset: 6px;
        border-radius: 10px;
    }

    /* 清除連結 (灰色小字) */
    .searchbar .search-clear-link {
        display: block;
        text-align: center;
        margin-top: 8px;
        font-size: 13px;
        color: #AA978A;
        text-decoration: none;
        cursor: pointer;
    }


    /* =========================================
       Global Search Bar
       ========================================= */
    .rtm-global-search-bar {
        position: relative;
        display: inline-block;
        /* 手機版 icon 佈局需要 */
    }

    .rtm-global-search-bar .search-form {
        width: 100%;
        position: relative;
        transition: all 0.3s ease;
    }

    .rtm-global-search-bar .search-input-group {
        position: relative;
        display: flex;
        align-items: center;
    }

    .rtm-global-search-bar .search-field {
        width: 100%;
        height: 36px;
        padding: 0 60px 0 16px;
        /* 右側留位給 X 按鈕 + 放大鏡 */
        border: 1px solid #ddd;
        border-radius: 18px;
        font-size: 14px;
        outline: none;
        transition: border-color .2s;
        background: #fafafa;
    }

    .rtm-global-search-bar .search-field:focus {
        border-color: #C49C69;
        background: #fff;
    }

    /* 搜尋按鈕 (放大鏡) */
    .rtm-global-search-bar .search-submit {
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        padding: 6px;
        cursor: pointer;
        color: #999;
        display: flex !important;
        align-items: center;
        justify-content: center;
        transition: color .2s;
        z-index: 2;
    }

    .rtm-global-search-bar .search-submit:hover {
        color: #C49C69;
    }

    /* 清除按鈕 (X) */
    .rtm-global-search-bar .search-clear-x {
        position: absolute;
        right: 32px;
        /* 放在放大鏡左邊 */
        top: 50%;
        transform: translateY(-50%);
        background: #ccc;
        border: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        color: #fff;
        font-size: 14px;
        line-height: 1;
        text-align: center;
        cursor: pointer;
        display: none;
        /* 預設 JS 控制 */
        align-items: center;
        justify-content: center;
        padding: 0;
        z-index: 2;
    }

    .rtm-global-search-bar .search-clear-x:hover {
        background: #999;
    }

    /* 手機版 Toggle 按鈕 */
    .rtm-global-search-bar .search-toggle-btn {
        display: none;
        /* Desktop 隱藏 */
        background: none;
        border: none;
        cursor: pointer;
        color: #604C3E;
        padding: 8px;
    }

    /* 手機版 Close Panel 按鈕 (關閉整個 Input) */
    .rtm-global-search-bar .search-close-panel {
        display: none;
        position: absolute;
        right: -30px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        font-size: 24px;
        color: #666;
        cursor: pointer;
        line-height: 1;
        z-index: 3;
    }

    /* Responsive Logic */
    @media (max-width: 768px) {
        .rtm-global-search-bar .search-toggle-btn {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* 手機版隱藏桌機搜尋框 */
        .rtm-global-search-bar .search-form-desktop {
            display: none !important;
        }
    }

    /* 全屏覆蓋層 - 預設隱藏 */
    .rtm-global-search-bar .search-fullscreen-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 99999;
        align-items: center;
        justify-content: center;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    /* 手機版 - 啟用全屏覆蓋層 */
    @media (max-width: 768px) {
        .rtm-global-search-bar .search-fullscreen-overlay {
            display: flex;
        }

        .rtm-global-search-bar .search-fullscreen-overlay.is-open {
            opacity: 1;
            visibility: visible;
        }

        .rtm-global-search-bar .search-fullscreen-inner {
            width: 90%;
            max-width: 500px;
            transform: translateY(-30px);
            opacity: 0;
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
        }

        .rtm-global-search-bar .search-fullscreen-overlay.is-open .search-fullscreen-inner {
            transform: translateY(0);
            opacity: 1;
        }

        /* 關閉按鈕 */
        .rtm-global-search-bar .search-fullscreen-close {
            position: absolute;
            top: 16px;
            right: 16px;
            background: rgba(255, 255, 255, 0.15);
            border: none;
            border-radius: 50%;
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #fff;
            transition: background 0.2s, transform 0.2s;
        }

        .rtm-global-search-bar .search-fullscreen-close:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: scale(1.05);
        }

        /* 搜尋輸入框容器 */
        .rtm-global-search-bar .search-fullscreen-input-wrap {
            display: flex;
            align-items: center;
            background: #fff;
            border-radius: 30px;
            padding: 6px 6px 6px 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        /* 搜尋輸入框 */
        .rtm-global-search-bar .search-fullscreen-input {
            flex: 1;
            border: none;
            outline: none;
            font-size: 18px;
            height: 48px;
            background: transparent;
            color: #333;
        }

        .rtm-global-search-bar .search-fullscreen-input::placeholder {
            color: #999;
        }

        /* 搜尋按鈕 */
        .rtm-global-search-bar .search-fullscreen-submit {
            background: linear-gradient(135deg, #C49C69 0%, #604C3E 100%);
            border: none;
            border-radius: 50%;
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #fff;
            flex-shrink: 0;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .rtm-global-search-bar .search-fullscreen-submit:hover,
        .rtm-global-search-bar .search-fullscreen-submit:active {
            transform: scale(1.05);
            box-shadow: 0 4px 16px rgba(196, 156, 105, 0.5);
        }

        /* 提示文字 */
        .rtm-global-search-bar .search-fullscreen-hint {
            text-align: center;
            color: rgba(255, 255, 255, 0.6);
            font-size: 13px;
            margin-top: 16px;
            letter-spacing: 0.5px;
        }

        /* 防止背景滾動 */
        body.rtm-search-open {
            overflow: hidden !important;
        }
    }


    /* =========================================
       Global Search Results - Grid Layout & Premium Style
       ========================================= */
    .rtm-global-search-results {
        max-width: 100%;
        margin: 0 auto;
    }

    .rtm-search-summary {
        font-size: 18px;
        margin-bottom: 24px;
        color: #604C3E;
        font-weight: 700;
        border-bottom: 2px solid #EEE;
        padding-bottom: 12px;
    }

    /* Grid Container */
    .rtm-result-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        /* 加大間距 */
    }

    @media (min-width: 1200px) {
        .rtm-result-grid {
            grid-template-columns: repeat(5, 1fr);
        }
    }

    @media (max-width: 900px) {
        .rtm-result-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 600px) {
        .rtm-result-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }
    }

    /* Result Item (Card) - Premium Style */
    .rtm-result-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-decoration: none !important;
        /* 移除底線 */
        background: #fff;
        padding: 20px;
        border-radius: 4px;
        border: 1px solid #e0e0e0;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    /* 移除所有子元素的底線 */
    .rtm-result-item * {
        text-decoration: none !important;
    }

    .rtm-result-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: #C49C69;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }

    .rtm-result-item:hover {
        background: #fff;
        border-color: #C49C69;
        /* 金色邊框 */
        box-shadow: 0 8px 20px rgba(96, 76, 62, 0.1);
        /* 深棕色柔和陰影 */
        transform: translateY(-4px);
    }

    .rtm-result-item:hover::after {
        transform: scaleX(1);
    }

    /* Title Styling */
    .rtm-result-title {
        color: #333;
        font-size: 16px;
        font-weight: 500;
        /* 優化字重 */
        line-height: 1.5;
        margin-top: 12px;
        letter-spacing: 0.5px;
        transition: color 0.3s;
    }

    .rtm-result-item:hover .rtm-result-title {
        color: #604C3E;
        /* 標題變深棕色 */
    }

    /* 類型標籤 (Badge) - Premium Palette */
    .rtm-type-badge {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 2px;
        /* 方正一點更高級 */
        font-size: 11px;
        /* 縮小精緻化 */
        font-weight: 500;
        letter-spacing: 1px;
        color: #fff;
        background: #999;
        white-space: nowrap;
        align-self: flex-start;
        text-transform: uppercase;
    }

    /* 統一色系：主色(深棕) 與 副色(金) */
    .rtm-type-badge.type-doctor {
        background: #C49C69;
        /* Accent Gold */
    }

    .rtm-type-badge.type-clinic {
        background: #604C3E;
        /* Primary Brown */
    }

    .rtm-type-badge.type-booking {
        background: #8c7b70;
        /* Muted Brown */
    }

    .rtm-type-badge.type-post {
        background: #a89f91;
        /* Neutral Warm Gray */
    }

    .rtm-type-badge.type-page {
        background: #d4cfca;
        /* Light Warm Gray */
        color: #604C3E;
        /* 反白字 */
    }

    .rtm-type-badge.type-other {
        background: #eee;
        color: #666;
    }

    .rtm-pagination {
        margin-top: 50px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .rtm-pagination .page-numbers {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        margin: 0;
        /* use gap instead */
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        text-decoration: none;
        color: #604C3E;
        font-size: 14px;
        transition: all .3s;
        background: #fff;
    }

    .rtm-pagination .page-numbers:hover,
    .rtm-pagination .page-numbers.current {
        background: #604C3E;
        color: #fff;
        border-color: #604C3E;
    }

    .rtm-search-no-results,
    .rtm-search-no-query {
        text-align: center;
        padding: 60px 20px;
        color: #999;
        font-size: 16px;
        background: #fafafa;
        border-radius: 8px;
        margin-top: 20px;
    }

    .rtm-search-no-results,
    .rtm-search-no-query {
        text-align: center;
        padding: 40px;
        color: #999;
        font-size: 16px;
    }