/* banner */
.banner-section {
    /* height: 70vh; */
    position: relative;
    max-width: 1696px;
    padding: 0 48px;
    margin: 0 auto;
}

/* 
.banner-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--tcm-cream) 10%, transparent 100%);
    pointer-events: none;
    z-index: 2;
} */

.banner-container {
    height: 100%;
}

.banner-swiper {
    width: 100%;
    height: 380px;
}

.banner-swiper .swiper-slide {
    height: 100%;
}

.banner-swiper .swiper-slide a {
    display: block;
    height: 100%;
}

.banner-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-swiper .swiper-pagination {
    bottom: 28px !important;
}

.banner-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.6);
    opacity: 1;
    transition: var(--transition);
}

.banner-swiper .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 5px;
    background-color: var(--primary-color);
}


/* about */
.about-section {
    padding: 60px 0;
    background: var(--tcm-cream);
    position: relative;
    overflow: hidden;
}

.about-container {
    position: relative;
}

.about-container::before {
    content: '醫';
    position: absolute;
    right: 60px;
    top: 5%;
    font-family: var(--family-font);
    font-size: 200px;
    color: rgba(179, 32, 44, 0.03);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    padding: 48px;
    gap: 56px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--tcm-border);
    box-shadow: var(--tcm-shadow);
    position: relative;
}

.about-content::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;
}

.about-content::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;
}

.about-img {
    position: relative;
    max-height: 420px;
    height: 100%;
}

.about-img-frame {
    border: 1px solid var(--tcm-border);
    padding: 16px;
    background: var(--tcm-paper);
    height: 100%;
}

.about-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary-color);
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.12em;
    padding: 8px 20px;
    font-family: var(--family-font);
}

.about-text {
    display: flex;
    flex-direction: column;
}

.about-text .section-eyebrow {
    width: fit-content;
    text-align: left;
    padding-left: 0;
    margin-bottom: 8px;
}

.about-text .section-eyebrow::before {
    display: none;
}

.about-text p {
    font-size: 16px;
    font-weight: 400;
    color: rgba(44, 36, 22, 0.9);
    margin-bottom: 20px;
    line-height: 1.9;
}

.about-text p+p {
    color: rgba(44, 36, 22, 0.75);
    padding-left: 16px;
    border-left: 3px solid var(--tcm-gold-light);
}

.about-btn {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
}


/* advantages */
.advantages-section {
    padding: 60px 0;
    background: #fff;
}

.advantages-intro {
    max-width: 820px;
    margin: 0 auto 40px;
    text-align: center;
}

.advantages-intro-title {
    display: inline-block;
    font-family: var(--family-font);
    font-size: 22px;
    font-weight: 500;
    color: var(--tcm-ink);
    letter-spacing: 0.12em;
    position: relative;
}

.advantages-intro p {
    font-size: 16px;
    font-weight: 400;
    color: rgba(44, 36, 22, 0.75);
    line-height: 1.9;
    text-align: center;
    margin: 0;
}

.advantages-swiper {
    padding-bottom: 48px;
    counter-reset: advantage;
}

.advantages-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    /* border: 1px solid var(--tcm-border); */
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    cursor: grab;
}

.advantages-item::before {
    counter-increment: advantage;
    content: counter(advantage, decimal-leading-zero);
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--family-font);
    font-size: 16px;
    letter-spacing: 0.05em;
}

/* .advantages-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
} */

.advantages-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--tcm-shadow);
    border-color: rgba(179, 32, 44, 0.2);
}

.advantages-item:hover::after {
    transform: scaleX(1);
}

.img-box {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.advantages-swiper .img-box {
    aspect-ratio: 800 / 413;
}

/* .img-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44, 36, 22, 0.35), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
} */

.advantages-item:hover .img-box::after {
    opacity: 1;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.content-box {
    padding: 24px 20px 28px;
    flex: 1;
}

.content-box h3 {
    font-size: 22px;
    font-family: var(--family-font);
    font-weight: 500;
    color: var(--tcm-ink);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.advantages-item:hover h3 {
    color: var(--primary-color);
}

.content-box p {
    font-size: 15px;
    font-weight: 400;
    color: rgba(44, 36, 22, 0.75);
    line-height: 1.75;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
}

.advantages-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: var(--tcm-border);
    opacity: 1;
}

.advantages-swiper .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
    width: 24px;
    border-radius: 4px;
}


/* diseases */
.diseases-section {
    padding: 40px 0 0 0;
    background: #fff;
}

.diseases-header {
    margin-bottom: 20px;
}

.diseases-header .section-header {
    margin-bottom: 0;
}

.diseases-list {
    display: flex;
    flex-direction: column;
}

.diseases-item:nth-child(odd) {
    background: #fff;

}

.diseases-item:nth-child(even) {
    background: var(--tcm-cream);
}

.diseases-item-inner {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    align-items: center;
    padding: 52px 48px;
}

.diseases-img {
    max-height: 360px;
    border: 1px solid var(--tcm-border);
    padding: 10px;
    background: #fff;
}

.diseases-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.diseases-text {
    display: flex;
    flex-direction: column;
}

.diseases-text .big-title {
    font-size: 37px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--tcm-border);
}

.diseases-num {
    flex-shrink: 0;
    font-family: var(--family-font);
    font-weight: 500;
    line-height: 1;
}

