/* 移除不存在的字體引用，使用系統字體和Google Fonts */

:root {
    --primary-color: #22315C;
    --secondary-color: #8C8C8B;
    --background-color: #F6F6F6;
    --background-color-fabric: #e4e4e47d;
    --white: #ffffff;
}

/* iOS 專用載入樣式 */
.ios-loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 200px;
}

.ios-loading-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: bounce 2s infinite;
}

.ios-loading-message {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.ios-loading-tip {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

.ios-retry-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ios-retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ios-retry-btn:active {
    transform: translateY(0);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* iOS 懶載入樣式 */
.ios-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px dashed #dee2e6;
}

.ios-video-placeholder:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.ios-placeholder-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}

.ios-placeholder-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.ios-placeholder-tip {
    font-size: 14px;
    color: var(--secondary-color);
    line-height: 1.4;
}

.ios-lazy-loading {
    position: relative;
    overflow: hidden;
}

.ios-lazy-loading.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 影片彈窗樣式 - 全黑滿版設計 */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: #000;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* 防止頁面滾動 */
    touch-action: none;
    -webkit-overflow-scrolling: touch;
}

/* 彈窗顯示時鎖定頁面滾動 */
.video-modal.show {
    display: block;
    opacity: 1;
}

/* 當彈窗顯示時，鎖定 body 滾動 */
body.modal-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

