/* Zhuguang Light Blue Theme */
:root {
	--yf-ink: #2c3e50;
	--yf-forest: #3a7bd5;
	--yf-moss: #5b9bd5;
	--yf-gold: #74b9ff;
	--yf-rose: #e8734a;
	--yf-paper: #f4f8fd;
	--yf-mist: #e6f0fa;
	--yf-line: rgba(58, 123, 213, .14);
	--yf-shadow: 0 18px 46px rgba(44, 62, 80, .10);
}

html,
body {
	background: var(--yf-paper);
	color: var(--yf-ink);
}

body:before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		linear-gradient(120deg, rgba(116, 185, 255, .08), transparent 34%),
		linear-gradient(270deg, rgba(58, 123, 213, .08), transparent 42%),
		repeating-linear-gradient(90deg, rgba(58, 123, 213, .03) 0 1px, transparent 1px 72px);
	opacity: .95;
}

a {
	color: var(--yf-forest);
}

a:hover {
	color: var(--yf-rose);
	text-decoration: none;
}

.container {
	position: relative;
}

#doc-hd.header.double,
#doc-hd .topbar {
	min-height: 74px;
	background: rgba(244, 248, 253, .94);
	border-bottom: 1px solid var(--yf-line);
	box-shadow: 0 12px 32px rgba(58, 123, 213, .08);
	backdrop-filter: blur(10px);
}

#doc-hd .topbar .container {
	min-height: 74px;
}

.hd-logo {
	height: 74px;
	line-height: 74px;
}

.hd-logo .links {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	height: 74px;
	margin-left: 0;
	color: var(--yf-forest);
}

.hd-logo .links:before {
	content: "映";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #a8d8ff, var(--yf-gold) 56%, #3a7bd5);
	color: #fff;
	font-size: 20px;
	font-weight: 900;
	box-shadow: 0 10px 22px rgba(58, 123, 213, .28);
}

.hd-logo-text {
	color: var(--yf-forest);
	font-size: 20px;
	font-weight: 900;
	letter-spacing: 0;
}

.comic-nav {
	height: 74px !important;
	line-height: 74px !important;
	margin-left: 30px !important;
}

.comic-nav a {
	height: 36px !important;
	line-height: 34px !important;
	border: 1px solid rgba(58, 123, 213, .20) !important;
	border-radius: 999px !important;
	background: #f0f6fd !important;
	color: var(--yf-forest) !important;
	box-shadow: none !important;
	font-weight: 800 !important;
}

.comic-nav a:hover {
	border-color: var(--yf-gold) !important;
	background: var(--yf-forest) !important;
	color: #fff !important;
}

.hd-login {
	height: 74px;
}

.hd-login .no-login,
.hd-login .already-login {
	margin-top: 14px;
	border: 1px solid var(--yf-line);
	border-radius: 999px;
	background: #f0f6fd;
	box-shadow: 0 8px 22px rgba(58, 123, 213, .08);
}

.hd-login .tologin,
.hd-login .nickname {
	color: var(--yf-forest) !important;
	font-weight: 800;
}

.huajiaodou .btn-huajiaodou,
.btn,
.neo-btn,
.recharge-submit,
.btn-submit {
	border: 0 !important;
	border-radius: 999px !important;
	background: linear-gradient(135deg, var(--yf-gold), #a8d8ff) !important;
	color: #1a3a5c !important;
	box-shadow: 0 12px 28px rgba(116, 185, 255, .28) !important;
	font-weight: 900 !important;
}

.huajiaodou .btn-huajiaodou:hover,
.btn:hover,
.neo-btn:hover,
.recharge-submit:hover,
.btn-submit:hover {
	background: linear-gradient(135deg, var(--yf-forest), var(--yf-moss)) !important;
	color: #fff !important;
}

.search-bar {
	margin-top: 18px;
}

.search-input-wrap {
	border: 1px solid rgba(58, 123, 213, .18) !important;
	border-radius: 999px !important;
	background: #f0f6fd !important;
	box-shadow: 0 8px 20px rgba(58, 123, 213, .06);
	overflow: hidden;
}

.search-input {
	color: var(--yf-ink) !important;
}

.search-submit-btn {
	background-color: var(--yf-forest) !important;
	border-radius: 50% !important;
}

.new-home,
.boluo-home {
	background: transparent !important;
}

.neo-hero,
.boluo-hero {
	position: relative;
	min-height: 560px;
	overflow: hidden;
	background:
		linear-gradient(135deg, rgba(26, 58, 92, .78), rgba(58, 123, 213, .62) 48%, rgba(52, 152, 219, .48)),
		linear-gradient(90deg, rgba(116, 185, 255, .25), transparent);
	color: #fff;
}

.neo-hero:before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		repeating-linear-gradient(90deg, rgba(255,255,255,.09) 0 1px, transparent 1px 46px),
		linear-gradient(180deg, rgba(0,0,0,.14), transparent 52%, rgba(0,0,0,.18));
	mix-blend-mode: soft-light;
}

