/* ============================================================
   AFRP 首页改版 · 第四版「纸刊 / PAPER」（index-v4.php 专用）
   浅色纸面 + 墨黑文字 + 单一朱红点缀；左对齐编辑式版式、
   sticky 侧栏目录、账本式节点表、纵向链路图。
   终端与代码面板保留墨黑「印版」，作为纸面上的重音。
   ============================================================ */

@font-face {
	font-family: "Comfortaa Bold V2";
	src: url("fonts/comfortaa-bold.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: "Space Grotesk";
	src: url("fonts/space-grotesk-500.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: "Space Grotesk";
	src: url("fonts/space-grotesk-700.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: "JetBrains Mono";
	src: url("fonts/jetbrains-mono-400.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "JetBrains Mono";
	src: url("fonts/jetbrains-mono-500.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: "JetBrains Mono";
	src: url("fonts/jetbrains-mono-700.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}

:root {
	/* 纸面 */
	--paper: #F6F5F1;
	--paper-hi: #FCFBF8;
	--paper-2: #EFEDE7;
	--paper-3: #E5E2D9;
	/* 墨色 */
	--ink: #17181A;
	--ink-mut: #55585E;
	--ink-dim: #6E7178;
	--ln: rgba(23, 24, 26, .16);
	--ln-soft: rgba(23, 24, 26, .09);
	/* 朱红（唯一强调色） */
	--ac: #E4571B;          /* 图形 / 大字号 */
	--ac-text: #B93E17;     /* 小字号文本，纸面上 ≥ 5:1 */
	--ac-soft: rgba(228, 87, 27, .08);
	/* 语义色 */
	--ok: #1F7A4D;
	--warn: #9A6B15;
	--err: #C23A3A;
	--info: #3B62B0;
	--ember: var(--warn);   /* JS 状态色别名 */
	--green: var(--ok);
	/* 墨黑印版（终端 / 代码） */
	--plate: #17181A;
	--plate-2: #212226;
	--plate-tx: #EDEBE6;
	--plate-dim: #9A9DA3;
	--plate-ln: rgba(237, 235, 230, .1);
	/* 字体 */
	--font-display: "Space Grotesk", "PingFang SC", "Microsoft YaHei", sans-serif;
	--font-body: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
	--font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Courier New", monospace;
	--font-brand: "Comfortaa Bold V2", "Space Grotesk", "PingFang SC", sans-serif;
	--nav-h: 64px;
	--maxw: 1280px;
}

/* ===================== 基础 ===================== */
* { box-sizing: border-box; }
html {
	scroll-behavior: smooth;
	scrollbar-width: thin;
	scrollbar-color: rgba(23, 24, 26, .3) transparent;
}
body.hr-body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
body::-webkit-scrollbar { width: 10px; height: 10px; }
body::-webkit-scrollbar-track { background: transparent; }
body::-webkit-scrollbar-thumb {
	background: rgba(23, 24, 26, .24);
	border-radius: 5px;
	border: 2px solid var(--paper);
}
body::-webkit-scrollbar-thumb:hover { background: rgba(23, 24, 26, .4); }

::selection { background: rgba(228, 87, 27, .22); }
a { color: var(--ac-text); }
:focus-visible { outline: 2px solid var(--ac-text); outline-offset: 2px; }
button { font-family: inherit; }
[hidden] { display: none !important; }

.hr-scroll { scrollbar-width: thin; scrollbar-color: rgba(23, 24, 26, .26) transparent; }
.hr-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.hr-scroll::-webkit-scrollbar-track { background: transparent; }
.hr-scroll::-webkit-scrollbar-thumb { background: rgba(23, 24, 26, .22); border-radius: 4px; }
.hr-scroll::-webkit-scrollbar-thumb:hover { background: rgba(23, 24, 26, .38); }

.hr-sr {
	position: absolute; width: 1px; height: 1px;
	margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===================== 背景（壁纸 + 纸纹） ===================== */
.hr-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.hr-bg-photo {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	mix-blend-mode: multiply; opacity: .06;
}
.hr-bg-grain {
	position: absolute; inset: 0; opacity: .05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
	background-size: 180px 180px;
}

.hr-progress {
	position: fixed; top: 0; left: 0; z-index: 200;
	height: 2px; width: 0; background: var(--ac);
}

/* ===================== Logo ===================== */
.logo, .hero-logo { font-family: var(--font-brand); font-weight: 700; margin: 0; line-height: 1.15; }
.logo-link { text-decoration: none; display: inline-flex; align-items: baseline; }
.sttts { color: #FF7452; }
.stts { color: #1CC88A !important; }
.logo { font-size: 15px; letter-spacing: .01em; }
.hero-logo { font-size: 21px; letter-spacing: .01em; }
.topbar-logo { height: 30px; width: auto; display: block; }
.hr-hero-logo .topbar-logo { height: 52px; }

/* ===================== 按钮 ===================== */
.hr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 20px;
	font-size: 13.5px; font-weight: 600; line-height: 1; white-space: nowrap;
	border-radius: 3px; border: 1px solid transparent;
	text-decoration: none; cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .12s ease;
}
.hr-btn i.iconfont { font-size: 15px; }
.hr-btn:active { transform: translateY(1px); }
.hr-btn.primary { background: var(--ink); border-color: var(--ink); color: #F6F5F1; }
.hr-btn.primary:hover { background: var(--ac-text); border-color: var(--ac-text); color: #FBF7F2; }
.hr-btn.ghost { background: transparent; border-color: var(--ln); color: var(--ink); }
.hr-btn.ghost:hover { border-color: var(--ink); color: var(--ac-text); }
.hr-btn.mint { background: var(--ok); border-color: var(--ok); color: #F3F7F4; }
.hr-btn.mint:hover { background: #196340; border-color: #196340; }
.hr-btn.sm { height: 36px; padding: 0 15px; font-size: 12.5px; }
.hr-btn.sm i.iconfont { font-size: 13px; }
.hr-btn.xs { height: 27px; padding: 0 10px; font-size: 11.5px; font-weight: 500; }
.hr-btn:disabled { opacity: .38; cursor: not-allowed; transform: none; }

/* ===================== 导航 ===================== */
.hr-nav {
	position: fixed; top: 0; left: 0; right: 0; z-index: 110;
	height: var(--nav-h);
	background: rgba(246, 245, 241, .92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s ease, box-shadow .25s ease;
}
.hr-nav.is-stuck { border-bottom-color: var(--ln); box-shadow: 0 8px 28px rgba(23, 24, 26, .06); }
.hr-nav-in {
	max-width: var(--maxw); margin: 0 auto; height: 100%;
	padding: 0 40px;
	display: flex; align-items: center; gap: 28px;
}
.hr-nav-brand { flex: none; display: flex; align-items: center; }
.hr-navlinks { display: flex; align-items: center; gap: 22px; }
.hr-navlinks a {
	position: relative; padding: 6px 1px;
	font-size: 13px; color: var(--ink-mut); text-decoration: none;
	transition: color .2s ease;
}
.hr-navlinks a::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0;
	height: 2px; background: var(--ac);
	transform: scaleX(0); transform-origin: left;
	transition: transform .25s ease;
}
.hr-navlinks a:hover { color: var(--ink); }
.hr-navlinks a.is-active { color: var(--ink); font-weight: 600; }
.hr-navlinks a.is-active::after { transform: scaleX(1); }
.hr-nav-act { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hr-burger {
	display: none; width: 40px; height: 40px;
	align-items: center; justify-content: center;
	background: none; border: 1px solid var(--ln); border-radius: 3px;
	color: var(--ink); cursor: pointer;
}
.hr-burger svg { width: 19px; height: 19px; }

/* 移动全屏菜单 */
.hr-sheet {
	position: fixed; inset: 0; z-index: 120;
	background: var(--paper);
	padding: 84px 28px 44px;
	display: flex; flex-direction: column;
	overflow-y: auto;
	transform: translateY(-102%); visibility: hidden;
	transition: transform .32s cubic-bezier(.32, .72, .28, 1), visibility .32s;
}
.hr-sheet.open { transform: none; visibility: visible; }
.hr-sheet a {
	display: flex; align-items: center; justify-content: space-between;
	padding: 15px 4px;
	border-bottom: 1px solid var(--ln-soft);
	font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.hr-sheet a i { font-size: 16px; color: var(--ink-dim); }
.hr-sheet a:active { color: var(--ac-text); }
.hr-sheet-close {
	position: absolute; top: 16px; right: 22px;
	width: 38px; height: 38px;
	background: none; border: 1px solid var(--ln); border-radius: 3px;
	font-size: 20px; line-height: 1; color: var(--ink-mut); cursor: pointer;
}

/* ===================== 通用布局 ===================== */
.hr-main { position: relative; z-index: 1; padding-top: var(--nav-h); }
.hr-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.hr-section { padding: 88px 0; border-top: 1px solid var(--ln); }
.hr-sec-head { margin-bottom: 44px; }
.hr-sec-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hr-kicker {
	display: inline-block;
	font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
	letter-spacing: .16em; text-transform: uppercase;
	color: var(--ac-text);
}
.hr-h2 {
	font-family: var(--font-display);
	font-size: clamp(26px, 3.2vw, 38px); font-weight: 700;
	line-height: 1.28; letter-spacing: -.005em;
	margin: 14px 0 14px; color: var(--ink);
}
.hr-h2 em { font-style: normal; color: var(--ac-text); }
.hr-sec-note {
	margin: 0; max-width: 660px;
	font-size: 14px; line-height: 1.85; color: var(--ink-mut);
	text-wrap: pretty;
}
.hr-sec-note b { color: var(--ink); }

/* ===================== HERO ===================== */
.hr-hero { padding: 84px 0 68px; }
.hr-notice {
	display: flex; align-items: flex-start; gap: 12px;
	padding: 12px 16px; margin-bottom: 44px;
	border: 1px solid var(--ln); border-left: 3px solid var(--warn);
	border-radius: 3px; background: var(--paper-hi);
}
.hr-notice .tag {
	flex: none; display: inline-flex; align-items: center; gap: 6px;
	font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
	color: var(--warn); padding-top: 2px;
}
.hr-notice .tag i { font-size: 13px; }
.hr-notice p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--ink-mut); }
.hr-notice .sep { margin: 0 8px; color: var(--ink-dim); }

.hr-hero-grid {
	display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 64px; align-items: stretch;
}
.hr-hero-left {
	display: flex; flex-direction: column; justify-content: space-between;
	min-width: 0;
}
.hr-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
	letter-spacing: .14em; color: var(--ink-dim);
}
.hr-eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--ac); }
.hr-hero-logo { margin-top: 26px; }
.hr-title {
	font-family: var(--font-display);
	font-size: clamp(28px, 3.4vw, 40px); font-weight: 700;
	line-height: 1.18; letter-spacing: -.015em;
	margin: 18px 0 20px; color: var(--ink);
}
.hr-title .grad { color: var(--ac-text); }
.hr-lead {
	margin: 0; max-width: none;
	font-size: 16px; line-height: 1.95; color: var(--ink-mut);
	text-wrap: pretty;
}
.hr-lead b { color: var(--ink); font-weight: 600; }

/* 右侧账本面板 */
.hr-ledger {
	border: 1px solid var(--ln); border-radius: 4px;
	background: var(--paper-hi);
	box-shadow: 0 16px 44px rgba(23, 24, 26, .06);
	overflow: hidden;
}
.hr-ledger-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 15px 20px;
	border-bottom: 1px solid var(--ln);
	font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
	letter-spacing: .12em; color: var(--ink);
}
.hr-ledger-head .live {
	display: inline-flex; align-items: center; gap: 7px;
	font-size: 10.5px; letter-spacing: .04em; color: var(--ink-dim);
}
.hr-ledger-head .live i {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--ok);
	animation: hrLive 2.2s ease-in-out infinite;
}
@keyframes hrLive {
	0%, 100% { box-shadow: 0 0 0 0 rgba(31, 122, 77, .35); }
	55% { box-shadow: 0 0 0 5px rgba(31, 122, 77, 0); }
}
.hr-ledger-row {
	display: flex; align-items: baseline; justify-content: space-between;
	padding: 13px 20px;
	border-bottom: 1px dashed var(--ln-soft);
}
.hr-ledger-row .k { font-size: 13px; color: var(--ink-mut); }
.hr-ledger-row .n {
	font-family: var(--font-display); font-size: 27px; font-weight: 700;
	line-height: 1; color: var(--ink);
	font-variant-numeric: tabular-nums;
}

/* 横向穿透示意：三列等分，水平导轨穿过节点，脉冲左→右 */
.hr-vline {
	position: relative;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	padding: 28px 0 20px;
}
.hr-vline .rail {
	position: absolute; left: 16.6667%; right: 16.6667%; top: 32px;
	height: 2px; width: auto;
	background: var(--ln);
}
.hr-vline .pulse {
	position: absolute; left: 0; top: -2px;
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--ac);
	animation: hrFlow 3.8s cubic-bezier(.45, .05, .55, .95) infinite;
}
@keyframes hrFlow {
	0% { left: 0; opacity: 0; }
	10% { opacity: 1; }
	86% { opacity: 1; }
	100% { left: calc(100% - 6px); opacity: 0; }
}
.hr-vline .st {
	position: relative;
	display: flex; flex-direction: column; align-items: center;
	text-align: center; padding: 0;
}
.hr-vline .node {
	position: relative; left: auto; top: auto; z-index: 1;
	width: 10px; height: 10px; border-radius: 50%;
	background: var(--paper-hi); border: 2px solid var(--ink);
	margin-bottom: 12px;
}
.hr-vline .st.mid .node { border-color: var(--ac); background: var(--ac); }
.hr-vline .lb .t { display: block; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.hr-vline .st.mid .lb .t { color: var(--ac-text); }
.hr-vline .lb .s {
	display: block; margin-top: 3px;
	font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-dim);
	word-break: break-all;
}

.hr-hero-spec {
	margin: 52px 0 0; padding-top: 20px;
	border-top: 1px solid var(--ln-soft);
	font-family: var(--font-mono); font-size: 12px; line-height: 1.9;
	color: var(--ink-dim); overflow-wrap: anywhere;
}
.hr-hero-spec b { color: var(--ink); font-weight: 500; }
.hr-hero-spec i { font-style: normal; color: var(--ac-text); }

/* ===================== 侧栏目录 + 内容 ===================== */
.hr-body-grid {
	display: grid; grid-template-columns: 198px minmax(0, 1fr);
	gap: 56px; align-items: start;
}
.hr-rail { position: sticky; top: 96px; padding-top: 88px; }
.hr-rail-title {
	display: block; margin-bottom: 14px;
	font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
	letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim);
}
.hr-rail a {
	display: grid; grid-template-columns: 30px minmax(0, 1fr);
	align-items: baseline; column-gap: 4px;
	padding: 10px 0 10px 14px;
	border-left: 2px solid transparent;
	text-decoration: none;
	transition: border-color .2s ease;
}
.hr-rail a .no {
	font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim);
	transition: color .2s ease;
}
.hr-rail a .nm { font-size: 14px; font-weight: 600; color: var(--ink-mut); transition: color .2s ease; }
.hr-rail a .en {
	grid-column: 2; display: block;
	font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em;
	color: var(--ink-dim); opacity: .75;
}
.hr-rail a:hover .nm { color: var(--ink); }
.hr-rail a.is-active { border-left-color: var(--ac); }
.hr-rail a.is-active .no { color: var(--ac-text); }
.hr-rail a.is-active .nm { color: var(--ink); }
.hr-content { min-width: 0; }
.hr-content .hr-section:first-child { border-top: 0; padding-top: 88px; }

/* ===================== 链路 ===================== */
.hr-flow-grid {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 44px; align-items: start;
}
.hr-pipe { position: relative; }
.hr-stage {
	position: relative;
	display: block; width: 100%;
	padding: 14px 12px 14px 54px;
	border-radius: 3px; cursor: pointer;
	transition: background .18s ease;
}
.hr-stage::before {
	content: ''; position: absolute; left: 28px; top: 50px; bottom: -14px;
	width: 1px; background: var(--ln);
}
.hr-stage:nth-last-child(2)::before { display: none; }
.hr-stage:hover { background: var(--paper-2); }
.hr-stage .no {
	position: absolute; left: 12px; top: 15px; z-index: 1;
	width: 33px; height: 33px;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--ln); border-radius: 50%;
	background: var(--paper-hi);
	font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-dim);
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.hr-stage .bd { display: block; min-width: 0; }
.hr-stage .nm {
	display: flex; align-items: center; gap: 9px;
	font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.5;
	transition: color .2s ease;
}
.hr-stage .nm i { font-size: 16px; color: var(--ink-mut); }
.hr-stage .sub {
	display: block; margin-top: 2px;
	font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-dim);
}
.hr-stage.on { background: var(--paper-2); }
.hr-stage.on .no { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.hr-stage.on .nm { color: var(--ac-text); }
.hr-stage.on .nm i { color: var(--ac-text); }
.hr-pipe-cap {
	margin-top: 18px; padding: 16px 18px; min-height: 78px;
	background: var(--paper-2); border-left: 2px solid var(--ac);
	border-radius: 0 3px 3px 0;
	font-size: 13px; line-height: 1.85; color: var(--ink-mut);
}
.hr-pipe-cap b { color: var(--ink); font-weight: 700; }

/* 终端印版 */
.hr-term {
	position: sticky; top: 96px;
	background: var(--plate); border-radius: 6px; overflow: hidden;
	box-shadow: 0 22px 56px rgba(23, 24, 26, .18);
}
.hr-term-head {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--plate-ln);
}
.hr-dots { display: inline-flex; gap: 6px; }
.hr-dots i { width: 9px; height: 9px; border-radius: 50%; background: #43464C; }
.hr-dots i:first-child { background: #C25B4A; }
.hr-dots i:nth-child(2) { background: #C29A4A; }
.hr-dots i:last-child { background: #5FA37A; }
.hr-term-title {
	font-family: var(--font-mono); font-size: 11.5px; color: var(--plate-dim);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hr-term-pill {
	margin-left: auto; flex: none;
	display: inline-flex; align-items: center; gap: 6px;
	font-family: var(--font-mono); font-size: 10.5px; color: #9FBF8F;
}
.hr-term-pill i {
	width: 6px; height: 6px; border-radius: 50%; background: #9FBF8F;
	animation: hrLive 2.2s ease-in-out infinite;
}
.hr-term-body {
	height: 352px; overflow-y: auto;
	padding: 16px;
	font-family: var(--font-mono); font-size: 11.5px; line-height: 1.8;
	color: #AEB1B8;
	scrollbar-color: rgba(237, 235, 230, .2) transparent;
}
.hr-term-body::-webkit-scrollbar-thumb { background: rgba(237, 235, 230, .18); }
.hr-term-body::-webkit-scrollbar-thumb:hover { background: rgba(237, 235, 230, .32); }
.hr-term-line { display: block; white-space: pre-wrap; word-break: break-all; }
.hr-term-line .t { color: #AEB1B8; }
.hr-term-line .lv { color: #8FA8C8; }
.hr-term-line .ok { color: #9FBF8F; }
.hr-term-line .hi { color: #FF8352; }
.hr-term-line .path { color: #D8B26E; }
.hr-caret {
	display: inline-block; width: 7px; height: 13px;
	margin-left: 1px; vertical-align: -2px;
	background: #FF8352;
	animation: hrBlink 1s steps(2, start) infinite;
}
@keyframes hrBlink { to { visibility: hidden; } }
.hr-term-foot {
	display: flex; gap: 12px;
	padding: 10px 16px;
	border-top: 1px solid var(--plate-ln);
	font-family: var(--font-mono); font-size: 10.5px; color: #7A7E85;
}

/* ===================== 能力（清单行） ===================== */
.hr-feats { border-top: 1px solid var(--ln); }
.hr-feat {
	display: grid; grid-template-columns: 44px 40px minmax(0, 1fr);
	gap: 18px; align-items: start;
	padding: 26px 8px;
	border-bottom: 1px solid var(--ln-soft);
}
.hr-feat .no {
	font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim);
	padding-top: 8px;
}
.hr-feat .ic {
	width: 38px; height: 38px;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--ln); border-radius: 3px;
	background: var(--paper-hi);
	transition: border-color .2s ease, color .2s ease;
}
.hr-feat .ic i { font-size: 17px; color: var(--ink-mut); transition: color .2s ease; }
.hr-feat:hover .ic { border-color: rgba(185, 62, 23, .45); }
.hr-feat:hover .ic i { color: var(--ac-text); }
.hr-feat .bd { min-width: 0; }
.hr-feat .bd h3 { margin: 6px 0 8px; font-size: 16px; font-weight: 700; color: var(--ink); }
.hr-feat .bd p { margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--ink-mut); text-wrap: pretty; }
.hr-feat .bd p a { color: var(--ac-text); text-decoration: underline; text-underline-offset: 3px; }
.hr-feat .bd p b { color: var(--ink); }

/* ===================== 节点（账本表） ===================== */
.hr-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 22px; }
.hr-search { position: relative; flex: 1 1 240px; min-width: 200px; }
.hr-search > i {
	position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
	font-size: 14px; color: var(--ink-dim); pointer-events: none;
}
.hr-search input {
	width: 100%; height: 40px;
	padding: 0 12px 0 36px;
	border: 1px solid var(--ln); border-radius: 3px;
	background: var(--paper-hi);
	font-family: inherit; font-size: 13px; color: var(--ink);
	transition: border-color .18s ease;
}
.hr-search input::placeholder { color: var(--ink-dim); }
.hr-search input:focus { outline: none; border-color: var(--ink); }

.hr-seg {
	display: inline-flex; overflow: hidden;
	border: 1px solid var(--ln); border-radius: 3px;
	background: var(--paper-hi);
}
.hr-seg button {
	height: 38px; padding: 0 14px;
	background: none; border: none; border-right: 1px solid var(--ln-soft);
	font-size: 12.5px; color: var(--ink-mut); cursor: pointer;
	transition: background .18s ease, color .18s ease;
}
.hr-seg button:last-child { border-right: none; }
.hr-seg button:hover { color: var(--ink); }
.hr-seg button.on { background: var(--ink); color: var(--paper); font-weight: 600; }

.hr-select {
	height: 40px; padding: 0 12px;
	border: 1px solid var(--ln); border-radius: 3px;
	background: var(--paper-hi);
	font-family: inherit; font-size: 12.5px; color: var(--ink);
	cursor: pointer;
}
.hr-select:focus { outline: none; border-color: var(--ink); }
.hr-count { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-dim); }

.hr-table-head, .hr-row {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(0, .95fr) minmax(0, .8fr) 56px 68px 68px;
	gap: 14px; align-items: center;
	padding: 12px 16px;
}
.hr-table-head {
	border-bottom: 1px solid var(--ln);
	font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em;
	color: var(--ink-dim);
}
.hr-table-head .num { text-align: right; }
.hr-row {
	border-bottom: 1px solid var(--ln-soft);
	cursor: pointer;
	transition: background .16s ease;
}
.hr-row:hover { background: var(--paper-2); }
.hr-row:focus-visible { outline: 2px solid var(--ac-text); outline-offset: -2px; }
.hr-row .c { min-width: 0; }
.hr-row .c.name { display: flex; align-items: center; gap: 9px; }
.hr-row .c.name .nm {
	font-size: 14px; font-weight: 600; color: var(--ink);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hr-row .c.addr { display: flex; align-items: center; gap: 6px; }
.hr-row .c.addr code {
	font-family: var(--font-mono); font-size: 12px; color: var(--ink-mut);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hr-row .v {
	display: block;
	font-size: 12.5px; color: var(--ink-mut);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hr-row .v.muted { color: var(--ink-dim); }
.hr-row .c.num { text-align: right; }
.hr-row .c.num .v {
	font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--ink);
	font-variant-numeric: tabular-nums;
}
.hr-row .c.num .v.muted { color: var(--ink-dim); font-weight: 400; }
.hr-row .ml { display: none; }
.srv-flag { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; flex: none; }

.hr-badge {
	display: inline-flex; align-items: center; flex: none;
	padding: 4px 7px;
	font-size: 10.5px; font-weight: 600; line-height: 1; letter-spacing: .02em;
	border-radius: 2px; border: 1px solid;
}
.hr-badge.official { color: var(--ink-mut); border-color: var(--ln); background: transparent; }
.hr-badge.shared { color: var(--ac-text); border-color: rgba(185, 62, 23, .38); background: var(--ac-soft); }

.hr-copy {
	width: 26px; height: 26px; flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	background: none; border: 1px solid transparent; border-radius: 3px;
	color: var(--ink-dim); cursor: pointer;
	transition: color .18s ease, border-color .18s ease;
}
.hr-copy svg { width: 14px; height: 14px; }
.hr-copy:hover { color: var(--ac-text); border-color: var(--ln); }
.hr-copy.done { color: var(--ok); }

.hr-group-title {
	display: flex; align-items: center; gap: 14px;
	margin: 28px 0 10px;
	font-size: 13px; font-weight: 700; letter-spacing: .05em; color: var(--ink);
}
.hr-group-title:first-child { margin-top: 4px; }
.hr-group-title .ln { flex: 1; height: 1px; background: var(--ln-soft); }
.hr-group-note {
	margin: 0 0 12px; padding-left: 12px;
	border-left: 2px solid var(--ln);
	font-size: 12px; line-height: 1.8; color: var(--ink-dim);
}
.hr-empty {
	padding: 48px 16px; text-align: center;
	border: 1px dashed var(--ln); border-radius: 3px;
	font-size: 13px; color: var(--ink-dim);
}
.hr-empty b { display: block; margin-bottom: 6px; font-size: 14px; color: var(--ink); }

/* ===================== 节点抽屉面板 ===================== */
.hr-panel {
	border: 1px solid var(--ln); border-radius: 4px;
	background: var(--paper-hi);
	overflow: hidden;
}
.hr-panel-head {
	display: flex; align-items: center; gap: 10px;
	padding: 13px 18px;
	border-bottom: 1px solid var(--ln-soft);
}
.hr-panel-head > i { font-size: 15px; color: var(--ac-text); }
.hr-panel-head h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.hr-panel-head .hr-btn { margin-left: 0; }
.hr-panel-head h3 + .hr-btn { margin-left: auto; }
.hr-panel-head .hr-hint { margin: 0 0 0 auto; font-size: 11.5px; }
.hr-hint { display: block; margin-top: 6px; font-size: 11.5px; line-height: 1.65; color: var(--ink-dim); }
.hr-hint.err { color: var(--err); }

/* 代码印版 */
.hr-code {
	margin: 0; padding: 18px;
	min-height: 320px; max-height: 560px; overflow: auto;
	background: var(--plate);
	font-family: var(--font-mono); font-size: 12px; line-height: 1.85;
	color: #C9CCD2; white-space: pre; tab-size: 4;
	scrollbar-color: rgba(237, 235, 230, .2) transparent;
}
.hr-code::-webkit-scrollbar-thumb { background: rgba(237, 235, 230, .18); }
.hr-code::-webkit-scrollbar-thumb:hover { background: rgba(237, 235, 230, .32); }
.hr-code .key { color: #EDEBE6; }
.hr-code .str { color: #9FBF8F; }
.hr-code .num { color: #D8B26E; }
.hr-code .bool { color: #8FA8C8; }
.hr-code .cm { color: #7A7E85; }
.hr-code .sec { color: #FF8352; font-weight: 500; }

/* ===================== 下载 ===================== */
.hr-plats {
	display: grid; grid-template-columns: 1fr 1fr; column-gap: 44px;
	border-top: 1px solid var(--ln);
}
.hr-plat {
	display: flex; align-items: center; gap: 14px;
	padding: 18px 10px;
	border-bottom: 1px solid var(--ln-soft);
	text-decoration: none;
	transition: background .16s ease;
}
.hr-plat:hover { background: var(--paper-2); }
.hr-plat > i { width: 28px; flex: none; text-align: center; font-size: 20px; color: var(--ink-mut); transition: color .18s ease; }
.hr-plat:hover > i { color: var(--ac-text); }
.hr-plat .nm { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.hr-plat .ds { font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim); }
.hr-plat .ar { margin-left: auto; flex: none; color: var(--ink-dim); transition: color .18s ease, transform .18s ease; }
.hr-plat .ar svg { width: 16px; height: 16px; display: block; }
.hr-plat:hover .ar { color: var(--ac-text); transform: translate(2px, -2px); }

/* ===================== 上手 ===================== */
.hr-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.hr-step { border-top: 2px solid var(--ink); padding-top: 20px; }
.hr-step .no {
	font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
	color: var(--ac-text);
}
.hr-step h3 { margin: 10px 0 10px; font-size: 17px; font-weight: 700; color: var(--ink); }
.hr-step p { margin: 0 0 18px; font-size: 13px; line-height: 1.9; color: var(--ink-mut); text-wrap: pretty; }
.hr-cmd {
	display: flex; align-items: center; gap: 8px;
	padding: 10px 12px; margin-bottom: 14px;
	background: var(--plate); border-radius: 4px;
}
.hr-cmd code {
	flex: 1; min-width: 0;
	font-family: var(--font-mono); font-size: 12px; color: var(--plate-tx);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hr-cmd .hr-copy { color: var(--plate-dim); }
.hr-cmd .hr-copy:hover { color: #FF8352; border-color: rgba(237, 235, 230, .2); }
.hr-cmd .hr-copy.done { color: #9FBF8F; }

.hr-share {
	display: flex; align-items: center; gap: 26px;
	margin-top: 64px; padding: 28px 30px;
	border: 1px solid var(--ln); border-left: 3px solid var(--ac);
	border-radius: 3px; background: var(--paper-hi);
}
.hr-share > i.big { flex: none; font-size: 30px; color: var(--ac-text); }
.hr-share > div { flex: 1; min-width: 0; }
.hr-share h2 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--ink); }
.hr-share p { margin: 0; max-width: 660px; font-size: 13px; line-height: 1.85; color: var(--ink-mut); }
.hr-share .hr-btn { flex: none; }

/* ===================== 页脚 ===================== */
.hr-foot { margin-top: 48px; padding-top: 56px; border-top: 1px solid var(--ln); background: var(--paper-2); }
.hr-foot-grid {
	display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px; padding-bottom: 44px;
}
.hr-foot-brand .mark { font-family: var(--font-brand); font-size: 26px; font-weight: 700; line-height: 1.2; }
.hr-foot-brand .mark .o { color: #FF7452; }
.hr-foot-brand .mark .g { color: #1CC88A; }
.hr-foot-brand p { margin: 14px 0 18px; max-width: 300px; font-size: 12.5px; line-height: 1.9; color: var(--ink-mut); }
.hr-foot-social { display: flex; gap: 8px; }
.hr-foot-social a {
	width: 34px; height: 34px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--ln); border-radius: 3px;
	color: var(--ink-mut); text-decoration: none;
	transition: color .18s ease, border-color .18s ease;
}
.hr-foot-social a i { font-size: 15px; }
.hr-foot-social a:hover { color: var(--ac-text); border-color: rgba(185, 62, 23, .4); }
.hr-foot-grid h4 { margin: 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--ink); }
.hr-foot-grid ul { list-style: none; margin: 0; padding: 0; }
.hr-foot-grid li { margin-bottom: 10px; }
.hr-foot-grid ul a { font-size: 13px; color: var(--ink-mut); text-decoration: none; transition: color .18s ease; }
.hr-foot-grid ul a:hover { color: var(--ac-text); }
.hr-foot .site-footer { margin: 16px 0 0; border-top: 0; padding: 0; text-align: left; }
.hr-foot .site-footer p { margin: 0; font-size: 11px; line-height: 1.8; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim); }
.hr-foot-empty { font-size: 13px; color: var(--ink-dim); }
.hr-foot-more { margin-top: 4px; }
.hr-foot-more summary { cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; color: var(--ac-text); }
.hr-foot-more summary::-webkit-details-marker { display: none; }
.hr-foot-more summary::after { content: ' +'; }
.hr-foot-more[open] summary::after { content: ' −'; }
.hr-foot-more ul { margin-top: 10px; }
.plain-link { color: var(--ink-mut); text-decoration: none; }
.plain-link:hover { color: var(--ink); }

/* ===================== 抽屉 / 遮罩 ===================== */
.hr-scrim {
	position: fixed; inset: 0; z-index: 115;
	background: rgba(23, 24, 26, .38);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	opacity: 0; pointer-events: none;
	transition: opacity .3s ease;
}
.hr-scrim.open { opacity: 1; pointer-events: auto; }
.hr-drawer {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 125;
	width: min(440px, 100%);
	display: flex; flex-direction: column;
	background: var(--paper); border-left: 1px solid var(--ln);
	box-shadow: -24px 0 64px rgba(23, 24, 26, .14);
	transform: translateX(103%);
	transition: transform .34s cubic-bezier(.32, .72, .28, 1);
}
.hr-drawer.open { transform: none; }
.hr-drawer-head {
	display: flex; align-items: center; gap: 10px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--ln);
}
.hr-drawer-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-drawer-close {
	margin-left: auto; flex: none;
	width: 32px; height: 32px;
	background: none; border: 1px solid var(--ln); border-radius: 3px;
	font-size: 18px; line-height: 1; color: var(--ink-mut); cursor: pointer;
	transition: color .18s ease, border-color .18s ease;
}
.hr-drawer-close:hover { color: var(--ac-text); border-color: rgba(185, 62, 23, .4); }
.hr-drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.hr-drawer-foot {
	display: flex; flex-wrap: wrap; gap: 10px;
	padding: 16px 20px;
	border-top: 1px solid var(--ln);
}
.hr-kv { border: 1px solid var(--ln-soft); border-radius: 3px; overflow: hidden; }
.hr-kv > div {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	padding: 11px 14px;
	border-bottom: 1px solid var(--ln-soft);
	background: var(--paper-hi);
}
.hr-kv > div:last-child { border-bottom: none; }
.hr-kv .k { flex: none; font-size: 12px; color: var(--ink-dim); }
.hr-kv .v { font-size: 12.5px; color: var(--ink); text-align: right; word-break: break-all; }
.hr-kv .v.muted { color: var(--ink-dim); }
.hr-drawer-body .hr-panel { background: var(--paper-hi); }
.hr-drawer-body .hr-code { min-height: 0; max-height: none; border-radius: 0; }
.hr-drawer-body .hr-group-note { margin-top: 14px; }

/* ===================== 回到顶部 / 吐司 ===================== */
.hr-top {
	position: fixed; right: 28px; bottom: 28px; z-index: 80;
	width: 44px; height: 44px;
	display: flex; align-items: center; justify-content: center;
	background: var(--ink); color: var(--paper);
	border: none; border-radius: 3px; cursor: pointer;
	opacity: 0; pointer-events: none; transform: translateY(8px);
	transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.hr-top svg { width: 22px; height: 22px; }
.hr-top.show { opacity: 1; pointer-events: auto; transform: none; }
.hr-top:hover { background: var(--ac-text); }
.hr-toast {
	position: fixed; left: 50%; bottom: 32px; z-index: 140;
	transform: translate(-50%, 16px);
	padding: 11px 20px;
	background: var(--ink); color: var(--paper);
	font-size: 13px; border-radius: 3px;
	box-shadow: 0 12px 32px rgba(23, 24, 26, .28);
	opacity: 0; pointer-events: none;
	transition: opacity .25s ease, transform .25s ease;
}
.hr-toast.show { opacity: 1; transform: translate(-50%, 0); }
.hr-toast.err { background: var(--err); color: #FFFFFF; }

/* ===================== 弹窗通知 ===================== */
.popup-overlay {
	position: fixed; inset: 0; z-index: 130;
	display: flex; align-items: center; justify-content: center;
	padding: 24px;
	background: rgba(23, 24, 26, .42);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
.popup-box {
	position: relative; width: 100%; max-width: 480px;
	padding: 34px 32px;
	background: var(--paper-hi); border: 1px solid var(--ln); border-radius: 4px;
	box-shadow: 0 24px 80px rgba(23, 24, 26, .24);
}
.popup-close {
	position: absolute; top: 14px; right: 14px;
	width: 32px; height: 32px;
	background: none; border: 1px solid var(--ln); border-radius: 3px;
	color: var(--ink-mut); font-size: 18px; line-height: 1; cursor: pointer;
	transition: color .18s ease, border-color .18s ease;
}
.popup-close:hover { color: var(--ac-text); border-color: rgba(185, 62, 23, .4); }
.popup-title { margin: 0 0 12px; padding-right: 36px; font-size: 17px; font-weight: 700; color: var(--ink); }
.popup-content { font-size: 13.5px; line-height: 1.9; color: var(--ink-mut); }
.popup-content a { color: var(--ac-text); }

/* ===================== 进场动画 ===================== */
.hr-rv {
	opacity: 0; transform: translateY(18px);
	transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1);
}
.hr-rv.in { opacity: 1; transform: none; }

/* ===================== 响应式 ===================== */
@media (max-width: 1080px) {
	.hr-rail { display: none; }
	.hr-body-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.hr-hero-grid { gap: 44px; }
	.hr-flow-grid { grid-template-columns: minmax(0, 1fr); }
	.hr-term { position: static; }
}

@media (max-width: 900px) {
	.hr-navlinks { display: none; }
	.hr-burger { display: inline-flex; }
	.hr-nav-in { padding: 0 24px; gap: 16px; }
	.hr-nav-act .hr-btn.ghost { display: none; }

	.hr-hero { padding: 56px 0 52px; }
	.hr-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
	.hr-ledger { max-width: 560px; }
	.hr-hero-spec { margin-top: 40px; }

	.hr-section { padding: 64px 0; }
	.hr-content .hr-section:first-child { padding-top: 64px; }
	.hr-sec-head { margin-bottom: 34px; }
	.hr-sec-head.row { flex-direction: column; align-items: flex-start; gap: 16px; }

	/* 账本表 → 堆叠行 */
	.hr-table-head { display: none; }
	.hr-row {
		grid-template-columns: minmax(0, 1fr) auto auto;
		grid-template-areas:
			"name clients proxies"
			"addr addr addr"
			"sub loc auth";
		gap: 9px 16px;
		padding: 16px;
	}
	.hr-row .c.name { grid-area: name; }
	.hr-row .c.addr { grid-area: addr; }
	.hr-row .c.sub { grid-area: sub; }
	.hr-row .c.loc { grid-area: loc; }
	.hr-row .c.auth { grid-area: auth; }
	.hr-row .c.clients { grid-area: clients; }
	.hr-row .c.proxies { grid-area: proxies; }
	.hr-row .ml {
		display: block; margin-bottom: 2px;
		font-family: var(--font-mono); font-size: 10px; color: var(--ink-dim);
	}
	.hr-row .c.num .v { font-size: 15px; }
	.hr-row .c.sub, .hr-row .c.loc, .hr-row .c.auth {
		border-top: 1px dashed var(--ln-soft); padding-top: 9px;
	}
	.hr-count { margin-left: 0; flex-basis: 100%; }

	.hr-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.hr-share { flex-direction: column; align-items: flex-start; gap: 18px; }
	.hr-foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
	.hr-wrap { padding: 0 20px; }
	.hr-nav-in { padding: 0 20px; }
	.hr-nav-act .hr-btn.primary { height: 34px; padding: 0 12px; font-size: 12px; }
	.hr-title { font-size: clamp(24px, 6.6vw, 30px); }
	.hr-ledger-row .n { font-size: 23px; }
	.hr-feat { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
	.hr-feat .ic { display: none; }
	.hr-plats { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
	.hr-share { padding: 24px 20px; }
	.hr-foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.hr-top { right: 18px; bottom: 18px; }
	.hr-drawer { width: 100%; border-left: none; }
}

/* ===================== 减少动态 ===================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	.hr-rv { opacity: 1; transform: none; }
	.hr-vline .pulse { left: calc(50% - 3px); top: -2px; opacity: 1; animation: none; }
	.hr-caret { animation: none; visibility: visible; }
}