/**
 * 文章 / 归档 / 正文排版（Runoob 式三栏）
 */

/* ---------- 文章卡网格 ---------- */

.hy-article-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.hy-article-card {
	background: #fff;
	border: 1px solid var(--hy-border);
	border-radius: var(--hy-radius);
	overflow: hidden;
	box-shadow: var(--hy-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hy-article-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--hy-shadow-lg);
	border-color: var(--hy-gold-light);
}

.hy-article-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
}

.hy-article-card__thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--hy-navy) 0%, var(--hy-navy-3) 100%);
	overflow: hidden;
}

.hy-article-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hy-article-card__thumb-fallback {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(320px 160px at 80% 20%, rgba(212, 175, 94, 0.35), transparent 65%),
		linear-gradient(135deg, var(--hy-navy) 0%, var(--hy-navy-3) 100%);
}

.hy-article-card__thumb-fallback::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
	background-size: 32px 32px;
}

.hy-article-card__tag {
	position: absolute;
	left: 12px;
	top: 12px;
	padding: 2px 12px;
	border-radius: 999px;
	background: rgba(11, 31, 58, 0.82);
	color: var(--hy-gold-light);
	font-size: 12px;
	font-weight: 600;
	backdrop-filter: blur(3px);
}

.hy-article-card__body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.hy-article-card__title {
	margin: 0 0 10px;
	font-size: 17px;
	line-height: 1.5;
	color: var(--hy-navy);
}

.hy-article-card:hover .hy-article-card__title {
	color: var(--hy-gold);
}

.hy-article-card__excerpt {
	margin: 0 0 14px;
	font-size: 13.5px;
	color: var(--hy-text-2);
	flex: 1;
}

.hy-article-card__date {
	font-size: 12.5px;
	color: var(--hy-text-2);
	opacity: 0.85;
}

/* ---------- 文章 Hero ---------- */

.hy-article-cat {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: var(--hy-gold-2);
}

.hy-article-title {
	font-size: 36px !important;
}

.hy-article-meta {
	margin: 0;
	font-size: 14px;
	color: var(--hy-text-light);
}

.hy-article-meta__sep {
	margin: 0 8px;
	opacity: 0.5;
}

/* ---------- 三栏布局 ---------- */

.hy-article-layout {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) 300px;
	gap: 40px;
	padding: 48px 24px 72px;
	align-items: start;
}

.hy-article-toc {
	position: sticky;
	top: 140px;
	background: #fff;
	border: 1px solid var(--hy-border);
	border-radius: var(--hy-radius);
	padding: 20px 22px;
	max-height: calc(100vh - 180px);
	overflow-y: auto;
}

.hy-article-toc__title {
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--hy-gold-light);
	font-size: 15px;
}

.hy-article-toc__nav ol {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: hytoc;
}

.hy-article-toc__nav li {
	counter-increment: hytoc;
	margin: 0;
}

.hy-article-toc__nav a {
	display: block;
	padding: 7px 8px 7px 30px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--hy-text-2);
	border-left: 2px solid transparent;
	position: relative;
	border-radius: 0 6px 6px 0;
}

.hy-article-toc__nav a::before {
	content: counters(hytoc, ".");
	position: absolute;
	left: 8px;
	font-size: 12px;
	color: var(--hy-gold);
	font-weight: 700;
}

.hy-article-toc__nav a:hover,
.hy-article-toc__nav a.is-active {
	color: var(--hy-navy);
	background: var(--hy-bg-tint);
	border-left-color: var(--hy-gold);
}

.hy-article-toc__nav .hy-toc-lv3 a {
	padding-left: 44px;
}

.hy-article-content {
	min-width: 0;
}

.hy-article-side {
	position: sticky;
	top: 140px;
}

/* ---------- 正文排版 ---------- */

.hy-prose {
	font-size: 16px;
	color: var(--hy-text);
}

.hy-prose h2 {
	margin: 44px 0 16px;
	font-size: 26px;
	padding-left: 14px;
	border-left: 4px solid var(--hy-gold);
	scroll-margin-top: 130px;
}

.hy-prose h3 {
	margin: 30px 0 12px;
	font-size: 20px;
	scroll-margin-top: 130px;
}

.hy-prose p {
	margin: 0 0 18px;
}

.hy-prose ul,
.hy-prose ol {
	margin: 0 0 18px;
	padding-left: 24px;
}

.hy-prose li {
	margin-bottom: 8px;
}

.hy-prose blockquote {
	margin: 24px 0;
	padding: 16px 22px;
	border-left: 4px solid var(--hy-gold);
	background: var(--hy-bg-tint);
	border-radius: 6px;
	color: var(--hy-text-2);
}

.hy-prose img {
	border-radius: var(--hy-radius);
}

.hy-prose a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- 风险提示框 ---------- */

.hy-article-risk {
	margin-top: 40px;
	background: #fdf3f2;
	border: 1px solid #f3d0cc;
	border-left: 4px solid var(--hy-down);
	border-radius: 8px;
	padding: 18px 22px;
}

.hy-article-risk h4 {
	margin: 0 0 8px;
	color: var(--hy-down);
	font-size: 15px;
}

.hy-article-risk p {
	margin: 0;
	font-size: 14px;
	color: var(--hy-text-2);
}

/* ---------- 上一篇 / 下一篇 ---------- */

.hy-article-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 36px;
}

.hy-article-nav__link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid var(--hy-border);
	border-radius: var(--hy-radius);
	color: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hy-article-nav__link:hover {
	border-color: var(--hy-gold);
	box-shadow: var(--hy-shadow);
	color: inherit;
}

.hy-article-nav__link span {
	font-size: 12.5px;
	color: var(--hy-text-2);
}

.hy-article-nav__link strong {
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--hy-navy);
}

.hy-article-nav__next {
	text-align: right;
}

/* ---------- 产品/金属页两栏 ---------- */

.hy-metal-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 44px;
	padding: 56px 24px 72px;
	align-items: start;
}

.hy-metal-side {
	position: sticky;
	top: 140px;
}

/* ---------- 行情内嵌卡 ---------- */

.hy-inline-market {
	display: flex;
	gap: 16px;
	align-items: center;
	margin: 20px 0 28px;
	flex-wrap: wrap;
}

.hy-inline-market--stack {
	flex-direction: column;
	align-items: stretch;
}

.hy-inline-market__card {
	display: flex;
	align-items: baseline;
	gap: 14px;
	background: var(--hy-navy);
	color: #fff;
	border-radius: var(--hy-radius);
	padding: 14px 20px;
	min-width: 180px;
}

.hy-inline-market__card span {
	font-size: 14px;
	color: var(--hy-text-light);
}

.hy-inline-market__card strong {
	font-size: 20px;
	font-variant-numeric: tabular-nums;
}

.hy-inline-market__card em {
	font-style: normal;
	font-size: 13px;
	font-weight: 600;
}

.hy-inline-market .hy-market-note {
	width: 100%;
}

/* ---------- 页面正文 ---------- */

.hy-page-body {
	padding: 56px 24px 72px;
}

.hy-page-head {
	margin: 40px 0 32px;
}

.hy-page-title {
	margin: 0;
	font-size: 32px;
}