.diseases-text p {
    font-size: 16px;
    font-weight: 400;
    color: rgba(44, 36, 22, 0.88);
    margin-bottom: 14px;
    line-height: 1.85;
}

.diseases-text p+p {
    color: rgba(44, 36, 22, 0.72);
}

.diseases-btn {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    gap: 16px;
    flex-wrap: wrap;
}


.diseases-item:nth-child(odd) .diseases-img {
    height: 100%;
    max-height: 400px;
}

.diseases-item:nth-child(odd) .diseases-text {
    height: 100%;
}

.diseases-item:nth-child(odd) .diseases-btn {
    justify-content: flex-end;
}


.diseases-item:nth-child(even) .diseases-item-inner {
    grid-template-columns: 1.15fr 1fr;
}

.diseases-item:nth-child(even) .diseases-img {
    order: 2;
    height: 100%;
    max-height: 400px;
}

.diseases-item:nth-child(even) .diseases-text {
    order: 1;
    height: 100%;
}

.diseases-item:nth-child(even) .diseases-text .big-title {
    border-bottom-color: rgba(179, 32, 44, 0.15);
}

.diseases-item .diseases-num {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 16px;
    letter-spacing: 0.8;
}

.diseases-item:nth-child(even) .diseases-btn {
    justify-content: flex-start;
}



/* service */
.service-section {
    padding: 60px 0;
    background: var(--tcm-cream);
    position: relative;
}

/* .service-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(74, 107, 82, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(179, 32, 44, 0.03) 0%, transparent 50%);
    pointer-events: none;
} */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    position: relative;
}

/* .service-item:nth-child(1) .service-link {
    background: linear-gradient(135deg, #fff 60%, var(--tcm-red-light));
}

.service-item:nth-child(2) .service-link {
    background: linear-gradient(135deg, #fff 60%, var(--tcm-green-light));
}

.service-item:nth-child(3) .service-link {
    background: linear-gradient(135deg, #fff 60%, var(--tcm-gold-light));
}

.service-item:nth-child(4) .service-link {
    background: linear-gradient(135deg, var(--tcm-green-light) 0%, #fff 40%);
}

.service-item:nth-child(5) .service-link {
    background: linear-gradient(135deg, var(--tcm-gold-light) 0%, #fff 40%);
}

.service-item:nth-child(6) .service-link {
    background: linear-gradient(135deg, var(--tcm-red-light) 0%, #fff 40%);
} */

.service-link {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--tcm-border);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: #fff;
}

.service-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, rgba(201, 164, 92, 0.15) 50%);
    transition: var(--transition);
    z-index: 1;
}

.service-link .img-box {
    /* padding: 28px 28px 12px; */
    /* height: 300px; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-link .img-box img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    padding: 10px;
    background: #fff;
    transition: var(--transition);
}

/* 
.service-item:nth-child(1) .service-link .img-box img {
    border-color: rgba(179, 32, 44, 0.25);
    background: var(--tcm-red-light);
}

.service-item:nth-child(2) .service-link .img-box img {
    border-color: rgba(74, 107, 82, 0.25);
    background: var(--tcm-green-light);
}

.service-item:nth-child(3) .service-link .img-box img {
    border-color: rgba(201, 164, 92, 0.35);
    background: var(--tcm-gold-light);
}

.service-item:nth-child(4) .service-link .img-box img {
    border-color: rgba(74, 107, 82, 0.25);
    background: var(--tcm-green-light);
}

.service-item:nth-child(5) .service-link .img-box img {
    border-color: rgba(179, 32, 44, 0.25);
    background: var(--tcm-red-light);
}

.service-item:nth-child(6) .service-link .img-box img {
    border-color: rgba(201, 164, 92, 0.35);
    background: var(--tcm-gold-light);
} */

.service-link .content-box {
    padding: 16px 24px 28px;
    text-align: center;
}

.service-link .content-box h3 {
    font-family: var(--family-font);
    font-size: 24px;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.service-link:hover {
    transform: translateY(-8px);
    box-shadow: var(--tcm-shadow);
    border-color: rgba(179, 32, 44, 0.25);
}

.service-link:hover .img-box img {
    transform: scale(1.08);
    border-color: var(--primary-color);
}

.service-link:hover h3 {
    color: var(--primary-color);
}


/* team */
.team-section {
    padding: 60px 0;
    background: #fff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.team-item {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--tcm-border);
    transition: var(--transition);
    background-color: #fff;
    position: relative;
}

/* .team-item:nth-child(even):not(:last-child) {
    margin-top: 20px;
} */

.team-item .img-box {
    /* height: 380px; */
    /* background: linear-gradient(180deg, var(--tcm-paper) 0%, #fff 100%); */
    background: var(--tcm-cream);
    position: relative;
    overflow: hidden;
}

.team-item .img-box img {
    object-fit: contain;
    transition: transform 0.4s ease;
}

.team-item:not(:last-child):hover .img-box img {
    transform: scale(1.05);
}

.team-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-top: 2px solid var(--tcm-gold);
    border-right: 2px solid var(--tcm-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-item:not(:last-child):hover {
    box-shadow: var(--tcm-shadow);
    border-color: rgba(179, 32, 44, 0.2);
}

.team-item:not(:last-child):hover::after {
    opacity: 1;
}

.team-item .content-box {
    border-top: none;
    padding: 0;
    text-align: center;
}

.team-item .content-box h3 {
    font-family: var(--family-font);
    font-size: 22px;
    padding: 10px 10px 10px;
    margin: 0;
    background: var(--primary-color);
    color: #fff;
    transition: background 0.3s ease;
}



.team-item .content-box p {
    position: relative;
    background-color: var(--tcm-cream);
    padding: 12px 16px;
    margin: 0;
    font-size: 14px;
    color: rgba(44, 36, 22, 0.75);
}

.team-item .content-box p::before {
    display: none;
}

.team-item:last-child {
    border: 1px dashed var(--tcm-border);
}

.team-item .more-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--tcm-cream), var(--tcm-paper));
    position: relative;

}



