/* =====================================================================
 * 价格追踪模块样式 (single-game)
 * 深色主题：背景 #0a0e14，卡片 #111a23，边框 #1c2733
 * 主色 #2d8f7a / #4bc0a5
 * ===================================================================== */

.yz-price-page {
	background: #0a0e14;
	min-height: 100vh;
}

.yz-price-page .yzg-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px 20px;
}

/* ======================== 游戏头部 ======================== */

.yz-detail-hero {
	display: flex;
	align-items: center;
	gap: 24px;
	background: #111a23;
	border: 1px solid #1c2733;
	border-radius: 20px;
	padding: 28px 32px;
	margin-bottom: 24px;
}

.yz-detail-cover-icon {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(45,143,122,0.2), rgba(75,192,165,0.1));
	border: 1px solid rgba(45,143,122,0.3);
	border-radius: 18px;
	font-size: 36px;
	color: #4bc0a5;
}

.yz-detail-hero-info {
	flex: 1;
	min-width: 0;
}

.yz-detail-hero-info h1 {
	font-size: 26px;
	font-weight: 700;
	color: #e0e8f0;
	margin: 0 0 8px;
	line-height: 1.3;
}

.yz-detail-sub {
	font-size: 14px;
	color: #7a8a9a;
	margin: 4px 0;
}

.yz-detail-sub i {
	color: #4bc0a5;
	margin-right: 6px;
}

.yz-detail-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0;
}

.yz-tag {
	display: inline-block;
	padding: 3px 12px;
	background: rgba(45,143,122,0.12);
	border: 1px solid rgba(45,143,122,0.25);
	border-radius: 20px;
	font-size: 12px;
	color: #4bc0a5;
}

.yz-rating-badge {
	display: inline-block;
	margin-top: 8px;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}

.yz-rating-good {
	background: rgba(45,143,122,0.15);
	border: 1px solid rgba(45,143,122,0.3);
	color: #4bc0a5;
}

.yz-rating-mid {
	background: rgba(245,176,107,0.15);
	border: 1px solid rgba(245,176,107,0.3);
	color: #f5b06b;
}

/* ======================== 布局 ======================== */

.yz-detail-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 24px;
}

.yz-detail-main {
	min-width: 0;
}

/* ======================== 数据概览 4 卡片 ======================== */

.yz-overview-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 24px;
}

.yz-overview-card {
	background: #111a23;
	border: 1px solid #1c2733;
	border-radius: 16px;
	padding: 20px;
	transition: all 0.3s ease;
}

.yz-overview-card:hover {
	border-color: #2d8f7a;
	transform: translateY(-3px);
}

.yz-overview-label {
	font-size: 13px;
	color: #7a8a9a;
	margin-bottom: 10px;
}

.yz-overview-value {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
}

.yz-price-big {
	font-size: 24px;
	font-weight: 700;
}

.yz-price-green {
	color: #4bc0a5;
}

.yz-price-orange {
	color: #f5b06b;
}

.yz-price-strike {
	font-size: 14px;
	color: #5a6a7a;
	text-decoration: line-through;
}

.yz-price-muted {
	font-size: 16px;
	color: #5a6a7a;
}

.yz-discount-tag {
	display: inline-block;
	padding: 2px 8px;
	background: rgba(245,176,107,0.15);
	border: 1px solid rgba(245,176,107,0.3);
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #f5b06b;
}

.yz-overview-date {
	font-size: 12px;
	color: #5a6a7a;
}

/* ======================== 价格分析卡片 ======================== */

.yz-price-analysis-card {
	background: #111a23;
	border: 1px solid #1c2733;
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 24px;
	transition: all 0.3s ease;
}

.yz-price-analysis-card:hover {
	border-color: #2d8f7a;
}

