/*
Theme Name: Rinzai Child (JAVDL)
Description: javdl.xyz 子主题 —— Grid 首页/归档、文章页（封面 + 刮削信息 + 剧照 + 下载区块）
Template: rinzai
Version: 1.0.2
Author: javdl
*/

/* ------------------------------------------------------------------ 通用布局 */
.javdl-wrap {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 16px;
}

.javdl-page-head {
	padding: 28px 0 8px;
}

.javdl-page-head h1 {
	margin: 0 0 6px;
	font-size: 26px;
	line-height: 1.25;
}

.javdl-page-head .javdl-sub {
	color: #777;
	font-size: 14px;
}

.javdl-page-head .javdl-sub a {
	color: inherit;
}

/* ------------------------------------------------------------------ 排序工具条 */
.javdl-sortbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 14px 0 22px;
	font-size: 14px;
}

.javdl-sortbar-label {
	color: #888;
	margin-right: 2px;
}

.javdl-sort {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid #ddd;
	border-radius: 999px;
	color: #444;
	text-decoration: none;
	line-height: 1.4;
}

.javdl-sort:hover {
	border-color: #999;
	color: #000;
}

.javdl-sort.is-active {
	background: #111;
	border-color: #111;
	color: #fff;
}

/* ------------------------------------------------------------------ 封面 Grid */
.javdl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 26px 20px;
	margin: 0 0 34px;
	align-items: start;
}

@media (min-width: 1200px) {
	.javdl-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.javdl-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 12px;
	}
}

.javdl-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* 封面按原图比例显示（800x538 之类），不裁切 */
.javdl-card-thumb {
	position: relative;
	display: block;
	background: #f1f1f1;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.javdl-card-thumb img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform .25s ease;
}

.javdl-card-thumb:hover img {
	transform: scale(1.04);
}

.javdl-card-noimg {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #aaa;
	font-size: 13px;
}

.javdl-badge {
	position: absolute;
	left: 8px;
	top: 8px;
	background: rgba(0, 0, 0, .72);
	color: #fff;
	font-size: 11px;
	letter-spacing: .04em;
	padding: 3px 7px;
	border-radius: 4px;
}

.javdl-card-body {
	padding-top: 8px;
}

.javdl-card-title {
	margin: 0 0 4px;
	font-size: 13.5px;
	line-height: 1.4;
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.javdl-card-title a {
	color: inherit;
	text-decoration: none;
}

.javdl-card-title a:hover {
	text-decoration: underline;
}

.javdl-card-meta {
	font-size: 12px;
	color: #888;
	display: flex;
	flex-wrap: wrap;
	gap: 2px 8px;
}

/* ------------------------------------------------------------------ 分页 */
.javdl-pagination {
	margin: 10px 0 40px;
	font-size: 14px;
}

.javdl-pagination .nav-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.javdl-pagination .page-numbers {
	padding: 6px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	text-decoration: none;
	color: #333;
}

.javdl-pagination .page-numbers.current,
.javdl-pagination .page-numbers:hover {
	background: #111;
	border-color: #111;
	color: #fff;
}

/* ------------------------------------------------------------------ 文章页 */
.javdl-single-head {
	padding: 26px 0 10px;
}

.javdl-single-head h1 {
	margin: 0;
	font-size: 27px;
	line-height: 1.3;
}

.javdl-single-head .javdl-code {
	display: inline-block;
	background: #111;
	color: #fff;
	font-size: 13px;
	padding: 3px 9px;
	border-radius: 4px;
	margin-bottom: 10px;
	letter-spacing: .05em;
}

.javdl-single-top {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 26px;
	margin: 22px 0 30px;
	align-items: start;
}

@media (max-width: 780px) {
	.javdl-single-top {
		grid-template-columns: minmax(0, 1fr);
	}
	.javdl-single-cover img {
		max-width: 260px;
	}
}

.javdl-single-cover img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
	display: block;
}

.javdl-meta {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
}

.javdl-meta th,
.javdl-meta td {
	text-align: left;
	vertical-align: top;
	padding: 7px 0;
	border-bottom: 1px solid #eee;
}

.javdl-meta th {
	width: 130px;
	color: #888;
	font-weight: 500;
}

.javdl-meta a {
	color: #0b62c4;
	text-decoration: none;
}

.javdl-meta a:hover {
	text-decoration: underline;
}

