@charset "utf-8";
/* =========================================================
   site-fix.css —— 全站修正与新增样式
   1. 修正原样式表里失效的规则（缺分号、缺失背景图）
   2. 平滑滚动、键盘焦点样式
   3. 背景音乐开关按钮
   ========================================================= */

/* 原 style-bg.css 里 a{} 少了一个分号，导致 color / font-family 整条失效 */
a{
	font-size: 9pt;
	color: #FF0000;
}

/* 原 body 背景指向不存在的 images/5588ps-bg-index-01.gif（404），
   这里换成不依赖图片的深红渐变，减少一次请求与一次报错 */
body{
	background: #280500 radial-gradient(120% 90% at 50% 0%, #4a0c00 0%, #280500 45%, #150200 100%) no-repeat center top;
	background-attachment: fixed;
}

/* 中文优先字体，原来的字体名写坏了（乱码） */
body, td, th{
	font-family: "Microsoft YaHei", "微软雅黑", Tahoma, Arial, sans-serif;
}

html{
	scroll-behavior: smooth;
}

/* 键盘操作时才显示焦点框，鼠标点击不出现 */
a:focus-visible,
button:focus-visible{
	outline: 2px solid #ffd700;
	outline-offset: 3px;
}

/* 弹层打开时锁定页面滚动 */
body.equip-locked{
	overflow: hidden;
}

/* ================= 背景音乐开关 ================= */
.bgm-toggle{
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 2600;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 15px 8px 13px;
	border: 1px solid rgba(255, 199, 92, 0.5);
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(96, 20, 0, 0.94), rgba(30, 5, 0, 0.96));
	color: #ffd766;
	font-family: inherit;
	font-size: 14px;
	letter-spacing: 1px;
	cursor: pointer;
	box-shadow: 0 8px 20px -8px #000, 0 0 0 1px rgba(0, 0, 0, 0.5) inset;
	transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
	-webkit-tap-highlight-color: transparent;
}

.bgm-toggle:hover{
	color: #fff6d5;
	transform: translateY(-2px);
	box-shadow: 0 12px 26px -10px #000, 0 0 18px rgba(255, 150, 0, 0.35), 0 0 0 1px rgba(255, 215, 102, 0.35) inset;
}

.bgm-note{
	display: inline-block;
	font-size: 17px;
	line-height: 1;
	transform-origin: 50% 50%;
}

.bgm-toggle.is-playing .bgm-note{
	animation: bgm-spin 2.6s linear infinite;
}

@keyframes bgm-spin{
	to{ transform: rotate(360deg); }
}

@media (max-width: 768px){
	.bgm-toggle{
		left: 10px;
		bottom: 10px;
		padding: 6px 12px 6px 10px;
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce){
	html{ scroll-behavior: auto; }
	.bgm-toggle.is-playing .bgm-note{ animation: none; }
}

/* ================= 页面底部广告条 ================= */
/* ad1.webm 素材为 1300×400 带透明通道：中文标题约占 y65–198，
   英文小标题在 y219–259。这里把可视窗口设成 1300×162，
   并把视频上移 12.5%（=50px），只露出中文标题那一行。 */
.ad-banner{
	position: relative;
	width: 1300px;
	max-width: 100%;
	margin: 16px auto 0;
	aspect-ratio: 1300 / 162;
	overflow: hidden;
	line-height: 0;
	pointer-events: none;
}

.ad-banner video{
	display: block;
	width: 100%;
	height: auto;
	transform: translateY(-12.5%);
}

/* 老浏览器没有 aspect-ratio 时退回固定高度（本站为 1300px 定宽布局） */
@supports not (aspect-ratio: 1 / 1){
	.ad-banner{ height: 162px; }
}

/* ================= 去掉 LOGO 视频右上角的版权水印 ================= */
/* logo1.webm 是 1920×1220 的透明叠层，右上角有一句浅色水印：
   「本站由“龙江风格馆 HTTP://WWW.5588PS.COM”独家设计制作…」
   实测位置 x≈956–1592、y≈161–178。这里用 clip-path 挖一个矩形洞
   （外框顺时针 + 内框逆时针，nonzero 规则下中间就是空的），
   底下的背景视频直接透出来，水印消失且不会在画面上留下补丁。 */
#logo-yidong video{
	clip-path: path("M0 0H1920V1220H0Z M944 149V190H1604V149Z");
	-webkit-clip-path: path("M0 0H1920V1220H0Z M944 149V190H1604V149Z");
}