.team-item .more-link .more-icon {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-item .more-link::before {
    content: '查看更多';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 23px;
    font-weight: 500;
    color: #3b3b3b;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(179, 32, 44, 0.05);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.team-item .more-link:hover::before {
    opacity: 1;
}

.team-item .more-link .more-icon span {
    width: 60%;
    height: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-item .more-link .more-icon svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-item .more-link .more-icon svg path {
    fill: rgba(0, 0, 0, 0.1);
}

.more-link span {
    font-size: 24px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.8);
}

.team-item:last-child:hover {
    border-color: rgba(179, 32, 44, 0.3);
}

.team-item .more-link:hover {
    background-color: rgba(179, 32, 44, 0.03);
}



/* real */
.real-section {
    padding: 60px 0;
    background-color: var(--tcm-cream);
    /* background: linear-gradient(135deg, var(--tcm-red-light) 0%, var(--tcm-cream) 50%, #fff 100%); */
    position: relative;
}

.real-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/bg-1.webp');
    background-size: 100% 100%;
    opacity: 0.26;
    transition: all 0.3s ease-in-out;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.real-swiper {
    padding: 0 70px 30px 70px;
}

.real-swiper .swiper-button-next::after,
.real-swiper .swiper-button-prev::after {
    display: none;
}

.real-swiper .swiper-button-prev {
    left: 15px;
    transform: rotateY(180deg);
}

.real-swiper .swiper-button-next {
    right: 15px;
}

.real-next span,
.real-prev span {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(179, 32, 44, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    flex-shrink: 0;
    /* background-color: rgba(179, 32, 44, 0.03); */
}

.real-next span svg,
.real-prev span svg {
    width: 70%;
    height: 70%;
    object-fit: cover;
}

.real-next span svg path,
.real-prev span svg path {
    fill: rgba(179, 32, 44, 0.9);
}

.real-next:hover span,
.real-prev:hover span {
    background-color: var(--primary-color);
}

.real-next:hover span svg path,
.real-prev:hover span svg path {
    fill: #ffffff;
}

.real-item {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    padding: 40px;
    gap: 48px;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--tcm-border);
    box-shadow: var(--tcm-shadow);
    position: relative;
}

.real-item::before {
    content: '\201D';
    position: absolute;
    top: 20px;
    right: 40px;
    font-family: var(--family-font);
    font-size: 120px;
    line-height: 1;
    color: rgba(179, 32, 44, 0.08);
    pointer-events: none;
}

.real-img {
    border: 1px solid var(--tcm-border);
    padding: 12px;
    max-height: 450px;
    background: var(--tcm-paper);
    position: relative;
}

.real-img::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 60%;
    height: 60%;
    border: 2px solid var(--tcm-gold);
    z-index: -1;
}

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

.real-text {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.real-text .big-title {
    color: var(--primary-color);
}

.real-text .big-title::before {
    content: '真實案例';
    display: block;
    font-size: 13px;
    font-family: var(--family-font-secondary);
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--tcm-gold);
    margin-bottom: 8px;
}

.real-text p {
    font-size: 16px;
    font-weight: 400;
    color: rgba(44, 36, 22, 0.88);
    margin-bottom: 16px;
    line-height: 1.9;
    font-style: italic;
}

.real-text p+p {
    color: rgba(44, 36, 22, 0.72);
    font-style: normal;
}

.real-text p>span {
    font-family: var(--family-font);
    font-size: 2em;
    color: var(--primary-color);
    line-height: 1;
    margin-right: 8px;
}

