/* ==========================================
   闻彰文化 - 页面主题样式
   适用于 ThinkCMF 首页及内页
   配色：深海军蓝 + 靛蓝紫 + 青蓝点缀
   ========================================== */

/* ---- CSS Variables ---- */
:root {
	--yf-ink: #0f172a;
	--yf-forest: #1e293b;
	--yf-moss: #6366f1;
	--yf-gold: #6366f1;
	--yf-rose: #f43f5e;
	--yf-paper: #f8fafc;
	--yf-mist: #e2e8f0;
	--yf-line: rgba(71, 85, 105, .12);
	--yf-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

/* ---- 页面底色与纹理 ---- */
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(135deg, rgba(99, 102, 241, .04), transparent 38%),
		linear-gradient(225deg, rgba(6, 182, 212, .05), transparent 42%),
		repeating-linear-gradient(90deg, rgba(15, 23, 42, .02) 0 1px, transparent 1px 80px);
	opacity: .95;
}

a {
	color: #6366f1;
}

a:hover {
	color: #f43f5e;
	text-decoration: none;
}

.container {
	position: relative;
}

/* ==========================================
   顶部导航栏 Header
   ========================================== */
#doc-hd.header.double,
#doc-hd .topbar {
	min-height: 78px;
	background: rgba(255, 255, 255, .94);
	border-bottom: 1px solid var(--yf-line);
	box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
	backdrop-filter: blur(12px);
}

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

/* ---- Logo 区域 ---- */
.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: linear-gradient(135deg, #6366f1, #8b5cf6);
	color: #fff;
	font-size: 20px;
	font-weight: 900;
	box-shadow: 0 8px 22px rgba(99, 102, 241, .28);
}

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

/* ---- 漫画导航 ---- */
.comic-nav {
	float: left;
	margin-left: 24px;
	height: 58px;
	line-height: 58px;
	font-size: 0;
}

.comic-nav a {
	display: inline-block;
	margin-right: 10px;
	padding: 0 16px;
	height: 36px;
	line-height: 34px;
	border: 1px solid rgba(71, 85, 105, .18);
	border-radius: 999px;
	background: #fff;
	color: var(--yf-forest);
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
	box-sizing: border-box;
	vertical-align: middle;
}

.comic-nav a:hover {
	border-color: #6366f1;
	background: #6366f1;
	color: #fff;
	text-decoration: none;
}

/* ---- 下拉菜单 ---- */
.comic-dropdown {
	display: inline-block;
	position: relative;
	vertical-align: middle;
}

.comic-dropdown > a {
	margin-right: 0;
}

.comic-dropdown > a::after {
	content: ' ▾';
	font-size: 11px;
}

.comic-dropdown-menu {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 160px;
	background: #fff;
	border: 2px solid #818cf8;
	border-radius: 10px;
	box-shadow: 6px 6px 0 rgba(99, 102, 241, .18);
	z-index: 999;
	padding: 6px 0;
	margin-top: 4px;
	transition: opacity .15s ease, visibility .15s ease;
	transition-delay: 0s, .3s;
}

.comic-dropdown:hover .comic-dropdown-menu {
	visibility: visible;
	opacity: 1;
	transition-delay: 0s, 0s;
}

.comic-dropdown-menu a {
	display: block;
	margin: 0;
	padding: 8px 18px;
	height: auto;
	line-height: 1.5;
	border: none;
	border-radius: 0;
	background: transparent;
	color: var(--yf-ink);
	font-size: 13px;
	font-weight: 700;
	box-shadow: none;
	white-space: nowrap;
}

.comic-dropdown-menu a:hover {
	background: var(--yf-moss);
	color: #fff;
	box-shadow: none;
}

/* ---- 登录/注册区域 ---- */
.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: #fff;
	box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}

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

/* ---- 充值按钮 ---- */
.huajiaodou .btn-huajiaodou {
	border: 0 !important;
	border-radius: 999px !important;
	background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
	color: #fff !important;
	box-shadow: 0 8px 24px rgba(99, 102, 241, .28) !important;
	font-weight: 900 !important;
}

.huajiaodou .btn-huajiaodou:hover {
	background: linear-gradient(135deg, #1e293b, #334155) !important;
	color: #fff !important;
}

/* ---- 搜索栏 ---- */
.search-bar {
	margin-top: 18px;
}

.search-input-wrap {
	border: 1px solid rgba(71, 85, 105, .18) !important;
	border-radius: 999px !important;
	background: #fff !important;
	box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
	overflow: hidden;
}

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

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

/* ==========================================
   Flexbox Header 布局
   ========================================== */
#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 .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;
}

/* ==========================================
   Hero 区域
   ========================================== */
.neo-hero {
	position: relative;
	min-height: 560px;
	overflow: hidden;
	background:
		linear-gradient(135deg, #0f172a, #1e293b 40%, #312e81 100%);
	color: #f1f5f9;
}

.neo-hero:before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 30%, rgba(99, 102, 241, .28), transparent 40%),
		radial-gradient(circle at 75% 40%, rgba(6, 182, 212, .22), transparent 35%),
		linear-gradient(180deg, rgba(15, 23, 42, .5), transparent 40%);
}

.neo-hero__bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 24% 24%, rgba(139, 92, 246, .2), transparent 28%),
		radial-gradient(circle at 78% 34%, rgba(56, 189, 248, .16), transparent 30%);
}

.neo-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	min-height: 560px;
	padding-top: 40px;
	padding-bottom: 40px;
}

.neo-hero__copy {
	flex: 1;
}

.neo-hero__tag {
	color: #a5b4fc;
	font-weight: 900;
	letter-spacing: .08em;
	font-size: 14px;
	margin-bottom: 8px;
}

