@import url('https://fonts.googleapis.com/css2?family=Iansui&family=Noto+Serif+TC:wght@200..900&display=swap');
/* 全局样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
    line-height: 1.6;
    color: #333;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1; 
    background: url(../img/bg-fabric.png);
    background-position: center;
    background-repeat: repeat;
    background-attachment: scroll;
    background-size: auto;
}

a{
    text-decoration: none;
}
input{
    outline: none;
}
/* Header 樣式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
    transform: translateY(-100%);
    opacity: 0;
}

.logo-link {
    position: absolute;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
}

.header-logo {
    width: 77.4px; /* 86px * 0.9 = 77.4px (縮小10%) */
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.header-text-logo {
    height: 15.84px; /* 14.4px * 1.1 = 15.84px (增加10%) */
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    margin-left: -10px;
    transition: opacity 0.3s ease;
}

.logo-link:hover .header-logo,
.logo-link:hover .header-text-logo {
    opacity: 1;
}

header.show {
    transform: translateY(0);
    opacity: 1;
}

/* 首頁 header 樣式優先級更高，覆蓋 show 類別 */
body.index-page header.show {
    transform: translateY(-100%);
    opacity: 1;
}

body.index-page header.header-out-video {
    transform: translateY(0);
    opacity: 1;
}

header a {
    color: white;
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 1rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
    font-weight: 400;
    position: relative;
    padding: 1.5rem 0;
}

header .submenu-section a::before{
    content: "✦";
    position: relative;
    top: -1px;
    margin-right: 7px;
    font-size: .7rem;
}
/* 只對子菜單項目添加箭頭 */
header .submenu-section a::after{
    content: "";
    position: relative;
    aspect-ratio: 1 / 1.6;
    width: 14px;
    height: auto;
    display: inline-block;
    background-image: url(../img/SVG/icon-arrow.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translate(7px , 5px);
}
.menu-container a {
    display: inline-block;
    position: relative;
    cursor: default;
}

.menu-container a::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    color: white;
    padding: 1.5rem 0;
}

.menu-container a:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.menu-container a span {
    display: inline-block;
    transition: all 0.3s ease;
}

.menu-container a:hover span {
    opacity: 0;
    transform: translateY(-20px);
}

header a:hover {
    opacity: 1;
}
header:hover(only index.html){
    background-color: #1A375D;
}




.header-icons {
    position: absolute;
    right: 8rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.icon-link {
    margin: 0 !important;
    display: flex;
    align-items: center;
}

.header-icon {
    font-size: 24px;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
}

.icon-link:hover .header-icon {
    opacity: 1;
}
.header-icon.per{
    display: none;
}

.appointment-btn {
    position: absolute;
    right: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    cursor: pointer;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
}

.appointment-btn span {
    color: white;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.appointment-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.appointment-btn:hover span {
    opacity: 1;
}

.menu-btn {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem 0 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.menu-btn img {
    width: 42px;
    height: 42px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.menu-btn:hover img {
    opacity: 1;
}
.close-icon{
    display: none;
}
.page-header{
    position: fixed;
    z-index: 1000;
    width: 100%;
    height: auto;
    min-height: 80px;
    display: flex;
    margin-top: 0px;
    transform: translateY(-80px);
}


.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
     rgba(26, 55, 93, 0.87) 0%,
     rgba(26, 55, 93, 0.7) 90%, 
     rgba(26, 55, 93, 0) 100%);
    mix-blend-mode: hard-light;
    transition: height 0.3s ease, background 0.3s ease;
}
.page-header::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../img/bar.png);
    transition: height 0.3s ease, background 0.3s ease;
}
.page-header.submenu-active::before {
    height: calc(100% + var(--submenu-height, 120px)); 
    background: linear-gradient(to bottom, 
     rgba(26, 55, 93, 1) 0%,
     rgba(26, 55, 93, 1) 85%,
     rgba(26, 55, 93, 0.9) 96%,
     rgba(26, 55, 93, 0.2) 100%);
}
/* .news-page 樣式已移除 margin-top: 80px; */

/* Header 捲動隱藏/顯示樣式 */
header.header-scroll-enabled {
    transition: transform 0.3s ease-in-out;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

header.header-scroll-enabled.header-hidden {
    transform: translateY(-100%);
}

header.header-scroll-enabled.header-visible {
    transform: translateY(0);
}

/* 為固定 header 預留空間 */
body {
    padding-top: 80px;
}

/* 首頁特殊處理 - 不預留 header 空間，讓影片置頂 */
body.index-page {
    padding-top: 0;
}

/* 首頁 header 樣式 */
body.index-page header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

/* 首頁 header 顯示狀態 - 已移至上方 */

/* 首頁 header 在影片區的隱藏狀態 */
body.index-page header.header-in-video {
    transform: translateY(-100%);
}

/* 首頁載入頁面樣式 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #1a365d 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    width: 120px;
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    animation: logoPulse 2s ease-in-out infinite;
}

.loading-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    opacity: 0.8;
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
}


.loading-progress {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffffff 0%, #e2e8f0 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 1px;
}

/* 動畫效果 */
@keyframes logoPulse {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}



/* 首頁載入完成後隱藏載入頁面 */
body.index-page.loaded .loading-screen {
    opacity: 0;
    pointer-events: none;
}

/* 滾動鎖定樣式 */
body.scroll-locked {
    overflow: hidden;
    position: fixed;
    width: 100%;
    transition: none;
}

/* Logo3 樣式 - 與 header 相反行為 */
#logo3-container {
    position: fixed;
    top: 14px; /* 20px * 0.7 = 14px (減少30%) */
    left: 14px; /* 20px * 0.7 = 14px (減少30%) */
    z-index: 1001;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}