.real-bottom {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.real-bottom div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.real-bottom div span {
    font-size: 14px;
    color: rgba(44, 36, 22, 0.68);
    display: flex;
    align-items: center;
    justify-content: center;
}

.real-bottom div span svg {
    width: 20px;
    height: 20px;
}

.real-bottom div span svg path {
    fill: rgba(44, 36, 22, 0.68);
}

/* locations */
.locations-section {
    padding: 60px 0;
    position: relative;
}

/* 
.locations-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(74, 107, 82, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
    pointer-events: none;
} */

.locations-panel {
    --loc-h: calc(100vh - 100px);
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: clamp(16px, 2vw, 30px);
    margin-top: clamp(20px, 3vh, 40px);
    align-items: stretch;
    height: var(--loc-h);
    max-height: var(--loc-h);
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.locations-sidebar {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--tcm-border);
    background-color: #fff;
    box-shadow: var(--tcm-shadow);
    height: 100%;
    max-height: 100%;
    min-height: 0;
    border-radius: 4px;
    overflow: hidden;
}

.locations-search {
    padding: clamp(12px, 1.8vh, 20px);
    border-bottom: 1px solid #e2e8e4;
    flex-shrink: 0;
}

.locations-search input {
    width: 100%;
    height: clamp(36px, 4.5vh, 44px);
    padding: 0 16px;
    border: 1px solid #e2e8e4;
    font-size: clamp(13px, 1.4vh + 0.2vw, 15px);
    font-family: var(--family-font-secondary);
    color: rgba(0, 0, 0, 0.9);
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.locations-search input:focus {
    border-color: rgba(179, 32, 44, 0.5);
}

.locations-search input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.locations-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(4px, 0.8vh, 10px) 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(179, 32, 44, 0.3) transparent;
    height: calc(100vh - 176px);
}

.locations-nav::-webkit-scrollbar {
    width: 4px;
}

.locations-nav::-webkit-scrollbar-thumb {
    background-color: rgba(179, 32, 44, 0.3);
    border-radius: 2px;
}

.locations-group {
    border-bottom: 1px solid #f0f0f0;
}

.locations-group:last-child {
    border-bottom: none;
}

.locations-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: clamp(10px, 1.5vh, 14px) clamp(14px, 1.5vw, 20px);
    background: none;
    border: none;
    cursor: pointer;
    font-size: clamp(14px, 1.5vh + 0.2vw, 16px);
    font-weight: 500;
    font-family: var(--family-font-secondary);
    color: rgba(0, 0, 0, 0.9);
    transition: color 0.3s ease;
    box-sizing: border-box;
}

.locations-group-head:hover {
    color: var(--primary-color);
}

.locations-group-head svg {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.locations-group-head svg path {
    fill: rgba(0, 0, 0, 0.5);
}

.locations-group.is-open .locations-group-head svg {
    transform: rotate(180deg);
}

.locations-group-list {
    display: none;
    padding: 0 clamp(6px, 1vw, 10px) clamp(6px, 1vh, 10px);
}

.locations-group.is-open .locations-group-list {
    display: block;
}

.locations-group.is-filtered .locations-group-list {
    display: block;
}

.locations-item {
    display: block;
    width: 100%;
    padding: clamp(8px, 1.2vh, 12px) clamp(10px, 1.2vw, 14px) clamp(8px, 1.2vh, 12px) clamp(12px, 1.4vw, 18px);
    margin-bottom: 2px;
    background: none;
    border: none;
    /* border-left: 3px solid transparent; */
    cursor: pointer;
    text-align: left;
    font-size: clamp(13px, 1.35vh + 0.15vw, 15px);
    font-family: var(--family-font-secondary);
    color: rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.locations-item:last-child {
    margin-bottom: 0;
}

.locations-item:hover {
    background-color: rgba(179, 32, 44, 0.03);
    color: var(--primary-color);
}

.locations-item.is-active {
    background-color: rgba(179, 32, 44, 0.05);
    /* border-left-color: var(--primary-color); */
    color: var(--primary-color);
    font-weight: 500;
}

.locations-item.is-hidden {
    display: none;
}

.locations-nav>p {
    display: none;
    padding: clamp(20px, 4vh, 40px) 20px;
    text-align: center;
    font-size: 15px;
    color: rgba(0, 0, 0, 0.5);
}

.locations-nav>p.is-visible {
    display: block;
}

.locations-detail {
    border: 1px solid var(--tcm-border);
    background-color: #fff;
    box-shadow: var(--tcm-shadow);
    height: 100%;
    min-height: 0;
    max-height: 100%;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.locations-detail-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.locations-detail-inner.is-changing {
    opacity: 0;
    transform: translateY(8px);
}

.locations-media {
    max-height: 460px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 0;
    border-bottom: 1px solid #e2e8e4;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow: hidden;
}

.locations-map {
    background-color: #f5f5f5;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.locations-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.locations-photo {
    border-left: 1px solid #e2e8e4;
    padding: clamp(10px, 1.6vh, 20px);
    min-height: 0;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.locations-photo img,
.locations-photo iframe {
    width: 100%;
    height: 100%;
    border: 1px solid #e2e8e4;
    display: block;
}

.locations-photo img {
    object-fit: cover;
}

.locations-photo img[hidden],
.locations-photo iframe[hidden] {
    display: none !important;
}

.locations-info {
    padding: clamp(14px, 2.2vh, 30px) clamp(16px, 2.5vw, 40px) clamp(16px, 2.5vh, 40px);
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.locations-info .big-title {
    margin-bottom: clamp(10px, 1.8vh, 24px);
    font-size: clamp(24px, 2.2vh + 0.8vw, 40px);
    flex-shrink: 0;
}

.locations-meta {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.6vh, 20px);
    min-height: 0;
}

.locations-meta li {
    display: flex;
    align-items: flex-start;
    gap: clamp(10px, 1.2vw, 16px);
}

.meta-icon {
    width: clamp(32px, 4vh, 42px);
    height: clamp(32px, 4vh, 42px);
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.meta-icon svg {
    width: clamp(14px, 1.8vh, 20px);
    height: clamp(14px, 1.8vh, 20px);
}

.meta-icon svg path {
    fill: #fff;
}

.meta-text {
    display: flex;
    flex-direction: column;
    gap: clamp(2px, 0.4vh, 4px);
    padding-top: 2px;
    min-width: 0;
}

.meta-label {
    font-size: clamp(12px, 1.3vh, 14px);
    color: rgba(0, 0, 0, 0.5);
}

.meta-value {
    font-size: clamp(13px, 1.4vh + 0.2vw, 16px);
    color: rgba(0, 0, 0, 0.9);
    line-height: 1.5;
}

a.meta-value {
    font-size: clamp(16px, 1.8vh + 0.3vw, 20px);
    font-weight: 500;
    color: var(--primary-color);
    transition: opacity 0.3s ease;
}

a.meta-value:hover {
    opacity: 0.8;
}

.locations-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: auto;
    padding-top: clamp(12px, 2vh, 30px);
}

.locations-actions .primary-btn,
.locations-actions .secondary-btn {
    width: auto;
    min-width: 150px;
}

@media (max-height: 1366px) and (min-width: 1024px) {
    .locations-section {
        .locations-panel {
            height: fit-content;
        }
    }
}

@media (max-height: 760px) and (min-width: 993px) {
    .locations-panel {
        gap: 16px;
        margin-top: 16px;
    }

    .locations-info .big-title {
        font-size: clamp(20px, 3vh, 28px);
        margin-bottom: 8px;
    }

    .locations-meta {
        gap: 8px;
    }

    .meta-value {
        line-height: 1.4;
    }
}

@media (max-width: 1200px) {
    .locations-panel {
        grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    }
}

@media (max-width: 992px) {
    .locations-panel {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .locations-sidebar {
        max-height: min(360px, 50vh);
        height: auto;
    }

    .locations-detail {
        min-height: auto;
        height: auto;
        max-height: none;
    }

    .locations-detail-inner {
        height: auto;
    }

    .locations-media {
        grid-template-columns: 1fr;
        flex: none;
        height: auto;
        overflow: visible;
    }

    .locations-photo {
        border-left: none;
        border-top: 1px solid #e2e8e4;
        height: auto;
        overflow: visible;
    }

    .locations-map {
        height: 240px;
    }

    .locations-photo iframe,
    .locations-photo img {
        height: 220px;
    }

    .locations-info {
        padding: 24px 20px 30px;
        overflow: visible;
    }

    .locations-info .big-title {
        font-size: 36px;
        margin-bottom: 20px;
    }
}



/* blog */
.blog-section {
    padding: 60px 0;
    background: #fff;
}

.blog-swiper {
    padding-bottom: 48px;
}

.blog-swiper .swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
}

.blog-swiper .swiper-slide>* {
    height: 100%;
}

.blog-item {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--tcm-border);
    transition: var(--transition);
    height: 100%;
    background: #fff;
    overflow: hidden;
}

.blog-item .img-box {
    width: 100%;
    /* height: 280px; */
    max-height: 280px;
    overflow: hidden;
    position: relative;
}

.blog-item .img-box::after {
    content: '專欄';
    position: absolute;
    top: 16px;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.15em;
    padding: 6px 14px 6px 12px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%);
}

.blog-item .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-item:hover {
    box-shadow: var(--tcm-shadow);
    border-color: rgba(179, 32, 44, 0.2);
}

.blog-item:hover .img-box img {
    transform: scale(1.06);
}

.blog-item .content-box {
    padding: 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 3px solid var(--tcm-gold-light);
}

.blog-item .content-box h3 {
    font-size: 20px;
    font-family: var(--family-font);
    font-weight: 500;
    color: var(--tcm-ink);
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-item:hover h3 {
    color: var(--primary-color);
}

.blog-item .content-box p {
    font-size: 15px;
    font-weight: 400;
    color: rgba(44, 36, 22, 0.72);
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
}

.blog-item .content-box .box-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--tcm-border);
}

.blog-item .content-box span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: rgba(44, 36, 22, 0.5);
}

