/**
 * Huang Yu Precious Metals — 基础样式
 * 配色：藏蓝（信任）+ 金（贵金属）+ 灰白（金融干净感）
 * 涨跌：绿涨红跌 + ▲/▼ 标记（可按需在 :root 一处切换）
 */

:root {
	--hy-navy: #0b1f3a;
	--hy-navy-2: #122b52;
	--hy-navy-3: #1b3a6b;
	--hy-gold: #b8912f;
	--hy-gold-2: #d4af5e;
	--hy-gold-light: #f3e6c4;
	--hy-bg: #ffffff;
	--hy-bg-tint: #f6f7f9;
	--hy-border: #e5e8ee;
	--hy-text: #1c2733;
	--hy-text-2: #5b6878;
	--hy-text-light: #c7d2e2;
	/* 涨跌色（绿涨红跌）：如需改为红涨绿跌，仅需交换下面两个变量 */
	--hy-up: #0e9b5c;
	--hy-down: #d4382c;

	--hy-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	--hy-shadow: 0 6px 24px rgba(11, 31, 58, 0.08);
	--hy-shadow-lg: 0 14px 40px rgba(11, 31, 58, 0.16);
	--hy-radius: 10px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--hy-font);
	font-size: 16px;
	line-height: 1.75;
	color: var(--hy-text);
	background: var(--hy-bg);
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--hy-navy-3);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--hy-gold);
}

img {
	max-width: 100%;
	height: auto;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.3;
	color: var(--hy-navy);
	font-weight: 700;
}

/* ---------- 布局容器 ---------- */

.hy-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.hy-main {
	min-height: 50vh;
}

/* ---------- 区块 ---------- */

.hy-section {
	padding: 72px 0;
}

.hy-section--tint {
	background: var(--hy-bg-tint);
}

.hy-section--dark {
	background: linear-gradient(135deg, var(--hy-navy) 0%, var(--hy-navy-2) 100%);
}

.hy-section--dark .hy-kicker,
.hy-section--dark .hy-section-title,
.hy-section--dark .hy-feature h3 {
	color: #fff;
}

.hy-section--dark .hy-section-subtitle,
.hy-section--dark .hy-feature p {
	color: var(--hy-text-light);
}

.hy-section-head {
	max-width: 720px;
	margin: 0 auto 44px;
	text-align: center;
}

.hy-kicker {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--hy-gold);
}

.hy-section-title {
	margin: 0 0 12px;
	font-size: 34px;
	letter-spacing: 0.01em;
}

.hy-section-subtitle {
	margin: 0;
	font-size: 16px;
	color: var(--hy-text-2);
}

/* ---------- 按钮 ---------- */

.hy-btn {
	display: inline-block;
	padding: 12px 28px;
	border: 1px solid transparent;
	border-radius: var(--hy-radius);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.hy-btn-primary,
.hy-btn-gold {
	background: linear-gradient(135deg, var(--hy-gold-2), var(--hy-gold));
	color: #fff;
	box-shadow: 0 4px 14px rgba(184, 145, 47, 0.35);
}

.hy-btn-primary:hover,
.hy-btn-gold:hover {
	color: #fff;
	filter: brightness(1.06);
	box-shadow: 0 6px 20px rgba(184, 145, 47, 0.45);
}

.hy-btn-ghost {
	border-color: var(--hy-navy-3);
	color: var(--hy-navy-3);
	background: transparent;
}

.hy-btn-ghost:hover {
	background: var(--hy-navy-3);
	color: #fff;
}

.hy-btn-ghost-light {
	border-color: rgba(255, 255, 255, 0.7);
	color: #fff;
	background: transparent;
}

.hy-btn-ghost-light:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.hy-btn-text {
	padding: 0;
	background: none;
	color: var(--hy-navy-3);
	font-weight: 600;
	border: 0;
}

.hy-btn-text:hover {
	color: var(--hy-gold);
}

.hy-btn-sm {
	padding: 8px 20px;
	font-size: 14px;
}

/* ---------- 通用卡片网格 ---------- */

.hy-cards-3,
.hy-cards-4 {
	display: grid;
	gap: 24px;
}

.hy-cards-3 {
	grid-template-columns: repeat(3, 1fr);
}

.hy-cards-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* ---------- 入口卡（客户入口/服务） ---------- */

.hy-entry-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--hy-border);
	border-top: 3px solid var(--hy-gold);
	border-radius: var(--hy-radius);
	padding: 32px 28px;
	box-shadow: var(--hy-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.hy-entry-card {
	color: inherit;
}

.hy-entry-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--hy-shadow-lg);
	color: inherit;
}

.hy-entry-card h3 {
	margin: 0 0 12px;
	font-size: 21px;
}

.hy-entry-card p {
	margin: 0 0 18px;
	color: var(--hy-text-2);
	font-size: 15px;
	flex: 1;
}

.hy-entry-card__cta {
	color: var(--hy-gold);
	font-weight: 600;
	font-size: 15px;
}

