/* jdmh 首页样式：导航 + 搜索区 + 三个内容板块 */

@font-face {
	font-family: 'ZhanRen';
	src: url('../fonts/zhanren.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background-color: #fff;
	color: #333;
}

.ripple-target {
	position: relative;
	overflow: hidden;
	-webkit-tap-highlight-color: transparent;
}

.ripple-wave {
	position: absolute;
	border-radius: 50%;
	transform: scale(0);
	background: rgba(255, 119, 15, 0.22);
	animation: ripple-wave 520ms ease-out;
	pointer-events: none;
}

@keyframes ripple-wave {
	to {
		transform: scale(1);
		opacity: 0;
	}
}

a, button {
	transition: transform 160ms ease, filter 160ms ease;
}

a:active, button:active {
	transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
	.ripple-wave {
		animation: none;
	}
	a, button {
		transition: none;
	}
}

a,
a:hover {
	text-decoration: none;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

/* 顶部导航 */
.header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background-color: #ffffff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.logo {
	display: inline-flex;
	align-items: center;
}

.logo span{
	font-size:40px;
	font-family: 'ZhanRen', "Source Han Sans CN", "SourceHanSansCN", "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
	color:#ff770f;
}

.logo img {
	display: block;
	height: 26px;
	width: auto;
}
.nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.nav-list {
	list-style: none;
	display: flex;
	gap: 40px;
}

.nav-link {
	position: relative;
	font-size: 16px;
	color: #333;
	text-decoration: none;
	padding-bottom: 6px;
}

.nav-link::after {
	content: '';
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 0;
	width: 0;
	height: 2px;
	border-radius: 1px;
	background-color: #ff770f;
	transition: width 0.25s ease, opacity 0.25s ease;
	opacity: 0;
}

.nav-link.active,
.nav-link:hover {
	color: #ff770f;
}

.nav-link.active::after,
.nav-link:hover::after {
	width: 18px;
	opacity: 1;
}

.header-search-inline {
	display: none;
}

.header-search-form {
	display: flex;
	align-items: center;
	background: #f8f8f8;
	border-radius: 999px;
	overflow: hidden;
}

.header-search-input {
	flex: 1;
	border: none;
	outline: none;
	padding: 8px 14px;
	font-size: 14px;
	background: transparent;
}

.header-search-button {
	border: none;
	padding: 0 18px;
	background-color: #ff770f;
	color: #fff;
	font-size: 13px;
	cursor: pointer;
	white-space: nowrap;
}

/* 移动端导航 */
.mobile-nav-toggle {
	display: none;
	width: 24px;
	height: 24px;
	position: relative;
	cursor: pointer;
}

.mobile-nav-toggle span {
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: #333;
	border-radius: 1px;
	transition: transform .2s ease, top .2s ease, opacity .2s ease;
}

.mobile-nav-toggle span:nth-child(1) { top: 6px; }
.mobile-nav-toggle span:nth-child(2) { top: 11px; }
.mobile-nav-toggle span:nth-child(3) { top: 16px; }

/* 搜索区域 */
.hero {
	background: url('../images/home-tab-bg.png') center/cover no-repeat;
	padding: 70px 0 40px;
	text-align: center;
}

.hero-title-wrapper {
	display: inline-block;
	position: relative;
	margin-bottom: 24px;
	padding-bottom: 32px;
}

.hero-title-bg {
	position: relative;
	padding: 12px 32px;
	background: url('../images/bt1.png') center/contain no-repeat;
}

.hero-title-welcome {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 0;
	width: 690px;
	height: 70px;
	pointer-events: none;
}

.hero-title-bg::before {
	content: '';
	position: absolute;
	left: -1px;
	top: 3px;
	left: -10px;
	top: 6px;
	top: 8px;
	width: 100%;
	height: 100%;
	background: url('../images/bt2.png') center/contain no-repeat;
	z-index: -1;
}

.hero-title {
	position: relative;
	z-index: 1;
	font-size: 36px;
	color: #333;
	white-space: nowrap;
}

.hero-title img {
	margin-left: 8px;
	height: 32px;
}

.hero-search-wrapper {
	margin-top: 16px;
}

.hero-search-box {
	max-width: 560px;
	margin: 0 auto;
	display: flex;
	background: #f8f8f8;
	border-radius: 999px;
	overflow: hidden;
}

.hero-search-input {
	flex: 1;
	border: none;
	outline: none;
	padding: 14px 20px;
	font-size: 14px;
	background: transparent;
}

.hero-search-button {
	border: none;
	padding: 0 28px;
	background-color: #ff770f;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
}

/* 三个内容板块 */
.main-content {
	padding: 32px 0 60px;
}

.section {
	margin-bottom: 40px;
}

.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.section-title-wrap {
	position: relative;
	display: inline-block;
}

.section-title-bg {
	position: relative;
	padding: 6px 16px;
	background: url('../images/bt1.png') center/contain no-repeat;
	height:50px;
}

.section-title-bg::before {
	content: '';
	position: absolute;
	left: -1px;
	top: 3px;
	width: 100%;
	height: 100%;
	padding: 0px 1px 0px 1px;
	background: url('../images/bt2.png') center/contain no-repeat;
	z-index: -1;
}

.section-title {
	font-family: 'ZhanRen', system-ui, -apple-system;
	font-size: 1.5rem;
	color: #333;
}

.section-more {
	font-size: 12px;
	color: #999;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.section-more::after {
	content: '';
	width: 12px;
	height: 12px;
	background: url('../images/right.png') center/contain no-repeat;
}

.comic-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.comic-card {
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
}

.comic-cover {
	height: 232px;
	overflow: hidden;
}

.comic-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.comic-info {
	padding: 8px 6px 10px;
}

.comic-title {
	font-size: 18px;
	color: #333;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.comic-meta {
	font-size: 12px;
	color: #999;
}

.section-footer {
	text-align: center;
	margin-top: 30px;
}

.section-more-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	border-radius: 10px;
	border: 1px solid #333;
	box-shadow: 1px 1px 0px #fff, 2px 2px 0px #333;
	background: #fff;
	font-size: 14px;
	color: #333;
	text-decoration: none;
}

