/* 内容页只显示右侧位置短线，悬停、键盘或点按后展开同一份主导航。 */
html{scroll-padding-top:36px}
body.background-motion-opt-in #home-video{display:block}
.video-resume .bilingual{font:inherit;letter-spacing:inherit}
.video-resume .en{font-size:.75em}
.video-resume .video-toggle-icon{margin-left:16px}
.section-rail{display:none}
#hero-title .hero-title-en{text-transform:none}
h1[tabindex="-1"]:focus,h2[tabindex="-1"]:focus{outline:none}
body:not(.on-home) #site .reference-header{
  position:fixed;top:50%;right:7px;left:auto;width:342px;height:auto;min-height:120px;
  padding:0;display:block;transform:translateY(-50%);background:none;backdrop-filter:none;
  border:0;pointer-events:none;transition:none;z-index:40;
}
body:not(.on-home) #site .reference-header .wordmark{display:none}
body:not(.on-home) #site .section-rail{display:block;position:absolute;right:0;top:50%;transform:translateY(-50%);pointer-events:auto;z-index:2}
#rail-toggle{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:16px;width:44px;min-height:138px;padding:14px 10px;background:transparent}
.rail-mark{display:block;flex-shrink:0;width:15px;height:2px;background:#777;transition:width .25s,background .25s}
.rail-mark.active{width:26px;background:var(--accent)}
#rail-toggle:hover .rail-mark{background:#bcbcbc}
#rail-toggle:hover .rail-mark.active{background:var(--accent)}
body:not(.on-home) #site .reference-nav{
  position:relative;top:auto;right:auto;left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:18px;
  width:292px;margin:0 44px 0 0;padding:30px 25px 30px 32px;max-height:calc(100svh - 48px);overflow-y:auto;
  background:#101010f5;border:1px solid #ffffff24;backdrop-filter:blur(16px);box-shadow:0 16px 60px #0005;
  opacity:0;visibility:hidden;pointer-events:none;transform:translateX(18px);
  transition:opacity .22s,transform .45s var(--motion-ease);
}
body:not(.on-home) #site .reference-header.rail-open .reference-nav{opacity:1;visibility:visible;pointer-events:auto;transform:none}
body:not(.on-home) #site .reference-header:not(.rail-open) .reference-nav *{pointer-events:none!important}
body:not(.on-home) #site .reference-header:not(.rail-open) .nav-submenu{display:none!important;visibility:hidden!important}
body:not(.on-home) #site .reference-nav .hero-menu{position:static;display:flex;flex-direction:column;align-items:flex-end;gap:18px;width:100%;transform:none}
body:not(.on-home) #site .reference-nav .nav-item{position:relative;display:block;width:100%;pointer-events:auto}
body:not(.on-home) #site .reference-nav a:not([data-category]){
  display:block;position:relative;top:auto;right:auto;left:auto;width:176px;max-width:100%;min-height:46px;margin-left:auto;
  font-size:18px;line-height:1.35;letter-spacing:.04em;color:#a7a7a7;padding:0 26px 12px 0!important;
  transition:width .45s var(--motion-ease),font-size .45s var(--motion-ease),color .25s;
}
body:not(.on-home) #site .reference-nav a:not([data-category]):hover,
body:not(.on-home) #site .reference-nav a:not([data-category]):focus-visible,
body:not(.on-home) #site .reference-nav a.active{width:232px;font-size:24px;color:#fff}
body:not(.on-home) #site .reference-nav a:not([data-category]):after{left:0;right:0;bottom:0;width:100%;height:1px;opacity:1;background:#ffffff50;border-radius:0}
body:not(.on-home) #site .reference-nav a.active:after,
body:not(.on-home) #site .reference-nav a:not([data-category]):hover:after{background:var(--accent)}
body:not(.on-home) #site .reference-nav a .en{font-size:.53em;letter-spacing:.03em;margin-top:6px}
body:not(.on-home) #site .reference-nav .nav-contact{order:2}
body:not(.on-home) #site .reference-nav .submenu-toggle{position:absolute;top:2px;right:0;width:24px;height:28px;font-size:17px}
body:not(.on-home) #site .reference-nav .nav-submenu{
  position:static;display:none;width:100%;max-height:290px;overflow:auto;transform:none;margin:12px 0 0;padding:3px 14px;
  background:#ffffff06;border:1px solid #ffffff1c;box-shadow:none;opacity:0;visibility:hidden;pointer-events:none;
}
body:not(.on-home) #site .reference-nav .nav-submenu:after{display:none}
body:not(.on-home) #site .reference-nav .nav-submenu a{display:block;width:100%!important;font-size:12px!important;min-height:0;padding:10px 0!important}
body:not(.on-home) #site .reference-nav .nav-submenu a .en{font-size:9px;margin-top:4px}
body:not(.on-home) #site .reference-nav .nav-item.submenu-open>.nav-submenu,
body:not(.on-home) #site .reference-nav .nav-item:has(.nav-section-link:focus-visible)>.nav-submenu,
body:not(.on-home) #site .reference-nav .nav-item:has(.nav-submenu :focus-visible)>.nav-submenu{display:grid;opacity:1;visibility:visible;pointer-events:auto}
@media(hover:hover){body:not(.on-home) #site .reference-nav .nav-item:hover>.nav-submenu{display:grid;opacity:1;visibility:visible;pointer-events:auto}}
@media(max-width:700px){
  html{scroll-padding-top:28px}
  body:not(.on-home) #site .reference-header{right:2px;width:min(326px,calc(100vw - 18px))}
  body:not(.on-home) #site .reference-nav{width:calc(100% - 42px);margin-right:42px;padding:24px 20px;max-height:calc(100svh - 36px);gap:16px}
  body:not(.on-home) #site .reference-nav .hero-menu{gap:16px;bottom:auto}
  body:not(.on-home) #site .reference-nav a:not([data-category]){font-size:16px;min-height:44px;width:166px}
  body:not(.on-home) #site .reference-nav a:not([data-category]):hover,
  body:not(.on-home) #site .reference-nav a:not([data-category]):focus-visible,
  body:not(.on-home) #site .reference-nav a.active{font-size:21px;width:216px}
  body:not(.on-home) #site .reference-nav a .en{font-size:10px}
  body:not(.on-home) #site .reference-nav .nav-submenu{max-height:230px;padding:3px 12px}
  #rail-toggle{width:42px;padding-right:9px}
}
@media(prefers-reduced-motion:reduce){.rail-mark,body:not(.on-home) #site .reference-nav{transition:none}}
