/*
 * 云竹涧情报站 —— 首页样式
 * 深空蓝黑背景 + 霓虹青蓝强调；磨砂玻璃卡片；7:3 左右布局
 * ================================================================ */

:root {
	--yz-bg: #0b0e14;
	--yz-bg-2: #10141d;
	--yz-line: rgba(255, 255, 255, .06);
	--yz-neon: #00d4ff;
	--yz-neon-2: #4de3ff;
	--yz-text: #e8edf5;
	--yz-muted: #8b94a7;
	--yz-card: rgba(255, 255, 255, .06);
	--yz-radius: 14px;
	--yz-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

html { scroll-behavior: smooth; }

body.yunzhu-body {
	background: var(--yz-bg);
	color: var(--yz-text);
	font-family: "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.yunzhu-body a { color: inherit; text-decoration: none; }
.yunzhu-body img { display: block; max-width: 100%; }
.yunzhu-body button { font-family: inherit; }

.yz-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- ① 顶部导航 ---------- */
.yz-top {
	position: sticky; top: 0; z-index: 100;
	background: rgba(11, 14, 20, .82);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--yz-line);
}
.yz-top-inner { display: flex; align-items: center; gap: 20px; height: 62px; }

.yz-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.yz-logo-mark {
	width: 34px; height: 34px; border-radius: 9px;
	background: linear-gradient(135deg, var(--yz-neon), #0088ff);
	color: #04121a; display: grid; place-items: center;
	font-size: 18px; box-shadow: 0 0 16px rgba(0, 212, 255, .45);
}
.yz-logo-text { font-size: 17px; font-weight: 700; letter-spacing: .5px; }

/* 搜索框 60% */
.yz-search {
	flex: 0 1 60%; display: flex; align-items: center;
	background: var(--yz-card); border: 1px solid var(--yz-line);
	border-radius: 999px; padding: 4px 6px 4px 18px; transition: border-color .2s;
}
.yz-search:focus-within { border-color: rgba(0, 212, 255, .55); }
.yz-search input {
	flex: 1; background: transparent; border: 0; outline: 0;
	color: var(--yz-text); font-size: 14px;
}
.yz-search input::placeholder { color: var(--yz-muted); }
.yz-search button {
	background: linear-gradient(135deg, var(--yz-neon), #0088ff);
	border: 0; color: #04121a; font-weight: 700; font-size: 13px;
	padding: 7px 18px; border-radius: 999px; cursor: pointer;
}

/* 登录 / 用户 */
.yz-user { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.yz-login-btn, .yz-reg-btn {
	background: none; border: 1px solid rgba(0, 212, 255, .6); color: var(--yz-neon);
	padding: 7px 18px; border-radius: 999px; font-size: 13px; cursor: pointer; transition: .2s;
}
.yz-login-btn { background: linear-gradient(135deg, var(--yz-neon), #0088ff); border-color: transparent; color: #04121a; font-weight: 700; }
.yz-login-btn:hover { box-shadow: 0 0 14px rgba(0, 212, 255, .5); }
.yz-user-link { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.yz-avatar {
	width: 30px; height: 30px; border-radius: 50%;
	background: linear-gradient(135deg, var(--yz-neon), #0088ff);
	color: #04121a; display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.yz-logout { color: var(--yz-muted); font-size: 13px; }

/* ---------- ② 头条焦点区 ---------- */
.yz-hero {
	position: relative; margin-top: 22px; overflow: hidden;
	border-radius: 18px; border: 1px solid var(--yz-line);
	background: var(--yz-bg-2); min-height: 360px;
}
.yz-hero-slide {
	position: absolute; inset: 0; display: flex; opacity: 0;
	transition: opacity .5s ease; pointer-events: none;
}
.yz-hero-slide.is-active { opacity: 1; pointer-events: auto; }

.yz-hero-cover { position: relative; flex: 0 0 60%; min-height: 360px; overflow: hidden; }
.yz-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.yz-hero-ph {
	width: 100%; height: 100%; display: grid; place-items: center;
	font-size: 80px; background: linear-gradient(160deg, #12203a, #0e1830);
}
.yz-hero-shade {
	position: absolute; inset: 0;
	background: linear-gradient(90deg, transparent 40%, rgba(11, 14, 20, .9));
}

.yz-hero-info {
	flex: 1; padding: 48px 44px; display: flex; flex-direction: column; justify-content: center;
}
.yz-hero-badge {
	align-self: flex-start; background: linear-gradient(135deg, var(--yz-neon), #0088ff);
	color: #04121a; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; margin-bottom: 14px;
}
.yz-hero-info h1 { font-size: 30px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.yz-hero-info h1 a:hover { color: var(--yz-neon); }
.yz-hero-desc { color: var(--yz-muted); font-size: 14px; margin-bottom: 20px; }
.yz-hero-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--yz-muted); }
.yz-hero-views, .yz-hero-like { color: var(--yz-neon-2); }

.yz-hero-arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
	width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--yz-line);
	background: rgba(255, 255, 255, .08); color: #fff; font-size: 16px; cursor: pointer; transition: .2s;
}
.yz-hero-arrow:hover { background: var(--yz-neon); color: #04121a; }
.yz-hero-arrow.prev { left: 16px; }
.yz-hero-arrow.next { right: 16px; }

.yz-hero-dots {
	position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
	display: flex; gap: 8px; z-index: 5;
}
.yz-hero-dots span {
	width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .3); cursor: pointer; transition: .2s;
}
.yz-hero-dots span.is-active { background: var(--yz-neon); width: 22px; border-radius: 999px; }

/* ---------- ③ 快捷筛选栏 ---------- */
.yz-filters {
	display: flex; gap: 8px; margin-top: 22px; overflow-x: auto;
	padding-bottom: 6px; scrollbar-width: none;
}
.yz-filters::-webkit-scrollbar { display: none; }
.yz-filters button {
	flex-shrink: 0; background: none; border: 0; color: var(--yz-muted);
	font-size: 14px; padding: 8px 14px; cursor: pointer; position: relative; transition: color .2s;
}
.yz-filters button:hover { color: var(--yz-text); }
.yz-filters button.is-active { color: var(--yz-neon); font-weight: 600; }
.yz-filters button.is-active::after {
	content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
	width: 70%; height: 2px; border-radius: 2px; background: var(--yz-neon);
	box-shadow: 0 0 8px rgba(0, 212, 255, .8);
}

/* ---------- ④ 主体：左 7 + 右 3 ---------- */
.yz-main { display: flex; gap: 22px; margin-top: 18px; align-items: flex-start; }
.yz-left { flex: 7; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.yz-right { flex: 3; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }

/* 卡片 */
.yz-card {
	position: relative; display: flex; gap: 16px; padding: 16px;
	background: var(--yz-card); border: 1px solid var(--yz-line);
	border-radius: var(--yz-radius); transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.yz-card:hover { transform: translateY(-4px); box-shadow: var(--yz-shadow); background: rgba(255, 255, 255, .09); }

.yz-card-badge {
	position: absolute; top: 12px; left: 12px; z-index: 2;
	font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px;
	background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); color: #fff;
	border: 1px solid var(--yz-line);
}
.yz-card-badge.badge-Steam { color: var(--yz-neon); }
.yz-card-badge.badge-网易 { color: #ff7a9c; }
.yz-card-badge.badge-腾讯 { color: #8bdcff; }
.yz-card-badge.badge-评测 { color: #ffd166; }

.yz-card-thumb {
	flex: 0 0 240px; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden;
	background: var(--yz-bg-2); display: flex; align-items: center; justify-content: center;
}
.yz-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.yz-card:hover .yz-card-thumb img { transform: scale(1.04); }
.yz-card-ph { font-size: 42px; }

.yz-card-body { min-width: 0; display: flex; flex-direction: column; }
.yz-card-title { font-size: 17px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.yz-card-title a:hover { color: var(--yz-neon); }
.yz-card-excerpt {
	color: var(--yz-muted); font-size: 13px; line-height: 1.6;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yz-card-meta {
	margin-top: auto; padding-top: 12px; display: flex; gap: 14px; flex-wrap: wrap;
	font-size: 12px; color: var(--yz-muted);
}
.yz-card-meta span { white-space: nowrap; }
.yz-card-source { color: var(--yz-neon-2); }

/* 纯文字评测卡 */
.yz-card-text { flex-direction: column; }
.yz-card-text .yz-card-title { font-size: 19px; }

/* 加载更多 */
.yz-load-more {
	width: 100%; padding: 12px; border-radius: var(--yz-radius);
	background: var(--yz-card); border: 1px solid var(--yz-line);
	color: var(--yz-text); font-size: 14px; cursor: pointer; transition: .2s;
}
.yz-load-more:hover { border-color: rgba(0, 212, 255, .5); color: var(--yz-neon); }
.yz-load-more.is-loading { opacity: .6; pointer-events: none; }
.yz-feed-status .yz-no-more { text-align: center; color: var(--yz-muted); font-size: 13px; padding: 8px 0; }

/* ---------- ⑤ 右侧边栏组件 ---------- */
.yz-widget {
	background: var(--yz-card); border: 1px solid var(--yz-line);
	border-radius: var(--yz-radius); padding: 18px;
}
.yz-widget h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--yz-text); position: relative; padding-left: 12px; }
.yz-widget h3::before {
	content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px;
	border-radius: 3px; background: linear-gradient(180deg, var(--yz-neon), #0088ff);
}

.yz-hot-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.yz-hot-list li { display: flex; gap: 10px; align-items: center; }
.yz-rank {
	flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px;
	display: grid; place-items: center; font-size: 12px; font-weight: 700;
	background: rgba(255, 255, 255, .08); color: var(--yz-text);
}
.yz-rank.up { color: #3ddc84; }
.yz-rank.down { color: #ff6b6b; }
.yz-hot-list li b { flex: 1; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yz-hot-list li em { font-style: normal; font-size: 12px; color: #3ddc84; flex-shrink: 0; }

.yz-sale-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.yz-sale-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.yz-sale-tag {
	flex-shrink: 0; font-size: 11px; padding: 2px 8px; border-radius: 999px;
	background: rgba(0, 212, 255, .12); color: var(--yz-neon); border: 1px solid rgba(0, 212, 255, .3);
}

.yz-widget-editor blockquote {
	margin: 0; padding: 4px 0 10px; color: var(--yz-text); font-size: 14px; line-height: 1.7;
	border-left: 0;
}
.yz-editor-date { font-size: 12px; color: var(--yz-muted); }

/* ---------- ⑥ 底部信息栏 ---------- */
.yz-footbar {
	margin: 26px auto 0; max-width: 1200px; padding: 18px 20px;
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
	border-top: 1px solid var(--yz-line); color: var(--yz-muted); font-size: 12px;
}
.yz-footbar b { color: var(--yz-neon); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
	.yz-hero-slide { flex-direction: column; }
	.yz-hero-cover { flex-basis: auto; min-height: 200px; }
	.yz-hero-shade { background: linear-gradient(0deg, rgba(11, 14, 20, .95), transparent 60%); }
	.yz-hero-info { padding: 24px; }
	.yz-hero-info h1 { font-size: 22px; }
	.yz-main { flex-direction: column; }
	.yz-right { position: static; flex-direction: row; flex-wrap: wrap; }
	.yz-right .yz-widget { flex: 1 1 220px; }
	.yz-card { flex-direction: column; }
	.yz-card-thumb { flex-basis: auto; width: 100%; aspect-ratio: 16/9; }
	.yz-search { flex-basis: 100%; order: 3; margin-top: 8px; }
	.yz-top-inner { flex-wrap: wrap; height: auto; padding: 10px 0; }
	.yz-user { margin-left: auto; }
}

/* ================================================================
 * ⑦ Steam 信息卡（短码 [steam_game appid="570"]）
 * ================================================================ */
.yz-steam-card {
	max-width: 640px; margin: 24px 0;
	border: 1px solid var(--yz-line); border-radius: var(--yz-radius);
	background: var(--yz-card); overflow: hidden;
}
.yz-steam-card-header { position: relative; }
.yz-steam-card-header img { width: 100%; height: auto; display: block; }
.yz-steam-discount {
	position: absolute; top: 10px; right: 10px;
	background: #4c6b22; color: #b4f34c; font-size: 14px; font-weight: 700;
	padding: 3px 10px; border-radius: 6px;
}
.yz-steam-card-body { padding: 18px 20px; }
.yz-steam-card-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.yz-steam-desc { color: var(--yz-muted); font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
.yz-steam-info { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; margin-bottom: 12px; }
.yz-steam-rating { color: #b4f34c; font-weight: 600; }
.yz-steam-price { color: var(--yz-neon); font-weight: 700; }
.yz-steam-price del { color: var(--yz-muted); font-weight: 400; margin-left: 4px; }
.yz-steam-plat { color: var(--yz-muted); }
.yz-steam-genres { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.yz-tag {
	font-size: 11px; padding: 2px 10px; border-radius: 999px;
	background: rgba(0, 212, 255, .1); color: var(--yz-neon); border: 1px solid rgba(0, 212, 255, .25);
}
.yz-steam-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.yz-steam-shots img { width: 100%; border-radius: 8px; border: 1px solid var(--yz-line); }
.yz-steam-buy {
	display: inline-block; padding: 8px 24px; border-radius: 999px;
	background: linear-gradient(135deg, #1b2838, #2a475e); color: #fff;
	font-size: 14px; font-weight: 600; transition: .2s; border: 1px solid rgba(0, 212, 255, .3);
}
.yz-steam-buy:hover { background: linear-gradient(135deg, var(--yz-neon), #0088ff); color: #04121a; }
.yz-steam-error { color: var(--yz-muted); font-size: 14px; padding: 12px; }

/* Steam 卡片响应式 */
@media (max-width: 600px) {
	.yz-steam-shots { grid-template-columns: 1fr; }
}

/* ========== 登录/注册弹窗：仅调整背景与文字颜色，其余沿用父主题默认 ========== */
.modal-content.login-box-content {
	background: #181b24 !important;
	color: #ffffff !important;
}

/* ========== 密码框右侧眼睛按钮：改为深色透明、白色图标，与深色弹窗协调 ========== */
.modal-content.login-box-content .password-wrap button {
	background: #1f2430 !important;
	border: 1px solid #2a2f3b !important;
	border-radius: 8px !important;
	color: #ffffff !important;
	height: 40px !important;
	width: 40px !important;
	cursor: pointer;
}
.modal-content.login-box-content .password-wrap button:hover {
	background: #2a2f3b !important;
	border-color: #3a4150 !important;
}

/* ========== 输入框：改小为父主题原本的紧凑尺寸 ========== */
.modal-content.login-box-content input[type="text"],
.modal-content.login-box-content input[type="password"] {
	height: 40px !important;
	padding: 8px 14px !important;
	line-height: 1 !important;
	font-size: 13px !important;
}

/* ========== 登录/注册弹窗：字段文字改为输入框内居中，输入时隐藏（占位符效果） ========== */
.modal-content.login-box-content .login-form-item {
	position: relative !important;
}
.modal-content.login-box-content .login-form-item > span {
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	text-align: center !important;
	pointer-events: none !important;
	color: #8b95a3 !important;
	font-size: 14px !important;
	line-height: 1 !important;
	font-weight: 400 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	text-decoration: none !important;
	text-decoration-line: none !important;
	border: 0 !important;
}
/* 去掉 <b> 的删除线 / 背景线 */
.modal-content.login-box-content .login-form-item span b,
.modal-content.login-box-content .login-form-item > span b,
.modal-content.login-box-content .login-form-item b {
	text-decoration: none !important;
	background: transparent !important;
	border: 0 !important;
}
/* 清除伪元素画的线 */
.modal-content.login-box-content .login-form-item span::before,
.modal-content.login-box-content .login-form-item span::after,
.modal-content.login-box-content .login-form-item > span::before,
.modal-content.login-box-content .login-form-item > span::after,
.modal-content.login-box-content .login-form-item span b::before,
.modal-content.login-box-content .login-form-item span b::after,
.modal-content.login-box-content .login-form-item > span b::before,
.modal-content.login-box-content .login-form-item > span b::after,
.modal-content.login-box-content .login-form-item b::before,
.modal-content.login-box-content .login-form-item b::after {
	content: none !important;
	display: none !important;
}
/* 输入时 / 已填写：隐藏字段文字 */
.modal-content.login-box-content .login-form-item input:focus + span,
.modal-content.login-box-content .login-form-item.yz-filled > span {
	opacity: 0 !important;
	visibility: hidden !important;
}

/* ========== 输入框背景深色 + 密码图标上下居中 + 社交登录按钮边框色 ========== */
.modal-content.login-box-content input[type="text"],
.modal-content.login-box-content input[type="password"] {
	background: #1f2430 !important;
	color: #ffffff !important;
}
.modal-content.login-box-content .password-wrap button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
}
.login-social-button-bottom {
	border: 1px solid #1f2430 !important;
}

/* ========== 缩小表单间距 + 字段文字在输入框内真正居中（加强） ========== */
.modal-content.login-box-content .login-form-item {
	margin-bottom: 16px !important;
}
.modal-content.login-box-content .login-form-item > span,
.modal-content.login-box-content .login-form-item > span > b {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	right: auto !important;
	text-align: center !important;
	display: block !important;
	line-height: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* ========== site-terms 背景 / 复选框图标颜色 ========== */
.site-terms {
	background: #1f2430 !important;
}
.site-terms input[type="checkbox"],
.site-terms .checkbox {
	background-color: #1f2430 !important;
	border-color: #1f2430 !important;
}

/* ========== 强制字段文字横排（兜底，压掉任何来源的竖排；含外层label） ========== */
.modal-content.login-box-content .login-form-item > span,
.modal-content.login-box-content .login-form-item > span > b,
.modal-content.login-box-content .login-form-item span,
.modal-content.login-box-content .login-form-item label {
	writing-mode: horizontal-tb !important;
	text-orientation: initial !important;
	white-space: nowrap !important;
}

/* ========== 登录/注册字段说明 <p.login-box-des>：强制横排 + 脱离文档流，避免挤压字段文字定位 ========== */
.modal-content.login-box-content .login-form-item .login-box-des,
.modal-content.login-box-content .login-form-item p {
	writing-mode: horizontal-tb !important;
	text-orientation: initial !important;
	white-space: nowrap !important;
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	right: 0 !important;
	margin-top: 4px !important;
	line-height: 1.2 !important;
}