#logo3-container.logo3-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#logo3-container.logo3-hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.logo3-link {
    display: block;
    text-decoration: none;
}

.logo3 {
    width: 192px; /* 240px * 0.8 = 192px (縮小20%) */
    height: auto;
    filter: none; /* 移除濾鏡，顯示原始顏色 */
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.logo3:hover {
    opacity: 1;
}

/* 麵包屑導航樣式 */
.breadcrumb-section {
    padding: 10px 30px;
    box-sizing: border-box;
}

.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb-icon {
    margin-right: 8px;
    color: #1A375D;
    font-size: 16px;
    font-weight: bold;
}

.breadcrumb-item {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: bold;
}

.breadcrumb-item:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    display: flex;
    align-items: center;
}

.breadcrumb-arrow {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

.breadcrumb-current {
    color: #495057;
    font-weight: bold;
}

/* 麵包屑響應式設計 */
@media (max-width: 768px) {
    .breadcrumb-section {
        padding: 20px 20px;
    }
    
    .breadcrumb {
        font-size: 13px;
    }
    
    .breadcrumb-separator {
        margin: 0 6px;
    }
    
    .breadcrumb-arrow {
        width: 10px;
        height: 10px;
    }
    
    .breadcrumb-icon {
        margin-right: 6px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-section {
        padding: 30px 20px;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    .breadcrumb-separator {
        margin: 0 4px;
    }
    
    .breadcrumb-arrow {
        width: 9px;
        height: 9px;
    }
    
    .breadcrumb-icon {
        margin-right: 4px;
        font-size: 13px;
    }
}

/* Header 響應式設計 */
@media (max-width: 768px) {
    body {
        padding-top: 70px; /* 手機版 header 較小 */
    }
    
    #logo3-container {
        top: 10.5px; /* 15px * 0.7 = 10.5px (減少30%) */
        left: 10.5px; /* 15px * 0.7 = 10.5px (減少30%) */
    }
    
    .logo3 {
        width: 160px; /* 200px * 0.8 = 160px (縮小20%) */
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px; /* 小手機版 header 更小 */
    }
    
    #logo3-container {
        top: 7px; /* 10px * 0.7 = 7px (減少30%) */
        left: 7px; /* 10px * 0.7 = 7px (減少30%) */
    }
    
    .logo3 {
        width: 144px; /* 180px * 0.8 = 144px (縮小20%) */
    }
}
.menu-icon-container{
    position: relative;
    width: 40px;
    height: auto;
    aspect-ratio: 1 / 1;
    display: block;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}
#menu-icon{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    display: block;
    cursor: pointer;
    z-index: 1001;
}
[id^="menu-icon-rect"] {
    transition: opacity 1s ease;
}
.menu-icon-container .cls-1, .menu-icon-container .cls-2 {
    fill: #fff;
}

.menu-icon-container .cls-2 {
    isolation: isolate;
    transition: opacity 1s ease;
    opacity: .5!important;
}
.menu-icon-container:hover .cls-2{
    opacity: 1!important;
}
@media (max-width: 767.98px) {
    .menu-icon-container:hover .cls-2{
        opacity: .5!important;
    }
}
/* Header 響應式樣式 */
@media (max-width: 960px) {
    .menu-container {
        display: none;
    }
    
    .header-icons {
        right: 7rem;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 0.5rem;
        margin-top: 7px;
    }

    .logo-link {
        left: 0.5rem;
        gap: 0.5rem;
    }

    .header-logo {
        width: 64.8px; /* 72px * 0.9 = 64.8px (縮小10%) */
        transform: scale(0.8);
    }

    .header-text-logo {
        height: 13.86px; /* 12.6px * 1.1 = 13.86px (增加10%) */
        transform: scale(0.8);
    }

    header a {
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }
    .mobile-menu-container-item-tag{
        margin: 0 0.5rem!important;
    }

    .header-icons {
        right: 4rem;
        gap: 0.8rem;
    }

    .header-icon {
        font-size: 20px;
    }

    .appointment-btn {
        right: 3.5rem;
        padding: 6px 12px;
        border-radius: 30px;
    }

    .appointment-btn span {
        font-size: 12px;
    }

    .menu-btn {
        right: 0.5rem;
        padding: 0.6rem;
    }

    .menu-btn img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .header-icons {
        right: 7.5rem;
    }

    .appointment-btn {
        right: 3rem;
        padding: 5px 10px;
    }

    .appointment-btn span {
        font-size: 11px;
    }

    .logo-link {
        gap: 0rem;
    }

    .header-text-logo {
        height: 15.84px; /* 14.4px * 1.1 = 15.84px (增加10%) */
        transform: scale(0.7);
    }
}
/* footer */