.neo-hero__bg {
	background:
		radial-gradient(circle at 24% 24%, rgba(168, 216, 255, .32), transparent 28%),
		radial-gradient(circle at 78% 34%, rgba(255, 255, 255, .20), transparent 30%) !important;
}

.neo-hero__tag,
.neo-kicker {
	color: #a8d8ff !important;
	font-weight: 900;
	letter-spacing: .08em;
}

.neo-hero h1 {
	max-width: 720px;
	color: #fff !important;
	font-size: clamp(42px, 6vw, 78px);
	line-height: 1.05;
	text-shadow: 0 8px 28px rgba(0,0,0,.20);
}

.neo-hero__text {
	max-width: 610px;
	color: rgba(255, 255, 255, .82) !important;
	font-size: 17px;
	line-height: 1.9;
}

.neo-btn--ghost {
	border: 1px solid rgba(255,255,255,.58) !important;
	background: rgba(255,255,255,.10) !important;
	color: #fff !important;
	box-shadow: none !important;
}

.neo-hero__visual .neo-phone {
	border-color: rgba(255, 255, 255, .82) !important;
	background: linear-gradient(160deg, #fff, #a8d8ff) !important;
	box-shadow: 0 28px 70px rgba(0,0,0,.30);
}

.neo-phone__screen {
	background: linear-gradient(155deg, #1a3a5c, #3498db 58%, #e8734a) !important;
}

.boluo-badge,
.neo-metric {
	border: 1px solid rgba(255, 255, 255, .28) !important;
	background: rgba(255, 255, 255, .14) !important;
	color: #fff !important;
	backdrop-filter: blur(12px);
}

.yf-cinema-visual {
	position: relative;
	min-height: 500px;
}

.yf-frame {
	position: absolute;
	right: 18px;
	top: 82px;
	z-index: 3;
	width: 360px;
	height: 270px;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, .42);
	border-radius: 24px;
	background: rgba(255, 255, 255, .12);
	box-shadow: 0 36px 86px rgba(0, 0, 0, .34);
	transform: rotate(3deg);
	backdrop-filter: blur(14px);
}

.yf-frame:before,
.yf-frame:after {
	content: "";
	position: absolute;
	left: 26px;
	right: 26px;
	height: 10px;
	background: repeating-linear-gradient(90deg, rgba(255,255,255,.86) 0 12px, transparent 12px 24px);
	opacity: .55;
}

.yf-frame:before {
	top: -22px;
}

.yf-frame:after {
	bottom: -22px;
}

.yf-frame img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 16px;
	object-fit: cover;
	filter: saturate(.92) contrast(1.05);
}

.yf-clapper {
	position: absolute;
	left: 28px;
	top: 28px;
	z-index: 4;
	width: 190px;
	transform: rotate(-8deg);
	filter: drop-shadow(0 24px 40px rgba(0,0,0,.28));
}

.yf-clapper__top {
	height: 48px;
	border-radius: 14px 14px 4px 4px;
	background:
		repeating-linear-gradient(135deg, #fff 0 18px, #3a7bd5 18px 36px);
	border: 1px solid rgba(255,255,255,.52);
}

.yf-clapper__body {
	padding: 18px 18px 20px;
	border-radius: 4px 4px 18px 18px;
	background: linear-gradient(160deg, rgba(26,58,92,.96), rgba(58,123,213,.90));
	border: 1px solid rgba(255,255,255,.32);
}

.yf-clapper__body span {
	display: block;
	height: 8px;
	margin-top: 12px;
	border-radius: 999px;
	background: rgba(255,255,255,.28);
}

.yf-clapper__body span:first-child {
	width: 78%;
	margin-top: 0;
	background: #74b9ff;
}

.yf-clapper__body span:nth-child(2) {
	width: 58%;
}

.yf-clapper__body span:nth-child(3) {
	width: 92%;
}

.yf-film-orbit {
	position: absolute;
	border: 1px solid rgba(255,255,255,.30);
	border-radius: 50%;
	pointer-events: none;
}

.yf-film-orbit:before {
	content: "";
	position: absolute;
	inset: 22px;
	border-radius: 50%;
	border: 12px dotted rgba(168,216,255,.48);
}

.yf-film-orbit--one {
	right: 0;
	top: 18px;
	width: 390px;
	height: 390px;
	opacity: .62;
}

.yf-film-orbit--two {
	left: 42px;
	bottom: 22px;
	width: 210px;
	height: 210px;
	opacity: .38;
}

.yf-light-beam {
	position: absolute;
	right: 34px;
	bottom: 26px;
	z-index: 1;
	width: 420px;
	height: 160px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(168,216,255,.42), transparent 68%);
	filter: blur(8px);
	transform: rotate(-12deg);
}