.yz-card-title {
	font-size: 16px;
	font-weight: 600;
	color: #e0e8f0;
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.yz-card-title i {
	color: #4bc0a5;
}

.yz-analysis-current {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #1c2733;
}

.yz-atl-badge {
	display: inline-block;
	padding: 4px 14px;
	background: rgba(245,176,107,0.15);
	border: 1px solid rgba(245,176,107,0.3);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #f5b06b;
}

.yz-analysis-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.yz-analysis-item {
	background: rgba(10,14,20,0.5);
	border: 1px solid #1c2733;
	border-radius: 12px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.yz-analysis-label {
	font-size: 13px;
	color: #7a8a9a;
}

.yz-analysis-value {
	font-size: 18px;
	font-weight: 600;
	color: #e0e8f0;
}

/* ======================== 价格走势图 ======================== */

.yz-chart-card {
	background: #111a23;
	border: 1px solid #1c2733;
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 24px;
	transition: all 0.3s ease;
}

.yz-chart-card:hover {
	border-color: #2d8f7a;
}

.yz-chart-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 300px;
	color: #5a6a7a;
}

.yz-chart-empty i {
	font-size: 48px;
	margin-bottom: 16px;
	opacity: 0.4;
}

.yz-chart-empty p {
	font-size: 15px;
}

/* ======================== 折扣记录列表 ======================== */

.yz-discount-list-card {
	background: #111a23;
	border: 1px solid #1c2733;
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 24px;
	transition: all 0.3s ease;
}

.yz-discount-list-card:hover {
	border-color: #2d8f7a;
}

.yz-discount-table {
	width: 100%;
	border-collapse: collapse;
}

.yz-discount-table th {
	text-align: left;
	font-size: 13px;
	color: #7a8a9a;
	font-weight: 500;
	padding: 10px 12px;
	border-bottom: 1px solid #1c2733;
}

.yz-discount-table td {
	padding: 12px;
	font-size: 14px;
	color: #c0c8d0;
	border-bottom: 1px solid rgba(28,39,51,0.5);
}

.yz-discount-table tr:last-child td {
	border-bottom: none;
}

.yz-empty-text {
	color: #5a6a7a;
	font-size: 14px;
	text-align: center;
	padding: 30px 0;
}

/* ======================== 游戏介绍 ======================== */

.yz-game-desc-card {
	background: #111a23;
	border: 1px solid #1c2733;
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 24px;
	transition: all 0.3s ease;
}

.yz-game-desc-card:hover {
	border-color: #2d8f7a;
}

.yz-game-desc-text {
	font-size: 14px;
	color: #a0aab4;
	line-height: 1.8;
}

/* ======================== 侧边栏 ======================== */

.yz-detail-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.yz-sidebar-card {
	background: #111a23;
	border: 1px solid #1c2733;
	border-radius: 16px;
	padding: 20px;
	transition: all 0.3s ease;
}

.yz-sidebar-card:hover {
	border-color: #2d8f7a;
}

.yz-sidebar-title {
	font-size: 15px;
	font-weight: 600;
	color: #e0e8f0;
	margin: 0 0 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.yz-sidebar-title i {
	color: #4bc0a5;
}

.yz-sidebar-info-list {
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
}

.yz-sidebar-info-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid rgba(28,39,51,0.5);
	font-size: 13px;
}

.yz-sidebar-info-list li:last-child {
	border-bottom: none;
}

.yz-sidebar-info-list li span {
	color: #7a8a9a;
}

.yz-sidebar-info-list li strong {
	color: #c0c8d0;
	font-weight: 500;
	text-align: right;
}

.yz-sidebar-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 10px 16px;
	background: linear-gradient(135deg, #2d8f7a, #4bc0a5);
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #0a0e14;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.yz-sidebar-btn:hover {
	opacity: 0.85;
}

.yz-sidebar-hint {
	font-size: 12px;
	color: #7a8a9a;
	margin: 0 0 12px;
}

/* ======================== 价格预警表单 ======================== */

.yz-alert-input {
	width: 100%;
	padding: 10px 14px;
	background: #0a0e14;
	border: 1px solid #1c2733;
	border-radius: 10px;
	font-size: 14px;
	color: #e0e8f0;
	margin-bottom: 10px;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

.yz-alert-input::placeholder {
	color: #4a5a6a;
}

.yz-alert-input:focus {
	outline: none;
	border-color: #2d8f7a;
}

.yz-alert-btn {
	margin-bottom: 0;
}

.yz-alert-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.yz-alert-result {
	display: none;
	margin-top: 10px;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 13px;
}

.yz-alert-result-success {
	background: rgba(45,143,122,0.15);
	border: 1px solid rgba(45,143,122,0.3);
	color: #4bc0a5;
}

.yz-alert-result-error {
	background: rgba(220,80,80,0.15);
	border: 1px solid rgba(220,80,80,0.3);
	color: #e08080;
}

/* ======================== 数据来源声明 ======================== */

.yzg-disclaimer {
	background: #111a23;
	border: 1px solid #1c2733;
	border-radius: 16px;
	padding: 20px 24px;
	margin-bottom: 24px;
}

.yzg-disclaimer h4 {
	font-size: 14px;
	color: #7a8a9a;
	margin: 0 0 8px;
}

.yzg-disclaimer p {
	font-size: 12px;
	color: #5a6a7a;
	line-height: 1.6;
	margin: 0;
}

/* ======================== 趋势图 Tab 切换 ======================== */

.yz-chart-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.yz-chart-tab {
	padding: 6px 18px;
	background: transparent;
	border: 1px solid #1c2733;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #7a8a9a;
	cursor: pointer;
	transition: all 0.2s ease;
}

.yz-chart-tab:hover {
	border-color: #2d8f7a;
	color: #4bc0a5;
}

.yz-chart-tab.active {
	background: rgba(45,143,122,0.15);
	border-color: #2d8f7a;
	color: #4bc0a5;
}

/* ======================== 预警类型选择 ======================== */

.yz-alert-type-group {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.yz-alert-type-opt {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: rgba(10,14,20,0.5);
	border: 1px solid #1c2733;
	border-radius: 8px;
	font-size: 12px;
	color: #7a8a9a;
	cursor: pointer;
	transition: all 0.2s ease;
}

.yz-alert-type-opt input[type="radio"] {
	accent-color: #2d8f7a;
	margin: 0;
	width: 12px;
	height: 12px;
}

.yz-alert-type-opt:has(input:checked) {
	background: rgba(45,143,122,0.15);
	border-color: #2d8f7a;
	color: #4bc0a5;
}

.yz-alert-input-group {
	margin-bottom: 10px;
}

.yz-alert-info-text {
	font-size: 12px;
	color: #5a6a7a;
	padding: 10px 14px;
	background: rgba(10,14,20,0.5);
	border: 1px dashed #1c2733;
	border-radius: 8px;
	margin: 0;
}

/* ======================== 通知渠道选择 ======================== */

.yz-alert-channels {
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
}

.yz-alert-channel-opt {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #7a8a9a;
	cursor: pointer;
}

.yz-alert-channel-opt input[type="checkbox"] {
	accent-color: #2d8f7a;
	margin: 0;
	width: 12px;
	height: 12px;
}

/* ======================== 响应式 / 移动端 ======================== */

@media (max-width: 1024px) {
	.yz-detail-layout {
		grid-template-columns: 1fr;
	}

	.yz-overview-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.yz-price-page .yzg-wrap {
		padding: 16px 12px;
	}

	.yz-detail-hero {
		flex-direction: column;
		text-align: center;
		padding: 20px 16px;
	}

	.yz-detail-cover-icon {
		margin: 0 auto;
	}

	.yz-detail-tags {
		justify-content: center;
	}

	.yz-overview-grid {
		grid-template-columns: 1fr;
	}

	.yz-analysis-grid {
		grid-template-columns: 1fr;
	}

	#yz-price-chart {
		height: 280px !important;
	}

	.yz-discount-table {
		font-size: 12px;
	}

	.yz-discount-table th,
	.yz-discount-table td {
		padding: 8px 6px;
	}
}

/* ======================== 游戏搜索下拉（预警 / 对比共用） ======================== */

.yz-alert-search-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 60;
	background: #111a23;
	border: 1px solid #1c2733;
	border-radius: 10px;
	max-height: 320px;
	overflow-y: auto;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
	display: none;
}

.yz-alert-search-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 14px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.yz-alert-search-item:hover {
	background: rgba(45, 143, 122, 0.12);
}

.yz-alert-search-item img {
	width: 40px;
	height: 18px;
	object-fit: cover;
	border-radius: 3px;
	flex-shrink: 0;
	background: #0a0e14;
}

.yz-alert-search-item span {
	flex: 1;
	font-size: 13px;
	color: #e0e8f0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.yz-alert-search-item em {
	font-style: normal;
	font-size: 12px;
	color: #4bc0a5;
	flex-shrink: 0;
}

.yz-alert-search-item.is-added {
	opacity: 0.55;
	cursor: default;
}

.yz-added-icon {
	color: #4bc0a5;
	margin-left: 6px;
}

.yz-alert-search-empty {
	padding: 20px 14px;
	text-align: center;
	font-size: 13px;
	color: #5a6a7a;
}

/* ======================== 对比工具 ======================== */

.yz-compare-search-area {
	max-width: 640px;
	margin: 0 auto 20px;
}

.yz-compare-search-wrap {
	position: relative;
}

.yz-compare-search-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #5a6a7a;
	font-size: 14px;
	pointer-events: none;
}

