/* EEACCN 相册 */
.album-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
	gap: 22px;
	align-items: stretch;
	margin: 0 0 18px;
	padding: 22px;
	border-radius: 20px;
	background:
		radial-gradient(720px 260px at 0% 0%, rgba(56, 189, 248, .16), transparent 62%),
		linear-gradient(135deg, #0f172a 0%, #17263b 60%, #0b1b2a 100%);
	color: #e8f0fb;
	box-shadow: 0 18px 46px rgba(15, 23, 42, .16);
	overflow: hidden;
}
.album-hero__text { position: relative; z-index: 1; padding: 6px 0 4px 4px; }
.album-hero__eyebrow {
	margin: 0 0 7px;
	color: #7dd3fc;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
}
.album-hero h2 {
	margin: 0 0 8px;
	color: #fff;
	font-size: clamp(24px, 2.4vw, 32px);
	line-height: 1.28;
}
.album-hero p {
	max-width: 660px;
	margin: 0;
	color: #b8c7da;
	font-size: 13.5px;
	line-height: 1.85;
}
.album-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}
.album-hero__stats span {
	padding: 5px 10px;
	border: 1px solid rgba(148, 190, 235, .24);
	border-radius: 999px;
	background: rgba(148, 190, 235, .08);
	color: #c9d8e8;
	font-size: 11.5px;
}
.album-hero__stats b { color: #7dd3fc; font-weight: 700; }
.album-hero__cover {
	position: relative;
	min-height: 210px;
	border-radius: 14px;
	overflow: hidden;
	background: #0b1220;
	box-shadow: 0 14px 34px rgba(2, 6, 23, .35);
}
.album-hero__cover img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; display: block; opacity: .88; }
.album-hero__cover::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, .74));
}
.album-hero__cover span {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 12px;
	z-index: 1;
	color: #f1f7ff;
	font-size: 12px;
	letter-spacing: .04em;
}