.boluo-home .neo-phone,
.boluo-home .boluo-badge,
.boluo-home .neo-metric {
	display: none !important;
}

.neo-main,
#doc-bd {
	background: transparent !important;
}

.neo-section,
.legal-panel,
.chargebox,
.recharge-shell,
.recharge-panel,
.personal-main,
.search-result,
.live-list,
.program-list {
	border: 1px solid var(--yf-line) !important;
	border-radius: 18px !important;
	background: rgba(244, 248, 253, .86) !important;
	box-shadow: var(--yf-shadow) !important;
	position: relative;
	overflow: hidden;
}

.neo-section:before,
.legal-panel:before,
.recharge-shell:before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	border-radius: inherit;
	opacity: .08;
}

.neo-section > *,
.legal-panel > *,
.recharge-shell > * {
	position: relative;
	z-index: 1;
}

.neo-section__head h2,
.legal-title,
.recharge-banner h1,
.page_title,
.personal-title,
.chargebox .label,
.recharge-section-title {
	color: var(--yf-forest) !important;
}

.neo-card,
.live-item,
.program-item,
.recharge-package,
.pay-item,
.package-list .item,
.charge-source-list > li {
	border: 1px solid rgba(58, 123, 213, .16) !important;
	border-radius: 14px !important;
	background: #f0f6fd !important;
	box-shadow: 0 12px 28px rgba(58, 123, 213, .08) !important;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.neo-card:hover,
.live-item:hover,
.program-item:hover,
.recharge-package:hover,
.package-list .item:hover {
	border-color: var(--yf-gold) !important;
	transform: translateY(-3px);
	box-shadow: 0 18px 36px rgba(58, 123, 213, .14) !important;
}

.recharge-package.active,
.package-list .item.active,
.pay-item.active,
.charge-source-list > li.active {
	border-color: var(--yf-gold) !important;
	background: linear-gradient(135deg, #e8f4fd, #f0f6fd) !important;
}

.price,
.cost,
.recharge-package .price,
.package-list .price {
	color: var(--yf-rose) !important;
	font-weight: 900 !important;
}

.neo-section--comic {
	padding: 38px 44px 46px !important;
}

.neo-section--comic .neo-section__head {
	margin-bottom: 24px !important;
}

.neo-section--comic .neo-section__head h2 {
	margin-top: 6px !important;
	font-size: 34px !important;
	line-height: 1.2 !important;
}

.yf-comic-grid,
.neo-grid--comic {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
}

.yf-comic-grid .neo-card--comic {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	overflow: hidden;
}

.yf-comic-grid .neo-card__link {
	display: block !important;
	min-height: 0;
	color: inherit;
}

.yf-comic-grid .neo-card__cover {
	width: 100% !important;
	height: auto !important;
	max-height: 65vh !important;
	min-height: 0 !important;
	object-fit: cover;
	object-position: center top;
	background: #f0f6fd;
	cursor: pointer;
}

.yf-comic-grid .neo-card__body {
	display: flex;
	align-items: center;
	min-height: 0 !important;
	padding: 28px 34px !important;
	background:
		linear-gradient(135deg, rgba(244,248,253,.96), rgba(230,240,250,.92));
}

.yf-comic-grid .neo-card__meta {
	margin: 0 !important;
	padding: 0 !important;
}

.yf-comic-grid .neo-card__meta h3 {
	height: auto !important;
	margin: 0 0 14px !important;
	color: var(--yf-forest) !important;
	font-size: 30px !important;
	line-height: 1.2 !important;
	font-weight: 900 !important;
}

.yf-comic-grid .neo-card__meta p {
	height: auto !important;
	margin: 0 !important;
	color: #567890 !important;
	font-size: 15px !important;
	line-height: 1.8 !important;
}

@media (max-width: 760px) {
	.neo-section--comic {
		padding: 28px 18px 32px !important;
	}

	.yf-comic-grid .neo-card__link {
		display: block !important;
	}

	.yf-comic-grid .neo-card__cover {
		min-height: 0 !important;
	}

	.yf-comic-grid .neo-card__body {
		min-height: 0 !important;
		padding: 28px 24px !important;
	}
}

.neo-footer {
	margin-top: 56px !important;
	background:
		linear-gradient(135deg, #1a2a3a, #2c3e50 56%, #1a3a5c) !important;
	color: rgba(255, 255, 255, .74) !important;
}

.neo-footer h4,
.neo-footer h5 {
	color: #fff !important;
}

.neo-footer h5,
.neo-footer a:hover {
	color: #a8d8ff !important;
}

.neo-footer p,
.neo-footer a {
	color: rgba(255, 255, 255, .70) !important;
}

.neo-footer__bottom {
	border-top-color: rgba(255, 255, 255, .12) !important;
	color: rgba(255, 255, 255, .48) !important;
}

@media (max-width: 900px) {
	#doc-hd.header.double,
	#doc-hd .topbar {
		min-height: auto;
	}

	.hd-logo,
	.hd-logo .links {
		height: 62px;
		line-height: 62px;
	}

	.comic-nav {
		height: auto !important;
		line-height: 1 !important;
	}

	.neo-hero {
		min-height: 620px;
	}
}

/* Header layout refinement */
#doc-hd.header.double,
#doc-hd.double .topbar,
#doc-hd .topbar {
	height: auto !important;
	min-height: 78px !important;
}

#doc-hd .topbar > .container {
	display: flex;
	align-items: center;
	gap: 18px;
	box-sizing: border-box;
	min-height: 78px !important;
	padding-top: 10px;
	padding-bottom: 10px;
}

