/* ==========================================================================
   节日装饰（圣诞）
   —— 顶部祝福条（彩灯 + 铃铛/雪人/驯鹿挂件）/ 飘雪 / logo 圣诞帽
   只做视觉：装饰层全部 pointer-events:none，不挡点击、不改布局。
   ========================================================================== */

.okg-fest {
	--fest-green: #0c3b2e;
	--fest-green-2: #12604a;
	--fest-gold: #f3d79b;
	--fest-cream: #fbf3e2;

	position: relative;
	z-index: 950;
	overflow: hidden;
	color: var(--fest-cream);
	background:
		radial-gradient(1200px 120px at 50% -60%, rgba(243, 215, 155, .18), transparent 70%),
		linear-gradient(100deg, var(--fest-green) 0%, var(--fest-green-2) 48%, var(--fest-green) 100%);
	border-bottom: 1px solid rgba(243, 215, 155, .35);
	font-size: 13px;
	line-height: 1.5;
}

/* 会呼吸的一层暖光：像灯串映在横幅上 */
.okg-fest::before {
	content: "";
	position: absolute;
	inset: -40% -10% auto;
	height: 180%;
	background: radial-gradient(46% 68% at 50% 0%, rgba(255, 214, 120, .26), transparent 72%);
	animation: okg-fest-breathe 7.5s ease-in-out infinite;
	pointer-events: none;
}

/* 细雪粒质感 */
.okg-fest::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(rgba(255, 255, 255, .2) 1px, transparent 1px),
		radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px);
	background-size: 26px 26px, 17px 17px;
	background-position: 0 0, 9px 11px;
	opacity: .35;
	pointer-events: none;
}

.okg-fest__inner {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	min-height: 50px;
	padding: 12px 46px 8px 96px;
	text-align: center;
}

.okg-fest__text {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 12px;
	max-width: 860px;
	font-weight: 650;
	letter-spacing: .012em;
}

.okg-fest__item { white-space: nowrap; }

.okg-fest__sep {
	font-style: normal;
	font-size: 8px;
	line-height: 1;
	color: rgba(243, 215, 155, .75);
}

.okg-fest__flake {
	display: inline-flex;
	color: var(--fest-gold);
	animation: okg-fest-spin 18s linear infinite;
}
.okg-fest__flake svg { width: 17px; height: 17px; display: block; }

/* ---------- 彩灯（横跨整条横幅） ---------- */

.okg-fest__lights {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 22px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 0 8px;
	pointer-events: none;
	z-index: 2;
}

/* 灯线 */
.okg-fest__lights::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 4px;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(243, 215, 155, .45) 8%, rgba(243, 215, 155, .45) 92%, transparent);
}

