/* 基本樣式設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #0d4a4a, #1a6b6b, #207D7D, #2a9d9d, #3bb3b3);
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #0d4a4a, #1a6b6b, #207D7D, #2a9d9d, #3bb3b3);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(26, 107, 107, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #0d4a4a, #1a6b6b, #207D7D, #2a9d9d, #3bb3b3);
    box-shadow: 0 8px 20px rgba(26, 107, 107, 0.4);
}

.btn-small {
    display: inline-block;
    background: transparent;
    color: #1a6b6b;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid #1a6b6b;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-small:hover {
    background: linear-gradient(135deg, #0d4a4a, #1a6b6b, #207D7D, #2a9d9d, #3bb3b3);
    color: #fff;
    transform: translateY(-2px);
}

/* 頁首樣式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 100px;
    width: auto;
    object-fit: contain;
    max-width: 300px;
}


nav .menu {
    display: flex;
}

nav .menu li {
    margin-left: 30px;
}

nav .menu li a {
    font-weight: 500;
    position: relative;
}

nav .menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #0d4a4a, #1a6b6b, #207D7D, #2a9d9d, #3bb3b3);
    transition: width 0.3s ease;
}

nav .menu li a:hover {
    color: #1a6b6b;
}

nav .menu li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 英雄區塊樣式 */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

/* 響應式hero區塊 */
@media (max-width: 768px) {
    .hero {
        height: 90vh;
        padding-top: 70px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 85vh;
        padding-top: 60px;
    }
}

/* 輪播圖片樣式 */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* 修改z-index，確保不會蓋住控制按鈕 */
    overflow: hidden;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

/* 滑動指示效果 */
.hero-slider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.hero-slider.swipe-left::after {
    left: 30px;
    animation: swipeIndicator 0.5s ease-out;
}

.hero-slider.swipe-right::after {
    right: 30px;
    animation: swipeIndicator 0.5s ease-out;
}

@keyframes swipeIndicator {
    0% {
        transform: translateY(-50%) scale(0);
        opacity: 0;
    }

    50% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-50%) scale(1.5);
        opacity: 0;
    }
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.5s ease, transform 1.5s ease;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* 添加輪播前後的淡入淡出效果 */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: -1;
}

/* 輪播控制樣式 */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    z-index: 20;
    /* 提高z-index，確保高於hero-slider */
    pointer-events: auto;
    /* 確保控制區域可以接收點擊事件 */
}

.prev-btn,
.next-btn {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin: 0 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    /* 添加定位 */
    z-index: 25;
    /* 確保按鈕在最上層 */
    pointer-events: auto;
    /* 確保按鈕可以接收點擊事件 */
}

.prev-btn:hover,
.next-btn:hover {
    background: linear-gradient(135deg, #0d4a4a, #1a6b6b, #207D7D, #2a9d9d, #3bb3b3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 107, 107, 0.4);
}

.prev-btn:active,
.next-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(26, 107, 107, 0.3);
}