/*footer-section*/
.footer-section{
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100vh;
    background-color: #1A375D;
    display: block;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.about-section{
    position: relative;
    bottom: 0;
    width: 100%;
    height: auto;
    min-height: 930px;
    background-color: #1A375D;
    overflow: hidden;
}
.about-bg {
    position: absolute;
    top: 0;
    left: 0; 
    width: 100%; 
    height: auto;
    object-fit: cover;
    z-index: 0;
    display: block;
    opacity: .7;
    filter: blur(10px);
    transform: scale(1.1);
    transition: all 1.2s ease-out;
}

.about-bg.show {
    filter: blur(0);
    transform: scale(1);
}

.desktop-bg { 
    aspect-ratio: 192 / 128;
    display: block; 
}
.mobile-bg { 
    display: none; 
    aspect-ratio: 128 / 192;
}
@media (max-width: 768px) {
    .desktop-bg { 
        display: none; 
    }
    .mobile-bg { 
        display: block; 
    }
    .about-bg {
        filter: blur(8px);
        transform: scale(1.05);
    }
    
    .about-bg.show {
        filter: blur(0);
        transform: scale(1);
    }
}
/*subscription-section*/
.subscription-section {
    position: absolute;
    top: 10%;
    right: 10%;
    z-index: 100;
    width: 100%;
    max-width: 450px;
    height: auto;
    background-color: #d3d3d3;
    overflow: auto;
    padding: 70px 40px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.8s ease-out;
}

.subscription-section.show {
    opacity: 1;
    transform: translateY(0);
}
.subscription-container{
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
}
.subscription-container h2{
    color: #1A375D;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 2rem;
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
    font-style: blod;
    text-align: center;
    margin-bottom: 30px;
}
.subscription-container h3{
    color: #1A375D;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.8rem;
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
    font-style: normal;
    text-align: start;
    margin-bottom: 20px;
}
.subscription-container .subscribe-link{
    width: 100px;
    height: auto;
    aspect-ratio: 1 / 1;
    border: .5px solid #1A375D;
    border-radius: 50%;
    padding: 0 10px;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.5;
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
    font-style: normal;
    text-align: center;
    margin: 0 auto;
    background-color: #fff;
    cursor: pointer;
    margin-top: 30px;
    color: #1A375D;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.subscription-container .subscribe-link:hover{
    background-color: #1A375D;
    color: #fff;
}
.subscription-container hr{
    width: 100%;
    height: .5px;
    border: none;
    background-color: #1A375D;
    margin: 40px 0 10px 0;
}
.subscription-container p{
    color: #1A375D;
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
    font-style: normal;
    font-size: .9rem;
    margin: 0;
}


/*footer-container*/
.footer-container{
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 1920px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.footer-info{
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 700px;
    height: auto;
    min-height: 100px;
    margin: 20px 10%;
    padding: 40px 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.footer-info-item a , .footer-info-item-tag{
    color: #c6c6c6;
    font-size: .85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 2rem;
    display: block;
    text-align: start;
    transition: all 0.3s ease;
}
.footer-info-item-tag{
    margin-bottom: 10px;
    font-size: 1rem;
}
.footer-info-item a:hover{
    color: #fff;
}
.footer-info-item samp{
    color: #ffffff;
    font-size: .7rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 2rem;
    display: block;
    width: 80%;
    border-bottom: .5px solid #c6c6c6;
}
/* footer-social 样式 */
.footer-social {
    position: relative;
    width: calc(100% - 20%);
    margin: 0 10%;
    padding: 20px 0;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: .5px solid #c6c6c6;
    border-bottom: .5px solid #c6c6c6;
}

.footer-social-item {
    display: flex;
    gap: 20px;
}

.footer-social-item a {
    color: #c6c6c6;
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 2rem;
    transition: all 0.3s ease;
}

.footer-social-item a:hover {
    color: #fff;
}

.footer-social-item img {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-social-item img:hover {
    opacity: 1;
}
.footer-copyright{
    position: relative;
    width: calc(100% - 20%);
    margin: 0 10%;
    height: auto;
    min-height: 100px;
    color: #c6c6c6;
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 2rem;
    text-align: end;
    padding: 20px 0;
    box-sizing: border-box;
}
.footer-logo{
    position: relative;
    width: 43%;
    height: auto;
    aspect-ratio: 1 / 1;
    display: block;
    margin:  -20px auto 20px auto;
}
.footer-logo img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@media (max-width: 1480px) {
    .about-section {
        min-height: 1000px;
    }
    .subscription-section {
        bottom: auto;
        transform: translateY(50px);
    }
    .subscription-section.show {
        transform: translateY(0);
    }
    .footer-info {
        max-width: calc(100% - 20%);
        margin: 0 10%;
    }
}
/* 响应式设计 */
@media (max-width: 1024px) {
    .subscription-section {
        right: 5%;
        max-width: 450px;
        padding: 50px 30px;
    }
    
    .subscription-container h2 {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }
    
    .subscription-container h3 {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
}
@media (max-width: 768px) {
    .footer-social {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .footer-social-item {
        width: 100%;
        justify-content: space-between;
    }
    
    .footer-social-item:last-child {
        justify-content: flex-start;
        gap: 30px;
    }
}
@media (max-width: 768px) {
    .subscription-section {
        width: 100%;
        max-width: 340px;
        left: calc(50% - 170px);
        padding: 40px 20px;
        transform: translateY(30px);
    }
    .subscription-section.show {
        transform: translateY(0);
    }
    .subscription-container h2 {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }
    
    .subscription-container h3 {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .subscription-container form input {
        height: 35px;
        padding: 25px 15px;
        margin-top: 30px;
    }
    
    .subscription-container form button {
        width: 80px;
        margin-top: 40px;
    }
    
    .subscription-container hr {
        margin: 30px 0 10px 0;
    }
    .footer-info{
        margin-top: 100px;
    }
}
@media (max-width: 575.98px) {
    .footer-container{
        padding-top: 70px;
    }
    .footer-info{
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;

    }
    .subscription-section {
        transform: translateY(20px);
    }
    .subscription-section.show {
        transform: translateY(0);
    }
    .footer-info-item{
       padding-bottom: 40px;
    }
    .about-section{
        min-height: 900px;
    }
    .footer-social-item{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .footer-social-item:last-child {
        gap: 0px;
    }
    .footer-logo{
        margin-top: 10px;
    }
}
@media (max-width: 480px) {
    .subscription-section {
        padding: 30px 15px;
        transform: translateY(15px);
    }
    .subscription-section.show {
        transform: translateY(0);
    }
    .subscription-container h2 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .subscription-container h3 {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .subscription-container form input {
        height: 30px;
        padding: 20px 15px;
        margin-top: 25px;
        font-size: 0.9rem;
    }
    
    .subscription-container form button {
        width: 70px;
        margin-top: 35px;
        font-size: 1rem;
    }
    
    .subscription-container p {
        font-size: 0.8rem;
    }
    .about-bg {
        filter: blur(6px);
        transform: scale(1.03);
    }
    
    .about-bg.show {
        filter: blur(0);
        transform: scale(1);
    }
}

/* 确保header中的menu-icon不受其他页面样式影响 */
header .menu-icon-container svg {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
}

header .menu-icon-container [id^="menu-icon-rect"] {
    stroke-width: 0 !important;
    vector-effect: none !important;
}
.mobile-menu-container{
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 0;
    z-index: 999;
    overflow: auto;
}
.mobile-menu-container-show{
    width: 100%;
    height: 100vh;
}
.mobile-menu-container::before{
    content: "";
    position: fixed;
    top: -10px;
    left: 0;
    width: 100%;
    height: calc(100vh + 10px);
    background-color: #545c67;
    transition: all 1s ease;
    opacity: 0;
    pointer-events: none;
}
.mobile-menu-container-show::before{
    opacity: 1;
}
.mobile-menu-container::after{
    content: "";
    position: fixed;
    top: -10px;
    left: 0;
    width: 100%;
    height: calc(100vh + 10px);
    background-image: url(../img/menubg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    transition: all 7s ease;
}
.mobile-menu-container-show::after{
    opacity: 1;
}
.mobile-menu-container-content{
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    top: 100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    justify-content: center;
    align-items: start;
    padding: 0 10% 2%;
    box-sizing: border-box;
}
.mobile-menu-container-item{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}
.mobile-menu-container-item a{
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    padding-left: 10px;
    text-align: start;
    cursor: pointer;
}
.mobile-menu-container-item a::before{
    content: "✦";
    position: relative;
    top: -1px;
    margin-right: 7px;
    font-size: .7rem;
}
.mobile-menu-container-item a:nth-child(1){
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 3rem;
    text-align: start;
    padding-left: 0px;
    border-bottom: .5px dotted #c6c6c6;
    display: block;
    width: 70%;
    margin-top: 20px;
    padding-bottom: -10px;
}
.mobile-menu-container-item a:nth-child(1)::before{
    content: " ";
}
/* 只對移動端菜單的子項目添加箭頭，排除主標題 */
.mobile-menu-container-item a:not(:first-child)::after{
    content: "";
    position: relative;
    aspect-ratio: 1 / 1.6;
    width: 14px;
    height: auto;
    display: inline-block;
    background-image: url(../img/SVG/icon-arrow.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translate(7px , 5px);
}
.mobile-menu-container-item.social a::after{
    content: none;
}
.mobile-menu-container-item.social a{
    display: flex;
    align-items: center;
    border-bottom: none;
}
.mobile-menu-container-item.social a img{
    width: 20px;
    height: 20px;
    margin-right: 10px;
}
.mobile-menu-container-item-tag{
    color: #8C8C8B;
    font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    width: 70%;
    margin: 0 1.5rem;
    letter-spacing: 0.05em;
    line-height: 2.7rem;
    padding: 0 10px;
    text-align: start;
    border-bottom: .5px dotted #8C8C8B;
}
.mobile-menu-category{
    width: 100%;
    height: auto;
    overflow-x: auto;
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    top: 100px;
    display: flex;
    justify-content: center;
    align-items: start;
    padding: 0 10%;
    box-sizing: border-box;
    flex-direction: column;
}
.mobile-menu-category.wrap{
    padding: 0;
}
.mobile-menu-category.scroll{
    top: 0;
    overflow: show;
}
.mobile-menu-category .stWf.allr .sMrGrid {
    grid-template-columns: repeat(5, 1fr);
}
.shopTop-stW.mobile-menu{
    max-width: none!important;
}
.shopTop-stW {
    width: 100%;
    height: 100%;
    max-width: 1550px;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    margin: 0 auto;
    box-sizing: border-box;
}
.upper {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}
.upper::after {
    content: '';
    display: block;
    min-width: 10vw;
    height: 1px;
}
.topCategory {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.mobile-menu-category .topCategory:hover .smrPhoto img, .mobile-menu-category .topCategory:hover{
    opacity: 1!important;
    transition: all .25s linear;
}
.mobile-menu-category .topCategory:hover .smrT .title{
    color: #fff!important;
    transition: all .25s linear;
}
.mobile-menu-category .upper .stW {
    flex-shrink: 0;
    margin: 0 10px 0 0;
}
.stW {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
}
.mobile-menu-category .upper .stWf {
    padding: 0 20px 30px !important;
}
.stWf {
    display: flex;
    padding: 0 60px;
}

.sMr {
    flex: 1;
    width: calc(100% - 250px);
    display: block;
}
.upper .sMrGrid {
    gap: 20px !important;
}
.mobile-menu-category .sMrGrid{
    gap: 40px 20px !important;
    padding: 0 0 50px 0;
}
.sMrGrid {
    width: 100%;
    height: auto;
    padding: 0px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    box-sizing: border-box;
    flex-shrink: 0;
}
@media (max-width: 1574.98px) {
    .stWf {
        padding: 0;
    }
}
.mobile-menu-category .topCategory .smrPhoto img{
    aspect-ratio: 2/1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .25s linear;
}
.mobile-menu-category .topCategory .smrT {
    position: absolute;
    bottom: -34px;
    left: 0;
    width: 100%;
    padding: 6px 8px;
}
.mobile-menu-category .topCategory .title {
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgb(140, 140, 139);
    display: flex;
    align-items: center;
    gap: 5px;
}
.mobile-menu-category .topCategory .title .arrow-icon {
    width: 14px;
    height: auto;
    flex-shrink: 0;
}
@media (max-width: 767.98px) {
    .sMrGrid {
        gap: 15px;
    }
    
    .mobile-menu-category .topCategory .title {
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .sMrGrid {
        gap: 10px;
    }
}
.mobile-menu-category .stWf.mbl {
    padding: 0 20px;
}
.mobile-menu-category .upper .stW.phone .stWf {
    padding: 0 !important;
    margin: 0 20px 0 0 !important;
}
.mobile-menu-category {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Efdge */
}
.mobile-menu-category::-webkit-scrollbar {
    display: none;
}
.mobile-menu-category .dott{
    padding: 0 10%;
    width: 100%;
    margin: 0 20px 20px;
}
.upper.dott .stWf{
    border-bottom: .5px dotted #c6c6c6;
    padding: 0 10px !important;
    min-width: 180px;
}
.mobile-menu-category .shopTop-title{
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 3rem;
    text-align: start;
    font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
    color: #fff;
}
.mobile-menu-category .shopTop-title:after{
    content: "";
    position: relative;
    aspect-ratio: 1 / 1.6;
    width: 14px;
    height: auto;
    display: inline-block;
    background-image: url(../img/SVG/icon-arrow.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translate(7px, 5px);
}
.shopTop-wrap.index .shopTop-title{
    font-weight: 600;
}
/*shopTop-pagi*/
.mobile-menu-category .shopTop-pagi{
    display: flex;
    justify-content: space-between;
    max-width: none;
    z-index: 998;
    position: absolute;
    top: 48.7%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    width: 100%;
    align-items: center;
    box-sizing: border-box;
    padding: 0 8%;
    opacity: 0;
    transition: all .25s linear;
    pointer-events: auto;
}
.mobile-menu-category .linee{
    width: 100%;
    height: 1px;
    background-color: var(--secondary-color);
    margin: 80px 0;
}
.mobile-menu-category .shopTop-pagi{
    max-width: none;
    margin: 0;
}
.mobile-menu-category .shopTop-pagi-prev, .mobile-menu-category .shopTop-pagi-next{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 1px solid #FFF;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    transition: all .25s linear;
}
.mobile-menu-category .shopTop-pagi-prev svg, .mobile-menu-category .shopTop-pagi-next svg{
    width: 20px;
    height: 20px;
    transition: all .25s linear;
}
.mobile-menu-category .shopTop-pagi-prev svg path, .mobile-menu-category .shopTop-pagi-next svg path{
    stroke-width: 1.6;
    stroke: #fff;
}
.shopTop.index:hover .shopTop-pagi, .mobile-menu-category:hover .shopTop-pagi{
    opacity: 1;
}
.shopTop-pagi-prev:hover, .shopTop-pagi-next:hover{
    background-color: #fff;
}
.mobile-menu-category .shopTop-pagi-prev:hover svg path, .mobile-menu-category .shopTop-pagi-next:hover svg path{
    stroke: #1A375D!important;
}
/*shopTop-pagi*/

@media (max-width: 767.98px) {
    .mobile-menu-category .dott{
        margin: 20px 0;
    }
    .mobile-menu-category .stW.phone{
        margin: 0!important;
    }
    .mobile-menu-category .upper .stW.phone .stWf{
        padding: 0!important;
        margin: 0 20px 0 0!important;
    }
    .mobile-menu-category .shopTop-pagi{
        padding: 0 2%;
        top: 53%;
    }
    .upper::after {
        min-width: 10vw;
    }
}

@media (min-width: 1241px) {
    .stW.phone{
        display: none;
    }
    .stWf.mbl{
        display: none;
    }
    .mobile-menu-container-content.social{
        grid-template-columns: repeat(5, 1fr);
    }
}
@media (max-width: 1240.98px) {
    .stW.pc{
        display: none;
    }
    .stW.phone{
        display: block;
    }
}
.mobile-menu-category .upper .stW.phone:nth-of-type(3){
    opacity: 1;
}


.back-to-top {
    position: fixed;
    bottom: 34px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: #22325c81;
    border: 1px dotted #fff;
    border-radius: 50%;    opacity: 0;
    visibility: hidden;
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top svg path {
    stroke: #ffffff;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #22315C;
    transform: translateY(-3px);
}

@media (max-width: 767.98px) {
    .back-to-top {
        bottom: 24px;
        right: 20px;
    }
    
    .back-to-top svg {
        width: 16px;
        height: 12px;
    }
}

/* 登出確認彈窗樣式 */
.logout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.logout-modal.show {
    opacity: 1;
    visibility: visible;
}

.logout-modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 400px;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logout-modal.show .logout-modal-content {
    transform: translateY(0);
}

.logout-modal-header {
    padding: 20px;
    position: relative;
}

.logout-modal-header .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logout-modal-header .close-btn svg {
    color: #8C8C8B;
    transition: all 0.3s ease;
}

.logout-modal-header .close-btn:hover svg {
    color: #22315C;
}

.logout-modal-header h3 {
    margin: 0;
    color: #22315C;
    font-size: 1.2rem;
    font-weight: 500;
}

.logout-modal-body {
    padding: 40px 20px;
    text-align: center;
}

.logout-modal-body p {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.logout-modal-footer {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.logout-modal-footer button {
    padding: 10px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.logout-modal-footer button:hover{
    background-color: #8C8C8B;
    color: #fff;
}
.btn-cancel {
    background-color: #fff;
    border: 1px solid #8C8C8B;
    color: #8C8C8B;
}

.btn-cancel:hover {
    background-color: #8C8C8B;
    color: #fff;
    border: 1px solid #8C8C8B;
}

.btn-confirm {
    background-color: #22315C;
    border: 1px solid #22315C;
    color: #fff;
}

.btn-confirm:hover {
    background-color: #8C8C8B;
}

@media (max-width: 480px) {
    .logout-modal-content {
        width: 95%;
    }
    
    .logout-modal-footer button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* 預約來店彈窗樣式 */
.appointment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #545c67;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.appointment-modal::after {
    content: "";
    position: fixed;
    top: -10px;
    left: 0;
    width: 100%;
    height: calc(100vh + 10px);
    background-image: url(../img/menubg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.appointment-modal.show {
    opacity: 1;
    visibility: visible;
}

.appointment-modal.show::after {
    opacity: 1;
}

.appointment-modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
    margin: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    mask: url('/img/SVG/fabric-mask-two.svg') no-repeat center;
    mask-size: cover;
    -webkit-mask: url('/img/SVG/fabric-mask-two.svg') no-repeat center;
    -webkit-mask-size: cover;
}

.appointment-modal.show .appointment-modal-content {
    transform: translateY(0);
}

.appointment-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1A375D;
    background-image: url('/img/bar.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
}

.appointment-modal-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 55, 93, 0.7);
    z-index: 1;
}

.appointment-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.appointment-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    color: white;
    position: relative;
    z-index: 2;
}

.appointment-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.appointment-close-btn svg {
    width: 20px;
    height: 20px;
}

.appointment-modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
    flex: 1;
    min-height: 0; /* 確保 flex 子元素可以正確縮小 */
}

/* 預約提醒圖片樣式 */
.appointment-image {
    text-align: center;
    margin: 0 0 20px 0;
    padding: 0;
}

.appointment-image img {
    max-width: 480px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 預約提醒文字樣式 */
.appointment-reminder {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 16px;
    margin: 0 0 20px 0;
    border-left: 4px solid #495057;
    border-radius: 0 8px 8px 0;
}

.reminder-content {
    font-size: 18px;
    line-height: 1.6;
    color: #495057;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 預約地址資訊樣式 */
.appointment-address {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 16px;
    margin-top: 20px;
    border-left: 4px solid #1A375D;
}

.address-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.address-icon {
    width: 18px;
    height: 18px;
    color: #a72841;
}

.address-title {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.address-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-text {
    font-size: 14px;
    color: #495057;
    margin: 0;
    line-height: 1.5;
}

.address-map-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: #007bff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.address-map-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.map-icon {
    width: 16px;
    height: 16px;
    color: #007bff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.appointment-modal-footer {
    padding: 16px 24px 30px; /* 增加底部空間，確保按鈕有足夠的點擊區域 */
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.appointment-cancel-btn,
.appointment-submit-btn {
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.appointment-cancel-btn {
    background-color: #f3f4f6;
    color: #374151;
}

.appointment-cancel-btn:hover {
    background-color: #e5e7eb;
}

.appointment-submit-btn {
    background: #1A375D;
    color: white;
}

.appointment-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.appointment-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 響應式設計 */

/* 平板尺寸 (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .appointment-modal-content {
        width: 85%;
        max-width: 600px;
    }
    
    .appointment-modal-body {
        max-height: 65vh;
    }
}

/* 手機橫向 (768px 以下) */
@media (max-width: 768px) {
    .appointment-btn {
        right: 60px; /* 向左調整，避免壓到 menu 按鈕 */
    }
    
    .appointment-modal {
        padding: 15px;
        align-items: flex-start;
        padding-top: 5vh;
    }
    
    .appointment-modal-content {
        width: 95%;
        margin: 0;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
    }
    
    .appointment-modal-header {
        padding: 18px 20px 14px;
        flex-shrink: 0;
    }
    
    .appointment-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .appointment-modal-body {
        padding: 18px 20px;
        flex: 1;
        overflow-y: auto;
        max-height: calc(90vh - 140px); /* 減去 header 和 footer 的高度 */
    }
    
    .appointment-modal-footer {
        padding: 14px 20px 40px; /* 增加底部空間，避免被瀏覽器 UI 遮蔽 */
        flex-direction: column;
        flex-shrink: 0;
        gap: 10px;
    }
    
    .appointment-cancel-btn,
    .appointment-submit-btn {
        width: 100%;
        padding: 14px 24px;
    }
    
    /* 提醒文字區域在手機上的調整 */
    .appointment-reminder {
        padding: 14px;
        margin-bottom: 16px;
    }
    
    .reminder-content {
        font-size: 13px;
        line-height: 1.5;
    }
    
    /* 地址資訊在手機上的調整 */
    .appointment-address {
        padding: 14px;
        margin-top: 16px;
    }
    
    .address-title {
        font-size: 13px;
    }
    
    .address-text {
        font-size: 13px;
    }
    
    .address-map-link {
        font-size: 12px;
    }
    
    .address-icon,
    .map-icon {
        width: 16px;
        height: 16px;
    }
}

/* 小手機 (480px 以下) */
@media (max-width: 480px) {
    .appointment-btn {
        right: 70px; /* 更小的螢幕進一步向左調整 */
        padding: 6px 12px; /* 稍微縮小按鈕 */
    }
    
    .appointment-btn span {
        font-size: 12px; /* 縮小文字 */
    }
    
    .appointment-modal {
        padding: 10px;
        padding-top: 2vh;
    }
    
    .appointment-modal-content {
        width: 100%;
        height: 96vh;
        border-radius: 12px 12px 0 0;
        max-height: 96vh;
        margin: 0;
    }
    
    .appointment-modal-header {
        padding: 16px 18px 12px;
    }
    
    .appointment-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .appointment-modal-body {
        padding: 16px 18px;
        max-height: calc(96vh - 120px); /* 減去 header 和 footer 的高度 */
    }
    
    .appointment-modal-footer {
        padding: 12px 18px 35px; /* 增加底部空間，避免被瀏覽器 UI 遮蔽 */
    }
    
    .appointment-cancel-btn,
    .appointment-submit-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    /* 表單元素在小螢幕上的調整 */
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    /* 提醒文字區域在小螢幕上的調整 */
    .appointment-reminder {
        padding: 12px;
        margin-bottom: 14px;
    }
    
    .reminder-content {
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* 地址資訊在小螢幕上的調整 */
    .appointment-address {
        padding: 12px;
        margin-top: 14px;
    }
    
    .address-title {
        font-size: 12px;
    }
    
    .address-text {
        font-size: 12px;
    }
    
    .address-map-link {
        font-size: 11px;
    }
    
    .address-icon,
    .map-icon {
        width: 14px;
        height: 14px;
    }
}

/* 超小螢幕 (360px 以下) */
@media (max-width: 360px) {
    .appointment-modal {
        padding: 5px;
        padding-top: 1vh;
    }
    
    .appointment-modal-content {
        height: 98vh;
        border-radius: 8px 8px 0 0;
    }
    
    .appointment-modal-header {
        padding: 14px 16px 10px;
    }
    
    .appointment-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .appointment-modal-body {
        padding: 14px 16px;
        max-height: calc(98vh - 110px);
    }
    
    .appointment-modal-footer {
        padding: 10px 16px 30px; /* 增加底部空間，避免被瀏覽器 UI 遮蔽 */
    }
    
    .appointment-cancel-btn,
    .appointment-submit-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .appointment-reminder {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .reminder-content {
        font-size: 11px;
    }
    
    /* 地址資訊在超小螢幕上的調整 */
    .appointment-address {
        padding: 10px;
        margin-top: 12px;
    }
    
    .address-title {
        font-size: 11px;
    }
    
    .address-text {
        font-size: 11px;
    }
    
    .address-map-link {
        font-size: 10px;
    }
    
    .address-icon,
    .map-icon {
        width: 12px;
        height: 12px;
    }
}

/* 橫向手機 (高度小於 500px) */
@media (max-height: 500px) and (orientation: landscape) {
    .appointment-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 2vh;
    }
    
    .appointment-modal-content {
        max-height: 95vh;
        width: 90%;
    }
    
    .appointment-modal-header {
        padding: 12px 20px 8px;
    }
    
    .appointment-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .appointment-modal-body {
        padding: 12px 20px;
        max-height: calc(95vh - 100px);
    }
    
    .appointment-modal-footer {
        padding: 8px 20px 25px; /* 增加底部空間，避免被瀏覽器 UI 遮蔽 */
        flex-direction: row;
        gap: 10px;
    }
    
    .appointment-cancel-btn,
    .appointment-submit-btn {
        flex: 1;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .appointment-reminder {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .reminder-content {
        font-size: 12px;
        line-height: 1.3;
    }
    
    /* 地址資訊在橫向手機上的調整 */
    .appointment-address {
        padding: 10px;
        margin-top: 12px;
    }
    
    .address-title {
        font-size: 12px;
    }
    
    .address-text {
        font-size: 12px;
    }
    
    .address-map-link {
        font-size: 11px;
    }
    
    .address-icon,
    .map-icon {
        width: 14px;
        height: 14px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* 極小高度螢幕 (高度小於 400px) */
@media (max-height: 400px) {
    .appointment-modal {
        padding: 2px;
        padding-top: 1vh;
    }
    
    .appointment-modal-content {
        max-height: 98vh;
    }
    
    .appointment-modal-header {
        padding: 8px 16px 6px;
    }
    
    .appointment-modal-header h3 {
        font-size: 1rem;
    }
    
    .appointment-modal-body {
        padding: 8px 16px;
        max-height: calc(98vh - 80px);
    }
    
    .appointment-modal-footer {
        padding: 6px 16px 20px; /* 增加底部空間，避免被瀏覽器 UI 遮蔽 */
    }
    
    .appointment-cancel-btn,
    .appointment-submit-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .appointment-reminder {
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .reminder-content {
        font-size: 11px;
        line-height: 1.2;
    }
    
    /* 地址資訊在極小高度螢幕上的調整 */
    .appointment-address {
        padding: 8px;
        margin-top: 8px;
    }
    
    .address-title {
        font-size: 10px;
    }
    
    .address-text {
        font-size: 10px;
    }
    
    .address-map-link {
        font-size: 9px;
    }
    
    .address-icon,
    .map-icon {
        width: 10px;
        height: 10px;
    }
    
    .form-group {
        margin-bottom: 8px;
    }
    
    .form-group label {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* 子選單樣式 */
.submenu-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
    padding: 20px 0;
}

.submenu-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: none;
}

/* 只在首頁顯示子選單背景 */
body.index-page .submenu-container::before {
    display: block;
    background: linear-gradient(to bottom, 
        rgba(26, 55, 93, 0.2) 0%,
        rgba(26, 55, 93, 0.8) 10%,
        rgba(26, 55, 93, 1) 50%,
        rgba(26, 55, 93, 0.8) 90%,
        rgba(26, 55, 93, 0.2) 100%);
}

.submenu-container.show {
    opacity: 1;
    visibility: visible;
}

.submenu-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 40px;
    justify-content: center;

}

.submenu-section {
    flex: 1;
    padding: 0 20px;
    align-items: center;
}
.submenu-sub-section{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    white-space: nowrap;
    padding: 0 0 30px;
}
.submenu-section h3 {
    font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
    margin: 1rem 1.5rem;
}
.submenu-content .mobile-menu-container-item-tag{
    border-bottom: none;
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 0;
    line-height: 1;
}

.submenu-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.submenu-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    padding: 5px 15px;
    font-size: 16px;
}

.submenu-links a:hover {
    color: rgba(255,255,255,0.7);
}

@media (max-width: 991.98px) {
    .submenu-container {
        display: none;
    }
}

.menu-container a::before {
    pointer-events: none;
}

/* 確保主菜單標題不顯示箭頭 */
.menu-container a::after {
    content: none !important;
}