/* 防止 iOS Safari 彈跳效果 */
body.modal-open {
    -webkit-overflow-scrolling: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.video-player-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-player {
    border: none;
    background: #000;
}

/* 移除影片資訊區塊 */
.modal-video-info {
    display: none;
}

.modal-video-title {
    display: none;
}

.modal-video-description {
    display: none;
}

/* 響應式設計 - 極簡滿版 */
@media (max-width: 1200px) {
    .modal-content {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .video-thumbnail {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    /* 播放按鈕已移除 */
    
    .video-duration {
        font-size: 11px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .video-thumbnail {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    /* 播放按鈕已移除 */
    
    .video-duration {
        font-size: 10px;
        padding: 2px 5px;
    }
}

/* 直式影片 - 上下滿版，左右置中 */
.video-modal.vertical-video .youtube-player {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: cover !important;
    object-position: center !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
}

/* 橫式影片 - 左右滿版，上下置中 */
.video-modal.horizontal-video .youtube-player {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: cover !important;
    object-position: center !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
}

/* 確保沒有白邊 */
.video-modal * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 邊界提示樣式 */
.video-boundary-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-boundary-toast.show {
    opacity: 1;
}

/* iPhone 播放按鈕樣式 */
.ios-play-button-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.ios-play-button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ios-play-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.ios-play-button:active {
    transform: scale(0.95);
}

.play-icon {
    font-size: 24px;
    color: white;
    margin-bottom: 4px;
}

.play-text {
    font-size: 12px;
    color: white;
    font-weight: 600;
}

.ios-instructions {
    margin-top: 20px;
    text-align: center;
}

.ios-instructions p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

/* 橫向手機適配 - 橫式影片左右滿版 */
@media (max-width: 768px) and (orientation: landscape) {
    .video-modal.horizontal-video .youtube-player {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        object-position: center;
    }
}

/* 直式手機適配 - 直式影片上下滿版 */
@media (max-width: 768px) and (orientation: portrait) {
    .video-modal.vertical-video .youtube-player {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        object-position: center;
    }
}

/* 高解析度螢幕適配 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .video-thumbnail img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 邊界提示響應式設計 */
@media (max-width: 768px) {
    .video-boundary-toast {
        font-size: 14px;
        padding: 10px 20px;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .video-boundary-toast {
        font-size: 12px;
        padding: 8px 16px;
        border-radius: 4px;
    }
}

/* 混合排列樣式 */
.video.mixed {
    width: 100%;
    margin-bottom: 20px;
}

.video-wrapper.mixed {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.video-wrapper.mixed .video-thumbnail {
    width: 100%;
    height: 100%;
}

/* 混合排列響應式網格 */
.horizontal-videos {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
    margin-bottom: 20px;
}

/* 混合排列影片樣式 */
.video.mixed {
    width: 100%;
    margin-bottom: 0;
}

.video-wrapper.mixed {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper.mixed .video-thumbnail {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .horizontal-videos {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .horizontal-videos {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .horizontal-videos {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
}

/* 觸控設備優化 */
@media (hover: none) and (pointer: coarse) {
    .video-thumbnail:hover {
        transform: none;
    }
    
    .video-thumbnail:active {
        transform: scale(0.98);
    }
    
    .play-button {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .modal-close {
        background: rgba(0, 0, 0, 0.9);
    }
}

/* 影片封面樣式 */
.video-thumbnail {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f8f9fa;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* 播放按鈕已移除 */

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.video-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 60%,
        rgba(0, 0, 0, 0.3) 100%
    );
    border-radius: 12px;
}

/* 載入狀態 */
.video-thumbnail.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

.video-thumbnail.loading .play-button {
    display: none;
}

/* 錯誤狀態 */
.video-thumbnail.error {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    text-align: center;
}

/* 預設縮圖樣式 */
.fallback-thumbnail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.fallback-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.fallback-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fallback-subtitle {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 500;
    border: 2px dashed #dee2e6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.video-thumbnail.error .play-button {
    display: none;
}

.video-thumbnail.error::before {
    content: "⚠️";
    font-size: 32px;
    margin-bottom: 8px;
}

.video-thumbnail.error::after {
    content: "影片載入失敗";
    font-size: 14px;
    text-align: center;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body{
    
    margin: 0;
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
    color: var(--primary-color);
    letter-spacing: 2.5px;
    box-sizing: border-box;
    
}

body:lang(en) {
    font-family: "Faculty Glyphic", sans-serif;
}
body:lang(zh-TW) {
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
}
.cn{
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
}
:lang(en),
.en, 
.english{
    font-family: "Faculty Glyphic", sans-serif;
  }
/*--------header--------------*/
header {
    width: 100%;
    height: 80px;
    display: block;
    box-sizing: border-box;
    position: relative;
}
.footer{
    width: 100%;
    min-height: 200px;
    display: block;
    background-color: var(--background-color);
}
.shopTop {
    width: 100%;
    height: auto;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}    
.shopTop::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}
.shopTop-wrap{
    position: relative;
    width: 100%;
    height: auto;
    background-color: var(--background-color-fabric);
    border-top: 1px solid var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}
.shopTop.index{
    display: flex;
    justify-content: center;
    margin: 0 auto;
    flex-direction: column;
    overflow-x: auto;
}
.shopTopmini{
    width: calc(100% - 40px);
    height: auto;
    display: block;
    background-color: var(--background-color-fabric);
    overflow-x: auto;
    margin: 0 auto;
    border-radius: 10px;
}
.shopTop-stW{
    width: 100%;
    height: 100%;
    max-width: 1550px;
    display: flex;
    justify-content: flex-start;
    margin: 0 auto;
    box-sizing: border-box;
}

.shopMain{
    position: relative;
    margin-top: 80px;
    width: 100%;
    height: auto;
    display: block;
}
.shopbtn{
    width: 100%;
    height: auto;
    display: block;
    background-color: var(--background-color-fabric);
    padding: 30px 0;
    border-top: 1px solid var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}
.stW{
    width: 100%;
    height: 100%;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
}
.stWf{
    display: flex;
    padding: 0 60px;
}
.shopTop .stW{
    width: 100%;
    max-width: 1920px;
    display: block;
    margin: 0;
    padding: 20px 0 40px;
    justify-content: center;
    flex-shrink: 0;
}
.shopTop .stWf{
    flex-shrink: 0;
    padding: 0 12px;
}
.shopTop .stWf .sMr{
    width: 100%;
}
.shopTop-wrap .shopTop-title{
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-align: start;
    padding: 20px 0 0;
}
/* fullscreen-menu */
.hbg{
    cursor: pointer;
    margin-left: auto;
    margin-left: 80px;
    display: flex;
    align-items: center;
    stroke-width: 2;
    transition: all .2s linear;
}
.hbg svg path{
    stroke: var(--primary-color);
}
.hbg:hover{
    opacity: 0.8;
}
.hbg.active svg path {
    stroke: var(--secondary-color);
    transition: stroke 0.3s ease;
}

.menu {
    position: absolute;
    top: 80px;
    left: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    width: 100vw;
    max-width: 100%;
    height: 0;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, height 0.3s ease;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--secondary-color);
}

.menu.show {
    opacity: 1;
    visibility: visible;
    height: auto;
}

.menustW {
    width: 100%;
    height: 100%;
    max-width: 1550px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0 auto;
    padding: 30px 0 20px;
    box-sizing: border-box;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.upper{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}
.upper .stW{
    flex-shrink: 0;
    margin: 0 10px 0 0;
}
.upper.mbl .stW{
    margin: 0 20px 0 0;
}
.upper .stWf{
    padding: 0 20px!important;
}
.upper .stWf.mbl{
    padding: 0!important;
}
.upper .stW.phone{
    margin: 0 0 0 10px!important;
}
.upper .stW.phone .stWf{
    padding: 0 0 0 10px!important;
}
.upper .sMrGrid{
    gap: 20px!important;
}
.pagination-wrap-mbl{
    display: flex;
    justify-content: center;
}
.pagination-mbl{
    display: flex;
    align-self: center;
}
.pagination-mbl-bullet{
    width: 8px;
    height: 8px;
    border: 1px solid var(--primary-color);
    margin: 0 5px;
    border-radius: 50%;
}
.pagination-mbl-bullet.on{
    background-color: var(--primary-color);
}
.sMrGrid.mbl.btn{
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 10px;
}
.sMrGrid.mbl.btn .smrT{
    align-items: flex-start;
    
}
.stWf.mbl .smrT, .upper .smrT,.stWf.pcmenu.btn .smrT{
    align-items: flex-start;
}
.menustW::-webkit-scrollbar {
    width: 6px;
}
.menustW::-webkit-scrollbar-track {
    background: var(--background-color);
}
.menustW::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}
.menustW::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
.menu .sMrGrid{
    height: auto;
    padding: 0px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin: 20px 0;
    gap: 16px;
}
.menu .sMrGrid.pcmenu{
    margin: 0;
}
.stWf.pcmenu.btn{
    margin: 24px 0 4px;
    position: relative;
    padding: 0 20px;
}
.stWf.pcmenu.btn a{
    transition: all .25s linear;
}
.stWf.pcmenu.btn .title{
    color: var(--primary-color)!important;
}

.stWf.pcmenu.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background-color: var(--secondary-color);
}
.stWf.pcmenu.btn.left::before {
    left: 0;
}

.stWf.pcmenu.btn .sMrGrid{
    margin: 16px 0 0;
}
.stWf.pcmenu .topmenuL{
    min-height: 0;
}
.sMr{
    flex: 1;
    width: calc(100% - 250px);
    display: block;
}
.sMr.main{
    margin-bottom: 20px;
    width: 100%;
}
.sMrGrid{
    width: 100%;
    height: auto;
    padding: 0px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
    box-sizing: border-box;
    flex-shrink: 0;
}
.sMrGrid.three{
    grid-template-columns: repeat(3, 1fr);
}
.topCategory {
    width:100%;
    height: auto;
    box-sizing: border-box;
    margin:0;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-decoration: none; 
    color: inherit;
}
.topCategory .smrphoto {
    width: 100%;
    height: auto;
    display: flex;
    aspect-ratio: 1.8 / 1;
    justify-content: center;
    align-items: center;
    background-color: #c2eaef;
}
.topCategory .smrPhoto img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    transition: all .25s linear;
}
.topCategory:hover .smrPhoto img:hover, .topCategory:hover, 
.topCategory.blocknews-top:hover
{
    opacity: 0.8;
}
.topCategory.more {    
    align-items: center;
}
.topmenuL{
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none; 
    color: inherit;
}

.topmenuL .topCategory .smrPhoto img {
    aspect-ratio: 1 / 1;
    max-height: 373px;
}
.topCategory .title {
    font-size: 16px;
    padding-top: 4px;
    font-weight: 400;
    color:#8C8C8B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shopTopmini .stW{
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 10px 20px 20px 20px;
    box-sizing: border-box;
}
.miniCategory{
    display: flex;
    flex-direction: row;
    list-style-type: none;
    padding: 0;
    font-weight: 600;
    font-size: 16px;
    line-height: 3;
    margin:0;
    flex-wrap: wrap;
    gap: 0px 30px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
.miniCategory::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}
.miniCategory li a span{
    font-family: "Faculty Glyphic";
}
.miniCategory a{
    text-decoration: none;
    color: var(--secondary-color);
    transition: all .25s linear;
}
.miniCategory a:first-child {
    line-height: auto; 
}
.miniCategory a.current-page {
    color: var(--primary-color);
    font-weight: 600;
}
.miniCategory a:hover {
    color: var(--primary-color);
}

/*header*/
.stW .header {
    padding: 20px;
    display: block;
}
.header-nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}
.nav-left{
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.nav-right{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
    list-style-type: none;
}
.nav-left a img{
    width: 24px;
    height: 24px;
    margin-right: 8px;
}
.nav-right a svg{
    stroke: var(--primary-color);
    stroke-width:2;
}
.nav-left ul{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
    gap: 80px;
}
.nav-left ul li{
    display: flex;
    align-items: center;
}
.nav-left a{
    display: flex;
    align-items: center;
}
.header-logo img{
    width: 28px;
    height: 28px;
    margin-right: 4px;
    margin-bottom: 2px;
}
.nav-right a{
    margin-left: 80px;
    display: flex;
    align-items: center;
}
.nav-right ul li a:hover{
    opacity: 0.8;
}
.nav-right ul{
    display: flex;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nav-right ul li{
    display: inline-block;
    padding: 24px 0;
}

.nav-left a, .nav-right a{
    text-decoration: none;
    color: inherit;
    font-size: 18px;
    font-weight: 600;
    transition: all .2s linear;
    position: relative;
}

.header-menu{
    margin-right: 0!important;
}
.header-search{
    cursor: pointer;
}
.cartnum{
    position: absolute;
    top: 10px;
    right: -6px;
    width: 15px;
    height: 15px;
    line-height: 15px;
    color: #fff;
    font-size: 12px;
    text-align: center;
    font-weight: 400;
    letter-spacing: -1px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transition: all .3s linear;
    padding-bottom: 2px;
}
.cartnum-count{
    line-height: 15px;
    color: #fff;
    font-size: 11px;
    text-align: center;
    font-weight: 400;
    letter-spacing: -1px;
    margin-bottom: 1px;
}
/**/
.heading{
    width: 100%;
    display: flex;
    flex-direction: column;   
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin: 60px 0;
    gap: 14px;
}
.heading p{
    font-size: 30px;
    letter-spacing: 0.4rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}
.heading-category{
    display: flex;
    flex-direction: row;
    gap: 10px 30px;
    color: var(--secondary-color);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.heading-category a{
    font-size: 20px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all .25s linear;
    white-space: nowrap;
}
.heading-category a.current-page{
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}
.heading-category a:hover{
    color: var(--primary-color);
}
.current-page.en{
    padding-top: 6px;
}
.crumb{
    display: flex;
    align-items: center;
    gap: 8px;
}
.pagetitle {
    font-size: 24px;
    font-weight: 600;
    margin: 10px 0 20px;
}
.pagetitle.x{
    margin: 0;
}
.shopTop .sMrGrid{
    height: auto;
    padding: 0px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 20px;
}
.stWf.allr .sMrGrid{
    grid-template-columns: repeat(5, 1fr);
}
.shopTop-pagi{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    max-width: 1590px;
    width: calc(100% - 40px);
    align-items: center;
    box-sizing: border-box;
    opacity: 0;
    transition: all .25s linear;
}
.linee{
    width: 100%;
    height: 1px;
    background-color: var(--secondary-color);
    margin: 80px 0;
}
.menu .shopTop-pagi{
    top: 37.5%;
    max-width: 1540px;
    margin: 0;
}
.shopTop-pagi-prev, .shopTop-pagi-next{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ffffff70;
    border: 1px solid #FFF;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    transition: all .25s linear;
}
.shopTop-pagi-prev svg, .shopTop-pagi-next svg{
    width: 20px;
    height: 20px;
}
.shopTop-pagi-prev svg path, .shopTop-pagi-next svg path{
    stroke-width: 1.6;
}
.shopTop-wrap.index:hover .shopTop-pagi, .mobile-menu-category:hover .shopTop-pagi{
    opacity: 1;
}
.shopTop-pagi-prev:hover, .shopTop-pagi-next:hover{
    background-color: #fff;
}
.smrProduct {
    width:100%;
    height: auto;
    box-sizing: border-box;
    margin: 0 0 20px 0;
    padding: 0;
    position: relative;
    display: grid;
    align-items: start;
    text-decoration: none; 
    color: inherit;
    grid-template-rows: 65% 35%;
}

.smrProduct .smrPhoto{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1.5/1;
    overflow: hidden;
}
.smrProduct .smrPhoto img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    aspect-ratio: 1.5/1;
    object-fit: cover;
    transition: all 0.3s ease-in-out;

    -webkit-mask-image: url('/img/svg/de-fabric/de-fabric-mask-medias.svg');
    -webkit-mask-size: cover;
    -webkit-mask-position: center;
    mask-image: url('/img/svg/de-fabric/de-fabric-mask-medias.svg');
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
}
@media (min-width: 1801px){
    .smrProduct .smrPhoto img{
        -webkit-mask-image: url('/img/svg/de-fabric/de-fabric-mask.svg');
        mask-image: url('/img/svg/de-fabric/de-fabric-mask.svg');
    }
}

.sMrGrid.two .smrProduct .smrPhoto img{
    aspect-ratio: unset;
    -webkit-mask-image: url('/img/svg/de-fabric/de-fabric-mask-two.svg');
    mask-image: url('/img/svg/de-fabric/de-fabric-mask-two.svg');
}

.smrProduct:hover .smrPhoto img {
    width: 100%;
    aspect-ratio: 1.5 / 1;
    display: block;
    -webkit-mask-image: url('/img/svg/fabric-mask.svg');
    -webkit-mask-size: cover;
    -webkit-mask-position: center;
    mask-image: url('/img/svg/fabric-mask.svg');
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    animation: fabricFloat 3s ease-in-out infinite;
}
@media (max-width: 1800px){
    .smrProduct:hover .smrPhoto img{
        -webkit-mask-image: url('/img/svg/fabric-mask-medias.svg');
        mask-image: url('/img/svg/fabric-mask-medias.svg');
    }
}

.sMrGrid.two .smrProduct:hover .smrPhoto img{
    aspect-ratio: unset;
    -webkit-mask-image: url('/img/svg/fabric-mask-two.svg');
    mask-image: url('/img/svg/fabric-mask-two.svg');
}
.sMrGrid.two .smrProduct .smrPhoto{
    aspect-ratio: 1/1.5;
}
.sMrGrid.two .smrProduct .smrPhoto img{
    aspect-ratio: 1/1.5;
    max-width: auto;
}
@keyframes fabricFloat {
    0% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-2px) scale(1.002);
    }
    50% {
        transform: translateY(-4px) scale(1.0);
    }
    75% {
        transform: translateY(-2px) scale(1.002);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

.smrT{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;   
    align-items: center;
}
.smrT.title{
    display: flex;
    align-items: center;
}

.sMl{
    width: 250px;
    height: auto;
    display: inline-block;
    margin: 0 20px 0 0;
    padding: 0;
}
.shopbtn.news{
    background-color: transparent;
    border-top: none;
    border-bottom: none;
}
.news-grid {
    flex: 1;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.news-grid.page{
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.stWf.mbl .news-grid{
    margin-top: 0px;
    margin-bottom: 24px;
}
.news-item{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.stWf.mbl .news-item a{
    padding: 16px 0;
}
.page .news-item a{
    background-color: transparent;
    box-shadow: none;
    white-space: nowrap;
}
.news-item a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all .25s linear;
    gap: 8px;
}
.news-item a p{
    font-size: 14px;
    color: var(--secondary-color);  
    margin: 0;
    text-align: center;
}
.news-item a:hover .blocknews-top {
    opacity: 0.7;
}
.news-item .blocknews-top p{
    font-size: 16px;
}
.dropdown {
    position: relative;
}
/* 排序下拉選單樣式 */
.sort-content{
    display: flex;
    justify-content: flex-end;
    margin: 32px 0;
}
.sort-select-wrapper {
    position: relative;
    min-width: 150px;
}

.sort-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    border-bottom: 1px solid transparent;
    border-top: 1px solid transparent;
    padding: 8px 10px 8px 15px;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    letter-spacing: 0.1rem;
    font-weight: 400;
    color: var(--secondary-color);
    outline: none;
    transition: all 0.2s linear;
}

.sort-select:hover {
    color: var(--primary-color);
}
.sort-select:hover + .sort-select-arrow svg path {
    stroke: var(--primary-color);
}

.sort-select-arrow {
    position: absolute;
    right: 15px;
    top: 45%;
    transform: translateY(-50%);
    pointer-events: none;
}

.sort-select-arrow svg {
    transition: transform 0.2s;
}

.sort-select-arrow svg path {
    stroke: var(--secondary-color);
}

@media (max-width: 1023.98px){
    .sort-content{
        margin: 8px 0;
    }
}
.sMl.main{
    width: 100%;
    max-width: 1510px;
    margin: 0 auto;
    padding: 0 0 20px 0;
}
.newsblock-list{
    list-style-type: none;
    padding: 0;
    margin-bottom: 40px;
}
.newsblock{
    height: auto;
    display: block;
    background-color: var(--background-color-fabric);
    transition: all .25s linear;
    margin-bottom: 20px;
}
.newsblock:hover{
    opacity: 0.9;
}
.newsblock img{
    width: 100%;
    height: auto;
    display: block;
}
.leftCategory-wrapper{
    display: block;
}
.leftCategory-title{
    font-size: 18px;
    font-weight: 600;
    margin: 45px 0 28px;
}
.leftCategory{
    border-top: 1px solid var(--background-color);
    list-style-type: none;
    padding: 0;
    font-size: 16px;
    line-height: 3;
    margin: 0;
}
.leftCategory li{
    border-bottom: 1px solid var(--background-color);
    transition: all .25s linear;
    position: relative;
    padding-left: 20px;
}

.leftCategory li::before {
    content: "-";
    position: absolute;
    left: 0px;
    color: var(--secondary-color);
}

.leftCategory a.current-page li::before {
    color: var(--primary-color);
}

.leftCategory a{
    text-decoration: none;
    color: var(--secondary-color);
    transition: all .25s linear;
}
.leftCategory a:first-child {
    line-height: auto; 
}
.leftCategory a.current-page {
    color: var(--primary-color);
}
.leftCategory a:hover {
    color: var(--primary-color);
}
.leftCategory li:hover {
    color: var(--primary-color);
    background-color: var(--background-color-fabric);
}
/* 僅為普通類別的列表項添加hover效果 */
ul.leftCategory:not(.news) > li:hover{
    background-color: var(--background-color);
}
.leftCategory.news li::before{
    display: none;
}
.leftCategory.news{
    margin-top: 24px;
    line-height: 2;
    border-top: none;
}
.leftCategory.news a{
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
}
.leftCategory.news li{
    padding: 0;
    border-bottom: none;
}
.leftCategory.news li:hover{
    background-color: transparent;
}
.blocknews-top{
    display: flex;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    gap: 8px;
}
.blocknews-top p{
    color: var(--primary-color)!important;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    transition: all .2s linear;
}
.blocknews-top img{
    width: 24px;
    height: 24px;
}
.leftCategory.news a p{
    font-size: 14px!important;
    color: var(--secondary-color);  
    margin: 0;
}
.leftCategory.news a:hover .blocknews-top p{
    opacity: 0.7;
}

@media (max-width:1574.98px) {
    .stWf{
        padding: 0;
    }
    .sMr.main {
        padding: 0 12px;
    }

    .shopbtn .stWf{
        padding: 0 20px!important;
    }
}
@media (min-width: 1241px) {
    .shopTopmini {
        display: none;
    }
    .pagetitle.pcmenu{
        display: none;
        margin: 16px 0;
    }
    .stW.phone{
        display: none;
    }
    .stWf.mbl{
        display: none;
    }
    .menu {
        height: auto;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
        pointer-events: none;
    }
    
    .menu.show {
        transform: translateY(0);
        pointer-events: auto;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 12px 0px;
    }
    
    /* 修改hover相关样式 */
    .hbg:hover + .menu {
        display: block;
        opacity: 1;
        visibility: visible;
        height: auto;
    }
    
    .menu:hover {
        display: block;
        opacity: 1;
        visibility: visible;
        height: auto;
    }
    
    .menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        z-index: 1000;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 12px 0px;
    }
    .stWf.pcmenu.btn.mbl{
        display: none;
    }
    .pagination-wrap-mbl{
        display: none;
    }
    .sMrGrid.mbl.btn{
        display: none;
    }
}
@media (max-width: 1240.98px) {
    .shopTop .stW{
        max-width: 800px;
        padding: 20px 0;
    }
    .shopTop-pagi{
        display: none;
    }
    .stWf.allr .sMrGrid{
        grid-template-columns: repeat(auto-fill, minmax(190px, 2fr));
    }
    .stW.pc{
        display: none;
    }
    .stW.phone{
        display: block;
    }
    .stWf.pcmenu{
        display: none;
    }
    .nav-left ul li:nth-child(2),
    .nav-left ul li:nth-child(3) {
        display: none;
    }
    
    .stWf.pcmenu.btn{
        margin: 0;
        display: none;
    }
    .stWf.pcmenu.btn .title{
        font-size: 16px!important;
    }
    .stWf.pcmenu.btn::before{
        content: none;
    }
    .stWf.pcmenu.btn .topCategory{
        padding-bottom: 16px;
        border-bottom: 1px solid var(--secondary-color);
    }
    .stWf.pcmenu.btn .smrT{
        justify-content: space-between;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .stWf.pcmenu.btn .smrT svg{
        width: 22px;
        height: 10px;
    }
    .stWf.pcmenu.btn .sMrGrid{
        grid-template-columns: repeat(1, 1fr);
    }
    .dropdown-btn span:first-of-type {
        display: none;
    }
    .sMr{
        width: 100%!important;
    }
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: #fff;
    }
    .menu {
        position: fixed;
        height: calc(100vh - 80px);
        overflow-y: hidden;
        border-bottom: none;
    }
    
    .menu.show {
        height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .menustW {
        min-height: 100%;
        overflow-y: visible;
        padding: 20px;
    }
    .sMrGrid {
        grid-template-columns: repeat(2, 1fr);
    }
    .menu .sMrGrid{
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .news-grid.page{
        grid-template-columns: repeat(1, 1fr);
    }
    .news-item a{
        padding: 16px;
    }
}

@media (max-width: 1119.98px){
    .sMrGrid,.sMrGrid.three{
        grid-template-columns: repeat(1, 1fr)!important;
        gap: 40px 16px;
    }
    .sMrGrid.topmenu{
        grid-template-columns: repeat(2, 1fr)!important;
    }
    .sMrGrid:not(.two, .topmenu){
        margin: 0 0 30px 0;
    }
    .smrProduct{
        grid-template-rows: none;
    }
    .smrProduct .smrPhoto{
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        aspect-ratio: 1.5/1;
        overflow: hidden;
    }
    .smrProduct .smrPhoto img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: 1.5/1;
    }
    .sMrGrid.two .smrProduct .smrPhoto{
        aspect-ratio: 1.5/1;
    }
    .sMrGrid.two .smrProduct .smrPhoto img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
@media (max-width: 767.98px) {
    .nav-right a,.hbg{
        margin-left: 24px;
    }
    .stWf.allr .sMrGrid{
        grid-template-columns: repeat(auto-fill, minmax(190px, 2fr));
    }
    .shopbtn .stWf {
        flex-direction: column; 
        gap: 20px; 
    }
    .shopbtn .sMl {
        width: 100%; 
    }
    .news-grid.page{
        grid-template-columns: repeat(1, 1fr)!important;
    }
    .news-item a{
        padding: 16px;
    }
    .shopbtn .sMr {
        margin-left: 0;  
        width: 100%;  
        display: block;
    }
    .menu .sMrGrid{
        gap: 24px 20px;
    }
    .heading{
        margin: 30px 0;
    }
    .heading p{
        font-size: 20px;
    }
    .heading-category a{
        font-size: 16px;
    }
    .sort-select{
        font-size: 14px;
    }
    .pagetitle {
        font-size: 18px;
    }
    .shopTopmini .stW {
        padding: 10px 20px 20px;
    }
}




.smrProduct .title {
    font-size: 16px;
    font-weight: 400;
    color: var(--primary-color);
    max-width: 100%;
    text-align: center;
    line-height: 1.5;
}
.smrProduct .title.usebox{
    padding: 8px 0 0;
    font-size: 14px;
    color: #8C8C8B;
    display: flex;
    flex-direction: column;
    gap: 4px;
    white-space: nowrap;
}
.usebox .use{
    display: flex;
    align-items: center;
    gap: 8px;
}
.usebox .use svg{
    width: 18px;
    height: 18px;
}
.usebox .use svg path{
    fill: var(--secondary-color);
}
.usebox .use img{
    width: 18px;
    height: 18px;
}
.smrProduct .price {
    font-size: 16px;
    font-family: "Faculty Glyphic";
    font-weight: 400;
    color: var(--primary-color);
    margin: 14px 0;
}


.pageNumberbox{
    width: 100%;
    display:flex;
    justify-content: center;
    margin: 40px 0 0;
}
.pageNumber{
    display: flex;
    padding-left: 0;
    font-size: 18px;
    gap: 22px;
    list-style-type: none;
    color: var(--secondary-color);
}
.pageNumber li{
    list-style: none;
    margin:0;
}
.pageNumber a{
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: all .25s linear;
}
.pageNumber a.current-page{
    color: var(--primary-color);
    border-bottom: 1px solid currentColor; 
}
.pageNumber a:hover {
    color: var(--primary-color);
}
.pageNumber a.arrow-icon path {
    stroke: var(--secondary-color); 
}
.pageNumber a svg path {
    transition: stroke 0.3s ease;
}
    .pageNumber a:hover svg path {
    stroke: var(--primary-color);
}

.shopbtn .stW{
    max-width: 1550px;
}
.shopbtn .stWf {
    display: flex;  
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0;
}
.shopbtn .box{
    width:100%;
    max-width: 1240px;
    display:flex;
    justify-content: flex-end;
    align-items: center;
    margin: 40px 0 0;
    gap: 10px;
    text-decoration: none;
    transition: all .25s linear;
}
.shopbtn .box div{
    font-size: 16px;
    color: var(--secondary-color);
    transition: all .25s linear;
    display: flex;
    padding-left: 0;
    margin: 0;
    font-size: 18px;
}
.shopbtn .box:hover{
    opacity: 0.7;
}
.shopbtn .sMr{
    width: calc(100% - 250px);
    height: auto;
    padding: 0px;
    display: block;
}
.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}
/*-------------media--------------*/
@media (max-width: 767.98px) {
    .sMr{
        width: 100%!important;
    }
    .shopbtn .sMl {
        width: 100%; 
    }

    .shopbtn .sMr {
        margin-left: 0;  
        width: 100%;  
        display: block;
    }
    .menu .sMrGrid{
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .pagetitle {
        font-size: 18px;
    }
    
    .shopTopmini .stW {
        padding: 10px 20px 20px;
    }
    .pageNumberbox{
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .topCategory .title{
        font-size: 14px;
    }
    .smrT svg{
        width: 18px;
        height: 7.6px;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr)!important;
    }
    .news-grid .blocknews-top {
        font-size: 13px;
    }
    .news-item a p{
        font-size: 12px;
    }
}
@media (max-width: 450.98px) {
    .news-grid {
        grid-template-columns: repeat(1, 1fr)!important;
    }
    .smrmore{
        font-size: 18px;
    }
    .smrmore svg{
        width: 30px;
        height: 13.5px;
    }
}


.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-overlay.show {
    display: block;
    opacity: 1;
}

.search-interface {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-interface.show {
    display: block;
    opacity: 1;
}

.search-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: var(--white);
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-input-container {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid var(--secondary-color);
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background: var(--background-color);
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.search-btn svg path {
    stroke: var(--secondary-color);
    transition: stroke 0.3s ease;
}

.search-btn:hover svg path {
    stroke: var(--primary-color);
}

.search-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.search-categories p {
    margin: 0;
    color: var(--secondary-color);
}

.search-categories a {
    text-decoration: none;
    color: var(--primary-color);
    padding: 5px 10px;
    border: 1px solid var(--primary-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-categories a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

@media (max-width: 767.98px) {
    .search-content {
        width: 82vw;
        padding: 20px;
    }
    
    .search-categories {
        gap: 8px;
    }
    
    .search-categories a {
        font-size: 13px;
        padding: 4px 8px;
    }
}


.category-group-swiper .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .category-group-swiper .stWf {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 24px;
    gap: 24px;
  }
  .category-group-swiper .stWf:last-child {
    margin-bottom: 0;
  }
  .category-group-swiper .topCategory {
    width: 220px; /* 依照設計調整 */
    /* 其他卡片樣式 */
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.1);
    justify-content: center; align-items: center;
  }
  .modal-content {
    background: #fff; 
    width: 100%; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
  }
  .close-btn {
    position: absolute; 
    right: 16px; 
    top: 10px; 
    font-size: 28px; 
    cursor: pointer;
  }

/* iOS 備選方案樣式 */
.ios-fallback-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-align: center;
    padding: 20px;
}

.ios-fallback-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.ios-fallback-message {
    color: white;
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: bold;
}

.ios-youtube-link {
    display: inline-block;
    background: #ff0000;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.ios-youtube-link:hover {
    background: #cc0000;
    transform: scale(1.05);
}

/* iOS 播放按鈕樣式 */
.ios-play-button-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.ios-play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ios-play-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.play-icon {
    font-size: 24px;
    color: #333;
    margin-bottom: 4px;
}

.play-text {
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

.ios-instructions {
    color: white;
    font-size: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}
