/* 全局變量 */
:root {
    --primary-color: rgb(0, 37, 24);
    --secondary-color: #f8f9fa;
    /* 淺灰白 */
    --accent-color: #9fa0a0;
    /* 中灰 */
    --text-color: #212529;
    /* 深灰黑 */
    --light-text: #6c757d;
    /* 中灰 */
    --border-color: #dee2e6;
    /* 淺灰 */
    --transition: all 0.4s ease-out;
    --shadow: 0 3px 6px rgba(0, 37, 24, 0.05);
}

/* 387b63 ,#9fa0a0*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

/* 基礎樣式 */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: #F3F5F7;
    font-family: Arial, Helvetica, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

ul {
    padding-left: 0;
    margin: 0;
}

ul li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 37, 24, 0.1);
    box-shadow: 0 2px 10px rgba(0, 37, 24, 0.05);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 4px 20px rgba(0, 37, 24, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    width: 190px;
    height: auto;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.7;
}

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

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 50px;
    margin: 0;
    padding: 0;
}

.main-navigation ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    padding: 10px 0;
}

.main-navigation ul li a:hover {
    color: var(--accent-color);
}

.main-navigation ul li a.active {
    color: var(--primary-color);
}

.main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.main-navigation ul li a:hover::after,
.main-navigation ul li a.active::after {
    width: 100%;
}

.header-utils {
    display: flex;
    align-items: center;
    gap: 25px;
}

.search-btn,
.contact-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    padding: 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.search-btn .layui-icon,
.contact-btn .layui-icon {
    font-size: 18px;
}

.search-btn:hover,
.contact-btn:hover {
    color: var(--accent-color);
}

/* 新的語言切換器樣式 - 下拉菜單 */
.language-switcher {
    position: relative;
    margin-left: 20px;
}

.lang-dropdown-btn {
    background: rgba(0, 37, 24, 0.05);
    border: 1px solid rgba(0, 37, 24, 0.2);
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    justify-content: flex-start;
}

.lang-dropdown-btn:hover {
    background: rgba(0, 37, 24, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 37, 24, 0.15);
}

.lang-dropdown-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.flag-icon {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
}

.flag-icon svg {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    padding-top: 1px;
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(0, 37, 24, 0.2);
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 37, 24, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
    overflow: hidden;
    min-width: 100px;
}

.lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 8px 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 37, 24, 0.1);
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    /* 去除下划线 */
    outline: none;
    /* 去除焦点轮廓 */
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: rgba(0, 37, 24, 0.05);
    color: var(--accent-color);
    text-decoration: none;
    /* 确保悬停时也没有下划线 */
}

.lang-option:focus {
    outline: none;
    /* 去除焦点轮廓 */
}

.lang-option.active {
    background: rgba(0, 37, 24, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    /* 确保激活状态也没有下划线 */
}

.lang-option.active i {
    color: var(--accent-color);
    opacity: 1;
}

.lang-option i {
    opacity: 0;
    transition: var(--transition);
    color: var(--accent-color);
}

.lang-option:hover i {
    opacity: 0.5;
}

.lang-option.active:hover i {
    opacity: 1;
}

.current-lang {
    font-weight: 500;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
    padding: 8px;
}

/* Footer Styles */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
    box-sizing: border-box;
}

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

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    color: white;
    position: relative;
    text-align: left;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
    margin-bottom: 8px;
    display: block;
    transition: var(--transition);
    font-size: 15px;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-section.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section.contact-info i {
    color: var(--accent-color);
    width: 16px;
}

.footer-input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-sizing: border-box;
}

.footer-button {
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    margin-bottom: 0;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: white;
}

.logo-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo-list a {
    width: 70%;
    height: auto;
    object-fit: cover;
}

.logo-list a:hover {
    opacity: 0.7;
}