.blog-item .content-box span svg {
    width: 13px;
    height: 13px;
}

.blog-item .content-box span svg path {
    fill: rgba(0, 0, 0, 0.5);
}


.blog-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(179, 32, 44, 0.5);
}

.blog-swiper .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* blog 左右切換按鈕（獨立樣式，不改動 .blog-swiper） */
.blog-swiper-wrap {
    position: relative;
}

.blog-prev,
.blog-next {
    position: absolute;
    top: calc(50% - 24px);
    z-index: 2;
    width: 46px;
    height: 46px;
    margin: 0;
    color: rgba(179, 32, 44, 0.9);
}

.blog-prev::after,
.blog-next::after {
    display: none;
}

.blog-prev {
    left: 24px;
    transform: rotateY(180deg);
}

.blog-next {
    right: 24px;
}

.blog-prev span,
.blog-next span {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(179, 32, 44, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.blog-prev span svg,
.blog-next span svg {
    width: 70%;
    height: 70%;
}

.blog-prev:hover span,
.blog-next:hover span {
    background-color: var(--primary-color);
    color: #fff;
}

@media (max-width: 992px) {
    .blog-prev,
    .blog-next {
        width: 38px;
        height: 38px;
        top: calc(50% - 19px);
    }

    .blog-prev {
        left: 0;
    }

    .blog-next {
        right: 0;
    }

    .blog-prev span,
    .blog-next span {
        width: 38px;
        height: 38px;
    }
}



/* doctor */
.doctor-section {
    padding: 60px 0 30px 0;
    background: linear-gradient(180deg, var(--tcm-cream) 0%, #fff 100%);
}

.doctor-swiper {
    padding-bottom: 48px;
}

.doctor-swiper .swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
}

.doctor-swiper .swiper-slide>* {
    height: 100%;
}

.doctor-item {
    display: flex;
    flex-direction: column;
    border: 3px solid #fff;
    box-shadow: var(--tcm-shadow);
    transition: var(--transition);
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.doctor-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(179, 32, 44, 0.1);
    margin: 8px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doctor-item::after {
    content: '';
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(179, 32, 44, 0.1), rgba(179, 32, 44, 0.05));
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doctor-item:hover {
    transform: translateY(-4px);
}

.doctor-item:hover::before,
.doctor-item:hover::after {
    opacity: 1;
}

.doctor-item span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid #fff;
    transition: var(--transition);
    opacity: 0;
}

.doctor-item span svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-item span svg path {
    fill: #fff;
}

.doctor-item:hover span {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.doctor-item .img-box {
    width: 100%;
    overflow: hidden;
    height: auto;
}

.doctor-item .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease-in-out;
}



/* appoint */
.appoint-section {
    padding: 60px 0;
    position: relative;
    scroll-margin-top: 100px;
}

/* .appoint-section::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(179, 32, 44, 0.05), transparent 70%);
    pointer-events: none;
} */

.row-box {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    counter-reset: appoint;
}

.box-item {
    border: 1px solid var(--tcm-border);
    padding: 32px 28px;
    text-align: left;
    background: #fff;
    position: relative;
    padding-left: 90px;
    transition: var(--transition);
}

.box-item::before {
    counter-increment: appoint;
    content: counter(appoint);
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tcm-gold-light);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    font-family: var(--family-font);
    font-size: 20px;
    color: var(--primary-color);
}

.box-item:hover {
    box-shadow: var(--tcm-shadow);
    border-color: rgba(179, 32, 44, 0.2);
}

.box-item h3 {
    font-size: 22px;
    font-family: var(--family-font);
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--tcm-ink);
}