.okg-fest__bulb {
	position: relative;
	width: 8px;
	height: 11px;
	margin-top: 5px;
	border-radius: 50% 50% 46% 46% / 44% 44% 56% 56%;
	background: var(--bulb, #ffd76a);
	color: var(--bulb, #ffd76a);
	box-shadow: 0 0 0 0 transparent;
	animation: okg-fest-twinkle 3.4s ease-in-out infinite;
}
.okg-fest__bulb:nth-child(odd) { margin-top: 9px; }

/* 灯座 */
.okg-fest__bulb::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 100%;
	width: 1px;
	height: 6px;
	transform: translateX(-50%);
	background: rgba(243, 215, 155, .5);
}

.okg-fest__bulb.is-gold { --bulb: #ffd76a; }
.okg-fest__bulb.is-red { --bulb: #ff7b68; }
.okg-fest__bulb.is-mint { --bulb: #7ef0c8; }
.okg-fest__bulb.is-ice { --bulb: #9ad8ff; }

/* ---------- 挂件：铃铛 / 雪人 / 驯鹿 ---------- */

.okg-fest__hang {
	position: absolute;
	top: 0;
	display: flex;
	gap: 12px;
	pointer-events: none;
	z-index: 4;
}
.okg-fest__hang--l { left: 16px; }
.okg-fest__hang--r { right: 74px; }

.okg-fest__toy {
	position: relative;
	display: block;
	width: 28px;
	margin-top: 7px;
	transform-origin: 50% -12px;
	animation: okg-fest-sway 4.2s ease-in-out infinite alternate;
	filter: drop-shadow(0 3px 4px rgba(6, 24, 18, .35));
}
.okg-fest__toy svg { display: block; width: 100%; height: auto; }

/* 挂绳 */
.okg-fest__toy::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 100%;
	width: 1px;
	height: 9px;
	transform: translateX(-50%);
	background: linear-gradient(rgba(243, 215, 155, .18), rgba(243, 215, 155, .85));
}

.okg-fest__toy--bell { width: 28px; animation-delay: -1.1s; }
.okg-fest__toy--snow { width: 30px; animation-delay: -2.4s; }
.okg-fest__toy--deer { width: 32px; animation-delay: -.4s; }
.okg-fest__toy--gift { width: 30px; animation-delay: -3.1s; }

/* ---------- 优惠码（留空则不显示） ---------- */

.okg-fest__code {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 3px 10px;
	border: 1px dashed rgba(243, 215, 155, .7);
	border-radius: 999px;
	background: rgba(243, 215, 155, .08);
	color: var(--fest-gold);
	font: inherit;
	font-size: 12px;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease, transform .15s ease;
	-webkit-tap-highlight-color: transparent;
}
.okg-fest__code em {
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: 10px;
	opacity: .8;
}
.okg-fest__code b { letter-spacing: .12em; font-size: 12.5px; }
.okg-fest__code:hover { background: rgba(243, 215, 155, .18); border-color: var(--fest-gold); }
.okg-fest__code:active { transform: scale(.97); }
.okg-fest__code.is-copied { background: rgba(184, 243, 74, .2); border-color: #b8f34a; color: #eaffc6; }

.okg-fest__link {
	color: var(--fest-gold);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid rgba(243, 215, 155, .55);
	white-space: nowrap;
	transition: border-color .2s ease, color .2s ease;
}
.okg-fest__link:hover { color: #fff; border-bottom-color: #fff; }

.okg-fest__close {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: rgba(251, 243, 226, .75);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.okg-fest__close:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* 节日条替原公告条值班：避免两条横条叠在页头，手机上一屏只剩横条 */
body.okg-fest-hide-announce .okg-announce { display: none !important; }

/* ---------- 雪花画布 ---------- */

.okg-fest-snow {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 880;
}

/* ---------- logo 圣诞帽 ---------- */

.okg-fest-on .okg-logo { position: relative; }

/* 戴在倒数第二个字母上（字母 O 像脑袋），不压住右下角的 ® */
.okg-fest-hat {
	position: absolute;
	left: 74%;
	top: -13px;
	width: 30px;
	height: 30px;
	pointer-events: none;
	transform: translateX(-50%) rotate(10deg);
	filter: drop-shadow(0 2px 3px rgba(10, 30, 24, .28));
	animation: okg-fest-hat-in .55s cubic-bezier(.2, .8, .3, 1.2) both;
}
.okg-fest-hat svg { display: block; width: 100%; height: 100%; }

/* ---------- 动画 ---------- */

@keyframes okg-fest-spin {
	to { transform: rotate(360deg); }
}
@keyframes okg-fest-sway {
	from { transform: rotate(-6deg); }
	to { transform: rotate(6deg); }
}
@keyframes okg-fest-twinkle {
	0%, 100% { opacity: .38; box-shadow: 0 0 0 0 transparent; }
	50% { opacity: 1; box-shadow: 0 0 9px 2px var(--bulb); }
}
@keyframes okg-fest-breathe {
	0%, 100% { opacity: .28; }
	50% { opacity: .8; }
}
@keyframes okg-fest-hat-in {
	from { opacity: 0; transform: translateX(-50%) translateY(-9px) rotate(24deg) scale(.7); }
	to { opacity: 1; transform: translateX(-50%) rotate(10deg) scale(1); }
}

/* ---------- 窄屏 ---------- */

@media (max-width: 1024px) {
	.okg-fest__hang { display: none; }
	.okg-fest__inner { padding: 12px 40px 8px; }
}

@media (max-width: 900px) {
	.okg-fest__lights { padding: 0 4px; }
	.okg-fest__inner { min-height: 0; padding: 14px 38px 8px 12px; gap: 6px 10px; }
	.okg-fest__text { font-size: 12px; gap: 2px 8px; }
	.okg-fest__code { padding: 1px 8px; font-size: 11.5px; }
	.okg-fest__code b { font-size: 12px; }
	.okg-fest__close { right: 8px; width: 22px; height: 22px; font-size: 17px; }
	.okg-fest-hat { width: 24px; height: 24px; top: -10px; }
}

@media (max-width: 560px) {
	.okg-fest-hat { left: 71%; }
	.okg-fest__flake { display: none; }
	.okg-fest__text { font-size: 11.5px; line-height: 1.45; }
	.okg-fest__inner { padding: 14px 34px 8px 10px; }
	.okg-fest__item { white-space: normal; }
}

/* 尊重「减少动态效果」：雪不出现，灯不再闪 */
@media (prefers-reduced-motion: reduce) {
	.okg-fest-snow { display: none; }
	.okg-fest__bulb,
	.okg-fest__toy,
	.okg-fest__flake,
	.okg-fest-hat,
	.okg-fest::before { animation: none; }
	.okg-fest__bulb { opacity: .85; }
	.okg-fest-hat { opacity: 1; }
}