.logo-list a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-left {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-bottom-left a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-bottom-left a:hover {
    color: var(--accent-color);
}

.footer-bottom-center {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-to-top {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* 加載動畫 - 文字浮現和翻頁消失 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.brand-text {
    margin-bottom: 40px;
}

.text-line {
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.text-line.show {
    opacity: 1;
    transform: translateY(0);
}

#brandName {
    font-size: 60px;
    letter-spacing: 8px;
    margin-bottom: 20px;
    font-weight: 900;
}

#brandTagline {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.9;
}

.loading-progress {
    width: 150px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 2s ease;
    border-radius: 1px;
}

.page-flip-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    z-index: 1;
}

.page-flip-overlay.flip {
    transform: translateX(0);
}

.main-page {
    margin-top: 70px;
    min-height: calc(100vh - 70px - 400px);
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 20px;
    }

    .main-navigation ul {
        gap: 30px;
    }

    .footer-container {
        padding: 0 20px;
    }

    .slide-text h1 {
        font-size: 60px;
        letter-spacing: 6px;
    }

    .slide-text h2 {
        font-size: 48px;
        letter-spacing: 3px;
    }

    .slide-text p {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    html {
        overflow-x: hidden;
        width: 100%;
    }

    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .main-page {
        margin-top: 60px;
        min-height: calc(100vh - 60px - 400px);
        width: 100%;
        overflow-x: hidden;
    }

    .header-container {
        height: 60px;
        padding: 5px 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0, 37, 24, 0.1);
        padding: 20px 0;
    }

    .main-navigation ul.active {
        display: flex;
    }

    .main-navigation ul li a {
        padding: 15px 30px;
        border-bottom: 1px solid rgba(0, 37, 24, 0.1);
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-utils {
        gap: 15px;
    }

    .search-btn,
    .contact-btn {
        font-size: 20px;
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .language-switcher {
        margin-left: 10px;
        padding: 3px;
        display: none;
    }

    .lang-dropdown-btn {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 70px;
    }

    .lang-option {
        padding: 10px 14px;
        font-size: 13px;
    }

    .flag-icon {
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-left {
        justify-content: center;
    }

    .hero-slider {
        height: 70vh;
        min-height: 500px;
    }

    .slide-text h1 {
        font-size: 40px;
        letter-spacing: 4px;
    }

    .slide-text h2 {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .slide-text p {
        font-size: 18px;
    }

    .slide-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 16px;
    }

    .footer-section p,
    .footer-section a {
        text-align: center;
    }

    .footer-section h3 {
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-section.contact-info p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    html {
        overflow-x: hidden;
        width: 100%;
    }

    body {
        overflow-x: hidden;
        width: 100%;
    }

    .header-container {
        padding: 5px 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .logo {
        font-size: 24px;
        width: 170px;
    }

    .header-utils {
        gap: 10px;
    }

    .search-btn,
    .contact-btn {
        font-size: 18px;
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .language-switcher {
        margin-left: 8px;
    }

    .lang-dropdown-btn {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 65px;
    }

    .lang-option {
        padding: 8px 12px;
        font-size: 12px;
    }

    .flag-icon {
        font-size: 14px;
    }

    .footer-container {
        padding: 0 15px;
    }

    .footer-bottom-left {
        gap: 20px;
    }

    #brandName {
        font-size: 28px;
        letter-spacing: 4px;
    }

    #brandTagline {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .loading-progress {
        width: 120px;
    }

    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }

    .slide-text h1 {
        font-size: 32px;
        letter-spacing: 3px;
    }

    .slide-text h2 {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .slide-text p {
        font-size: 16px;
    }

    .slide-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 14px;
    }
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

/* 平滑滾動 */
html {
    scroll-behavior: smooth;
}






/* Layui 分頁樣式 */
#pagination {
    padding: 40px 50px;
    /* background: #f8f9fa; */
    border-top: 1px solid #e9ecef;
    text-align: center;
}

/* 自定義layui分頁樣式 */
.layui-laypage a,
.layui-laypage span {
    background-color: white;
    color: var(--text-color);
    border: 1px solid #e9ecef;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.layui-laypage a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 37, 24, 0.3);
}

.layui-laypage .layui-laypage-curr .layui-laypage-em {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.layui-laypage .layui-laypage-curr em {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.layui-laypage .layui-laypage-limits {
    color: var(--text-color);
}

.layui-laypage .layui-laypage-limits select {
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 4px 8px;
    color: var(--text-color);
}

.layui-laypage .layui-laypage-limits select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.layui-laypage .layui-laypage-skip input {
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 4px 8px;
    color: var(--text-color);
    width: 50px;
}

.layui-laypage .layui-laypage-skip input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.layui-laypage .layui-laypage-skip button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.layui-laypage .layui-laypage-skip button:hover {
    background-color: #1a4a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 37, 24, 0.3);
}

/* 響應式分頁 */
@media (max-width: 768px) {
    #pagination {
        padding: 30px 20px;
    }

    .layui-laypage a,
    .layui-laypage span {
        margin: 0 1px;
        font-size: 14px;
        padding: 8px 12px;
    }

    .layui-laypage .layui-laypage-limits,
    .layui-laypage .layui-laypage-skip {
        display: none;
    }
}

@media (max-width: 480px) {
    #pagination {
        padding: 25px 15px;
    }

    .layui-laypage a,
    .layui-laypage span {
        margin: 0 1px;
        font-size: 12px;
        padding: 0px 10px;
    }

    .layui-laypage .layui-laypage-limits,
    .layui-laypage .layui-laypage-skip {
        display: none;
    }
}

/* 回到顶部按钮 */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 37, 24, 0.3);
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top-btn.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 199, 88, 0.4);
}