.box-item p {
    font-size: 15px;
    font-weight: 400;
    color: rgba(44, 36, 22, 0.75);
    line-height: 1.7;
}

.appoint-form-box {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 32px;
    margin-top: 32px;
    background: #fff;
    border: 1px solid var(--tcm-border);
    padding: 32px;
    box-shadow: var(--tcm-shadow);
}

.calendar-box {
    border: 1px solid var(--tcm-cream);
    padding: 24px;
    background: var(--tcm-paper);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.calendar-header {
    text-align: center;
    margin-bottom: 12px;
}

.calendar-body {
    position: relative;
    min-height: 400px;
}

.calendar-panel {
    width: 100%;
}

.calendar-panel:not(.is-active) {
    display: none;
}

.calendar-label {
    display: block;
    font-size: 14px;
    color: rgba(44, 36, 22, 0.55);
    margin-bottom: 4px;
}

.calendar-selected {
    display: block;
    font-size: 20px;
    font-weight: 500;
    color: rgba(44, 36, 22, 0.4);
    font-family: var(--family-font);
}

.calendar-selected.has-value {
    color: var(--primary-color);
}

#appoint-calendar .layui-laydate {
    box-shadow: none;
    border: none;
    width: 100%;
}

#appoint-calendar .layui-laydate-static {
    width: 100%;
}

#appoint-calendar .layui-laydate-header {
    border-bottom: 1px solid var(--tcm-border);
}

#appoint-calendar .layui-laydate-content td.layui-this {
    background-color: var(--primary-color) !important;
}

#appoint-calendar .layui-laydate-content td:hover {
    background-color: var(--tcm-red-light);
}

.time-picker {
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.time-picker-back {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    padding: 0;
    border: none;
    background: none;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.time-picker-back span {
    font-size: 18px;
    line-height: 19px;
}

.time-picker-back:hover {
    opacity: 0.75;
}

.period-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.period-tab {
    flex: 1;
    height: 40px;
    border: 1px solid var(--tcm-border);
    background: #fff;
    color: var(--tcm-ink);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.period-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.period-tab.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

#appoint-time-slots .time-slots {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

#appoint-time-slots .time-slots.is-active {
    display: grid;
}

.time-slot {
    height: 40px;
    border: 1px solid var(--tcm-border);
    background: #fff;
    color: var(--tcm-ink);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot:hover:not(.is-disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--tcm-red-light);
}

.time-slot.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.time-slot.is-disabled {
    color: rgba(44, 36, 22, 0.25);
    background: rgba(44, 36, 22, 0.04);
    cursor: not-allowed;
}

.layui-laydate-content td>div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.layui-laydate-content td>div:hover,
.layui-laydate-list li:hover,
.layui-laydate-shortcut>li:hover {
    background-color: var(--tcm-red-light);
}

.laydate-theme-molv .layui-laydate-main {
    width: 100%;
}

.layui-laydate-content table {
    width: 100%;
    height: 400px;
}

.layui-laydate-content td,
.layui-laydate-content th {
    height: 45px;
}

.form-box {
    border-left: 1px solid rgba(179, 32, 44, 0.3);
    padding-left: 32px;
}

.layui-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    row-gap: 30px;
}

.layui-form-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.layui-input-block {
    margin-left: 0;
}

.layui-form-label {
    width: auto;
    text-align: left;
    padding: 10px 0;
    font-size: 16px;
}

.layui-form-label span {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 400;
    margin-left: 5px;
}

.layui-input,
.layui-select,
.layui-textarea {
    height: 48px;
    line-height: 48px;
    font-size: 15px;
    padding-left: 15px;
}

.layui-textarea {
    padding-top: 15px;
    height: 55px;
}

.layui-form-message {
    margin-top: 30px;
}

.layui-input:focus,
.layui-textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 4px 0 rgba(179, 32, 44, 0.1) !important;
}