.javdl-preview {
	margin: 10px 0 26px;
}

.javdl-preview img {
	max-width: 500px;
	width: 100%;
	height: auto;
	border: 1px solid #eee;
	border-radius: 8px;
	display: block;
}

/* ------------------------------------------------------------------ 剧照 */
.javdl-section-title {
	font-size: 18px;
	margin: 34px 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid #111;
}

.javdl-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
	margin-bottom: 30px;
}

.javdl-gallery-item {
	display: block;
	border-radius: 6px;
	overflow: hidden;
	background: #f1f1f1;
	line-height: 0;
}

.javdl-gallery-item img {
	width: 100%;
	height: auto;
	display: block;
	transition: opacity .2s ease;
}

.javdl-gallery-item:hover img {
	opacity: .88;
}

/* ------------------------------------------------------------------ 下载区块 */
.javdl-dl {
	margin: 10px 0 40px;
}

.javdl-dl-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.javdl-dl-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 13px 16px;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	background: #fafafa;
}

@media (max-width: 560px) {
	.javdl-dl-row {
		flex-direction: column;
		align-items: stretch;
	}
}

.javdl-dl-label {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	font-size: 14.5px;
}

.javdl-dl-size {
	color: #888;
	font-size: 13px;
}

.javdl-btn {
	display: inline-block;
	background: #111;
	color: #fff !important;
	padding: 9px 18px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 14px;
	text-align: center;
	white-space: nowrap;
}

.javdl-btn:hover {
	background: #2f7d32;
	color: #fff;
}

.javdl-dl-note {
	color: #888;
	font-size: 13px;
	margin-top: 10px;
}

/* ------------------------------------------------------------------ 归档页 hero（演员/制作商/题材） */
.javdl-hero {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 26px 0 6px;
	flex-wrap: wrap;
}

.javdl-hero-avatar {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: #111;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	font-weight: 600;
	flex: 0 0 auto;
}

.javdl-hero-text h1 {
	margin: 0 0 4px;
	font-size: 26px;
	line-height: 1.25;
}

.javdl-hero-text .javdl-hero-ja {
	color: #555;
	font-size: 15px;
	margin-bottom: 4px;
}

.javdl-hero-text .javdl-hero-count {
	color: #888;
	font-size: 14px;
}

/* ------------------------------------------------------------------ 演员索引 */
.javdl-artist-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 10px 0 26px;
}

.javdl-artist-nav a {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ddd;
	border-radius: 6px;
	text-decoration: none;
	color: #333;
	font-size: 13px;
}

.javdl-artist-nav a:hover {
	background: #111;
	border-color: #111;
	color: #fff;
}

.javdl-artist-group {
	margin-bottom: 26px;
	scroll-margin-top: 90px;
}

.javdl-letter {
	font-size: 18px;
	margin: 0 0 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid #eee;
}

.javdl-artist-list {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 4;
	column-gap: 28px;
}

@media (max-width: 900px) { .javdl-artist-list { columns: 3; } }
@media (max-width: 620px) { .javdl-artist-list { columns: 2; } }

.javdl-artist-list li {
	margin: 0 0 7px;
	font-size: 14px;
	break-inside: avoid;
}

.javdl-artist-ja {
	color: #999;
	font-size: 12.5px;
	margin-left: 4px;
}

.javdl-count {
	color: #bbb;
	font-size: 12px;
	margin-left: 4px;
}

/* ------------------------------------------------------------------ 头部 / 搜索 */
#search-modal.uk-modal { display: none; }
#search-modal.uk-modal.uk-open { display: block; }
#offcanvas[data-uk-offcanvas] { display: none; }
#search-modal .uk-close-small,
#offcanvas .uk-offcanvas-close { display: none; }

.javdl-search {
	display: flex;
	gap: 8px;
	margin: 14px 0 0;
	max-width: 420px;
}

.javdl-search input[type="search"] {
	flex: 1;
	padding: 9px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
}

.javdl-search button {
	padding: 9px 16px;
	border: 0;
	border-radius: 8px;
	background: #111;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}

/* 站点头部导航微调 */
#site-header .uk-navbar-nav > li > a {
	font-size: 14px;
}

/* ------------------------------------------------------------------ 空状态 */
.javdl-empty {
	padding: 60px 0;
	text-align: center;
	color: #888;
}