.back-to-top-btn svg {
    transition: transform 0.3s ease;
}

.back-to-top-btn:hover svg {
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .layui-laypage a:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .back-to-top-btn {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}


.header-utils .contact-btn {
    display: none;
}


/* 搜索彈窗 */

.search-modal-container::-webkit-scrollbar {
    width: 6px;
}

.search-modal-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.search-modal-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.search-modal-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.search-modal-container {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.search-modal-overlay.show .search-modal-container {
    left: 0;
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.search-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.search-modal-title i {
    font-size: 24px;
    color: var(--accent-color);
}

.search-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal-close:hover {
    background: #f0f0f0;
    color: var(--primary-color);
    transform: rotate(90deg);
}

.search-modal-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.search-input-section {
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 37, 24, 0.1);
    transform: translateY(-2px);
}

.search-modal-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 18px 20px;
    font-size: 16px;
    background: transparent;
    color: #333;
}

.search-modal-input::placeholder {
    color: #999;
    font-style: italic;
}

.search-modal-search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.search-modal-search-btn:hover {
    background: #1a4a2e;
    transform: scale(1.05);
}

.search-modal-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-filter-section {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.search-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.search-filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-transform: capitalize;
}

.search-filter-expand-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.search-filter-expand-btn:hover {
    background: #d4a017;
}

.search-filter-content {
    min-height: 20px;
}

.search-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-filter-tag {
    background: white;
    color: var(--primary-color);
    border: 1px solid #e3f2fd;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-filter-tag:hover {
    background: #e3f2fd;
    border-color: var(--primary-color);
}

.search-filter-empty {
    color: #ccc;
    font-style: italic;
    font-size: 14px;
}

.search-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.search-modal-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 37, 24, 0.2);
}

.search-modal-submit:hover {
    background: #1a4a2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 37, 24, 0.3);
}

.search-modal-clear {
    background: #6c757d;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-modal-clear:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.search-modal-close-btn {
    background: white;
    color: #333;
    border: 1px solid #ddd;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-modal-close-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

@media (max-width: 768px) {
    .search-modal-container {
        width: 80%;
        left: -80%;
    }
}

/* 筛选选项样式 */
.search-filter-options {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
    max-width: 100%;
    overflow: hidden;
}

.search-filter-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.search-filter-option-header span {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.search-filter-option-close {
    background: #dc3545;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.search-filter-option-close:hover {
    background: #c82333;
    transform: scale(1.1);
}

.search-filter-option-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
    /* 自定义滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #e9ecef;
}

/* Webkit浏览器的滚动条样式 */
.search-filter-option-list::-webkit-scrollbar {
    width: 6px;
}

.search-filter-option-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.search-filter-option-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.search-filter-option-list::-webkit-scrollbar-thumb:hover {
    background: #1a4a2e;
}

.search-filter-option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-width: 0;
    flex-shrink: 0;
}

.search-filter-option-item:hover {
    background: #e3f2fd;
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.search-filter-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.search-filter-option-item span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.search-filter-option-actions {
    text-align: center;
}

.search-filter-option-apply {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-filter-option-apply:hover {
    background: #1a4a2e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 37, 24, 0.2);
}

/* 修复筛选内容区域的布局 */
.search-filter-content {
    min-height: 20px;
    max-width: 100%;
    overflow: hidden;
}

.search-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
}

.search-filter-tag {
    background: white;
    color: var(--primary-color);
    border: 1px solid #e3f2fd;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-filter-tag:hover {
    background: #e3f2fd;
    border-color: var(--primary-color);
}

/* 确保筛选区域不会横向溢出 */
.search-filter-section {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
    max-width: 100%;
    overflow: hidden;
}

.search-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    max-width: 100%;
}

.search-filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-transform: capitalize;
    flex: 1;
    min-width: 0;
}

.search-filter-expand-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.search-filter-expand-btn:hover {
    background: #d4a017;
}

.search-filter-expand-btn svg {
    width: 16px;
    height: 16px;
}

@media screen and (max-width: 768px) {
    .search-modal-header {
        padding: 20px;
    }

    .search-modal-content {
        padding: 20px;
    }

    .search-modal-input {
        padding: 15px;
        font-size: 15px;
    }

    .search-input-wrapper {
        border-width: 1px;
    }

    .search-modal-search-btn {
        padding: 15px;
        min-width: 50px;
    }
}