/* ---------- 表格 ---------- */

.hy-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: #fff;
}

.hy-table th,
.hy-table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--hy-border);
	text-align: left;
}

.hy-table th {
	background: var(--hy-bg-tint);
	color: var(--hy-navy);
	font-weight: 600;
}

.hy-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--hy-border);
	border-radius: var(--hy-radius);
}

/* ---------- 涨跌通用 ---------- */

.hy-up,
.is-up {
	color: var(--hy-up);
}

.hy-down,
.is-down {
	color: var(--hy-down);
}

/* ---------- 面包屑 ---------- */

.hy-breadcrumbs {
	margin: 0 0 18px;
	font-size: 13px;
	color: var(--hy-text-2);
}

.hy-hero--page .hy-breadcrumbs,
.hy-hero--article .hy-breadcrumbs,
.hy-hero--metal .hy-breadcrumbs,
.hy-hero--page .hy-breadcrumbs a {
	color: rgba(255, 255, 255, 0.8);
}

.hy-breadcrumbs a {
	color: var(--hy-text-2);
}

.hy-hero--page .hy-breadcrumbs a:hover,
.hy-hero--metal .hy-breadcrumbs a:hover {
	color: #fff;
}

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

.hy-breadcrumbs__current {
	color: inherit;
}

/* ---------- 分页 / 空状态 ---------- */

.hy-pagination {
	margin-top: 40px;
	text-align: center;
}

.hy-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 4px;
	border: 1px solid var(--hy-border);
	border-radius: 6px;
	color: var(--hy-text-2);
	font-size: 14px;
}

.hy-pagination .page-numbers.current {
	background: var(--hy-navy);
	border-color: var(--hy-navy);
	color: #fff;
}

.hy-empty {
	padding: 48px 0;
	text-align: center;
	color: var(--hy-text-2);
}

/* ---------- 搜索表单 ---------- */

.hy-search-form {
	max-width: 560px;
	margin: 0 auto 40px;
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-form .search-field {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid var(--hy-border);
	border-radius: var(--hy-radius);
	font-size: 15px;
	font-family: inherit;
}

.search-form .search-submit {
	padding: 12px 24px;
	border: 0;
	border-radius: var(--hy-radius);
	background: var(--hy-navy);
	color: #fff;
	font-size: 15px;
	font-family: inherit;
	cursor: pointer;
}

.search-form .search-submit:hover {
	background: var(--hy-navy-3);
}

/* ---------- 404 ---------- */

.hy-404-actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
	padding: 24px 0 72px;
}

/* ---------- Widget 通用 ---------- */

.widget {
	background: #fff;
	border: 1px solid var(--hy-border);
	border-radius: var(--hy-radius);
	padding: 22px 24px;
	margin-bottom: 24px;
}

.widget-title {
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--hy-gold-light);
	font-size: 16px;
}

.hy-side-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hy-side-list li + li {
	margin-top: 10px;
}

.hy-side-list a {
	font-size: 14px;
	color: var(--hy-text-2);
	line-height: 1.55;
}

.hy-side-list a:hover {
	color: var(--hy-gold);
}

.hy-side-toc {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hy-side-toc a {
	font-size: 14px;
	color: var(--hy-text-2);
	padding: 6px 10px;
	border-left: 2px solid var(--hy-border);
}

.hy-side-toc a:hover,
.hy-side-toc a.is-active {
	border-left-color: var(--hy-gold);
	color: var(--hy-navy);
	background: var(--hy-gold-light);
}

/* ---------- Footer ---------- */

.hy-footer {
	background: var(--hy-navy);
	color: var(--hy-text-light);
}

.hy-footer__main {
	padding: 64px 0 48px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.hy-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr repeat(6, 1fr);
	gap: 32px 24px;
}

.hy-footer__logo {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
	color: #fff;
	margin-bottom: 14px;
}

.hy-footer__logo strong {
	font-size: 20px;
	letter-spacing: 0.05em;
}

.hy-footer__logo span {
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hy-gold-2);
}

.hy-footer__desc {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.8;
	color: var(--hy-text-light);
	opacity: 0.85;
}

.hy-footer__col h4 {
	margin: 0 0 16px;
	font-size: 15px;
	color: #fff;
}

.hy-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hy-footer__col li + li {
	margin-top: 10px;
}

.hy-footer__col a {
	font-size: 13.5px;
	color: var(--hy-text-light);
	opacity: 0.85;
}

.hy-footer__col a:hover {
	color: var(--hy-gold-2);
	opacity: 1;
}

.hy-footer__bottom {
	padding: 20px 0;
}

.hy-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.hy-footer__legal {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
}

.hy-footer__legal a {
	font-size: 12.5px;
	color: var(--hy-text-light);
	opacity: 0.75;
}

.hy-footer__legal a:hover {
	color: var(--hy-gold-2);
	opacity: 1;
}

.hy-footer__copy {
	margin: 0;
	font-size: 12.5px;
	color: var(--hy-text-light);
	opacity: 0.65;
}