#doc-hd .topbar > .container:before,
#doc-hd .topbar > .container:after {
	content: none !important;
	display: none !important;
}

#doc-hd .hd-logo,
#doc-hd .comic-nav,
#doc-hd .search-bar,
#doc-hd .hd-login {
	float: none !important;
	margin: 0 !important;
}

#doc-hd .hd-logo {
	flex: 0 1 auto;
	width: auto !important;
	max-width: 300px;
	height: 56px !important;
	line-height: 56px !important;
}

#doc-hd .hd-logo .links {
	width: auto !important;
	height: 56px !important;
	line-height: 56px !important;
	white-space: nowrap;
}

#doc-hd .hd-logo-text {
	display: inline-block;
	overflow: hidden;
	max-width: 220px;
	height: auto;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#doc-hd .comic-nav {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	height: 56px !important;
	line-height: 1 !important;
	padding: 0 !important;
}

#doc-hd .comic-nav a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	white-space: nowrap;
}

#doc-hd .search-bar {
	flex: 1 1 260px;
	width: auto !important;
	max-width: 360px;
	min-width: 220px;
}

#doc-hd .search-bd,
#doc-hd .search-form,
#doc-hd .search-input-wrap {
	width: 100% !important;
}

#doc-hd .search-input-wrap {
	position: relative;
	box-sizing: border-box;
	height: 38px !important;
}

#doc-hd .search-input {
	box-sizing: border-box;
	width: calc(100% - 44px) !important;
	height: 36px !important;
	line-height: 36px !important;
}

#doc-hd .search-submit-btn {
	top: 3px !important;
	right: 4px !important;
	width: 30px !important;
	height: 30px !important;
}

#doc-hd .hd-login {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	height: 56px !important;
	min-width: 190px;
}

#doc-hd .hd-login .no-login,
#doc-hd .hd-login .already-login,
#doc-hd .hd-login .huajiaodou {
	float: none !important;
	margin: 0 !important;
}

#doc-hd .hd-login .no-login,
#doc-hd .hd-login .already-login {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	height: 38px;
	padding: 0 10px;
}

#doc-hd .hd-login .no-login .icon-level,
#doc-hd .hd-login .no-login .icon-more,
#doc-hd .hd-login .already-login > .icon-level,
#doc-hd .hd-login .already-login > .icon-more {
	display: none !important;
}

#doc-hd .hd-login .icon-avatar {
	flex: 0 0 auto;
	margin: 0 8px 0 0 !important;
}

#doc-hd .hd-login a.tologin,
#doc-hd .hd-login span {
	float: none !important;
	display: inline-block !important;
	max-width: none !important;
	height: auto !important;
	line-height: 1 !important;
	white-space: nowrap;
}

#doc-hd .hd-login .btn-huajiaodou {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 38px !important;
	min-width: 76px;
	padding: 0 18px !important;
	line-height: 38px !important;
	white-space: nowrap;
}