.yz-compare-input {
	padding-left: 40px;
	margin-bottom: 0;
}

.yz-compare-hint {
	display: block;
	margin-top: 10px;
	text-align: right;
	font-size: 12px;
	color: #5a6a7a;
}

.yz-compare-hint strong {
	color: #4bc0a5;
}

.yz-compare-selected-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	max-width: 900px;
	margin: 0 auto 24px;
	min-height: 44px;
}

.yz-compare-empty-sel {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 22px;
	border: 1px dashed #1c2733;
	border-radius: 12px;
	color: #4a5a6a;
	font-size: 13px;
	background: rgba(10, 14, 20, 0.4);
}

.yz-compare-empty-sel i {
	font-size: 26px;
	color: #2a3a4a;
}

.yz-compare-empty-sel p {
	margin: 0;
}

.yz-compare-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px 6px 6px;
	background: #111a23;
	border: 1px solid #2d8f7a;
	border-radius: 10px;
	font-size: 13px;
	color: #e0e8f0;
	animation: yz-chip-in 0.2s ease;
}

@keyframes yz-chip-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

.yz-compare-chip img {
	width: 48px;
	height: 22px;
	object-fit: cover;
	border-radius: 4px;
	background: #0a0e14;
}

.yz-compare-chip-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: #5a6a7a;
	cursor: pointer;
	font-size: 11px;
	transition: all 0.15s ease;
}

