/* ==========================================================================
   既有基礎卡片與佈局（完全保留，未做任何修改）
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 導覽分類標籤樣式 */
.clinic-tabs {
    display: flex;
    flex-wrap: wrap;    /* 允許彈性換行，絕對不破壞版面 */
    gap: 8px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
    justify-content: center;
    margin-top: 40px;
}
/* 移除舊有的 Webkit 隱藏滾動條樣式，因為已經不需要滾動了 */

.tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.tab-btn:hover {
    color: #111827;
    background-color: #f3f4f6;
}
.tab-btn.active {
    color: #51ad32;
    background-color: #eef7ed;
    font-weight: 600;
}

/* 評論卡片主體 */
.review-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.2s ease;
}
.review-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* 診所名稱標籤化 */
.clinic-badge {
    display: inline-block;
    background-color: #f3f4f6;
    color: #4b5563;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 500;
    margin-bottom: 12px;
}

/* 評論標題（摘錄） */
.review-title {
    font-size: 18px;
    color: #111827;
    margin: 0 0 16px 0;
    line-height: 1.5;
    font-weight: 700;
}

/* 作者資訊區塊 */
.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #f3f4f6;
}

/* 完美圓形頭貼與超連結 */
.author-avatar-link {
    text-decoration: none;
    display: inline-block;
    margin-right: 12px;
    transition: transform 0.2s ease;
}
.author-avatar-link:hover {
    transform: scale(1.05);
}
.author-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eef7ed;
    color: #51ad32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.author-meta-text {
    display: flex;
    flex-direction: column;
}
.author-name {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* 平台與原文連結 */
.source-link {
    font-size: 12px;
    color: #51ad32;
    text-decoration: none;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}
.source-link:hover {
    text-decoration: underline;
}

/* 星等與評分 */
.rating {
    margin-left: auto;
    text-align: right;
}
.rating-stars {
    color: #fbbf24;
    font-size: 14px;
    letter-spacing: 1px;
}

/* 內文樣式 */
.review-content-text {
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 16px 0;
    white-space: pre-line;
}

/* 卡片底部控制區 */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}
.sentiment {
    font-size: 13px;
    font-weight: 500;
}
.sentiment.positive {
    color: #51ad32;
}
.sentiment.neutral {
    color: #6b7280;
}
/* 新增標題區塊的簡單樣式，若您想放在 external CSS 也可以移過去 */
        .page-header {
            text-align: center;
            margin: 40px 0 20px 0;
        }
        .page-title {
            font-size: 2.2rem;
            color: #333;
            margin-bottom: 10px;
            font-weight: bold;
        }
        .page-subtitle {
            font-size: 1.1rem;
            color: #666;
            margin-top: 0;
        }




