/**
 * 行情中心 / 交易平台 Demo / 历史数据
 */

.hy-history-table td {
	font-variant-numeric: tabular-nums;
}

.hy-history-table .hy-chg-up {
	color: var(--hy-up);
	font-weight: 600;
}

.hy-history-table .hy-chg-down {
	color: var(--hy-down);
	font-weight: 600;
}

/* ---------- 交易平台 UI Demo ---------- */

.hy-demo-terminal {
	background: #0e1728;
	border: 1px solid #22314e;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--hy-shadow-lg);
	color: #dce5f2;
}

.hy-demo-terminal__head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	background: #0a1120;
	border-bottom: 1px solid #22314e;
}

.hy-demo-terminal__dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #33425f;
}

.hy-demo-terminal__head .hy-demo-terminal__dot:first-child {
	background: #e0655c;
}

.hy-demo-terminal__head .hy-demo-terminal__dot:nth-child(2) {
	background: #e2b355;
}

.hy-demo-terminal__head .hy-demo-terminal__dot:nth-child(3) {
	background: #61c07d;
}

.hy-demo-terminal__title {
	margin-left: 12px;
	font-size: 12.5px;
	letter-spacing: 0.12em;
	color: #7e8db0;
}

.hy-demo-terminal__body {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) 260px;
	gap: 1px;
	background: #1a2740;
}

.hy-demo-terminal__quotes,
.hy-demo-terminal__chart,
.hy-demo-terminal__panel {
	background: #0e1728;
	padding: 18px;
}

.hy-demo-terminal__quote {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
	margin-bottom: 10px;
}

.hy-demo-terminal__quote span {
	font-size: 12px;
	color: #7e8db0;
}

.hy-demo-terminal__quote strong {
	font-size: 18px;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.hy-demo-terminal__quote em {
	font-size: 12px;
	font-style: normal;
	font-weight: 600;
}

.hy-demo-terminal__chart {
	position: relative;
	min-height: 320px;
}

.hy-demo-terminal__panel table.hy-table {
	background: transparent;
}

.hy-demo-terminal__panel .hy-table th,
.hy-demo-terminal__panel .hy-table td {
	border-bottom-color: #22314e;
	color: #dce5f2;
	font-size: 13px;
	padding: 9px 10px;
}

.hy-demo-terminal__panel .hy-table th {
	background: transparent;
	color: #7e8db0;
}

.hy-demo-terminal__btns {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

.hy-btn-buy {
	flex: 1;
	background: #c13f36;
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 12px 0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: not-allowed;
	opacity: 0.85;
}

.hy-btn-sell {
	flex: 1;
	background: #1f8a5a;
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 12px 0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: not-allowed;
	opacity: 0.85;
}
