/* ====================================================
   階段 1 — 專業暖藍 + 柔和暖陶 CTA
   基於原有 HTML 結構，只改 CSS，不動 HTML

   header.php 已載入 Google Fonts，
   本 CSS 不再使用 @import，避免重複載入。
   ==================================================== */

.doctor-profile {
    font-family: 'Inter', 'Microsoft JhengHei', '微軟正黑體', Arial, sans-serif;
    line-height: 1.8;
    padding: 20px 0 28px;
    color: #334155;
    font-size: 17px;
}

.doctor-profile .doctor-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ── 頁面標題 ── */
.doctor-profile .doctor-heading {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(26, 107, 174, 0.16);
}

.doctor-profile .page-title {
    margin: 0;
    color: #1A6BAE;
    font-family: 'Source Serif 4', 'Microsoft JhengHei', '微軟正黑體', serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.doctor-profile .page-subtitle {
    margin-top: 8px;
    color: #64748B;
    font-size: 17px;
}

/* ── 摘要區塊 ── */
.doctor-profile .summary {
    margin-bottom: 24px;
    padding: 16px 20px;
    border-left: 6px solid #1A6BAE;
    background-color: #F5F9FC;
    color: #334155;
    font-size: 17px;
    border-radius: 8px;
}

/* ── 醫師卡片 ── */
.doctor-profile .doctor-card {
    margin-bottom: 28px;
    border: 1px solid rgba(51, 65, 85, 0.1);
    border-top: 4px solid #1A6BAE;
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(51, 65, 85, 0.07);
    overflow: hidden;
}

.doctor-profile .doctor-main {
    display: table;
    width: 100%;
    padding: 24px;
    background-color: #fff;
}

.doctor-profile .doctor-photo-area,
.doctor-profile .doctor-lead {
    display: table-cell;
    vertical-align: middle;
}

.doctor-profile .doctor-photo-area {
    width: 260px;
    padding-right: 28px;
    text-align: center;
}

/* ── 照片 ── */
.doctor-profile .photo-wrap {
    max-width: 220px;
    margin: 0 auto 16px;
    border: 1px solid rgba(51, 65, 85, 0.1);
    background-color: #fff;
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(51, 65, 85, 0.07);
}

.doctor-profile .photo-wrap img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ── 預約掛號按鈕 ── */
.doctor-profile .appointment-btn {
    display: block;
    max-width: 220px;
    margin: 0 auto;
    padding: 12px 16px;
    border: none;
    background-color: #C97B63;
    color: #fff;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
}

.doctor-profile .appointment-btn:hover,
.doctor-profile .appointment-btn:focus {
    background-color: #B9694D;
    color: #fff;
    text-decoration: none;
}

/* ── 醫師姓名 ── */
.doctor-profile .doctor-name {
    margin: 0;
    color: #1A6BAE;
    font-family: 'Source Serif 4', 'Microsoft JhengHei', '微軟正黑體', serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.doctor-profile .doctor-role {
    margin-top: 8px;
    color: #334155;
    font-size: 19px;
    font-weight: 600;
}

/* ── 專長標籤 ── */
.doctor-profile .specialty-tags {
    margin: 18px 0 0;
}

.doctor-profile .specialty-tag {
    display: inline-block;
    margin: 0 8px 10px 0;
    padding: 7px 13px;
    border: 1px solid #C9DDF1;
    background-color: #F1F7FD;
    color: #1A6BAE;
    font-size: 16px;
    font-weight: 500;
    border-radius: 999px;
}

/* ── 詳細表格 ── */
.doctor-profile .profile-table-wrap {
    padding: 0 24px 24px;
}

.doctor-profile .profile-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(51, 65, 85, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
}

.doctor-profile .profile-table th,
.doctor-profile .profile-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.08);
    vertical-align: top;
    font-size: 17px;
}

.doctor-profile .profile-table tr:last-child th,
.doctor-profile .profile-table tr:last-child td {
    border-bottom: none;
}

.doctor-profile .profile-table th {
    width: 150px;
    background-color: #F5F9FC;
    color: #1A6BAE;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.doctor-profile .profile-table td {
    color: #334155;
}

/* ── 列表 ── */
.doctor-profile .info-list {
    margin: 0;
    padding-left: 1.4em;
}

.doctor-profile .info-list li {
    margin-bottom: 6px;
}

.doctor-profile .info-list li:last-child {
    margin-bottom: 0;
}

/* ====================================================
   RWD
   ==================================================== */
@media (max-width: 767px) {
    .doctor-profile {
        padding-top: 12px;
        font-size: 15px;
    }

    .doctor-profile .page-title {
        font-size: 26px;
    }

    .doctor-profile .summary {
        padding: 14px 15px;
        font-size: 16px;
    }

    .doctor-profile .doctor-main,
    .doctor-profile .doctor-photo-area,
    .doctor-profile .doctor-lead {
        display: block;
        width: auto;
    }

    .doctor-profile .doctor-main {
        padding: 18px 14px;
    }

    .doctor-profile .doctor-photo-area {
        padding-right: 0;
        margin-bottom: 18px;
    }

    .doctor-profile .doctor-name {
        font-size: 24px;
    }

    .doctor-profile .doctor-role {
        font-size: 16px;
    }

    .doctor-profile .specialty-tag {
        font-size: 14px;
        padding: 5px 10px;
    }

    .doctor-profile .profile-table-wrap {
        padding: 0 14px 16px;
    }

    .doctor-profile .profile-table,
    .doctor-profile .profile-table tbody,
    .doctor-profile .profile-table tr,
    .doctor-profile .profile-table th,
    .doctor-profile .profile-table td {
        display: block;
        width: 100%;
    }

    .doctor-profile .profile-table th {
        border-bottom: none;
        padding: 11px 13px 4px;
        white-space: normal;
        font-size: 15px;
    }

    .doctor-profile .profile-table td {
        padding: 4px 13px 12px;
        font-size: 15px;
    }
}