.yz-compare-chip-remove:hover {
	background: rgba(220, 80, 80, 0.15);
	color: #e08080;
}

.yz-compare-action {
	max-width: 640px;
	margin: 0 auto 36px;
}

.yz-compare-result {
	margin-top: 8px;
}

.yz-compare-table-wrap {
	overflow-x: auto;
	background: #111a23;
	border: 1px solid #1c2733;
	border-radius: 14px;
	padding: 4px;
}

.yz-compare-table {
	width: 100%;
	min-width: 680px;
	border-collapse: collapse;
	font-size: 13px;
}

.yz-compare-table th,
.yz-compare-table td {
	padding: 10px 14px;
	text-align: center;
	border-bottom: 1px solid #16202a;
}

.yz-compare-table thead th {
	background: #0f1822;
	color: #7a8a9a;
	font-weight: 500;
	font-size: 12px;
}

.yz-compare-table tbody tr:last-child td {
	border-bottom: none;
}

.yz-compare-row-label {
	position: sticky;
	left: 0;
	background: #111a23;
	color: #9aabbf;
	font-weight: 500;
	text-align: left;
	white-space: nowrap;
	z-index: 1;
}

.yz-compare-col-name {
	font-weight: 600;
	color: #e0e8f0;
	max-width: 140px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.yz-compare-cell {
	color: #c0c8d0;
}

.yz-compare-cell.yz-compare-best {
	background: rgba(75, 192, 165, 0.12);
	color: #4bc0a5;
	font-weight: 600;
	box-shadow: inset 0 0 0 1px rgba(75, 192, 165, 0.3);
	border-radius: 6px;
}

.yz-compare-cover {
	width: 120px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
	background: #0a0e14;
}

.yz-compare-legend {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 14px;
	font-size: 12px;
	color: #5a6a7a;
}

.yz-compare-legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: rgba(75, 192, 165, 0.25);
	border: 1px solid rgba(75, 192, 165, 0.5);
}

.yz-compare-store-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #5a8ac0;
	font-size: 12px;
	transition: color 0.15s ease;
}

.yz-compare-store-link:hover {
	color: #7aa8e0;
}

/* ======================== 对比雷达图 ======================== */

.yz-compare-chart-block {
	margin-top: 28px;
	background: #111a23;
	border: 1px solid #1c2733;
	border-radius: 14px;
	padding: 20px 20px 12px;
}

.yz-compare-chart-block .yz-panel-head {
	margin-bottom: 6px;
}

.yz-compare-chart-block .yz-panel-head h3 {
	font-size: 16px;
}

.yz-compare-radar {
	width: 100%;
	height: 420px;
}

.yz-compare-radar-note {
	margin: 0 0 12px;
	font-size: 12px;
	color: #5a6a7a;
	line-height: 1.6;
}

/* ======================== 对比工具响应式 ======================== */

@media (max-width: 640px) {
	.yz-compare-table-wrap {
		margin: 0 -4px;
	}

	.yz-compare-table {
		min-width: 560px;
		font-size: 12px;
	}

	.yz-compare-radar {
		height: 300px;
	}

	.yz-compare-selected-list {
		gap: 8px;
	}
}
/* ============================================================
   游戏详情页 · 讨论区（论坛回复）
   ============================================================ */
.yz-comments{
	margin: 26px 0 0;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 16px;
	padding: 2px 24px 24px;
}
.yz-comments-title{
	display: flex; align-items: center; gap: 8px;
	font-size: 16px; color: #e8eef7;
	margin: 0 0 6px; padding: 18px 0 8px;
}
.yz-comments-title i{ color: #3ddc84; font-size: 15px; }
/* 让 b2 评论区容器融入深色页（b2 全局样式中的评论区基础样式保留） */
.yz-comments .comments-box{ background: transparent; }
.yz-comments .comments-area{ background: transparent; box-shadow: none; }