#doc-hd .hd-login .already-login .start_live {
	float: none !important;
	width: auto !important;
	height: 28px !important;
	margin-right: 8px;
	line-height: 28px !important;
}

#doc-hd .hd-login .already-login .link {
	display: inline-flex !important;
	align-items: center;
}

#doc-hd .hd-login .already-login .userinfo {
	top: 46px !important;
	right: 0;
	left: auto !important;
}

@media (max-width: 1100px) {
	#doc-hd .topbar > .container {
		flex-wrap: wrap;
		gap: 10px 14px;
	}

	#doc-hd .search-bar {
		order: 4;
		flex-basis: 100%;
		max-width: none;
	}

	#doc-hd .hd-login {
		margin-left: auto !important;
	}
}

@media (max-width: 720px) {
	#doc-hd .hd-logo {
		max-width: calc(100% - 120px);
	}

	#doc-hd .comic-nav {
		order: 3;
		width: 100%;
		justify-content: flex-start;
	}

	#doc-hd .hd-login {
		min-width: 0;
	}
}

/* ===== Mobile Optimizations ===== */
@media (max-width: 520px) {
	#doc-hd.header.double,
	#doc-hd .topbar {
		min-height: auto !important;
	}
	#doc-hd .topbar > .container {
		padding: 6px 10px;
		min-height: auto !important;
		gap: 6px;
	}
	#doc-hd .hd-logo,
	#doc-hd .hd-logo .links {
		height: 42px !important;
		line-height: 42px !important;
	}
	#doc-hd .hd-logo-text {
		font-size: 16px;
		max-width: 130px;
	}
	#doc-hd .comic-nav a {
		padding: 0 10px;
		height: 28px;
		line-height: 26px;
		font-size: 12px;
		border-radius: 13px;
	}
	.comic-dropdown-menu {
		min-width: 130px;
	}
	.comic-dropdown-menu a {
		font-size: 12px;
		padding: 6px 12px;
	}
	#doc-hd .hd-login {
		gap: 6px;
	}
	#doc-hd .hd-login .btn-huajiaodou {
		height: 30px !important;
		line-height: 30px !important;
		padding: 0 12px !important;
		font-size: 12px;
		min-width: 50px;
	}
	#doc-hd .search-bar {
		order: 5;
		flex-basis: 100%;
		max-width: none;
		min-width: 0;
	}
	#doc-hd .search-input {
		height: 32px !important;
		line-height: 32px !important;
		font-size: 13px;
	}
	#doc-hd .search-input-wrap {
		height: 34px !important;
	}
	#doc-hd .search-submit-btn {
		width: 26px !important;
		height: 26px !important;
		top: 2px !important;
		right: 2px !important;
	}
	.neo-hero {
		padding: 28px 0 20px;
		min-height: auto;
	}
	.neo-hero h1 {
		font-size: 26px;
		line-height: 1.2;
	}
	.neo-hero__tag {
		font-size: 11px;
	}
	.neo-hero__text {
		font-size: 13px;
		line-height: 1.6;
	}
	.neo-hero__visual {
		display: none;
	}
	.neo-section--comic {
		padding: 20px 12px 24px !important;
	}
	.neo-section__head h2 {
		font-size: 20px;
	}
	.yf-comic-grid .neo-card__link {
		display: block !important;
	}
	.yf-comic-grid .neo-card__cover {
		min-height: auto !important;
		height: auto !important;
	}
	.yf-comic-grid .neo-card__body {
		padding: 14px 16px !important;
	}
	.yf-comic-grid .neo-card__meta h3 {
		font-size: 15px;
	}
	.yf-comic-grid .neo-card__meta p {
		font-size: 12px;
	}
	.neo-footer__inner {
		padding: 24px 0 20px;
	}
	.neo-footer h4 {
		font-size: 20px;
		margin-bottom: 8px;
	}
	.neo-footer h5 {
		font-size: 15px;
		margin-bottom: 8px;
	}
	.neo-footer p,
	.neo-footer a {
		font-size: 13px;
		line-height: 1.6;
		margin-bottom: 6px;
	}
	.neo-footer__brand {
		margin-bottom: 12px;
	}
	.neo-footer__links {
		margin-bottom: 10px;
	}
	.legal-page .legal-panel {
		padding: 20px 16px;
		border-radius: 10px;
	}
	.legal-page .legal-title {
		font-size: 20px;
		margin-bottom: 16px;
	}
	.legal-page .legal-content {
		font-size: 14px;
		line-height: 1.7;
	}
	.legal-image-stack img {
		max-width: 100%;
		height: auto;
	}
	.container {
		padding-left: 12px;
		padding-right: 12px;
	}
}