/* 移動端橫向滾動修復 */
@media (max-width: 768px) {
    * {
        max-width: 100vw;
    }

    .container,
    .header-container,
    .footer-container,
    .main-page,
    .footer,
    .header {
        max-width: 100vw;
        width: 100%;
        box-sizing: border-box;
    }

    /* 確保所有內容都在視窗內 */
    body>* {
        max-width: 100vw;
        overflow-x: hidden;
    }
}





/* 更多資訊下拉菜單 */
.more-info-dropdown {
    position: relative;
}

.more-info-btn {
    /* background: rgba(0, 37, 24, 0.05);
    border: 1px solid rgba(0, 37, 24, 0.2); */
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: flex-start;
    outline: none;
    background: none;
    border: none;
}

.more-info-btn:hover {
    /* background: rgba(0, 37, 24, 0.1); */
    border-color: var(--primary-color);
    transform: translateY(-1px);
    /* box-shadow: 0 2px 8px rgba(0, 37, 24, 0.15); */
}

.more-info-btn:hover .more-info-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.more-info-btn.active {
    /* background: var(--primary-color); */
    color: var(--primary-color);
    border: none;
    background: none;
}

.more-info-btn .layui-icon-down {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.more-info-btn.active .layui-icon-down {
    transform: rotate(180deg);
}

.more-info-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 37, 24, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
    overflow: hidden;
    min-width: 120px;
}

.more-info-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.more-info-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    border-bottom: 1px solid rgba(0, 37, 24, 0.1);
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    outline: none;
}

.more-info-option:last-child {
    border-bottom: none;
}

.more-info-option:hover {
    background: rgba(0, 37, 24, 1);
    color: #fff;
    text-decoration: none;
}

.more-info-option .layui-icon {
    font-size: 16px;
    width: 16px;
    text-align: center;
}

/* 焦点状态和键盘导航支持 */
/* .more-info-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
} */

.more-info-option:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
    background: rgba(0, 37, 24, 0.05);
}

/* 动画效果增强 */
.more-info-menu {
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

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

/* 悬停时的图标动画 */
.more-info-option:hover .layui-icon {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}



.header-utils {
    justify-content: space-between;
    width: 100%;
}

.header-utils .big-logo{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header {
    border: none;
    box-shadow: none;
}

.language-switcher {
    margin-left: 0;
}

.header-utils .contact-btn {
    display: flex;
}

.left-utils {
    display: flex;
    align-items: center;
    gap: 20px;
}

.left-utils button {
    display: flex;
    align-items: center;
    width: auto;
    height: auto;
    gap: 10px;
}

.left-utils button .layui-icon {
    font-size: 16px;
    padding-top: 1px;
}

.left-utils button span {
    font-size: 16px;
}

.big-logo {
    display: flex;
    justify-content: center;
    width: 140px;
    height: auto;
    margin: 0 auto;
}

.big-logo img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    .more-info-dropdown {
        display: none;
    }
    .header-utils .big-logo {
        display: none;
    }

    .main-container .big-logo {
        display: flex;
    }

    /* 移动端更多資訊下拉菜单样式 */
    .more-info-dropdown {
        margin-left: 10px;
    }

    .more-info-btn {
        padding: 6px 12px;
        min-width: 100px;
        font-size: 13px;
    }

    .more-info-btn span {
        display: none;
    }

    .more-info-btn .layui-icon-more {
        margin-right: 0;
    }

    .more-info-menu {
        min-width: 100px;
        right: auto;
        left: 0;
    }

    .more-info-option {
        padding: 10px 12px;
        font-size: 13px;
    }

    .more-info-option span {
        display: block;
    }
}

.footer-logo>a{
    display: inline-block;
    width: 150px;
    height: auto;
}
.footer-logo>a>img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0) invert(1);
}
.footer-logo>p{
    margin: 20px 0 26px 0;
}
.footer-s-collection>p{
    position: relative;
    padding-left: 15px;
}

.footer-s-collection>p::before{
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 1px;
    background: rgba(255, 255, 255, 0.8);
}

@media screen and (max-width: 768px) {
    .footer-s-collection{
        display: flex;
        flex-direction: column;
        align-items: center;
    }


}

/* 微信二维码弹出样式 */
.social-links {
    position: relative;
}

.qrcode {
    position: absolute;
    top: -50%;
    left: 82%;
    transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px;
    margin-bottom: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 150px;
    text-align: center;
}

.qrcode::after {
    content: '';
    position: absolute;
    top: 20%;
    left: -5%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-right-color: white;
}

.qrcode.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.qrcode img {
    width: 120px;
    height: 120px;
    display: block;
    margin: 0 auto;
}

.qrcode-text {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .qrcode {
        min-width: 120px;
        padding: 12px;
    }

    .qrcode img {
        width: 100px;
        height: 100px;
    }

    .qrcode-text {
        font-size: 11px;
    }
}