.nav_megamenu > li.site-search-item {
    align-items: center;
    display: flex;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.search-page {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1216px;
    min-height: 55vh;
    padding: 150px 0 96px;
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .search-page {
        margin: 0 50px;
    }
}

@media (max-width: 1024px) {
    .search-page {
        max-width: none;
        padding-left: 48px;
        padding-right: 48px;
    }
}

/* 搜尋頁 breadcrumbs：上下 margin 都歸零（桌機/手機一致），左側也歸零避免與內文雙重內縮 */
.search-page .breadcrumbs {
    /* base 的 .breadcrumbs 有 margin-top:48px !important，故這裡必須用 !important 才能覆蓋（僅限搜尋頁） */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
}

/* 搜尋頁 banner（獨立單一 class，比照 newsBanner / productBanner / videoPageBanner） */
.searchBanner {
    background-image: url("../images/searchBanner.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 320px;
    margin-bottom: 0;
    width: 100%;
}

.searchBanner .bannerContent {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 1216px;
    padding-top: 115px;
}

.searchBanner .bannerContent h1 {
    display: none;
}

@media (min-width: 1025px) {
    .searchBanner .bannerContent h1 {
        color: #FFF;
        display: block;
        font-family: Inter, sans-serif;
        font-size: 48px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .searchBanner .bannerContent {
        margin: 0 50px;
    }
}

@media (max-width: 1024px) {
    .searchBanner {
        height: 150px;
    }
}

@media (max-width: 600px) {
    .searchBanner {
        display: none;   /* 手機：整個 banner 隱藏 */
    }
}

body.search-results-page .search-page {
    padding-top: 16px;
}

.search-heading {
    /* 移除原 border-bottom(灰線)/margin-bottom/padding-bottom，只保留上方留白 */
    margin-top: 64px;
}

.search-heading h1 {
    color: #EA5218;
    font-family: Inter, sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 160%;
    margin: 0;
}

/* 超大螢幕：上方留白加大到 72 */
@media (min-width: 1281px) {
    .search-heading {
        margin-top: 72px;
    }
}

.global-search-form.search-results-form {
    margin-bottom: 16px;
    margin-top: 16px;
    max-width: none;
}

.search-results-form .global-search-leading-icon,
.search-results-form .global-search-submit {
    display: inline-flex;
}

.search-page-keywords {
    align-items: center;
    display: flex;
    gap: 16px;
    margin: 14px auto 0;
    max-width: none;
}

.search-page-keywords[hidden],
.global-search-keywords[hidden] {
    display: none;
}

.search-page-keywords h2 {
    color: #777;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    white-space: nowrap;
}

.search-page-keyword-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.search-page-keyword-list a {
    color: #DE7D57;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
}

.search-page-keyword-list a:hover {
    text-decoration: underline;
}

.search-message,
.search-count {
    color: #555;
    margin: 24px 0;
}

.search-no-results {
    margin: 24px 0;
}

.search-no-results-title,
.search-no-results-hint {
    color: #EA5218;
    font-family: Inter, sans-serif;
    font-size: 32px;
    font-style: normal;
    line-height: 160%;
    margin: 0;
}

.search-no-results-title {
    font-weight: 600;
}

.search-no-results-hint {
    font-weight: 400;
}

.search-results {
    border-top: 1px solid #d8d8d8;
    margin-top: 28px;
    max-width: 920px;
}

.search-results-layout {
    align-items: flex-start;
    display: grid;
    gap: 48px;
    grid-template-columns: 250px minmax(0, 1fr);
    margin-top: 46px;
}

.search-filters ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 1025px) {
    .search-filters > ul {
        display: flex;
        flex-direction: column;
    }

}

.search-filters li {
    align-items: center;
    border-bottom: 1px solid var(--color-border-divider);
    color: #555;
    display: flex;
    font-size: 13px;
    justify-content: space-between;
}

.search-filters li:has(> .search-filter-disabled) {
    border-bottom-color: var(--color-border-divider);
}

.search-filters > ul > li.search-filter-group {
    align-items: flex-start;
    align-self: stretch;
    border-bottom: 1px solid var(--color-border-divider);
    display: flex;
    flex-direction: column;
    padding: 12px 0;
}

.search-filters li strong {
    color: #999;
    font-size: 11px;
    font-weight: 400;
}

.search-filters > ul > li {
    display: block;
    padding: 0;
}

.search-filters > ul > li.has-children > a {
    align-self: stretch;
    display: flex;
    justify-content: flex-start;
}

.search-filters > ul > li.has-children {
    position: relative;
}

.search-filter-toggle {
    background-color: transparent;
    background-image: url("../images/search/expand_icon.png");
    background-position: center;
    background-repeat: no-repeat;
    border: 0;
    cursor: pointer;
    display: none;
    height: 24px;
    padding: 0;
    position: absolute;
    right: 0;
    top: 16px;
    width: 24px;
}

.search-filter-toggle:focus-visible {
    outline: 2px solid #EA5218;
    outline-offset: 2px;
}

.search-filters > ul > li.no-children > a {
    gap: 10px;
}

.search-filters .search-filter-item {
    align-items: center;
    display: flex;
    gap: 0;
    justify-content: flex-start;
    text-decoration: none;
    width: 100%;
}

.search-filters .search-filter-parent > .search-filter-label {
    padding-right: 28px;
}

.search-filters .search-filter-disabled {
    color: var(--color-text-disabled);
    cursor: default;
}

.search-filters .search-filter-label {
    min-width: 0;
}

.search-filters .search-filter-label strong {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    white-space: nowrap;
}

.search-filters li > a:hover,
.search-filters li.is-selected > a,
.search-filters li li.is-selected > a {
    color: var(--color-text-brand);
}

.search-filters li > a.search-filter-no-hover:hover {
    color: var(--color-text-primary);
    cursor: default;
}

.search-filters li > ul {
    align-items: flex-start;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 20px 0 22px;
    width: 100%;
}

.search-filters li > ul.search-filter-children {
    gap: 0;
    padding: 0;
}

@media (min-width: 1025px) {
    .search-filters li.is-selected > a {
        position: relative;
        padding-right: 0;
    }

    .search-filters li.is-selected > a > .search-filter-label {
        padding-right: 28px;
    }

    .search-filters li.is-selected > a::after {
        background: url("../images/search/menuShowArrow.png") center / contain no-repeat;
        content: "";
        height: 16px;
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
    }

    .search-filters > ul > li.is-selected > a::after {
        top: 50%;
    }
}

.search-filters li li {
    border-bottom: 0;
    padding: 0;
    width: 100%;
}

.search-filters li li > a {
    width: 100%;
}

.search-results-header {
    margin-bottom: 0;
    padding-bottom: 24px;
    text-align: center;
}

.search-results-header h2 {
    color: #EA5218;
    font-family: Inter, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0;
}

.search-results-header h2 span {
    font-size: inherit;
}

.search-results-layout .search-results {
    border-top: 0;
    margin-top: 0;
    max-width: none;
}

.search-results-layout .search-result {
    padding: 20px 0;
}

.search-results-layout .search-result h3 {
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 7px;
}

.search-results-layout .search-result h3 a {
    color: #222;
    text-decoration: none;
}

.search-results-layout .search-result h3 a:hover {
    color: #ea5218;
}

.search-result-cards {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.search-result-cards .search-results-header {
    grid-column: 1 / -1;
}

.search-result-card {
    background: #fff;
    border: 1px solid #b6b6b6;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    min-width: 0;
    position: relative;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.search-result-card:hover {
    border-color: #ea5218;
    box-shadow: 0 0 20px rgba(234, 82, 24, .25);
    transform: translateY(-1px);
}

.search-result-card-media {
    align-items: center;
    background: #e8e8e8;
    display: flex;
    height: 150px;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.search-result-card-media img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.search-result-card-mark {
    background: #ea5218;
    display: block;
    height: 4px;
    width: 64px;
}

.search-result-card-tag {
    background: #ea5218;
    color: #fff;
    font-size: 10px;
    left: 0;
    padding: 5px 8px;
    position: absolute;
    text-transform: uppercase;
    top: 0;
}

.search-result-card-info {
    padding: 16px 18px 58px;
}

.search-result-card-info h3 {
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 10px;
}

.search-result-card-info h3 a {
    color: #222;
    text-decoration: none;
}

.search-result-card-info h3 a:hover {
    color: #ea5218;
}

.search-result-card-info p {
    color: #555;
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.search-result-card-date {
    color: #888;
    font-size: 11px;
    margin: -4px 0 9px;
}

.search-result-card--news .search-result-card-media {
    background: #e6e6e6;
}

.search-result-card--events .search-result-card-media {
    background: #ece9e6;
}

.search-result-card--products .search-result-card-media,
.search-result-card--support .search-result-card-media {
    background: #e8e8e8;
}

.search-result-card-link {
    border: 1px solid #ea5218;
    bottom: 14px;
    color: #ea5218;
    font-size: 12px;
    font-weight: 700;
    left: 18px;
    padding: 9px 10px;
    position: absolute;
    right: 18px;
    text-align: center;
    text-decoration: none;
}

.search-result-card-link:hover {
    background: #ea5218;
    color: #fff;
}

.search-module-results {
    max-width: none;
    width: 100%;
}

.search-module-products .list-group {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-module-products .productSectionListContent {
    height: 360px;
    margin: 0;
    max-width: none;
    min-width: 0;
    width: 100%;
}

.search-module-products .productSectionListImg {
    height: 170px;
}

.search-module-products .productSectionListImg img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.search-module-products .productSectionListImg .itemTag {
    height: 28px;
    left: 0;
    object-fit: contain;
    position: absolute;
    top: 0;
    width: auto;
    z-index: 2;
}

.search-module-products .productSectionListImg .search-product-image {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.search-module-products .productSectionListInfo {
    padding: 14px 18px 0;
}

.search-module-products .productSectionListInfo_Name {
    overflow: hidden;
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-module-products .productSectionListInfo_Describe {
    color: #2B2B2B;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.search-module-products .productViewMore {
    text-decoration: none;
}

.search-module-news {
    display: grid;
    gap: 16px;
    height: auto;
}

.search-news-item {
    background: #fff;
    border: 1px solid #b6b6b6;
    display: flex;
    height: 210px;
    min-height: 0;
    text-decoration: none;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.search-news-item:hover {
    border-color: #ea5218;
    box-shadow: 0 0 20px rgba(234, 82, 24, .25);
    transform: translateY(-1px);
}

@media (min-width: 766px) {
    .search-news-item:hover .search-news-title,
    .search-news-item:focus-visible .search-news-title {
        color: #EA5218;
    }
}

.search-news-image {
    aspect-ratio: 4 / 3;
    align-self: stretch;
    background: #e8e8e8;
    flex: 0 0 280px;
    overflow: hidden;
}

.search-news-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.search-news-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 24px;
    min-width: 0;
}

.search-news-date {
    color: #EA5218;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.search-news-title {
    color: #222;
    display: -webkit-box;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.35;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.search-news-more {
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    margin-top: auto;
}

.search-module-events > .list-group {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-page .search-module-events {
    margin: 0;
}

.search-module-events .eventSectionListContent {
    background: #fff;
    border: 1px solid #b6b6b6;
    min-width: 0;
    overflow: hidden;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.search-module-events .eventSectionListContent:hover {
    border-color: #ea5218;
    box-shadow: 0 0 20px rgba(234, 82, 24, .25);
    transform: translateY(-1px);
}

.search-module-events .eventSectionListImg {
    aspect-ratio: 4 / 3;
    height: auto;
}

.search-module-events .eventSectionListInfo {
    padding: 16px;
}

.search-module-events .search-event-meta {
    padding: 0 16px 16px;
}

.search-module-events .search-event-meta .line {
    margin: 0 0 16px;
    width: 100%;
}

.search-module-events .search-event-meta .time,
.search-module-events .search-event-meta .located,
.search-module-events .search-event-meta .boothNum {
    margin-left: 0;
}

.search-module-events .search-event-meta .boothNum {
    margin-bottom: 0;
}

.search-event-link {
    border: 1px solid #ea5218;
    bottom: 14px;
    color: #ea5218;
    font-size: 12px;
    font-weight: 700;
    left: 18px;
    padding: 8px 10px;
    position: absolute;
    right: 18px;
    text-align: center;
    text-decoration: none;
}

.search-event-link:hover {
    background: #ea5218;
    color: #fff;
}

.search-pagination {
    font-family: 'Inter', sans-serif;
    margin: 30px 0 139px;
    max-width: 930px;
    width: 100%;
}

.search-results-layout .search-pagination.paginationjs .paginationjs-pages {
    margin: 0 auto;
    width: fit-content;
}

.search-results-layout .search-pagination.paginationjs .paginationjs-pages ul {
    align-items: center;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.search-results-layout .search-pagination.paginationjs .paginationjs-pages li {
    border: 0;
    float: none;
    height: 34px;
    margin: 0;
    width: 24px;
}

.search-results-layout .search-pagination.paginationjs .paginationjs-pages li > a {
    align-items: center;
    background: transparent;
    border: 0;
    color: #c9c9c9;
    display: flex;
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 300;
    height: 34px;
    justify-content: center;
    line-height: 29.05px;
    margin: 0;
    padding: 0;
    text-decoration: none;
    width: 24px;
}

.search-results-layout .search-pagination.paginationjs .paginationjs-pages li > a:hover {
    background: transparent;
    border: 0;
    color: #999;
}

.search-results-layout .search-pagination.paginationjs .paginationjs-pages li.active > a {
    background: transparent;
    border: 0;
    color: #EA5218;
    font-family: Inter, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 29.05px;
}

.search-results-layout .search-pagination.paginationjs .paginationjs-pages li.disabled > a {
    background: transparent;
    border: 0;
    color: #cfcfcf;
    cursor: default;
}

.search-result {
    border-bottom: 1px solid #d8d8d8;
    padding: 22px 0 24px;
}

.search-result-meta {
    align-items: center;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 14px;
    margin-bottom: 7px;
}

.search-result-meta span {
    color: #b44216;
    font-weight: 700;
}

.search-result h2 {
    font-size: 20px;
    line-height: 1.35;
    margin: 0 0 7px;
}

.search-result h2 a {
    color: #222;
    text-decoration: none;
}

.search-result h2 a:hover {
    color: #b44216;
    text-decoration: underline;
}

.search-result-snippet {
    color: #555;
    line-height: 1.65;
    margin: 0;
    overflow-wrap: anywhere;
}

.search-result-snippet mark {
    background: #ffe69a;
    color: #222;
    padding: 0 2px;
}

.search-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 30px;
}

.search-pagination a,
.search-pagination span {
    align-items: center;
    border: 1px solid #ccc;
    color: #222;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    min-width: 38px;
    padding: 0 10px;
    text-decoration: none;
}

.search-pagination [aria-current="page"] {
    background: #242424;
    border-color: #242424;
    color: #fff;
}

.search-video-results {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.search-video-card {
    background: #fff;
    border: 1px solid #b6b6b6;
    min-width: 0;
    overflow: hidden;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.search-video-card:hover {
    border-color: #ea5218;
    box-shadow: 0 0 20px rgba(234, 82, 24, .25);
    transform: translateY(-1px);
}

.search-video-card-media {
    aspect-ratio: 400 / 225;
    background: #1b1b1b;
    display: block;
    overflow: hidden;
    position: relative;
}

.search-video-card-media img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.search-video-card-play {
    align-items: center;
    background: rgba(0, 0, 0, .55);
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 22px;
    height: 56px;
    justify-content: center;
    left: 50%;
    padding-left: 4px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
}

.search-video-card-content {
    padding: 24px 20px;
}

.search-video-card-content h3 {
    color: #ea5218;
    display: -webkit-box;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 8px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.search-video-card-content h3 a {
    color: inherit;
    text-decoration: none;
}

.search-video-card-content h3 a:hover {
    color: #EA5218;
}

.search-video-card-content p {
    color: #666;
    display: -webkit-box;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

@media (max-width: 1024px) {
    .site-search-item {
        display: none;
    }
}

@media (max-width: 600px) {
    .search-page {
        padding: 110px 32px 64px;
    }

    /* 搜尋頁：手機版上方 padding（覆蓋 body.search-results-page .search-page 的桌機值） */
    body.search-results-page .search-page {
        padding-top: 10px;
    }

    /* 手機：上方留白 40px */
    .search-heading {
        margin-top: 40px;
    }

    .search-heading h1 {
        font-size: 20px;
        line-height: normal;
    }

    .search-result h2 {
        font-size: 18px;
    }

    .search-no-results-title,
    .search-no-results-hint {
        font-size: 24px;
        line-height: normal;
    }

    .search-no-results-title {
        font-weight: 700;
    }

    .search-no-results-hint {
        font-weight: 400;
    }

    .search-results-layout {
        gap: 30px;
        grid-template-columns: 1fr;
        margin-top: 32px;
    }

    .search-video-results {
        grid-template-columns: 1fr;
    }

    .search-filters {
        width: 100%;
    }
}

.site-search-toggle,
.mobileSearchToggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #111;
    cursor: pointer;
    display: inline-flex;
    font-size: 18px;
    justify-content: center;
}

.site-search-toggle {
    height: 56px;
    padding: 16px;
    width: 56px;
}

.mobileSearchToggle {
    height: 16px;
    padding: 0;
    width: 16px;
}

.search-icon-image {
    display: inline-block;
    flex: 0 0 24px;
    height: 24px;
    object-fit: contain;
    width: 24px;
}

.searchCloseGlyph {
    display: inline-block;
    flex: 0 0 16px;
    height: 16px;
    position: relative;
    width: 16px;
}

.searchCloseGlyph::before,
.searchCloseGlyph::after {
    background: currentColor;
    content: "";
    height: 1px;
    left: 1px;
    position: absolute;
    top: 7px;
    transform: rotate(45deg);
    width: 14px;
}

.searchCloseGlyph::after {
    transform: rotate(-45deg);
}

.site-search-toggle:hover,
.mobileSearchToggle:hover {
    color: #ea5218;
}

.site-search-toggle:focus-visible,
.mobileSearchToggle:focus-visible,
.global-search-form button:focus-visible,
.global-search-keyword-list button:focus-visible {
    outline: 2px solid #ea5218;
    outline-offset: 3px;
}

.mobileSearchToggle {
    display: none;
}

@media (min-width: 1281px) {
    .nav_megamenu > li.site-search-item {
        right: 160px;
    }
}

.search-overlay[hidden] {
    display: none;
}

.search-overlay {
    /* 邊界機制：內容寬度跟隨 panel 撐滿，內縮只由 panel 的 gutter 控制（桌機值見下方 media） */
    --overlay-gutter: 24px;
    inset: 0;
    position: fixed;
    z-index: 20000;
    top: 56px;
}

/* 電腦版（大螢幕）左右留 345px；小螢幕/手機維持 24px */
@media (min-width: 1281px) {
    .search-overlay {
        --overlay-gutter: 345px;
    }
}

.search-overlay-backdrop {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, .38);
    border: 0;
    inset: 0;
    position: absolute;
    width: 100%;
}

.search-overlay-panel {
    animation: search-panel-open 180ms ease-out both;
    background: #F0F0F0;
    max-height: calc(100% - 24px);
    overflow-y: auto;
    padding: 40px var(--overlay-gutter);
    position: relative;
}

/* 內容寬度：跟隨 panel 撐滿（邊距只由 panel 的 gutter 控制，不再有 max-width 上限） */
.search-overlay-inner {
    width: 100%;
}

@keyframes search-panel-open {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.global-search-form {
    align-items: center;
    border: 1px solid #888;
    display: flex;
    height: 55px;
    margin: 0;
    padding: 0 15px;
}

.global-search-form:focus-within {
    border: 2px solid #ea5218;
    padding: 0 14px;
}

.global-search-leading-icon,
.global-search-submit {
    color: #555;
    cursor: pointer;
    flex: 0 0 auto;
}

.global-search-form input {
    background: transparent;
    border: 0;
    color: #222;
    flex: 1;
    font: inherit;
    font-size: 16px;
    min-width: 0;
    outline: 0;
    padding: 14px 16px;
}

.global-search-form input::placeholder {
    color: #777;
    font-weight: 600;
}

.global-search-form button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #555;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 36px;
    font-size: 18px;
    height: 36px;
    justify-content: center;
    padding: 0;
}

.global-search-form [hidden] {
    display: none;
}

.global-search-content {
    margin-top: 16px;
}

.global-search-keywords h3,
.global-search-group h3 {
    color: #777;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 7px;
}

.global-search-keyword-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.global-search-keyword-list button {
    background: transparent;
    border: 0;
    color: #ea5218;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    padding: 0;
}

.global-search-keyword-list button:hover {
    text-decoration: underline;
}

.global-search-results {
    padding-top: 2px;
    width: 100%;
}

.global-search-group {
    margin: 0 0 20px;
}

.global-search-group:last-child {
    margin-bottom: 0;
}

/* 載入中：分類標題淡化 + 分層流光線 */
.global-search-group.is-loading h3 {
    color: #999;
}

.global-search-loader {
    background: linear-gradient(90deg, #d8d8d8, #ececec 48%, #d8d8d8);
    border-radius: 1px;
    height: 2px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.global-search-loader::before,
.global-search-loader::after {
    content: "";
    height: 100%;
    left: -45%;
    position: absolute;
    top: 0;
    width: 45%;
}

.global-search-loader::before {
    animation: global-search-flow-primary 1400ms cubic-bezier(.45, 0, .35, 1) infinite;
    background: linear-gradient(90deg, transparent 0%, #de7d57 27%, #ea5218 52%, #f39b78 68%, transparent 100%);
}

.global-search-loader::after {
    animation: global-search-flow-secondary 2100ms cubic-bezier(.4, 0, .2, 1) infinite;
    background: linear-gradient(90deg, transparent 0%, rgba(234, 82, 24, .35) 38%, rgba(255, 255, 255, .85) 58%, transparent 100%);
    opacity: .8;
}

@keyframes global-search-flow-primary {
    0% {
        opacity: .35;
        transform: translateX(0) scaleX(.72);
    }

    23% {
        opacity: .9;
    }

    61% {
        opacity: .65;
        transform: translateX(250%) scaleX(1.15);
    }

    100% {
        opacity: .25;
        transform: translateX(340%) scaleX(.8);
    }
}

@keyframes global-search-flow-secondary {
    0% {
        opacity: 0;
        transform: translateX(0) scaleX(.6);
    }

    31% {
        opacity: .8;
    }

    74% {
        opacity: .35;
        transform: translateX(310%) scaleX(1.3);
    }

    100% {
        opacity: 0;
        transform: translateX(390%) scaleX(.75);
    }
}

.global-search-group h3 {
    color: #222;
    margin-bottom: 8px;
}

.global-search-group h3 a {
    color: inherit;
    text-decoration: none;
}

.global-search-group h3 a:hover {
    color: #ea5218;
    text-decoration: underline;
}

.global-search-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.global-search-group a {
    color: #777;
    display: inline-block;
    font-size: 12px;
    line-height: 1.9;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.global-search-group a:hover {
    color: #ea5218;
    text-decoration: underline;
}

.global-search-group li a {
    display: block;
    padding: 4px 0;
}

.global-search-empty {
    color: #999;
    font-size: 12px;
    line-height: 1.9;
}

.global-search-message {
    color: #777;
    font-size: 13px;
    margin: 16px 0;
}

body.search-overlay-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .site-search-item {
        display: none;
    }

    .mobileSearchToggle {
        display: inline-flex;
        left: 49px;
        position: absolute;
        right: auto;
        top: 22px;
        z-index: 5;
    }

    .mobileSearchToggle .search-icon-image {
        flex-basis: 16px;
        height: 16px;
        width: 16px;
    }

    .search-overlay {
        top: 60px;
    }
}

@media (min-width: 1025px) {
    .mobileSearchToggle {
        display: none;
    }
}

@media (max-width: 991px) {
    .search-filters > ul {
        display: flex;
        flex-direction: column;
    }

    .search-results-layout {
        gap: 30px;
        grid-template-columns: 1fr;
    }

    .search-filters > ul > li.has-children > a {
        gap: 0;
        justify-content: flex-start;
    }

    .search-filter-toggle {
        display: block;
        top: 16px;
    }

    .search-filters li.is-expanded > .search-filter-toggle {
        transform: rotate(180deg);
    }

    .search-filters li > ul.search-filter-children {
        display: none !important;
    }

    .search-filters li.is-expanded > ul.search-filter-children {
        display: flex !important;
    }
}

@media (max-width: 600px) {
    .mobileSearchToggle {
        left: 33px;
    }

    .search-page-keywords {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .search-page-keyword-list a {
        align-items: center;
        background: #EA5218;
        border-radius: 100px;
        color: #fff;
        display: flex;
        gap: 10px;
        justify-content: center;
        padding: 4px 12px;
    }

    .search-overlay-panel {
        padding-top: 14px;
        padding-bottom: 42px;
    }

    .global-search-form {
        height: 50px;
        padding: 0 10px;
    }

    .global-search-form:focus-within {
        padding: 0 9px;
    }

    .global-search-form input {
        font-size: 14px;
        padding: 12px 9px;
    }

    .global-search-keyword-list {
        gap: 9px 13px;
    }

    .search-result-cards {
        grid-template-columns: 1fr;
    }

    .search-module-products .list-group,
    .search-module-events > .list-group {
        grid-template-columns: 1fr;
    }

    .search-news-item {
        display: block;
        height: auto;
    }

    .search-news-image {
        aspect-ratio: 4 / 3;
        flex: none;
        height: auto;
        width: 100%;
    }

    .search-news-content {
        width: 100%;
    }

    .search-news-more {
        display: none;
    }

    .searchBanner .bannerContent {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 765px) {
    .search-module-news {
        gap: 32px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-news-item {
        display: flex;
        flex-direction: column;
        height: auto;
        min-width: 0;
    }

    .search-news-image {
        align-self: stretch;
        aspect-ratio: 4 / 3;
        flex: none;
        height: auto;
        width: 100%;
    }

    .search-news-content {
        padding: 20px 16px;
        width: 100%;
    }

    .search-news-title {
        font-size: 16px;
        line-height: 1.4;
        -webkit-line-clamp: 4;
    }

    .search-news-more {
        display: none;
    }
}

@media (max-width: 600px) {
    .search-module-news {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .search-result-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-module-products .list-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1025px) and (max-width: 1180px) {
    .search-module-products .list-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .search-module-products .list-group {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .search-overlay-panel {
        animation: none;
    }

    .global-search-loader,
    .global-search-loader::before,
    .global-search-loader::after {
        animation: none;
    }
}