.neo-hero h1 {
	max-width: 720px;
	color: #fff;
	font-size: clamp(42px, 6vw, 78px);
	line-height: 1.05;
	margin: 10px 0;
}

.neo-hero__text {
	max-width: 610px;
	color: rgba(203, 213, 225, .9);
	font-size: 17px;
	line-height: 1.9;
	margin-top: 16px;
}

.neo-hero__visual {
	flex: 0 0 auto;
	position: relative;
}

/* ---- Hero 视觉元素 ---- */
.yf-cinema-visual {
	position: relative;
	min-height: 500px;
	width: 440px;
}

.yf-frame {
	position: absolute;
	right: 18px;
	top: 82px;
	z-index: 3;
	width: 360px;
	height: 270px;
	padding: 12px;
	border: 1px solid rgba(148, 163, 184, .3);
	border-radius: 24px;
	background: rgba(255, 255, 255, .08);
	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(165, 180, 252, .7) 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, #e0e7ff 0 18px, #6366f1 18px 36px);
	border: 1px solid rgba(255,255,255,.3);
}

.yf-clapper__body {
	padding: 18px 18px 20px;
	border-radius: 4px 4px 18px 18px;
	background: linear-gradient(160deg, rgba(30, 41, 59, .96), rgba(99, 102, 241, .75));
	border: 1px solid rgba(255,255,255,.2);
}

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

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

.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(165, 180, 252, .3);
	border-radius: 50%;
	pointer-events: none;
}

.yf-film-orbit:before {
	content: "";
	position: absolute;
	inset: 22px;
	border-radius: 50%;
	border: 12px dotted rgba(99, 102, 241, .35);
}

.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(99, 102, 241, .35), transparent 68%);
	filter: blur(8px);
	transform: rotate(-12deg);
}

/* ==========================================
   内容区域
   ========================================== */
.neo-main {
	background: transparent;
}

.neo-section {
	border: 1px solid var(--yf-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--yf-shadow);
	position: relative;
	overflow: hidden;
	padding: 38px 44px 46px;
}

.neo-section__head h2 {
	color: var(--yf-forest);
	margin-top: 6px;
	font-size: 34px;
	line-height: 1.2;
}

.neo-kicker {
	color: #6366f1;
	font-weight: 900;
	letter-spacing: .08em;
	display: block;
	margin-bottom: 4px;
}

.neo-card {
	border: 1px solid rgba(71, 85, 105, .14);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.neo-card:hover {
	border-color: #6366f1;
	transform: translateY(-3px);
	box-shadow: 0 16px 32px rgba(15, 23, 42, .12);
}

/* ---- 漫画作品网格 ---- */
.yf-comic-grid {
	display: block;
	margin: 0;
	padding: 0;
}

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

.yf-comic-grid .neo-card__link {
	display: block;
	min-height: 0;
	color: inherit;
	text-decoration: none;
}

.yf-comic-grid .neo-card__cover {
	width: 100%;
	height: auto;
	max-height: none;
	min-height: 0;
	object-fit: contain;
	object-position: center top;
	background: #f8fafc;
}

.yf-comic-grid .neo-card__body {
	display: flex;
	align-items: center;
	min-height: 0;
	padding: 28px 34px;
	background: #f8fafc;
}

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

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

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

/* ==========================================
   底部信息栏
   ========================================== */
.neo-footer {
	margin-top: 56px;
	background: linear-gradient(135deg, #0f172a, #1e293b 56%, #312e81);
	color: rgba(203, 213, 225, .78);
}

.neo-footer__inner {
	padding: 42px 0 34px;
}

.neo-footer__brand,
.neo-footer__links,
.neo-footer__contact {
	float: left;
	box-sizing: border-box;
}

.neo-footer__brand  { width: 34%; padding-right: 52px; }
.neo-footer__links  { width: 26%; }
.neo-footer__contact { width: 40%; }

.neo-footer h4,
.neo-footer h5 {
	margin: 0 0 16px;
	font-weight: 800;
}

.neo-footer h4 {
	font-size: 26px;
	line-height: 1.3;
	color: #f1f5f9;
}

.neo-footer h5 {
	font-size: 18px;
	line-height: 1.4;
	color: #a5b4fc;
}

.neo-footer p,
.neo-footer a {
	display: block;
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.8;
	color: rgba(203, 213, 225, .72);
	text-decoration: none;
}

.neo-footer__link-group {
	float: left;
	width: 50%;
	box-sizing: border-box;
}

.neo-footer a:hover {
	color: #a5b4fc;
}

/* ==========================================
   响应式
   ========================================== */
@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: 900px) {
	#doc-hd.header.double,
	#doc-hd .topbar {
		min-height: auto;
	}

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

	.comic-nav {
		float: none;
		margin-left: 0;
		height: auto;
		line-height: 1;
		padding: 8px 0 10px;
	}

	.comic-dropdown-menu {
		position: static;
		box-shadow: none;
		border: none;
		padding-left: 12px;
	}

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

	.neo-footer__brand,
	.neo-footer__links,
	.neo-footer__contact,
	.neo-footer__link-group {
		float: none;
		width: 100%;
		padding-right: 0;
	}
}

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

	.yf-comic-grid .neo-card__body {
		padding: 28px 24px;
	}
}

@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;
	}
}

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

	#doc-hd .topbar > .container {
		padding: 6px 10px;
		min-height: auto;
		gap: 6px;
	}

	#doc-hd .hd-logo,
	#doc-hd .hd-logo .links {
		height: 42px;
		line-height: 42px;
	}

	#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;
		line-height: 30px;
		padding: 0 12px;
		font-size: 12px;
		min-width: 50px;
	}

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

	.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-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;
	}
}