/* ----- 確保保留所有原有 CSS 結構與水藍色系變數 ----- */
    :root {
        --primary-dark: #33658b;
        --primary: #5593b4;
        --primary-light: #e1f5fe;
        --accent: #6694af;
        --text-main: #333333;
        --text-gray: #666666;
        --bg-color: #f4fafd;
        --white: #ffffff;
    }

   

    /* ----- 頁首與頁籤按鈕 ----- */
    .page-header { text-align: center; margin-bottom: 30px; margin-top: 40px; }
    .page-title { color: var(--primary-dark); font-size: 32px; margin-bottom: 10px; }
    .page-subtitle { color: var(--text-gray); font-size: 16px; }

    .clinic-tabs {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 40px;
    }
    .tab-btn {
        background-color: var(--white);
        color: var(--primary);
        border: 2px solid var(--primary);
        padding: 8px 20px;
        border-radius: 30px;
        font-weight: bold;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    .tab-btn:hover, .tab-btn.active {
        background-color: var(--primary);
        color: var(--white);
    }

    /* ----- 彙整文章區塊 ----- */
    .clinic-article {
        background-color: var(--white);
        border-radius: 12px;
        padding: 40px;
        margin-bottom: 50px;
        box-shadow: 0 4px 20px rgba(2, 136, 209, 0.08);
        border-top: 5px solid var(--primary);
    }
    .clinic-name {
        font-size: 28px;
        color: var(--primary-dark);
        margin-top: 0;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
    }
    .clinic-name::before {
        content: ""; display: inline-block; width: 6px; height: 28px;
        background-color: var(--primary); margin-right: 12px; border-radius: 4px;
    }
    .section-title {
        font-size: 20px; color: var(--accent); margin-top: 35px; margin-bottom: 15px;
        font-weight: bold; border-bottom: 1px dashed #b3e5fc; padding-bottom: 8px;
    }
    .review-quote {
        background-color: var(--primary-light); border-left: 4px solid var(--primary);
        padding: 15px 20px; margin: 20px 0; border-radius: 0 8px 8px 0; color: #014377;
    }
    .review-quote .author {
        display: block; margin-top: 10px; font-size: 14px; color: var(--primary-dark);
        font-weight: bold; text-align: right;
    }
    .info-box {
        background-color: #f9fbfc; border: 1px solid #e1e8ed; border-radius: 8px;
        padding: 25px; margin-top: 40px;
    }
    .info-box h4 { margin-top: 0; color: var(--primary-dark); font-size: 18px; margin-bottom: 15px; }
    .schedule-row { display: flex; align-items: flex-start; margin: 8px 0; font-size: 15px; color: var(--text-gray); }
    .schedule-label { white-space: nowrap; margin-right: 5px; font-weight: bold; }
    .schedule-list { list-style-type: none; margin: 0; padding: 0; }
    .schedule-list li { margin-bottom: 4px; line-height: 1.6; }
    
    /* 總覽表格 */
    .overview-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
    .overview-table th, .overview-table td { padding: 15px; border-bottom: 1px solid var(--primary-light); text-align: left; }
    .overview-table th { background-color: var(--primary-light); color: var(--primary-dark); }




.intro-text{font-size:15px;}
.review-quote{font-size:15px;}
.content-text{font-size:15px;}





/* ==========================================================================
   【新增】RWD 響應式網頁優化區塊
   ========================================================================== */
@media (max-width: 768px) {
    .container {
        padding: 20px 14px;
    }
    
    /* 關鍵修改：取消橫向滾動，改為垂直向下排列，並撐滿寬度 */
    .clinic-tabs {
        flex-direction: column;    /* 強制按鈕由上往下排 */
        align-items: stretch;     /* 讓每個按鈕寬度自動撐滿 */
        border-bottom: none;       /* 垂直排列時拿掉底部邊框線，視覺更乾淨 */
        padding-bottom: 0;
        margin-top: 24px;
        gap: 10px;                 /* 加大按鈕之間的上下間距，防止手指誤觸 */
    }

    .tab-btn {
        width: 100%;
        text-align: center;
        padding: 12px 16px;        /* 加大按鈕高度，大幅提升手機點擊舒適度 */
        font-size: 15px;           /* 稍微放大字體 */
        background-color: #fff;    /* 手機版給予白色基底 */
        border: 1px solid #e5e7eb; /* 加上細微邊框，讓垂直區塊更有按鈕質感 */
        border-radius: 8px;
    }
    
    .tab-btn:hover {
        background-color: #f3f4f6;
    }

    /* 當前選中的標籤：手機版同步將邊框轉為綠色，加強視覺引導 */
    .tab-btn.active {
        color: #51ad32;
        background-color: #eef7ed;
        border-color: #51ad32;     
        font-weight: 600;
    }

    .page-title {
        font-size: 1.8rem !important;
        text-align: center;
    }
    
    .page-subtitle {
        font-size: 1rem !important;
        text-align: center;
    }
}

/* 小型手機窄螢幕防破版（螢幕寬度 480px 以下） */
@media (max-width: 480px) {
    .review-card {
        padding: 16px;
        border-radius: 10px;
    }

    .author-info {
        flex-wrap: wrap; 
        gap: 10px 0;
    }

    .rating {
        margin-left: 0;
        width: 100%;       
        text-align: left;  
        padding-top: 2px;
    }

    .review-title {
        font-size: 16px;   
        margin-bottom: 12px;
    }

    .review-content-text {
        font-size: 14px;   
        line-height: 1.5;
    }
}