.section-more-btn::after {
	content: '';
	width: 14px;
	height: 14px;
	background: url('../images/right.png') center/contain no-repeat;
}

/* 漫画详情页 */
body.comic-page .hero {
	background: #ffffff;
	padding: 0;
	border-bottom: 1px solid #f2f2f2;
	display: none;
}

body.comic-page .hero-title-wrapper {
	display: none;
}

body.comic-page .hero .container {
	padding: 10px 16px 12px;
}

body.comic-page .header-inner {
	align-items: center;
	justify-content: flex-start;
}

body.comic-page .nav {
	flex: 0 0 auto;
	justify-content: flex-end;
	margin-left: auto;
}

body.comic-page .header-search-inline {
	display: flex;
	margin-left: 16px;
}

body.comic-page .header-search-form {
	max-width: 320px;
	height: 34px;
}

body.comic-page .header-search-input {
	padding: 6px 12px;
	font-size: 13px;
}

body.comic-page .header-search-button {
	height: 34px;
	line-height: 34px;
	padding: 0 16px;
	font-size: 13px;
}

body.comic-page .hero-search-wrapper {
	margin-top: 0;
}

body.comic-page .hero-search-box {
	max-width: 360px;
	margin-left: auto;
}

body.comic-page .main-content.comic-main {
	padding: 32px 0 60px;
}

body.comic-page .comic-detail-header {
	display: flex;
	gap: 24px;
	padding: 24px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
	margin-bottom: 32px;
}

body.comic-page .comic-detail-cover img {
	display: block;
	width: 320px;
	max-width: 100%;
	border-radius: 8px;
}

body.comic-page .comic-detail-info {
	flex: 1;
	display: flex;
	flex-direction: column;
}

body.comic-page .comic-detail-title {
	font-size: 26px;
	color: #333;
	margin-bottom: 12px;
}

body.comic-page .comic-detail-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	font-size: 14px;
	margin-bottom: 8px;
}

body.comic-page .comic-detail-genre {
	padding: 0 12px;
	line-height: 24px;
	border-radius: 999px;
	background: #fff4e8;
	color: #ff770f;
}

body.comic-page .comic-detail-hot {
	color: #999;
}

body.comic-page .comic-detail-hot-label {
	color: #ff770f;
}

body.comic-page .comic-detail-hot em {
	font-style: normal;
	color: #ff770f;
}

body.comic-page .comic-detail-hot-icon {
	width: 16px;
	height: 16px;
	margin-right: 4px;
	vertical-align: -2px;
}

body.comic-page .comic-detail-desc {
	font-size: 14px;
	color: #666;
	line-height: 1.7;
	margin-bottom: 10px;
}

body.comic-page .comic-detail-status-row {
	font-size: 13px;
	color: #999;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-bottom: 8px;
}

body.comic-page .comic-detail-status-row em {
	font-style: normal;
	color: #666;
}

body.comic-page .comic-detail-latest-row {
	font-size: 13px;
	color: #666;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin-bottom: 14px;
}

body.comic-page .comic-detail-latest-link {
	color: #ff770f;
}