.slider-dots {
    display: flex;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dot.active {
    background: linear-gradient(135deg, #0d4a4a, #1a6b6b, #207D7D, #2a9d9d, #3bb3b3);
    transform: scale(1.2);
    box-shadow: 0 1px 5px rgba(26, 107, 107, 0.4);
}

/* 響應式輪播控制 */
@media (max-width: 768px) {
    .slider-controls {
        bottom: 20px;
    }

    .prev-btn,
    .next-btn {
        width: 35px;
        height: 35px;
        margin: 0 10px;
        font-size: 0.8rem;
    }

    .dot {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

@media (max-width: 480px) {
    .slider-controls {
        bottom: 15px;
    }

    .prev-btn,
    .next-btn {
        width: 30px;
        height: 30px;
        margin: 0 8px;
        font-size: 0.7rem;
    }

    .dot {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}

/* 內容樣式 */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    animation: fadeIn 1s ease-out;
}

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

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

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #333;
    background: linear-gradient(45deg, #333, #0d4a4a, #1a6b6b, #207D7D, #2a9d9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
}

/* 響應式內容樣式 */
@media (max-width: 992px) {
    .hero-content {
        max-width: 90%;
        padding: 30px;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        max-width: 90%;
        padding: 25px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        max-width: 95%;
        padding: 20px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

/* 服務區塊樣式 */
.services {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0d4a4a, #1a6b6b, #207D7D, #2a9d9d, #3bb3b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 2rem;
    color: #fff;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* 流程區塊樣式 */
.procedure {
    padding: 100px 0;
}

.procedure-list {
    max-width: 800px;
    margin: 0 auto;
}

.procedure-item {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.procedure-item .number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0d4a4a, #1a6b6b, #207D7D, #2a9d9d, #3bb3b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-right: 20px;
}

.procedure-item .text {
    flex-grow: 1;
}

.procedure-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.procedure-item p {
    color: #666;
}

/* 關於我們區塊樣式 */
.about {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 醫師團隊區塊樣式 */
.doctors {
    padding: 100px 0;
}

.doctor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.doctor-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.btn-view-more {
    display: block;
    width: 100%;
    background: transparent;
    color: #1a6b6b;
    border: none;
    padding: 10px 0;
    margin: 10px 0 0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-view-more:hover {
    color: #1a6b6b;
}

.btn-view-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.doctor-card .doctor-credentials {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.3s ease, padding-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.doctor-card.show-credentials .doctor-credentials {
    max-height: none;
    opacity: 1;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    overflow: visible;
}

/* 同步顯示照片牆 */
.doctor-card.show-credentials .doctor-gallery-title,
.doctor-card.show-credentials .doctor-gallery {
    display: block;
}

.doctor-card.show-credentials .btn-view-more i {
    transform: rotate(180deg);
}

.doctor-image {
    position: relative;
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    background-color: #f4f4f4;
    display: block;
}

.doctor-main-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.doctor-main-slider::-webkit-scrollbar {
    display: none;
}

.doctor-main-slider img {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.slider-hint {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 107, 107, 0.7);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 5;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: pulseHint 2s infinite;
}

@keyframes pulseHint {
    0% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.05);
    }

    100% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1);
    }
}

.doctor-info {
    padding: 20px;
    text-align: center;
}

.doctor-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #333;
}

.doctor-info .doctor-title {
    color: #1a6b6b;
    font-weight: 500;
    margin-bottom: 15px;
}

.doctor-info p {
    color: #666;
    font-size: 0.95rem;
}

.doctor-credentials {
    margin-top: 15px;
    border-top: 1px dashed #ddd;
    padding-top: 15px;
    text-align: left;
    /* 資歷改為靠左對齊 */
}

.doctor-credentials h4 {
    font-size: 0.95rem;
    color: #333;
    margin: 15px 0 10px;
}

.doctor-credentials p {
    display: flex;
    align-items: flex-start;
    /* 改為頂部對齊，避免折行時圖示居中 */
    margin-bottom: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.doctor-credentials i {
    color: #1a6b6b;
    margin-right: 10px;
    width: 16px;
    text-align: center;
    margin-top: 4px;
    /* 微調圖示位置使其對齊第一行文字 */
    flex-shrink: 0;
    /* 防止圖示被壓縮 */
}

/* 醫師團隊響應式樣式 */
@media (max-width: 992px) {
    .doctor-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .doctor-info h3 {
        font-size: 1.3rem;
    }

    .doctor-info .doctor-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .doctor-image img {
        height: 250px;
    }

    .doctor-credentials p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .doctor-grid {
        grid-template-columns: 1fr;
    }

    .doctor-image img {
        height: 220px;
    }

    .doctor-info {
        padding: 15px;
    }

    .doctor-info h3 {
        font-size: 1.2rem;
    }

    .doctor-info p {
        font-size: 0.9rem;
    }

    .doctor-credentials {
        margin-top: 10px;
        padding-top: 10px;
    }
}

/* 聯絡我們區塊樣式 */
.contact {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.contact-logo {
    text-align: center;
    margin-bottom: 40px;
}

.contact-logo-image {
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-logo-image:hover {
    transform: scale(1.05);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0d4a4a, #1a6b6b, #207D7D, #2a9d9d, #3bb3b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(26, 107, 107, 0.2);
}

.contact-item i:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(26, 107, 107, 0.3);
}

.contact-item p {
    color: #666;
    font-size: 1.1rem;
}

.contact-item p strong {
    color: #1a6b6b;
    font-weight: 600;
}

.contact-item p br+br {
    margin-top: 5px;
}

.contact-line {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.line-qr-container {
    flex: 1;
    min-width: 250px;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: #fff;
    padding-top: 30px;
}

.line-qr {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.line-info {
    flex: 2;
    min-width: 300px;
    padding: 30px;
}

.line-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.line-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #06c755, #00b900);
}

.line-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.line-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.line-benefit-item {
    display: flex;
    align-items: center;
}

.line-benefit-item i {
    color: #06c755;
    margin-right: 10px;
    font-size: 1.2rem;
}

.line-benefit-item span {
    color: #333;
    font-weight: 500;
}

.line-info .btn {
    background: linear-gradient(135deg, #06c755, #00b900, #00a000);
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.2);
}

.line-info .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.3);
}

/* 頁尾樣式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.footer-logo p {
    color: #ccc;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, #0d4a4a, #1a6b6b, #207D7D, #2a9d9d, #3bb3b3);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: #1a6b6b;
    padding-left: 5px;
}

.social-icons {
    display: flex;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: linear-gradient(135deg, #0d4a4a, #1a6b6b, #207D7D, #2a9d9d, #3bb3b3);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #ccc;
    font-size: 0.9rem;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .contact-logo-image {
        max-width: 300px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo-image {
        height: 80px;
        width: auto;
        max-width: 220px;
    }

    nav .menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    nav .menu.active {
        left: 0;
    }

    nav .menu li {
        margin: 0;
        padding: 15px 0;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .contact-logo-image {
        max-width: 250px;
    }

    .logo-image {
        height: 70px;
        width: auto;
        max-width: 180px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .procedure-item .number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .procedure-item h3 {
        font-size: 1.1rem;
    }

    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .contact-item p {
        font-size: 1rem;
    }
}

/* 案例分享區塊樣式 */
.success-stories {
    padding: 100px 0;
    background-color: #fff;
}

.success-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.success-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    border: 1px solid #eee;
}

.success-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: #1a6b6b;
}

.success-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

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

.success-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #0d4a4a, #1a6b6b);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

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

.success-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #333;
    transition: color 0.3s ease;
}

.success-card:hover .success-card-content h3 {
    color: #1a6b6b;
}

.success-card-content p {
    color: #666;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

.success-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.success-card-more {
    color: #1a6b6b;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.success-card-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.success-card:hover .success-card-more i {
    transform: translateX(5px);
}

/* Modal 彈出視窗樣式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: #fff;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 20px;
    position: relative;
    overflow-y: auto;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: #1a6b6b;
    color: #fff;
    transform: rotate(90deg);
}

.modal-content-wrapper {
    display: flex;
    flex-direction: column;
}

.modal-header-image {
    width: 100%;
    height: 450px;
}

.modal-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 50px;
}

.modal-category {
    color: #1a6b6b;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    letter-spacing: 1px;
}

.modal-title {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #333;
    line-height: 1.3;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.modal-section-title {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    padding-left: 15px;
}

.modal-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #1a6b6b;
}

.modal-text {
    color: #666;
    line-height: 1.8;
}

.modal-tags {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-tag {
    background-color: #f0f7f7;
    color: #1a6b6b;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* 案例響應式設定 */
@media (max-width: 768px) {
    .modal-header-image {
        height: 300px;
    }

    .modal-body {
        padding: 30px 20px;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .modal-info-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* 醫師照片輪播牆樣式 */
.doctor-gallery-title,
.doctor-gallery {
    display: none;
    /* 預設隱藏，點擊查看更多時才顯示 */
}

.doctor-gallery-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a6b6b;
    margin: 20px 0 10px;
    text-align: left;
    border-left: 3px solid #1a6b6b;
    padding-left: 10px;
}

.doctor-gallery {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #1a6b6b #f0f0f0;
}

.doctor-gallery::-webkit-scrollbar {
    height: 6px;
}

.doctor-gallery::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.doctor-gallery::-webkit-scrollbar-thumb {
    background: #1a6b6b;
    border-radius: 10px;
}

.doctor-gallery-track {
    display: flex;
    gap: 15px;
    padding: 5px;
}

.gallery-item {
    flex: 0 0 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 調整醫師卡片展開時的高度限制 */
.doctor-card.show-credentials .doctor-credentials {
    max-height: 1000px;
    /* 增加最大高度以容納照片 */
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 0 0 160px;
        height: 120px;
    }
}

/* 醫師專長列表樣式 */
.doctor-specialties {
    list-style: none;
    padding: 0 0 0 20px;
    /* 增加左側內距 */
    margin: 10px auto 20px;
    text-align: left;
    /* 強制靠左對齊 */
    display: inline-block;
    /* 配合 margin auto 使區塊置中但文字靠左 */
    max-width: 250px;
    /* 限制寬度使其不會太靠邊 */
}

.doctor-specialties li {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 5px;
    position: relative;
    padding-left: 0;
    /* 保持原有的置中視覺 */
}

.doctor-specialties li::before {
    content: "•";
    color: #1a6b6b;
    margin-right: 8px;
    font-weight: bold;
}