/* All rules are scoped to new home/focus scene elements. */
.nh-scene { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.nh-scene canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.nh-hero { overflow: hidden; isolation: isolate; background: #0b1016; }
.nh-hero-scene { z-index: 0; }
.nh-hero-fog { opacity: .94; }
.nh-hero-particles { z-index: 1; }
.nh-hero::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg,rgba(9,14,20,.76),rgba(9,14,20,.1) 65%,transparent),linear-gradient(0deg,#141414,transparent 22%); }
.nh-hero #left-content { max-width: 530px; }
.nh-hero #left-content h1 { text-shadow: 0 2px 28px #0007; }
.nh-hero #left-content p { color: #99a9b6; }
.nh-hero.nh-hide-avatar #right-avatar { visibility: hidden; pointer-events: none; }
.nh-hero .nh-hero-caption { position: absolute; z-index: 3; bottom: 42px; left: 50%; transform: translateX(-50%);
  color: #a4b5c0; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; opacity: .6; }
.nh-hero .nh-hero-caption::before { content: ''; display: inline-block; width: 22px; height: 1px; vertical-align: middle; margin-right: 12px; background: currentColor; }
.nh-focus-shader { opacity: 0; transition: opacity .6s ease; }
.nh-focus-shader.is-visible { opacity: 1; }
.nh-shader-settings { padding: 18px 0 8px; margin-top: 12px; border-top: 1px solid #ffffff20; }
.nh-shader-settings[hidden] { display: none !important; }
.nh-shader-settings legend { padding-top: 8px; color: #b8c6cd; font-size: 12px; letter-spacing: .12em; }
.nh-shader-settings .nh-range-label { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #d8e1e5; margin-bottom: 10px; }
.nh-shader-settings label { display: block; margin: 15px 0; }
.nh-shader-settings label.nh-check { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #d8e1e5; }
.nh-shader-settings input[type=range] { width: 100%; accent-color: #a5c6d9; }
.nh-shader-settings input[type=checkbox] { width: 16px; height: 16px; accent-color: #a5c6d9; }
.nh-shader-settings output { color: #9ab3c5; font-variant-numeric: tabular-nums; }
.nh-shader-settings .nh-shader-note { font-size: 12px; line-height: 1.7; color: #aab7be; margin: 12px 0; }
.nh-shader-settings button { background: transparent; border: 1px solid #ffffff25; border-radius: 8px; padding: 7px 10px; color: #ccd8df; font-size: 12px; }
.nanohex-focus-app[data-background-type=shader] .nanohex-focus-grain { animation: none; opacity: .04; }

/* 首屏下探提示：1.6.0 起为可点击锚点（平滑滚动到文章列表） */
.nh-hero a.nh-hero-caption { cursor: pointer; text-decoration: none; padding: 12px 16px; bottom: 30px; opacity: .6; transition: opacity .3s ease; }
.nh-hero a.nh-hero-caption:hover, .nh-hero a.nh-hero-caption:focus-visible { opacity: 1; }
.nh-hero a.nh-hero-caption:focus-visible { outline: 1px solid rgba(164,181,192,.6); outline-offset: 4px; border-radius: 2px; }
@keyframes nh-hero-caption-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}
.nh-hero a.nh-hero-caption { animation: nh-hero-caption-bob 3.2s ease-in-out infinite; }
.nh-hero a.nh-hero-caption:hover, .nh-hero a.nh-hero-caption:focus-visible { animation-play-state: paused; }
@media(max-width:767px) {
  .nh-hero { min-height: max(720px, 100svh); }
  .nh-hero > .container { align-self: stretch; }
  .nh-hero #left-content { margin-top: 0; }
  .nh-hero.nh-hide-avatar #right-avatar { height: 250px; }
  .nh-hero::after { background: linear-gradient(180deg,rgba(9,14,20,.68),transparent 60%,#141414); }
  .nh-hero .nh-hero-caption { bottom: 10px; font-size: 9px; padding: 14px 18px; }
}
@media(prefers-reduced-motion:reduce) { .nh-focus-shader { transition: none; } .nh-hero a.nh-hero-caption { animation: none; } }

/* With an avatar, keep identity in the left column and reserve the right for the mark. */
.nh-hero.nh-with-avatar > .container { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px 40px; }
.nh-hero.nh-with-avatar #right-avatar { grid-column:1; grid-row:1; width:112px; justify-self:start; }
.nh-hero.nh-with-avatar #right-avatar > div:first-child { width:112px; height:112px; border-width:2px; }
.nh-hero.nh-with-avatar #right-avatar > div:not(:first-child) { display:none; }
.nh-hero.nh-with-avatar #left-content { grid-column:1; grid-row:2; min-width:0; }
@media(max-width:767px) {
 .nh-hero.nh-with-avatar { min-height:max(1000px,100svh); justify-content:flex-start; }
 .nh-hero.nh-with-avatar > .container { grid-template-columns:minmax(0,1fr); gap:24px; padding-top:70px; padding-bottom:390px; }
 .nh-hero.nh-with-avatar #right-avatar { justify-self:center; }
 .nh-hero.nh-with-avatar #left-content { margin-bottom:0; justify-self:center; }
}
