/* Shared, quiet contact actions in the masthead. */
.header-contact{display:flex;align-items:center;gap:14px;margin-left:auto;position:relative;flex-shrink:0}
.contact-title{font-size:14px;color:var(--ink);white-space:nowrap}
.contact-actions{display:flex;align-items:center;gap:8px}
.contact-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--action);font:13px/1.5 var(--font);white-space:nowrap;text-decoration:none;cursor:pointer;transition:background .18s}
.contact-action svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.contact-action:focus-visible,.wechat-close:focus-visible{outline:2px solid var(--action);outline-offset:3px}
.contact-action:disabled{opacity:.6;cursor:wait}
@media(hover:hover){.contact-action:hover{background:var(--yellow-soft);text-decoration:none}}
.contact-action:active{background:var(--soft)}
.header-contact .contact-feedback{position:absolute;right:0;top:calc(100% + 8px);margin:0;padding:10px 14px;width:max-content;max-width:min(320px,calc(100vw - 32px));border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:var(--shadow);font-size:13px;line-height:1.6;color:var(--action)}
.contact-feedback:empty{display:none}
.footer[hidden]{display:none!important}
@media(max-width:1100px) and (min-width:701px){
 :root{--nav-h:124px}
 .site-header .header-inner.wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;align-content:center}
 .site-header .brand{border:0;padding:0}
 .header-contact{grid-column:1/-1;justify-self:end}
}
@media(max-width:700px){
 :root{--nav-h:168px}
 .site-header .header-inner.wrap{display:flex;flex-wrap:wrap;align-content:center;gap:6px;width:calc(100% - 24px)}
 .site-header .brand{width:100%;min-height:36px;padding:0;border:0;font-size:15px}
 .site-header .brand-avatar{width:32px;height:32px}
 .site-header .header-nav{width:100%;margin:0;padding:2px}
 .site-header .header-nav a{flex:1;min-height:34px;padding:0 8px;font-size:13px}
 .header-contact{width:100%;justify-content:space-between;margin:0;gap:8px}
 .contact-title{font-size:12px}
 .contact-actions{gap:6px}
 .contact-action{font-size:12px;padding:8px;gap:4px}
 .contact-action svg{width:14px;height:14px}
 .wechat-dialog{padding:16px}
}
@media(prefers-reduced-motion:reduce){.contact-action{transition:none}}
.wechat-dialog{width:min(360px,calc(100vw - 32px));max-height:90vh;max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:16px;padding:20px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}.wechat-dialog::backdrop{background:rgba(37,33,47,.42);backdrop-filter:blur(3px)}.wechat-dialog-head{display:flex;justify-content:space-between;gap:10px;align-items:start}.wechat-dialog h2{font-size:20px;line-height:1.5;margin:0}.wechat-dialog-head p{font-size:13px;color:var(--muted);margin:5px 0 0}.wechat-close{display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid var(--line);background:var(--bg);border-radius:9px;font-size:25px;color:var(--muted);cursor:pointer}.wechat-dialog-image{display:block;width:min(260px,100%);height:auto;margin:12px auto}.wechat-dialog-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:8px;font-size:13px;color:var(--muted)}.wechat-dialog-foot a{display:inline-flex;align-items:center;min-height:44px}

/* Center navigation independently of the unequal brand/contact widths. */
@media(min-width:1101px){
 .site-header .header-inner.wrap{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:20px}
 .site-header .brand{justify-self:start;border-right:0;padding-right:0}
 .site-header .header-nav{justify-self:center;margin:0}
 .site-header .header-contact{justify-self:end;margin:0}
}
@media(min-width:701px) and (max-width:1100px){
 .site-header .header-nav{grid-column:1/-1;grid-row:2;justify-self:center}
 .site-header .header-contact{grid-column:2;grid-row:1;margin:0}
}
