/* 首页专用样式（中英文两个首页；仓库页/留言板不加载这个文件） */

/* ── 头部搜索框 ───────────────────────────────────────────────────── */
.hsearch { margin: .95rem 0 0; }
.hsearch input {
  width: 100%; box-sizing: border-box; font: inherit; font-size: .95rem;
  padding: .5rem .8rem; border: 1px solid var(--rule); border-radius: 9px;
  background: var(--bg); color: var(--fg);
}
.hsearch input::placeholder { color: var(--muted); }
.hsearch input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 93, 138, .13);
}
.hint { font-size: .78rem; color: var(--muted); margin: .35rem 0 0; }

/* 搜索结果（就地展开，不跳页） */
.hres {
  margin-top: .5rem; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--bg); max-height: 24rem; overflow-y: auto;
}
.hres a {
  display: block; padding: .48rem .75rem; border-top: 1px solid var(--rule);
  font-size: .88rem; text-decoration: none; color: var(--fg);
  overflow-wrap: anywhere;
}
.hres a:first-child { border-top: none; }
.hres a:hover { background: var(--accent-soft); text-decoration: none; }
.hres .r { color: var(--muted); font-size: .78rem; }
.hres .more {
  display: block; padding: .5rem .75rem; font-size: .82rem;
  color: var(--muted); border-top: 1px solid var(--rule); text-decoration: none;
}
.hres .more:hover { background: var(--accent-soft); text-decoration: none; }
.hres mark {
  background: var(--accent-soft); color: var(--accent);
  padding: 0 1px; border-radius: 3px;
}

/* ── 统计条（放在正文最前面，不用滚） ───────────────────────────────
   样式**只在这里定义**。曾经在 fab.html 里也写了一份（那是每页注入块，
   位置在 </body> 前、比本文件靠后），同权重把它盖掉了 —— 统计条被压成
   一行看不见的小灰字。
   两行：第一行访客/访问，第二行一整句保卫计数（学长指定的格式）。 */
.sitestats {
  display: flex; flex-direction: column; gap: .3rem;
  margin: 0 0 1.8rem; padding: .75rem 1rem;
  border: 1px solid var(--rule); border-radius: 10px;
  background: var(--accent-soft); font-size: .88rem; color: var(--muted);
  line-height: 1.7;
}
.sitestats .n {
  color: var(--accent); font-size: 1.1rem; font-weight: 650;
  margin: 0 .18rem; font-variant-numeric: tabular-nums;
}

@media (max-width: 520px) {
  .sitestats { font-size: .82rem; padding: .6rem .75rem; }
  .sitestats .n { font-size: 1rem; }
}

/* 站名可点回首页（2026-10-09 加） */
h1 a.homelink{color:inherit;text-decoration:none}
h1 a.homelink:hover{opacity:.82}