.language-switcher{position:relative;display:inline-block;font-family:sans-serif}.language-switcher input[type=checkbox]{display:none}.language-switcher label{cursor:pointer;display:flex;align-items:center;gap:.5em;background:#eee;padding:.5em 1em;border-radius:6px;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:1px solid #ccc;position:relative}.language-switcher label::after{content:"▼";font-size:.6em;margin-left:auto;transition:transform .3s ease}.language-switcher input[type=checkbox]:checked+label::after{transform:rotate(180deg)}.language-switcher ul{position:absolute;top:100%;left:0;background:#fff;border:1px solid #ccc;border-radius:6px;margin:0;padding:.25em 0;width:-moz-max-content;width:max-content;box-shadow:0 4px 8px rgba(0,0,0,.1);display:none;z-index:999}.language-switcher ul li{list-style:none}.language-switcher ul li a{display:flex;align-items:center;gap:.5em;padding:.5em 1.5em;color:#333;text-decoration:none;white-space:nowrap}.language-switcher ul li a:hover{background:#f0f0f0;color:#000}.language-switcher input[type=checkbox]:checked~ul{display:block}

/* 語言選單樣式 */
#language-menu ul {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding: 0;
}

#language-menu li {
    margin: 0;
    list-style: none !important;
    list-style-type: none !important;
}

#language-menu li::before {
    display: none !important;
    content: none !important;
}

#language-menu li::marker {
    display: none !important;
}

#language-menu ul::before,
#language-menu ul::after {
    display: none !important;
}

#language-menu * {
    list-style: none !important;
    list-style-type: none !important;
}

/* 針對 Polylang 特定類別的樣式 */
.lang-item {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lang-item::before,
.lang-item::after {
    display: none !important;
    content: none !important;
}

.lang-item::marker {
    display: none !important;
}

li.lang-item {
    list-style: none !important;
    list-style-type: none !important;
}

li.lang-item::before,
li.lang-item::after {
    display: none !important;
    content: none !important;
}

li.lang-item::marker {
    display: none !important;
}

/* 更強的全域樣式 */
#language-menu .lang-item,
#language-menu .lang-item-9,
#language-menu .lang-item-zh-tw,
#language-menu .current-lang,
#language-menu .lang-item-first {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
}

#language-menu .lang-item::before,
#language-menu .lang-item::after,
#language-menu .lang-item::marker {
    display: none !important;
    content: none !important;
}

/* 確保所有可能的變體都被覆蓋 */
#language-menu li[class*="lang-"] {
    list-style: none !important;
    list-style-type: none !important;
}

#language-menu li[class*="lang-"]::before,
#language-menu li[class*="lang-"]::after,
#language-menu li[class*="lang-"]::marker {
    display: none !important;
    content: none !important;
}

#language-menu a {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    transition: background-color 0.2s;
}

#language-menu a:hover {
    background-color: #f3f4f6;
    color: #111827;
}

#language-menu img {
    width: 20px;
    height: auto;
    margin-right: 8px;
    border-radius: 2px;
}

#language-menu .lang-item-first {
    border-top: none;
}

#language-menu .current-lang a {
    background-color: #f3f4f6;
    font-weight: 500;
    color: #1f2937;
}


  .grecaptcha-badge{
    display: none !important;
}  