.album-alert {
	margin: 0 0 14px;
	padding: 10px 13px;
	border-radius: 10px;
	font-size: 12.5px;
	line-height: 1.7;
}
.album-alert.is-error { border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; }
.album-alert.is-ok { border: 1px solid #bbf7d0; background: #f0fdf4; color: #15803d; }

.album-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 14px;
	padding: 9px 11px;
	border: 1px solid var(--eeaccn-border, #e5e7eb);
	border-radius: 14px;
	background: var(--eeaccn-card, #fff);
	box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
	position: sticky;
	top: 70px;
	z-index: 8;
}
.album-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.album-filter {
	padding: 4px 10px;
	border: 1px solid #dfe6ef;
	border-radius: 999px;
	background: #fff;
	color: #5b6b80;
	font-size: 11.5px;
	cursor: pointer;
	transition: .18s ease;
}
.album-filter:hover { border-color: #93c5fd; color: #1d4ed8; }
.album-filter.is-active { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; font-weight: 650; }
.album-layout-switch { display: flex; gap: 4px; padding: 3px; border-radius: 9px; background: #f1f5f9; }
.album-layout-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 9px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: #66758a;
	font-size: 11.5px;
	cursor: pointer;
}
.album-layout-btn.is-active { background: #fff; color: #1d4ed8; box-shadow: 0 1px 4px rgba(15, 23, 42, .1); }

.album-grid.is-masonry { column-count: 3; column-gap: 14px; }
.album-grid.is-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.album-card {
	display: block;
	margin: 0 0 14px;
	border: 1px solid var(--eeaccn-border, #e5e7eb);
	border-radius: 16px;
	background: var(--eeaccn-card, #fff);
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
	transition: transform .22s ease, box-shadow .22s ease;
	break-inside: avoid;
	contain: layout paint;
}
.album-grid.is-switching .album-card { transition: none; }
.album-grid.is-grid .album-card { margin: 0; height: 100%; }
.album-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15, 23, 42, .11); }
.album-card__media {
	display: block;
	position: relative;
	width: 100%;
	padding: 0;
	border: 0;
	background: #0b1220;
	cursor: zoom-in;
	overflow: hidden;
}
.album-card__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .35s ease;
}
.album-grid.is-grid .album-card__media img { aspect-ratio: 4 / 3; }
.album-card:hover .album-card__media img { transform: scale(1.035); }
.album-card__zoom {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) translateY(6px);
	padding: 6px 11px;
	border-radius: 999px;
	background: rgba(8, 15, 28, .72);
	color: #eaf4ff;
	font-size: 11px;
	opacity: 0;
	transition: .22s ease;
	white-space: nowrap;
}
.album-card:hover .album-card__zoom { opacity: 1; transform: translate(-50%, -50%); }
.album-card__tag {
	position: absolute;
	left: 10px;
	bottom: 10px;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(8, 15, 28, .62);
	color: #dbeafe;
	font-size: 10.5px;
	backdrop-filter: blur(4px);
}
.album-card__body { padding: 12px 14px 14px; }
.album-card__meta {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 4px;
	color: #94a3b8;
	font-size: 10.5px;
	letter-spacing: .02em;
}
.album-card__body h3 { margin: 0 0 4px; color: var(--eeaccn-text, #111827); font-size: 15px; line-height: 1.5; }
.album-card__body p { margin: 0; color: var(--eeaccn-text-2, #6b7280); font-size: 12px; line-height: 1.72; }
.album-empty { padding: 30px; text-align: center; color: #94a3b8; font-size: 13px; }

/* 后台管理 */
.album-admin {
	margin: 22px 0 0;
	border: 1px dashed #cbd5e1;
	border-radius: 16px;
	background: #f8fafc;
	overflow: hidden;
}
.album-admin summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 13px 16px;
	cursor: pointer;
	color: #334155;
	font-size: 13px;
	font-weight: 650;
	list-style: none;
	background: #f1f5f9;
}
.album-admin summary::after { content: "展开"; color: #64748b; font-size: 11px; font-weight: 500; }
.album-admin[open] summary::after { content: "收起"; }
.album-admin summary small { color: #8a96a8; font-size: 11px; font-weight: 400; }
.album-admin > *:not(summary) { margin-left: 14px; margin-right: 14px; }
.album-upload { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; padding: 16px 0 12px; border-bottom: 1px solid #e5e7eb; }
.album-upload__file { min-width: 0; }
.album-upload__file label { display: block; margin-bottom: 6px; color: #334155; font-size: 12px; font-weight: 650; }
.album-upload__file label small { color: #94a3b8; font-weight: 400; }
.album-upload__file input[type=file] { display: block; width: 100%; font-size: 11.5px; color: #475569; }
.album-upload__preview {
	display: grid;
	place-items: center;
	height: 150px;
	margin-top: 8px;
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
	background: #fff;
	color: #94a3b8;
	font-size: 11px;
	overflow: hidden;
}
.album-upload__preview img { width: 100%; height: 100%; object-fit: cover; }
.album-upload__fields { display: grid; grid-template-columns: minmax(0, 1fr) 130px 140px; gap: 8px 10px; align-content: start; }
.album-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.album-field label { color: #64748b; font-size: 10.5px; }
.album-field input, .album-field textarea {
	width: 100%;
	padding: 7px 9px;
	border: 1px solid #dbe3ee;
	border-radius: 8px;
	background: #fff;
	color: #243244;
	font-size: 12px;
	line-height: 1.5;
	box-sizing: border-box;
}
.album-field textarea { resize: vertical; }
.album-field--wide { grid-column: 1 / -1; }
.album-upload__actions { grid-column: 2; }
.album-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 0 12px;
	border: 1px solid #d7e0ec;
	border-radius: 8px;
	background: #fff;
	color: #405168;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}
.album-btn:hover { border-color: #93c5fd; color: #1d4ed8; }
.album-btn--primary { border-color: #2563eb; background: linear-gradient(135deg, #2563eb, #0ea5e9); color: #fff; }
.album-btn--primary:hover { color: #fff; background: linear-gradient(135deg, #1d4ed8, #0284c7); }
.album-btn--danger { border-color: #fecaca; color: #b91c1c; }
.album-btn--danger:hover { border-color: #f87171; background: #fef2f2; }
.album-layout-form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 0; border-bottom: 1px solid #e5e7eb; font-size: 11.5px; color: #64748b; }
.album-layout-form select { padding: 6px 8px; border: 1px solid #dbe3ee; border-radius: 8px; background: #fff; color: #334155; font-size: 12px; }
.album-admin-list { padding: 10px 0 14px; display: grid; gap: 8px; }
.album-admin-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 62px; gap: 10px; align-items: start; padding: 10px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; }
.album-admin-row > img { width: 110px; height: 78px; object-fit: cover; border-radius: 7px; }
.album-admin-edit { display: grid; grid-template-columns: minmax(0, 1fr) 105px 120px; gap: 6px 8px; align-items: end; min-width: 0; }
.album-admin-edit__actions { grid-column: 1 / -1; }
.album-admin-delete { align-self: center; }

/* 灯箱 */
.album-lightbox { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; }
.album-lightbox[hidden] { display: none !important; }
.album-lightbox__backdrop { position: absolute; inset: 0; background: rgba(3, 8, 18, .8); backdrop-filter: blur(8px); }
.album-lightbox__panel { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); width: min(1180px, 92vw); max-height: 88vh; overflow: hidden; border: 1px solid rgba(148, 190, 235, .18); border-radius: 18px; background: #0c131d; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.album-lightbox__panel img { width: 100%; height: 100%; max-height: 88vh; object-fit: contain; background: #05090f; display: block; }
.album-lightbox__caption { padding: 28px 24px; overflow: auto; color: #c8d8e8; }
.album-lightbox__meta { display: flex; gap: 10px; margin-bottom: 10px; color: #7dd3fc; font-size: 11px; letter-spacing: .04em; }
.album-lightbox__caption h3 { margin: 0 0 8px; color: #f1f7ff; font-size: 20px; }
.album-lightbox__caption p { margin: 0; color: #a9bbcd; font-size: 13px; line-height: 1.85; white-space: pre-line; }
.album-lightbox__close { position: absolute; top: 8px; right: 10px; z-index: 2; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(8, 15, 28, .7); color: #eaf4ff; font-size: 20px; cursor: pointer; line-height: 1; }
body.album-lightbox-open { overflow: hidden; }

body.dark-theme .album-toolbar,
html[data-night='night'] .album-toolbar { border-color: #2a3646; background: #161d27; }
body.dark-theme .album-filter,
html[data-night='night'] .album-filter { border-color: #33445a; background: #1a2431; color: #b9c8da; }
body.dark-theme .album-layout-switch,
html[data-night='night'] .album-layout-switch { background: #111a25; }
body.dark-theme .album-card,
html[data-night='night'] .album-card { border-color: #2a3646; background: #161d27; }
body.dark-theme .album-card__body h3,
html[data-night='night'] .album-card__body h3 { color: #e7eef8; }
body.dark-theme .album-card__body p,
html[data-night='night'] .album-card__body p { color: #9aa7b8; }

@media (min-width: 1500px) {
	.album-grid.is-masonry { column-count: 4; }
	.album-grid.is-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
	.album-hero { grid-template-columns: 1fr; }
	.album-hero__cover { min-height: 200px; max-height: 280px; }
	.album-grid.is-masonry { column-count: 2; }
	.album-grid.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.album-toolbar { position: static; }
	.album-upload { grid-template-columns: 1fr; }
	.album-upload__actions { grid-column: 1; }
	.album-upload__fields { grid-template-columns: minmax(0, 1fr) 120px 130px; }
	.album-admin-row { grid-template-columns: 90px minmax(0, 1fr) 58px; }
	.album-admin-row > img { width: 90px; height: 66px; }
}
@media (max-width: 640px) {
	.album-hero { padding: 16px; gap: 14px; }
	.album-hero h2 { font-size: 23px; }
	.album-hero p { font-size: 12.5px; }
	.album-grid.is-masonry { column-count: 1; }
	.album-grid.is-grid { grid-template-columns: 1fr; }
	.album-toolbar { padding: 8px; }
	.album-upload__fields { grid-template-columns: 1fr 1fr; }
	.album-field--tag, .album-field--date { grid-column: span 1; }
	.album-admin-row { grid-template-columns: 1fr 54px; }
	.album-admin-row > img { grid-column: 1 / -1; width: 100%; height: 150px; }
	.album-admin-edit { grid-column: 1; grid-template-columns: 1fr 90px; }
	.album-admin-delete { grid-column: 2; }
	.album-lightbox__panel { grid-template-columns: 1fr; width: 94vw; max-height: 92vh; }
	.album-lightbox__panel img { max-height: 58vh; }
	.album-lightbox__caption { padding: 16px 18px; max-height: 30vh; }
}