body.comic-page .comic-detail-latest-time {
	color: #999;
}

body.comic-page .comic-detail-actions {
	margin-top: auto;
	padding-top: 10px;
}

body.comic-page .comic-btn-read {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 30px;
	border-radius: 999px;
	background: #ff770f;
	color: #fff;
	font-size: 14px;
}

body.comic-page .comic-section {
	margin-bottom: 32px;
	background: #fff;
	border-radius: 12px;
	padding: 22px 24px 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

body.comic-page .comic-section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 16px;
}

body.comic-page .comic-section-header-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

body.comic-page .comic-section-title {
	font-size: 18px;
	color: #333;
}

body.comic-page .comic-section-sub {
	margin-top: 4px;
	font-size: 13px;
	color: #999;
}

body.comic-page .comic-section-sub em {
	font-style: normal;
	color: #666;
}

body.comic-page .comic-section-catalog .comic-section-sub {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin-top: 0;
}

body.comic-page .comic-section-sub-latest a {
	color: #ff770f;
}

body.comic-page .comic-section-sub-time {
	margin-left: 4px;
	color: #999;
}

body.comic-page .comic-latest-chapter-list {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
}

body.comic-page .comic-chapter-pill {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 6px;
	border-radius: 6px;
	background: #f7f7f7;
	font-size: 13px;
	color: #555;
}

body.comic-page .comic-chapter-pill:hover {
	background: #ff770f;
	color: #fff;
}

body.comic-page .comic-section-recommend .comic-section-header {
	margin-bottom: 16px;
}

body.comic-page .comic-recommend-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}

body.comic-page .comic-recommend-card {
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
}

body.comic-page .comic-recommend-link {
	display: block;
	color: inherit;
}

body.comic-page .comic-recommend-cover {
	width: 100%;
	padding-top: 140%;
	position: relative;
	overflow: hidden;
	border-radius: 6px;
}

body.comic-page .comic-recommend-tag {
	position: absolute;
	left: 6px;
	top: 6px;
	max-width: 70%;
	padding: 2px 8px;
	font-size: 12px;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	border-radius: 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.comic-page .comic-recommend-cover img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.comic-page .comic-recommend-info {
	padding: 6px 0 4px;
}

body.comic-page .comic-recommend-title {
	font-size: 14px;
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.comic-page .comic-recommend-meta {
	margin-top: 2px;
	font-size: 12px;
	color: #999;
}

body.comic-page .chapter-sort-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid #e0e0e0;
	background: #fff;
	font-size: 13px;
	color: #666;
	cursor: pointer;
}

body.comic-page .chapter-sort-icon {
	width: 16px;
	height: 16px;
}

body.comic-page .comic-chapter-list {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
}

body.comic-page .chapter-item {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 6px;
	border-radius: 6px;
	background: #f7f7f7;
	font-size: 13px;
	color: #555;
}

body.comic-page .chapter-item:hover {
	background: #ff770f;
	color: #fff;
}

body.comic-page .chapter-item-hidden {
	display: none;
}

body.comic-page .chapter-more-wrap {
	margin-top: 16px;
	text-align: center;
}

body.comic-page .chapter-more-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #999;
}

body.comic-page .chapter-more-icon {
	width: 14px;
	height: 14px;
}

body.category-page .main-content {
	padding: 32px 0 60px;
}

body.category-page .category-filter {
	background: #fff;
	border-radius: 12px;
	padding: 20px 0px 10px;
	margin-bottom: 30px;
}

body.category-page .category-filter-row {
	display: flex;
	align-items: flex-start;
	margin-bottom: 12px;
}

body.category-page .category-filter-label {
	flex: 0 0 54px;
	font-size: 14px;
	color: #333;
	font-weight: 600;
	line-height: 28px;
}

body.category-page .category-filter-options {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
}

body.category-page .category-filter-options .selListItem {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	border-radius: 999px;
	border: none;
	font-size: 13px;
	color: #666;
	background: transparent;
}

body.category-page .category-filter-options .selListItem:hover {
	color: #ff770f;
}

body.category-page .category-filter-options .selListItem.active {
	border: 1px solid #333;
	background: #ff770f;
	color: #fff;
	border-radius:5px;
}

body.category-page .category-filter-row-sort .category-filter-options .selListItem {
	padding: 2px 10px;
}

body.category-page .category-comic-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}

body.category-page .category-comic-card {
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	/* 去掉阴影和上浮动画，保持平面风格 */
	box-shadow: none;
	transition: none;
	height: 320px;
	display: flex;
	flex-direction: column;
}

body.category-page .category-comic-card:hover {
	transform: none;
	box-shadow: none;
}

