/* 开关位于各自的模态层中，详情与黑洞打开后仍可切换。 */
.header-actions{display:flex;align-items:flex-start;gap:30px}
.language-switch{display:inline-flex;align-items:center;gap:7px;color:#868981;font-size:10px;line-height:20px;letter-spacing:.02em;white-space:nowrap;pointer-events:auto}
.language-switch button{padding:0 1px;min-height:24px;position:relative;transition:color .2s}
.language-switch button[aria-pressed="true"]{color:#f4f3ef}
.language-switch button[aria-pressed="true"]::after{content:'';position:absolute;bottom:0;left:1px;right:1px;height:1px;background:currentColor;opacity:.7}
.language-switch button:hover{color:#fff}
.language-switch>span{opacity:.5}
.nav-link>span[data-i18n]{font:inherit;transform:none}
.dialog-language{position:fixed;right:calc(var(--edge) + 72px);top:40px;z-index:20}
.project-dialog .dialog-language{position:absolute;right:84px;top:34px;color:#777}
.lightbox .dialog-language{right:88px;top:38px;color:#777}
.project-dialog .language-switch button[aria-pressed="true"]{color:#222}
.project-dialog .language-switch button:hover{color:#000}
.portal-dialog[data-kind="contact"] .dialog-language{right:var(--edge)}
.mobile-cover.image-error::after,.source-sheet.image-error::before{content:attr(data-error-label)}
html[lang="en"] .index-list{width:min(1120px,88vw);gap:10px}
html[lang="en"] .index-row{flex-wrap:wrap;gap:8px 16px}
html[lang="en"] .index-item{font-size:clamp(19px,1.7vw,28px);letter-spacing:-.035em}
html[lang="en"] .project-info h1{font-size:clamp(34px,3.2vw,58px);line-height:1.08;overflow-wrap:break-word}
html[lang="en"] .project-meta>div{align-items:flex-start}
html[lang="en"] .project-meta dd{max-width:68%;line-height:1.6}
html[lang="en"] .project-tags{flex-wrap:wrap}
html[lang="en"] .contact-mail{letter-spacing:-.04em}
html[lang="en"] .portal-bio{font-size:13px;line-height:1.75}
html[lang="en"] .portal-content{width:min(450px,72vw)}
@media(max-width:760px){
  .header-actions{gap:15px;align-items:center}
  .language-switch{gap:5px;font-size:10px;line-height:20px}
  .language-switch button{min-height:30px;padding:0 2px}
  .header-actions .nav-link{margin:0;padding:5px 0}
  .header-brand{max-width:calc(100% - 120px)}
  .header-brand span:last-child{line-height:1.6;letter-spacing:0}
  .mobile-card-label>span:first-child{display:block;flex:1;min-width:0;width:auto;height:auto;border-radius:0;background:transparent}
  .mobile-card-label strong{display:block;white-space:normal;overflow-wrap:break-word;line-height:1.3}
  .dialog-language{top:22px;right:calc(var(--edge) + 66px)}
  .project-dialog .dialog-language,.lightbox .dialog-language{top:25px;right:76px}
  .project-dialog .dialog-language{position:fixed}
  .lightbox .dialog-language{right:84px}
  html[lang="en"] .header-brand span:last-child{max-width:165px;font-size:8px}
  html[lang="en"] .index-list{width:100%;gap:8px}
  html[lang="en"] .index-item{font-size:clamp(17px,5.1vw,22px);line-height:1.7;max-width:100%;white-space:normal}
  html[lang="en"] .index-label{max-width:100%}
  html[lang="en"] .project-info h1{font-size:36px;max-width:100%}
  html[lang="en"] .project-number{font-size:8px;max-width:62%}
  html[lang="en"] .source-pdf-link{font-size:10px}
  html[lang="en"] .portal-dialog .portal-content{width:min(76vw,312px)}
  html[lang="en"] .portal-dialog[data-kind="about"] .portal-bio{font-size:11px;line-height:1.65;margin-bottom:10px}
  html[lang="en"] .portal-dialog[data-kind="about"] .portal-en{font-size:8px;margin-bottom:12px}
  html[lang="en"] .portal-dialog[data-kind="about"] .portal-detail{font-size:9px;line-height:1.5;margin:6px 0}
  html[lang="en"] .portal-dialog[data-kind="about"] .portal-divider{margin:9px auto}
  html[lang="en"] .portal-dialog[data-kind="about"] .portal-links{margin-top:10px;font-size:10px}
  html[lang="en"] .portal-dialog[data-kind="contact"] h1{font-size:clamp(19px,5.4vw,23px)}
  html[lang="en"] .portal-dialog[data-kind="contact"] .portal-bio{font-size:11px;line-height:1.7}
  html[lang="en"] .portal-dialog[data-kind="contact"] .copy-feedback{height:auto;min-height:14px}
  html[lang="en"] .portal-dialog[data-kind="contact"] .copy-feedback:empty{min-height:0}
}
@media(prefers-reduced-motion:reduce){.language-switch button{transition:none}}