.appoint-form-btn {
    margin-top: 50px;
    display: flex;
}

.layui-btn {
    height: 45px;
    line-height: normal;
    padding: 0;
    border-radius: 0;
}

.layui-btn:hover {
    opacity: 1;
}

.layui-form-select dl {
    top: 48px;
    height: fit-content;
}

.layui-form-select dl dd.layui-this {
    color: var(--primary-color);
    background-color: rgba(179, 32, 44, 0.05);
}





/* faq */
.faq-section {
    padding: 60px 0 80px 0;
    background: linear-gradient(180deg, #fff 0%, var(--tcm-cream) 100%);
}

.faq-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.faq-img {
    position: sticky;
    top: 120px;
    /* padding: 16px; */
    background: #fff;
    border: 1px solid rgba(179, 32, 44, 0.1);
    box-shadow: var(--tcm-shadow);
    height: 100%;
}

.faq-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.faq-img::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    right: -16px;
    bottom: -16px;
    border: 1px solid rgba(179, 32, 44, 0.15);
    z-index: -1;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    counter-reset: faq;
}

.faq-item {
    border: 1px solid var(--tcm-border);
    transition: var(--transition);
    overflow: hidden;
    background: #fff;
    border-radius: 2px;
}

.faq-item:hover {
    border-color: rgba(179, 32, 44, 0.25);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: var(--tcm-shadow);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 18px 64px;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s;
    user-select: none;
    position: relative;
}

.faq-question::before {
    counter-increment: faq;
    content: counter(faq, decimal-leading-zero);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tcm-red-light);
    color: var(--primary-color);
    font-family: var(--family-font);
    font-size: 14px;
    border: 1px solid rgba(179, 32, 44, 0.15);
}