body.category-page .category-comic-cover {
	width: 100%;
	height: 230px;
	overflow: hidden;
	border-radius: 5px;
	position: relative;
}

body.category-page .category-comic-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.category-page .category-comic-tag {
	position: absolute;
	top: 6px;
	left: 6px;
	max-width: 70%;
	padding: 2px 8px;
	font-size: 12px;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	border-radius: 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.category-page .category-comic-info {
	padding: 8px 0px 10px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

body.category-page .category-comic-title {
	font-size: 14px;
	color: #333;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.category-page .category-comic-meta {
	font-size: 12px;
	color: #999;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

body.category-page .category-comic-meta .category-comic-author {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.category-page .category-pagination-wrapper {
	margin-top: 26px;
	text-align: center;
}

body.category-page .category-pagination a,
body.category-page .category-pagination span {
	display: inline-block;
	min-width: 28px;
	height: 32px;
	line-height: 32px;
	margin: 0 4px;
	padding: 0 10px;
	border-radius: 999px;
	border: 1px solid #e0e0e0;
	font-size: 13px;
	color: #666;
	background: #fff;
}

body.category-page .category-pagination a:hover {
	border-color: #ff770f;
	color: #ff770f;
}

body.category-page .category-pagination .current,
body.category-page .category-pagination .on {
	border-color: #ff770f;
	background: #ff770f;
	color: #fff;
}

/* 章节阅读页 */
body.chapter-page {
	background: #282828;
	color: #f5f5f5;
}

body.chapter-page.chapter-light {
	background: #f4f4f4;
	color: #222;
}

body.chapter-page .chapter-layout {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	padding: 0 20px;
}

body.chapter-page .chapter-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 40px;
	background: #333333;
	backdrop-filter: blur(6px);
	z-index: 1000;
	transition: transform .2s ease, opacity .2s ease;
}

body.chapter-page.chapter-light .chapter-header {
	background: rgba(255, 255, 255, 0.98);
	color: #222;
}

body.chapter-page .chapter-header-left,
body.chapter-page .chapter-header-center,
body.chapter-page .chapter-header-right {
	display: flex;
	align-items: center;
}

body.chapter-page .chapter-header-left {
	gap: 16px;
}

body.chapter-page .chapter-header-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	background: transparent;
	border: none;
	font-size: 13px;
	color: inherit;
	cursor: pointer;
}

body.chapter-page .chapter-header-btn .chapter-header-icon {
	width: 18px;
	height: 18px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

body.chapter-page.chapter-dark .chapter-btn-back .chapter-header-icon {
	background-image: url('../images/left-bai.png');
}

body.chapter-page.chapter-light .chapter-btn-back .chapter-header-icon {
	background-image: url('../images/left.png');
}

body.chapter-page.chapter-dark .chapter-btn-home .chapter-header-icon {
	background-image: url('../images/home-bai.png');
}

body.chapter-page.chapter-light .chapter-btn-home .chapter-header-icon {
	background-image: url('../images/home.png');
}

body.chapter-page.chapter-dark .chapter-btn-shelf .chapter-header-icon {
	background-image: url('../images/shujia-bai.png');
}

body.chapter-page.chapter-light .chapter-btn-shelf .chapter-header-icon {
	background-image: url('../images/shujia-hei.png');
}

body.chapter-page .chapter-breadcrumb {
	display: flex;
	align-items: center;
	font-size: 14px;
}

body.chapter-page .chapter-book-name {
	max-width: 220px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.chapter-page .chapter-breadcrumb-sep {
	margin: 0 8px;
}

body.chapter-page .chapter-arrow-icon {
	width: 12px;
	height: 12px;
	display: inline-block;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

body.chapter-page.chapter-dark .chapter-arrow-icon {
	background-image: url('../images/right-bai.png');
}

body.chapter-page.chapter-light .chapter-arrow-icon {
	background-image: url('../images/right.png');
}

body.chapter-page .chapter-current-name {
	max-width: 260px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.chapter-page .chapter-size-trigger {
	position: relative;
	padding: 6px 14px;
	border-radius: 999px;
	border: none;
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	font-size: 13px;
	cursor: pointer;
}

body.chapter-page.chapter-light .chapter-size-trigger {
	background: #efefef;
	color: #333;
}

body.chapter-page .chapter-size-arrow {
	margin-left: 4px;
}

body.chapter-page .chapter-size-panel {
	position: absolute;
	top: 52px;
	right: 0;
	background: #333;
	color: #fff;
	border-radius: 8px;
	padding: 10px 14px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
	min-width: 200px;
	display: none;
	z-index: 1200;
}

body.chapter-page.chapter-light .chapter-size-panel {
	background: #fff;
	color: #222;
}

body.chapter-page .chapter-size-panel.open {
	display: block;
}

body.chapter-page .chapter-size-scale {
	display: flex;
	align-items: center;
	gap: 8px;
}

body.chapter-page .chapter-size-slider-wrap {
	flex: 1;
}

body.chapter-page .chapter-size-range {
	--chapter-size-percent: 100%;
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	height: 4px;
	border-radius: 999px;
	background: #ffffff;
	outline: none;
}

body.chapter-page .chapter-size-range::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(to right,
		#ff770f 0%,
		#ff770f var(--chapter-size-percent),
		#ffffff var(--chapter-size-percent),
		#ffffff 100%);
}

body.chapter-page .chapter-size-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #ff770f;
	box-shadow: 0 0 0 2px #333;
	margin-top: -5px;
}

body.chapter-page .chapter-size-range::-moz-range-track {
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(to right,
		#ff770f 0%,
		#ff770f var(--chapter-size-percent),
		#ffffff var(--chapter-size-percent),
		#ffffff 100%);
}

body.chapter-page .chapter-size-range::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #ff770f;
	border: 2px solid #333;
}

body.chapter-page .chapter-size-current {
	margin-top: 6px;
	text-align: center;
	font-size: 13px;
}

body.chapter-page .chapter-main {
	flex: 1;
	padding-top: 80px;
	padding-bottom: 80px;
}

body.chapter-page .chapter-main-inner {
	max-width: 1500px;
	margin: 0 auto;
}

body.chapter-page .chapter-reader {
	position: relative;
}

body.chapter-page .chapter-image-list,
body.chapter-page .chapter-page-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

body.chapter-page .chapter-image-item,
body.chapter-page .chapter-page-item {
	width: 100%;
	display: flex;
	justify-content: center;
	margin: 0;
	padding: 0;
}

body.chapter-page .chapter-image {
	max-width: 820px;
	width: 100%;
	height: auto;
	display: block;
	border-radius: 0;
	margin: 0;
	padding: 0;
}

body.chapter-page .chapter-reader .chapter-page-mode {
	display: none;
	position: relative;
}

body.chapter-page .chapter-reader[data-mode="page"] .chapter-page-mode {
	display: block;
}

body.chapter-page .chapter-reader[data-mode="page"] .chapter-scroll-mode {
	display: none;
}

body.chapter-page .chapter-page-item {
	display: none;
}

body.chapter-page .chapter-page-item.active {
display: flex;
}

body.chapter-page .chapter-page-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 60px;
height: 60px;
border-radius: 50%;
border: none;
background: rgba(0, 0, 0, 0.45);
cursor: pointer;
text-indent: -9999px;
background-repeat: no-repeat;
background-position: center;
background-size: 26px 26px;
}

body.chapter-page .chapter-page-prev {
left: 10px;
}

body.chapter-page .chapter-page-next {
right: 10px;
}

@media (max-width: 768px) {
	body.chapter-page .chapter-page-nav {
		display: none;
	}
}

body.chapter-page.chapter-dark .chapter-page-prev {
background-image: url('../images/chapter-left-bai.png');
}

body.chapter-page.chapter-dark .chapter-page-next {
background-image: url('../images/chapter-right-bai.png');
}

body.chapter-page.chapter-light .chapter-page-prev {
background-image: url('../images/chapter-left.png');
}

body.chapter-page.chapter-light .chapter-page-next {
background-image: url('../images/chapter-right.png');
}

body.chapter-page .chapter-footer {
position: fixed;
left: 0;
right: 0;
bottom: 0;
height: 64px;
padding: 0 40px;
display: flex;
align-items: center;
justify-content: space-between;
background: #333333;
backdrop-filter: blur(6px);
color: #f5f5f5;
z-index: 1000;
	right: 0;
	bottom: 0;
	height: 64px;
	padding: 0 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #333333;
	backdrop-filter: blur(6px);
	color: #f5f5f5;
	z-index: 1000;
	transition: transform .2s ease, opacity .2s ease;
}
body.chapter-page .chapter-mobile-only {
	display: none;
}

@media (max-width: 768px) {
	body.chapter-page .chapter-mobile-only {
		display: block;
	}
}
body.chapter-page.chapter-light .chapter-footer {
	background: rgba(255, 255, 255, 0.98);
	color: #222;
}

body.chapter-page .chapter-footer-left {
	display: flex;
	align-items: center;
	gap: 18px;
}

body.chapter-page .chapter-footer-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	border: none;
	background: rgba(255, 255, 255, 0.08);
	color: inherit;
	font-size: 13px;
	cursor: pointer;
}

body.chapter-page.chapter-light .chapter-footer-btn {
	background: #f0f0f0;
}

body.chapter-page .chapter-footer-icon {
	width: 18px;
	height: 18px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

body.chapter-page .chapter-footer-icon-chapter {
	background-image: url('../images/chapter.png');
}

body.chapter-page .chapter-footer-icon-setting {
	background-image: url('../images/setting.png');
}

body.chapter-page .chapter-footer-icon-light {
	background-image: url('../images/guandeng.png');
}

body.chapter-page .chapter-footer-right {
	display: flex;
	align-items: center;
	gap: 28px;
}

body.chapter-page .chapter-footer-nav {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: inherit;
	font-size: 13px;
}

body.chapter-page.chapter-light .chapter-footer-nav {
	background: #f0f0f0;
}

body.chapter-page .chapter-footer-nav-icon {
	width: 18px;
	height: 18px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

body.chapter-page.chapter-dark .chapter-footer-prev-icon {
	background-image: url('../images/chapter-left-bai.png');
}

body.chapter-page.chapter-light .chapter-footer-prev-icon {
	background-image: url('../images/chapter-left.png');
}

body.chapter-page.chapter-dark .chapter-footer-next-icon {
	background-image: url('../images/chapter-right-bai.png');
}

body.chapter-page.chapter-light .chapter-footer-next-icon {
	background-image: url('../images/chapter-right.png');
}

body.chapter-page .chapter-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	display: none;
	overflow-x: hidden;
	z-index: 1200;
}

body.chapter-page .chapter-drawer.open {
	display: block;
}

body.chapter-page .chapter-drawer.open .chapter-drawer-mask {
	opacity: 1;
}

body.chapter-page .chapter-drawer.open .chapter-drawer-panel {
	transform: translateX(0);
	opacity: 1;
}

body.chapter-page .chapter-drawer-mask {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 200ms ease;
}

body.chapter-page .chapter-drawer-panel {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	width: 92vw;
	max-width: 380px;
	box-sizing: border-box;
	background: #1f1f1f;
	color: #f5f5f5;
	display: flex;
	flex-direction: column;
	transform: translateX(14px);
	opacity: 0;
	transition: transform 220ms ease, opacity 220ms ease;
}

@media (min-width: 1024px) {
	body.chapter-page .chapter-drawer-panel {
		width: 320px;
		max-width: 320px;
	}
}

body.chapter-page.chapter-light .chapter-drawer-panel {
	background: #ffffff;
	color: #222;
}

body.chapter-page .chapter-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.chapter-page.chapter-light .chapter-drawer-header {
	border-bottom-color: #f0f0f0;
}

body.chapter-page .chapter-drawer-title {
	font-size: 16px;
	margin: 0;
	line-height: 1.2;
}

body.chapter-page .chapter-drawer-sub {
	margin-top: 4px;
	font-size: 12px;
	color: #999;
}

body.chapter-page.chapter-light .chapter-drawer-sub {
	color: #666;
}

body.chapter-page .chapter-drawer-header-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

body.chapter-page .chapter-drawer-sort {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	font-size: 13px;
	cursor: pointer;
	user-select: none;
}

body.chapter-page.chapter-light .chapter-drawer-sort {
	border-color: #ddd;
}

body.chapter-page .chapter-drawer-sort-icon {
	width: 16px;
	height: 16px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

body.chapter-page.chapter-dark .chapter-drawer-sort-icon {
	background-image: url('../images/daoxu-bai.png');
}

body.chapter-page.chapter-light .chapter-drawer-sort-icon {
	background-image: url('../images/paixu.png');
}

body.chapter-page .chapter-drawer-close {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: transparent;
	cursor: pointer;
	position: relative;
}

body.chapter-page .chapter-drawer-close-icon {
	width: 18px;
	height: 18px;
	display: inline-block;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

body.chapter-page.chapter-dark .chapter-drawer-close-icon {
	background-image: url('../images/close-bai.png');
}

body.chapter-page.chapter-light .chapter-drawer-close-icon {
	background-image: url('../images/close-hei.png');
}

body.chapter-page .chapter-drawer-body {
	flex: 1;
	overflow: auto;
	overflow-x: hidden;
	box-sizing: border-box;
	padding: 14px 18px 18px;
}

body.chapter-page .chapter-drawer-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	gap: 10px;
}

@media (min-width: 641px) {
	body.chapter-page .chapter-drawer-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

body.chapter-page .chapter-drawer-item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 10px 10px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	color: #f5f5f5;
	font-size: 13px;
	line-height: 1.2;
}

body.chapter-page.chapter-light .chapter-drawer-item {
	background: #f5f5f5;
	color: #333;
}

body.chapter-page .chapter-drawer-item-name {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

body.chapter-page .chapter-drawer-item.active {
	color: #ff770f;
}

body.chapter-page .chapter-drawer-item.active::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	background: url('../images/zu.png') center/contain no-repeat;
	margin-right: 6px;
}

body.chapter-page .chapter-settings {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 64px;
	display: none;
	justify-content: flex-start;
	padding-left: 40px;
	z-index: 1100;
}

body.chapter-page .chapter-settings.open {
	display: flex;
}

body.chapter-page .chapter-settings.open .chapter-settings-panel {
	transform: translateY(0);
	opacity: 1;
}

body.chapter-page .chapter-settings-panel {
	background: #1f1f1f;
	color: #f5f5f5;
	border-radius: 8px;
	padding: 16px 18px;
	min-width: 260px;
	transform: translateY(10px);
	opacity: 0;
	transition: transform 220ms ease, opacity 220ms ease;
}

body.chapter-page.chapter-light .chapter-settings-panel {
	background: #ffffff;
	color: #222;
}

body.chapter-page .chapter-settings-header {
	font-size: 14px;
	margin-bottom: 12px;
}

body.chapter-page .chapter-settings-label {
	font-size: 13px;
	margin-bottom: 8px;
}

body.chapter-page .chapter-settings-modes {
	display: flex;
	gap: 10px;
}

body.chapter-page .chapter-mode-btn {
	flex: 1;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: transparent;
	color: inherit;
	font-size: 13px;
	cursor: pointer;
}

body.chapter-page.chapter-light .chapter-mode-btn {
	border-color: #ddd;
}

body.chapter-page .chapter-mode-btn.active {
	background: #ff770f;
	border-color: #ff770f;
	color: #fff;
}

/* 章节阅读页响应式 */
@media (max-width: 960px) {
	body.chapter-page .chapter-layout {
		padding: 0 10px;
	}

	body.chapter-page .chapter-header,
	body.chapter-page .chapter-footer {
		padding: 0 12px;
	}

	body.chapter-page .chapter-header-left {
		gap: 10px;
	}

	body.chapter-page .chapter-header-btn {
		padding: 4px 8px;
		font-size: 12px;
	}

	body.chapter-page .chapter-footer-btn,
	body.chapter-page .chapter-footer-nav {
		padding: 6px 10px;
		font-size: 12px;
	}

	body.chapter-page .chapter-main {
		padding-top: 72px;
		padding-bottom: 72px;
	}
}

@media (max-width: 640px) {
	body.chapter-page .chapter-header-center {
		display: none;
	}

	body.chapter-page .chapter-drawer-sub {
		display: none;
	}

	body.chapter-page .chapter-header-left {
		gap: 8px;
	}

	body.chapter-page .chapter-header-btn .chapter-header-text {
		display: none;
	}

	body.chapter-page .chapter-size-label {
		display: none;
	}

	body.chapter-page .chapter-size-trigger {
		padding: 4px 8px;
		font-size: 12px;
	}

	body.chapter-page .chapter-footer-left,
	body.chapter-page .chapter-footer-right {
		gap: 12px;
	}

	body.chapter-page .chapter-footer-btn .chapter-footer-text,
	body.chapter-page .chapter-footer-nav .chapter-footer-nav-text {
		display: none;
	}

	body.chapter-page .chapter-footer-btn,
	body.chapter-page .chapter-footer-nav {
		padding: 6px;
	}

	body.chapter-page .chapter-size-range {
		height: 6px;
	}

	body.chapter-page .chapter-size-range::-webkit-slider-runnable-track {
		height: 6px;
	}

	body.chapter-page .chapter-size-range::-webkit-slider-thumb {
		width: 18px;
		height: 18px;
		margin-top: -7px;
	}

	body.chapter-page .chapter-size-range::-moz-range-track {
		height: 6px;
	}

	body.chapter-page .chapter-size-range::-moz-range-thumb {
		width: 18px;
		height: 18px;
	}

	body.chapter-page .chapter-image {
		max-width: 100%;
	}
}

@media (max-width: 960px) {
	body.category-page .category-filter {
		padding: 16px 14px 8px;
	}

	body.category-page .category-filter-row {
		flex-direction: column;
		gap: 6px;
	}

	body.category-page .category-filter-label {
		flex: none;
		line-height: 1.4;
	}

	body.category-page .category-filter-options {
		gap: 6px 8px;
	}

	body.category-page .category-comic-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}

	body.category-page .category-comic-card {
		height: auto;
	}

	body.category-page .category-comic-cover {
		height: auto;
	}

	body.category-page .category-comic-cover img {
		width: 100%;
		height: auto;
	}
}

/* 响应式 */
@media (max-width: 960px) {
	.header-inner {
		padding: 0 4px;
	}

	body.comic-page .comic-detail-header {
		flex-direction: column;
		gap: 16px;
		padding: 16px;
	}

	body.comic-page .comic-detail-cover img {
		width: 100%;
		height: auto;
	}

	body.comic-page .comic-latest-chapter-list {
		grid-template-columns: repeat(4, 1fr);
	}

	body.comic-page .comic-chapter-list {
		grid-template-columns: repeat(4, 1fr);
	}

	body.comic-page .comic-recommend-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}

	.nav {
		justify-content: flex-end;
	}

	.nav-list {
		position: absolute;
		top: 64px;
		left: 0;
		right: 0;
		background: #fff;
		flex-direction: column;
		align-items: center;
		gap: 8px;
		padding: 14px 20px 18px;
		border-radius: 0 0 12px 12px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
		border-top: 1px solid #eee;
		display: none;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 180ms ease, transform 180ms ease;
	}

	.nav-list.show {
		display: flex;
		opacity: 1;
		transform: translateY(0);
	}

	.nav-link {
		padding: 8px 0;
		width: 100%;
		text-align: center;
	}

	/* 移动端导航去掉文字下划线效果 */
	.nav-link::after {
		content: '';
		width: 0;
		height: 0;
		opacity: 0;
	}

	.mobile-nav-toggle {
		display: block;
	}

	.hero {
		padding: 64px 0 28px;
	}

	.hero-title {
		font-size: 22px;
	}

	.hero-title-bg {
		padding: 10px 18px;
	}

	.hero-search-box {
		max-width: 100%;
	}
}

@media (max-width: 640px) {
	.container {
		padding: 0 12px;
	}

	body.comic-page .header-inner {
		position: relative;
	}

	body.comic-page .header-search-inline {
		position: absolute;
		left: 70%;
		top: 50%;
		transform: translate(-70%, -50%);
		margin-left: 0;
		flex: 0 0 auto;
	}

	body.comic-page .header-search-form {
		display: flex;
		align-items: center;
		width: 150px;
		max-width: 150px;
		flex: 0 0 150px;
		height: 32px;
	}

	body.comic-page .header-search-input {
		min-width: 0;
		height: 32px;
		line-height: 32px;
		flex: 1 1 auto;
		padding: 5px 10px;
		font-size: 12px;
	}

	body.comic-page .header-search-button {
		flex: 0 0 auto;
		height: 32px;
		line-height: 32px;
		padding: 0 8px;
		font-size: 12px;
	}

	body.comic-page .comic-detail-header {
		padding: 14px;
		border-radius: 10px;
	}

	body.comic-page .comic-detail-cover img {
		border-radius: 8px;
	}

	body.comic-page .comic-detail-title {
		font-size: 20px;
		margin-bottom: 10px;
	}

	body.comic-page .comic-detail-meta-row {
		font-size: 13px;
	}

	body.comic-page .comic-section {
		padding: 16px 14px;
		border-radius: 10px;
	}

	body.comic-page .comic-latest-chapter-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}

	body.comic-page .comic-chapter-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}

	body.comic-page .comic-section-catalog .comic-section-sub-latest {
		display: none;
	}

	body.comic-page .comic-recommend-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.comic-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.comic-cover {
		height: 120px;
	}

	.comic-title {
		font-size: 18px;
	}

	/* 移动端欢迎背景图按宽度自适应等比例缩放 */
	.hero-title-welcome {
		width: 100%;
		height: auto;
	}
}
/* 页脚样式 */
footer {
	background: #f8f8f8;
	margin-top: 60px;
}
/* 页脚样式保持 */
.footer-jidian {
	background: #f8f8f8;
	padding: 36px 0 40px;
	margin-top: 60px;
	text-align: center;
	border-top: 1px solid #eee;
}

.footer-jidian .container-xl {
	max-width: 1200px;
	margin: 0 auto;
}

.footer-jidian .row {
	justify-content: center;
}

/* 强制页脚内所有文字为白色 */
.footer-jidian * {
	color: #666;
	font-size: 13px;
	line-height: 1.6;
}

.footer-jidian h5 {
	font-size: 18px;
	margin-bottom: 10px;
	color: #333;
}

.footer-jidian p {
	margin-bottom: 6px;
}

.footer-jidian a {
	color: #666;
	text-decoration: none;
}

.footer-jidian a:hover,
.footer-jidian .hover-light:hover {
	color: #ff770f;
	transition: color 0.3s ease;
}