.language-switch { position: relative; flex: 0 0 auto; color: inherit; }
.language-switch summary { list-style: none; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 9px; border: 1px solid transparent; border-radius: 8px; font: inherit; font-size: 11px; cursor: pointer; transition: background .2s, border-color .2s; white-space: nowrap; }
.language-switch summary::-webkit-details-marker { display: none; }
.language-switch summary > span:first-child { font-size: 18px; line-height: 1; }
.language-switch summary:hover, .language-switch[open] summary { background: #8888880c; border-color: #88888824; }
.language-switch summary:focus-visible, .language-options a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.language-chevron { opacity: .5; transition: transform .2s; }
.language-switch[open] .language-chevron { transform: rotate(180deg); }
.header .language-options { position: absolute; top: calc(100% + 12px); right: 0; left: auto; z-index: 100; width: 216px; margin: 0; padding: 7px; color: #272722; background: #fffefbfa; backdrop-filter: blur(24px); border: 1px solid #88888824; border-radius: 14px; box-shadow: 0 16px 48px #1717171c, 0 3px 8px #17171708; display: grid; align-items: stretch; gap: 2px; max-height: min(420px, 75dvh); overflow-y: auto; animation: language-appear .2s ease-out; }
.header .language-options a { display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding: 8px 12px; border-radius: 7px; font-size: 13px; line-height: 1.4; text-decoration: none; transition: background .15s; }
.language-options a:hover, .language-options a[aria-current] { background: #88888811; }
.language-options a > span:last-child { opacity: .4; }
.language-options a[aria-current] > span:last-child { opacity: 1; }
@keyframes language-appear { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
html:not([lang="zh-CN"]) .hero h1, html:not([lang="zh-CN"]) .section-title h2, html:not([lang="zh-CN"]) .section-heading h2 { text-wrap: balance; }
html:not([lang="zh-CN"]) .nav a { font-size: 12px; }
html:not([lang="zh-CN"]) .nav { gap: clamp(12px, 2vw, 26px); }
html:not([lang="zh-CN"]) .brand-si { display: none; }
@media(min-width: 801px) {
 html:not([lang="zh-CN"]) #hero-heading > span:first-child { margin-inline-end: .22em; }
}
html:not([lang="zh-CN"]):not([lang="ja"]) .hero-em { margin-inline-start: .08em; }
@media(max-width: 480px) {
 .header .nav-wrap { gap: 12px; }
 .header .nav-actions > .button.small { display: none; }
 .language-switch summary { gap: 4px; padding: 0 5px; font-size: 10px; }
 .language-switch summary > span:first-child { font-size: 16px; }
 .language-switch .language-chevron { display: none; }
 .nav-actions { gap: 6px; }
 .nav-actions > .button.small { padding-inline: 10px; font-size: 10px; }
 html:not([lang="zh-CN"]) .nav-actions > .button.small { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
}
@media(prefers-reduced-motion: reduce) {
 .language-options { animation: none; }
 .language-chevron, .language-options a, .language-switch summary { transition: none; }
}