.faq-item.active .faq-question::before {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.faq-question h3 {
    font-size: 17px;
    font-weight: 500;
    color: var(--tcm-ink);
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.faq-item.active .faq-question h3 {
    color: var(--primary-color);
}

.faq-icon {
    width: 13px;
    height: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    color: var(--primary-color);
    transition: transform 0.35s ease;
    flex-shrink: 0;
}

.faq-icon svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faq-icon svg path {
    fill: var(--primary-color);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
    border-top: 1px solid transparent;
    padding: 0 15px;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
    border-top-color: rgba(179, 32, 44, 0.1);
}

.faq-answer>div {
    overflow: hidden;
    min-height: 0;
}

.faq-answer>p {
    overflow: hidden;
    min-height: 0;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.8);
    margin: 0;
    padding: 0;
}

.faq-item.active .faq-answer>p {
    padding: 15px 20px 15px 48px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    background-color: rgba(179, 32, 44, 0.05);
    padding: 2px 6px;
    margin: 0 5px;
    transition: all 0.2s;
    display: inline-block;
}

.faq-answer a:hover {
    background-color: rgba(179, 32, 44, 0.1);
    color: var(--primary-color);
    text-decoration: underline;
}

.faq-btn {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


/* responsive */
@media (max-width: 1200px) {

    .about-content,
    .real-item {
        gap: 32px;
        padding: 28px;
    }

    .diseases-item-inner {
        gap: 32px;
        padding: 40px 48px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-item:nth-child(even):not(:last-child) {
        margin-top: 0;
    }
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 20px;
    }

    .about-section::before {
        display: none;
    }

    .diseases-item-inner {
        grid-template-columns: 1fr;
        padding: 32px 48px;
        gap: 28px;
    }

    .diseases-item:nth-child(even) .diseases-item-inner {
        grid-template-columns: 1fr;
    }

    .diseases-item:nth-child(even) .diseases-img {
        order: 1;
        max-height: 240px;
    }

    .diseases-item:nth-child(even) .diseases-text {
        order: 2;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

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

    .real-item {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .real-swiper {
        padding: 0 50px 30px;
    }

    .faq-content {
        grid-template-columns: 1fr;
    }

    .faq-img {
        position: static;
        max-height: 320px;
        overflow: hidden;
    }

    .row-box,
    .appoint-form-box {
        grid-template-columns: 1fr;
    }

    .form-box {
        border-left: none;
        border-top: 3px solid var(--primary-color);
        padding-left: 0;
        padding-top: 24px;
    }



    /* .banner-section {
        height: 26vh;
    } */

    .banner-swiper .swiper-pagination {
        bottom: 10px !important;
    }

    .banner-swiper .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
    }

    .banner-swiper .swiper-pagination-bullet-active {
        width: 15px;
    }

    .about-section {
        padding: 30px 0;
    }

    .about-content::before {
        width: 30px;
        height: 30px;
        top: 10px;
        left: 10px;
    }

    .about-content::after {
        width: 30px;
        height: 30px;
        bottom: 10px;
        right: 10px;
    }

    .about-badge {
        padding: 3px 15px;
        font-size: 11px;
        right: 15px;
    }

    .about-img-frame {
        height: 180px;
        padding: 12px;
    }

    .about-text p {
        font-size: 15px;
    }

    .about-container::before {
        font-size: 110px;
        right: 15px;
        bottom: 2%;
        top: auto;
    }


    .advantages-section {
        padding: 30px 0;
    }

    .advantages-intro {
        margin-bottom: 24px;
        padding: 0 8px;
    }

    .advantages-intro-title {
        font-size: 18px;
        letter-spacing: 0.08em;
    }

    .advantages-intro p {
        font-size: 14px;
        line-height: 1.8;
        text-align: left;
    }

    .section-header {
        margin-bottom: 15px;
    }

    .diseases-section {
        padding: 30px 0 0 0;
    }

    .diseases-item-inner {
        padding: 15px;
        gap: 15px;
    }

    .diseases-text p {
        font-size: 15px;
    }

    .service-section {
        padding: 30px 0;
    }

    .service-link .content-box {
        padding-top: 0;
    }

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

    .team-item .img-box {
        /* height: 220px; */
    }

    .team-grid {
        gap: 15px;
    }

    .team-item .content-box h3 {
        font-size: 18px;
        padding: 5px 0;
    }

    .team-item .content-box p {
        padding: 8px 0;
    }

    .real-section {
        padding: 30px 0;
    }

    .real-section::before {
        display: none;
    }

    .real-next,
    .real-prev {
        top: 35%;
    }

    .real-swiper .swiper-button-prev {
        left: auto;
        right: 60px;
    }

    .real-next span,
    .real-prev span {
        width: 35px;
        height: 35px;
    }

    .real-swiper {
        padding: 0;
    }

    .real-text p {
        font-size: 15px;
    }

    .locations-section {
        padding: 30px 0;
    }

    .locations-panel {
        margin-top: 20px;
        gap: 16px;
    }

    .locations-media {
        height: auto;
    }

    .locations-photo {
        height: auto;
        padding: 10px;
    }

    .locations-info .big-title {
        margin-bottom: 20px;
        font-size: 36px;
    }

    .locations-info {
        padding: 20px 15px 30px;
    }

    .meta-icon {
        width: 35px;
        height: 35px;
    }

    .meta-icon svg {
        width: 15px;
        height: 15px;
    }

    .meta-value {
        font-size: 15px;
    }

    a.meta-value {
        font-size: 19px;
    }

    .blog-section {
        padding: 30px 0;
    }

    .doctor-section {
        padding: 40px 0 10px 0;
    }

    .doctor-swiper {
        padding-bottom: 20px;
    }

    .appoint-section {
        padding: 30px 0;
        scroll-margin-top: 80px;
    }

    .box-item::before {
        width: 40px;
        height: 40px;
    }

    .appoint-form-box {
        margin-top: 26px;
        padding: 15px;
    }

    .layui-laydate-content table {
        height: auto;
    }

    .calendar-body {
        min-height: auto;
    }

    .calendar-box {
        padding: 15px;
    }

    .layui-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
        row-gap: 10px;
    }

    .layui-form-select dl {
        top: auto;
    }

    .layui-form-message {
        margin-top: 10px;
    }

    .appoint-form-btn {
        margin-top: 30px;
    }

    .faq-section {
        padding: 30px 0 50px 0;
    }

    .faq-img {
        display: none;
    }

    .faq-question::before {
        width: 30px;
        height: 30px;
        left: 10px;
    }

    .faq-question {
        padding-left: 50px;
    }

    .faq-answer {
        padding: 0;
    }

    .faq-answer>p {
        font-size: 15px;
    }

    .faq-btn {
        margin-top: 20px;
    }
}

@media (max-height: 580px) {
    .about-section {
        .section-eyebrow {
            margin-bottom: 4px;
        }

        .big-title {
            font-size: 36px;
            line-height: 46px;
            margin-bottom: 12px;
        }

        .about-text p {
            font-size: 15px;
            line-height: 26px;
            margin-bottom: 12px;
        }
    }

    .advantages-section {
        .section-eyebrow {
            margin-bottom: 0;
        }

        .section-header {
            margin-bottom: 16px;
            font-size: 36px;
            line-height: 46px;
        }

        .advantages-intro-title {
            font-size: 20px;
            line-height: 30px;
        }

        .sub-title {
            margin-bottom: 16px;
        }

        .advantages-swiper {
            height: calc(100vh - 300px);
            .img-box {
                aspect-ratio: 200 / 103;
            }
        }
    }

    .locations-section {
        .locations-media {
            height: auto;
        }

        .locations-map {
            height: min(240px, 40vh);
        }

        .locations-photo iframe,
        .locations-photo img {
            height: min(200px, 36vh);
        }
    }
}

/* 分店網絡手風琴選單 */
.app-nearby-nav-wrap {
    display: none;
}

/* 首頁分店列表：沿用 address.css，適配無地圖佈局 */
.app-nearby-section .addr-list-panel {
    position: static;
    max-height: none;
    width: 100%;
    margin-top: 4px;
}

.app-nearby-section .addr-list-scroll {
    max-height: min(68vh, 640px);
    overflow-y: auto;
}

.app-nearby-more {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.app-nearby-more .secondary-btn {
    min-width: 200px;
}