/* ============================================================
   AFRP 用户页共享版式壳 ·「纸刊 / PAPER」
   与主页 home-v4.css 同一套整版版式：固定导航 + 移动全屏菜单 +
   banner + 内容区 + 四列页脚。在 paper.css 之后加载；
   类名与主页保持一致（hr-*），视觉完全同源。
   ============================================================ */

:root {
	--nav-h: 64px;
	--maxw: 1280px;
}

/* ---------- 页面骨架：覆盖 style.css 的居中卡片布局 ---------- */
body.sh-body {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: flex-start;
	margin: 0;
	padding: 0;
	min-height: 100vh;
	background-color: var(--paper);
	overflow-x: hidden;
}

/* ---------- Logo（恢复主页配色顺序：afrp 墨黑 / .net 朱红） ---------- */
.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; }
.topbar-logo { height: 30px; width: auto; display: block; }

/* ---------- 按钮（与主页同款） ---------- */
.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-nav-brand .logo-link { color: inherit; }
.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; flex: 1 0 auto; padding-top: var(--nav-h); }
.hr-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

.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-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);
}

/* ---------- 子页 banner（紧凑英雄区） ---------- */
.hr-banner { padding: 52px 0 36px; border-bottom: 1px solid var(--ln); }
.hr-banner-title {
	font-family: var(--font-display);
	font-size: clamp(24px, 3vw, 34px); font-weight: 700;
	line-height: 1.2; letter-spacing: -.01em;
	margin: 14px 0 12px; color: var(--ink);
	text-align: left;
}
.hr-banner-title .grad { color: var(--ac-text); }
.hr-banner .hr-lead {
	margin: 0; max-width: none;
	font-size: 15px; line-height: 1.9; color: var(--ink-mut);
	text-wrap: pretty;
}
.hr-banner .hr-lead b { color: var(--ink); font-weight: 600; }
.hr-banner .hr-lead code { font-size: 13px; }

/* ---------- 内容区 ---------- */
.hr-page { padding: 36px 0 12px; }
.hr-page-card {
	background: var(--paper-hi);
	border: 1px solid var(--ln);
	border-radius: 4px;
	box-shadow: 0 16px 44px rgba(23, 24, 26, .06);
	padding: 30px 34px;
}
.hr-page-card > h2:first-child { margin-top: 4px; }

/* 内容区顶部操作行：原 banner 按钮迁移至此，导航放不下的页内动作 */
.hr-page-act {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	margin: 0 0 20px; padding-bottom: 18px;
	border-bottom: 1px solid var(--ln-soft);
}
.hr-page-act:empty { display: none; }

/* 认证类窄页：banner 下居中的纸卡 */
.hr-auth { max-width: 480px; margin: 0 auto; }
.hr-auth .card { max-width: none; width: 100%; margin: 0; }

/* ---------- 页脚（与主页同款四列） ---------- */
.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); }
.plain-link { color: var(--ink-mut); text-decoration: none; }
.plain-link:hover { color: var(--ink); }
.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; }

/* ---------- 回到顶部 ---------- */
.hr-top {
	position: fixed; right: 28px; bottom: 28px; z-index: 80;
	width: 44px; height: 44px; padding: 0;
	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); }

/* ---------- 响应式 ---------- */
@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-banner { padding: 40px 0 30px; }
	.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-banner-title { font-size: clamp(22px, 6.4vw, 28px); }
	.hr-page { padding: 26px 0 8px; }
	.hr-page-card { padding: 22px 18px; }
	.hr-auth .card { padding: 26px 20px; }
	.hr-foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.hr-top { right: 18px; bottom: 18px; }
}

/* ---------- 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hr-nav, .hr-sheet, .hr-top, .hr-btn { transition: none; }
}