/* 醫師團隊頁 */

/* ── 簡介 ── */
.team-intro-section {
    position: relative;
    padding: 80px 0 30px;
    background: #fff;
    overflow: hidden;
}

.team-intro-section .container {
    position: relative;
    z-index: 1;
}

.team-watermark {
    position: absolute;
    right: 50%;
    top: 10%;
    transform: translateX(50%);
    font-family: var(--family-font);
    font-size: clamp(120px, 18vw, 200px);
    color: rgba(179, 32, 44, 0.04);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.team-intro-section .section-header {
    margin-bottom: 0;
}

.team-intro-section .sub-title {
    margin-bottom: 32px;
}

/* ── 分類篩選 ── */
.team-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.team-filter-btn {
    padding: 8px 22px;
    font-size: 14px;
    font-family: var(--family-font-secondary);
    color: rgba(44, 36, 22, 0.65);
    background: var(--tcm-cream);
    border: 1px solid var(--tcm-border);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.06em;
}

.team-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.team-filter-btn.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ── 醫師列表 ── */
.team-list-section {
    position: relative;
    padding: 0 0 60px;
    background: linear-gradient(180deg, #fff 0%, var(--tcm-cream) 100%);
}

.team-list-section .container {
    position: relative;
}

.team-dots {
    position: absolute;
    width: 48px;
    height: 48px;
    background-image: radial-gradient(var(--primary-color) 1.5px, transparent 1.5px);
    background-size: 8px 8px;
    opacity: 0.18;
    pointer-events: none;
}

.team-dots--tl {
    top: -10px;
    left: 38px;
}

.team-dots--tr {
    top: -10px;
    right: 38px;
}

.team-dots--br {
    bottom: -10px;
    left: 38px;
}

.team-dots--bl {
    bottom: -10px;
    right: 38px;
}

.team-page-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.team-card {
    display: none;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    border: 1px solid var(--tcm-border);
    box-shadow: 0 4px 20px rgba(44, 36, 22, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    z-index: 1;
}

.team-card.is-show {
    display: flex;
}

.team-card.is-show.is-animating {
    animation: teamCardIn 0.45s ease both;
}

@keyframes teamCardIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(44, 36, 22, 0.1);
    border-color: rgba(179, 32, 44, 0.2);
}

.team-card-photo {
    position: relative;
    height: 320px;
    background: #fff;
    overflow: hidden;
}

.team-card-photo::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-top: 2px solid var(--tcm-gold);
    border-right: 2px solid var(--tcm-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.team-card:hover .team-card-photo::after {
    opacity: 1;
}

.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    transition: transform 0.4s ease;
}

.team-card:hover .team-card-photo img {
    transform: scale(1.04);
}

.team-card-info {
    text-align: center;
    border-top: 1px solid var(--tcm-border);
}

.team-card-info h3 {
    margin: 0;
    padding: 12px 12px 10px;
    font-family: var(--family-font);
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    background: var(--primary-color);
    letter-spacing: 0.06em;
}

.team-card-info p {
    margin: 0;
    padding: 12px 14px;
    font-size: 13px;
    color: rgba(44, 36, 22, 0.7);
    background: var(--tcm-cream);
    letter-spacing: 0.04em;
}

.team-empty-tip {
    margin: 40px 0 0;
    text-align: center;
    font-size: 15px;
    color: rgba(44, 36, 22, 0.55);
    letter-spacing: 0.04em;
}

/* ── 預約 CTA ── */
.team-cta-section {
    padding: 30px 0 80px;
    background: var(--tcm-cream);
}

.team-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 48px 56px;
    background: #fff;
    border: 1px solid var(--tcm-border);
    box-shadow: var(--tcm-shadow);
    position: relative;
    overflow: hidden;
}

.team-cta-box::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
    border-top: 2px solid var(--tcm-gold);
    border-left: 2px solid var(--tcm-gold);
    pointer-events: none;
}

.team-cta-box::after {
    content: '';
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-bottom: 2px solid var(--tcm-gold);
    border-right: 2px solid var(--tcm-gold);
    pointer-events: none;
}

.team-cta-text h2 {
    margin: 8px 0 12px;
    font-family: var(--family-font);
    font-size: 40px;
    font-weight: 500;
    color: var(--tcm-ink);
    letter-spacing: 0.04em;
}

.team-cta-text p {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    color: rgba(44, 36, 22, 0.7);
    max-width: 520px;
}

.team-cta-box .primary-btn {
    flex-shrink: 0;
}

/* ── 響應式 ── */
@media (max-width: 1280px) {
    .team-page-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .team-card-photo {
        height: 260px;
    }
}

@media (max-width: 1024px) {
    .team-page-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .team-card-photo {
        height: 240px;
    }
}

@media (max-width: 992px) {
    .team-intro-section {
        padding: 30px 0 15px;
    }

    .team-page-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .team-card-photo {
        height: 220px;
    }

    .team-cta-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
    }

    .team-cta-box .primary-btn {
        width: 100%;
        text-align: center;
    }

    .team-dots {
        width: 45px;
        height: 45px;
        opacity: 0.25;
    }

    .team-dots--tl {
        top: -8px;
        left: 5px;
    }

    .team-dots--tr {
        top: -8px;
        right: 8px;
    }

    .team-dots--br {
        bottom: 75px;
        right: 4px;
        display: none;
    }

    .team-dots--bl {
        bottom: 75px;
        left: 1px;
        display: none;
    }

    .team-card-info h3 {
        padding: 10px;
        font-size: 17px;
    }

    .team-list-section {
        padding: 30px 0;
    }

    .team-cta-section {
        padding: 30px 0 30px 0;
    }

    .team-cta-box::before,
    .team-cta-box::after {
        width: 20px;
        height: 20px;
        border-width: 1px;
    }

    .team-cta-text h2 {
        font-size: 35px;
    }

    .team-cta-box {
        gap: 30px;
    }
}