/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --accent: #d4a5e5;
    --accent2: #b8a9e8;
    --bg: #0b0a0f;
    --card-bg: #141119;
    --text: #e8e0f0;
    --text-dim: #8a7fa0;
    --radius: 16px;
    --transition: 0.35s cubic-bezier(.25,.46,.45,.94);
}
html {
    scroll-behavior: smooth;
}
*:focus {
    outline: none !important;
}
*::-moz-focus-inner {
    border: 0 !important;
}
body {
    font-family: 'Segoe UI', 'PingFang SC', Roboto, system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}
img {
    display: block;
    width: 100%;
    border-radius: var(--radius);
    transition: transform var(--transition), filter var(--transition);
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

/* ===== 展开状态 ===== */
.item.expanded .placeholder { display: none; }
.item.expanded img {
    transform: scale(1.02);
    filter: brightness(1.15) contrast(1.05);
}
.item .expand-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,10,15,0.85) 0%, transparent 45%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    border-radius: var(--radius);
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 20px 16px 16px;
}
.item.expanded .expand-overlay { opacity: 1; }
.expand-overlay .expand-info {
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.expand-overlay .expand-info span {
    display: inline-block;
    background: rgba(212,165,229,0.2);
    backdrop-filter: blur(4px);
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid rgba(212,165,229,0.25);
    font-size: 11px;
    color: var(--accent);
    margin-bottom: 4px;
}

/* ===== Header ===== */
header {
    text-align: center;
    padding: 50px 20px 30px;
    position: relative;
}
header h1 {
	font-size: clamp(1.8rem, 6vw, 3.2rem);
	font-weight: 800;
	background: linear-gradient(135deg, #d4a5e5 0%, #b8a9e8 40%, #7ec8e3 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}
/* ===== 顶部公告重开按钮 ===== */
.notif-reopen {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(212,165,229,0.12), rgba(184,169,232,0.08));
	border: 1px solid rgba(212,165,229,0.15);
	color: var(--accent);
	font-size: 16px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}
.notif-reopen::before {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: 50%;
	background: conic-gradient(var(--accent) 0deg, transparent 60deg, transparent 300deg, var(--accent) 360deg);
	opacity: 0;
	transition: opacity 0.3s;
	z-index: -1;
}
.notif-reopen:hover {
	background: linear-gradient(135deg, rgba(212,165,229,0.22), rgba(184,169,232,0.16));
	border-color: rgba(212,165,229,0.3);
	transform: scale(1.08);
	box-shadow: 0 0 24px rgba(212,165,229,0.12);
}
.notif-reopen:hover::before {
	opacity: 1;
}
.notif-reopen:active {
	transform: scale(0.92);
}
/* ===== 赞助功能已移除 ===== */
/* ===== 顶部更新日志按钮 ===== */
.changelog-reopen {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(126,200,227,0.12), rgba(92,179,218,0.08));
	border: 1px solid rgba(126,200,227,0.15);
	color: #7ec8e3;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}
.changelog-reopen::before {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: 50%;
	background: conic-gradient(#7ec8e3 0deg, transparent 60deg, transparent 300deg, #7ec8e3 360deg);
	opacity: 0;
	transition: opacity 0.3s;
	z-index: -1;
}
.changelog-reopen:hover {
	background: linear-gradient(135deg, rgba(126,200,227,0.22), rgba(92,179,218,0.16));
	border-color: rgba(126,200,227,0.3);
	transform: scale(1.08);
	box-shadow: 0 0 24px rgba(126,200,227,0.12);
}
.changelog-reopen:hover::before {
	opacity: 1;
}
.changelog-reopen:active {
	transform: scale(0.92);
}

/* ===== 更新日志弹窗 ===== */
.changelog-overlay {
	position: fixed;
	inset: 0;
	background: rgba(11,10,15,0.75);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 9997;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity .4s ease;
}
.changelog-overlay.active {
	opacity: 1;
	pointer-events: auto;
}
.changelog-box {
	background: linear-gradient(145deg, #1a1520, #141119);
	border: 1px solid rgba(126,200,227,0.12);
	border-radius: 20px;
	max-width: 480px;
	width: 90vw;
	padding: 28px 24px 24px;
	position: relative;
	box-shadow: 0 24px 80px rgba(0,0,0,.5);
	transform: scale(.92) translateY(12px);
	transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
	opacity: 0;
	max-height: 80vh;
	overflow-y: auto;
}
.changelog-overlay.active .changelog-box {
	transform: scale(1) translateY(0);
	opacity: 1;
}
.changelog-box::-webkit-scrollbar { width: 4px; }
.changelog-box::-webkit-scrollbar-thumb { background: rgba(126,200,227,0.25); border-radius: 4px; }
.changelog-box .changelog-close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(126,200,227,0.1);
	border: none;
	color: #7ec8e3;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s;
}
.changelog-box .changelog-close:hover {
	background: rgba(126,200,227,0.25);
}
.changelog-box .changelog-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #7ec8e3;
	text-align: center;
	margin-bottom: 18px;
	letter-spacing: 2px;
}
.changelog-box .changelog-entry {
	margin-bottom: 16px;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(126,200,227,0.04);
	border: 1px solid rgba(126,200,227,0.06);
	transition: background .2s;
}
.changelog-box .changelog-entry:hover {
	background: rgba(126,200,227,0.07);
}
.changelog-box .changelog-entry .entry-date {
	font-size: 11px;
	color: rgba(126,200,227,0.5);
	letter-spacing: .5px;
	margin-bottom: 4px;
}
.changelog-box .changelog-entry .entry-ver {
	font-size: 13px;
	font-weight: 700;
	color: #7ec8e3;
	margin-bottom: 6px;
}
.changelog-box .changelog-entry .entry-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.changelog-box .changelog-entry .entry-list li {
	font-size: 12.5px;
	color: var(--text);
	line-height: 1.7;
	padding: 1px 0 1px 14px;
	position: relative;
	opacity: .85;
}
.changelog-box .changelog-entry .entry-list li::before {
	content: '✦';
	position: absolute;
	left: 0;
	color: rgba(126,200,227,0.4);
	font-size: 7px;
	top: 4px;
}
}
    background-clip: text;
    letter-spacing: 2px;
}
header p {
    color: var(--text-dim);
    margin-top: 8px;
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    letter-spacing: 3px;
}
header .stats {
	margin-top: 12px;
	font-size: 13px;
	color: rgba(212,165,229,0.6);
	letter-spacing: 1px;
}
header .visitor-info {
	margin-top: 10px;
	font-size: 12px;
	color: rgba(212,165,229,0.4);
	letter-spacing: 0.5px;
	font-weight: 300;
	line-height: 1.7;
}
header .visitor-info span {
	display: inline-block;
	margin: 0 4px;
}
header .visitor-info .kawaii {
	color: rgba(212,165,229,0.6);
	font-weight: 400;
}
header .visitor-info .heart {
	color: rgba(255,150,200,0.5);
	font-size: 11px;
}
header .visitor-info .num {
	color: rgba(212,165,229,0.7);
	font-weight: 500;
}
header .visitor-info .uptime {
	margin-top: 2px;
	font-size: 11px;
	color: rgba(212,165,229,0.3);
}

/* ===== Loading Spinner ===== */
#loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0 60px;
}
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(212,165,229,0.15);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 瀑布流网格（多列 flex，左右同时加载） ===== */
.gallery {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px 40px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.gallery .col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
@media (min-width: 600px) { .gallery { gap: 16px; } }
@media (min-width: 900px) { .gallery { gap: 18px; } }
@media (min-width: 1200px) { .gallery { gap: 20px; } }

/* ===== 卡片项（3D翻转容器） ===== */
.item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: var(--card-bg);
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
    perspective: 1000px;
}
.item .flipper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    transition: transform 0.6s cubic-bezier(0.23,1,0.32,1);
    transform-style: preserve-3d;
}
.item.flipped .flipper {
    transform: rotateY(180deg);
}
.item .flipper-front,
.item .flipper-back {
    position: relative;
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.item .flipper-front {
    z-index: 2;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card-bg);
    transition: transform var(--transition), box-shadow var(--transition);
}
.item:not(.flipped) .flipper-front:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(212,165,229,0.12);
}
.item:not(.flipped) .flipper-front:active {
    transform: translateY(-1px) scale(0.99);
}
.item .flipper-back {
    position: absolute;
    inset: 0;
    z-index: 1;
    transform: rotateY(180deg);
    border-radius: var(--radius);
    background: linear-gradient(160deg, #2a1a3e 0%, #1f1330 40%, #1a1128 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 16px;
    overflow: hidden;
    border: 1px solid rgba(212,165,229,0.12);
}
.item .flipper-back::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(212,165,229,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.flipper-back .back-title {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(212,165,229,0.3);
    position: relative;
}
.flipper-back .back-id {
    font-size: 11px;
    color: rgba(212,165,229,0.5);
    position: relative;
}
.flipper-back .download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(212,165,229,0.15), rgba(184,169,232,0.1));
    border: 1px solid rgba(212,165,229,0.2);
    color: #e8d5f0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    z-index: 2;
    text-decoration: none;
}
.flipper-back .download-btn:hover {
    background: linear-gradient(135deg, rgba(212,165,229,0.25), rgba(184,169,232,0.18));
    border-color: rgba(212,165,229,0.35);
    transform: scale(1.04);
    box-shadow: 0 4px 20px rgba(212,165,229,0.15);
}
.flipper-back .download-btn:active {
    transform: scale(0.96);
}
.flipper-back .download-icon {
    font-size: 16px;
}
.flipper-back .back-hint {
    font-size: 10px;
    color: rgba(212,165,229,0.25);
    position: relative;
}

/* ===== 占位脉冲 ===== */
.placeholder {
    width: 100%;
    background: linear-gradient(135deg, rgba(212,165,229,0.08) 0%, rgba(184,169,232,0.04) 50%, rgba(212,165,229,0.08) 100%);
    background-size: 200% 200%;
    animation: pulse 1.8s ease-in-out infinite;
    border-radius: var(--radius);
}
@keyframes pulse {
    0% { background-position: 0% 50%; opacity: 0.3; }
    50% { background-position: 100% 50%; opacity: 0.6; }
    100% { background-position: 0% 50%; opacity: 0.3; }
}

/* ===== 序号徽章 ===== */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(11,10,15,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--accent);
    border: 1px solid rgba(212,165,229,0.15);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 3;
}
.item:hover .badge,
.item.expanded .badge {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 回到顶部 ===== */
#backTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(212,165,229,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(212,165,229,0.2);
    color: var(--accent);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 100;
}
#backTop.show { opacity: 1; transform: scale(1); }
#backTop:hover {
    background: rgba(212,165,229,0.25);
    transform: scale(1.1);
}

/* ===== 自定义滚动条 ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(212,165,229,0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(212,165,229,0.5); }

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-dim);
}
.empty-state h2 { font-size: 1.6rem; margin-bottom: 10px; color: var(--accent); }

/* ===== 公告弹窗 ===== */
.notification-overlay{position:fixed;inset:0;background:rgba(11,10,15,0.75);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);z-index:9998;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .4s ease}
.notification-overlay.active{opacity:1;pointer-events:auto}
.notification-box{background:linear-gradient(145deg,#1a1520,#141119);border:1px solid rgba(212,165,229,0.15);border-radius:20px;max-width:440px;width:90vw;padding:32px 28px 24px;position:relative;box-shadow:0 24px 80px rgba(0,0,0,.5),0 0 40px rgba(212,165,229,0.05);transform:scale(.92) translateY(12px);transition:transform .4s cubic-bezier(.34,1.56,.64,1),opacity .3s ease;opacity:0}
.notification-overlay.active .notification-box{transform:scale(1) translateY(0);opacity:1}
.notification-box .notif-close{position:absolute;top:12px;right:14px;width:32px;height:32px;border-radius:50%;background:rgba(212,165,229,0.1);border:none;color:var(--accent);font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s}
.notification-box .notif-close:hover{background:rgba(212,165,229,0.25)}
.notification-box .notif-icon{font-size:28px;margin-bottom:8px;display:block;text-align:center}
.notification-box h2{font-size:1.2rem;font-weight:700;color:var(--accent);text-align:center;margin-bottom:14px;letter-spacing:1px}
.notification-box .notif-body{color:var(--text);font-size:14px;line-height:1.8;margin-bottom:18px;opacity:.9}
.notification-box .notif-body strong{color:var(--accent)}
.notification-box .notif-body .notif-highlight{display:inline-flex;align-items:center;gap:6px;background:linear-gradient(135deg,rgba(212,165,229,0.18),rgba(184,169,232,0.10));border:1px solid rgba(212,165,229,0.2);border-radius:8px;padding:2px 10px 2px 8px;font-weight:700;color:#e0c4f0;font-size:15px;letter-spacing:.3px;margin:0 2px}
.notification-box .notif-body .notif-highlight .hl-icon{font-size:13px}
.notification-box .notif-body .notif-tag{display:inline-block;background:rgba(212,165,229,0.12);border-radius:4px;padding:0 7px;font-size:12px;font-weight:600;color:var(--accent)}
.notification-box .notif-body .notif-divider{border:none;border-top:1px solid rgba(212,165,229,0.08);margin:14px 0 12px}
.notification-box .notif-body .notif-contact{background:rgba(212,165,229,0.04);border-radius:10px;padding:10px 12px;font-size:12.5px;line-height:1.7;color:var(--text-dim);margin-top:4px}
.notification-box .notif-body .notif-contact a{color:var(--accent);text-decoration:none;border-bottom:1px dashed rgba(212,165,229,0.25)}
.notification-box .notif-body .notif-contact a:hover{border-bottom-color:var(--accent)}
.notification-box .notif-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.notification-box .notif-footer .notif-count{font-size:12px;color:var(--text-dim);letter-spacing:.5px}
.notification-box .notif-btn{flex:1;min-width:100px;padding:10px 0;border-radius:12px;border:none;font-size:14px;font-weight:600;cursor:pointer;transition:background .2s,transform .15s;text-align:center}
.notification-box .notif-btn:active{transform:scale(.97)}
.notification-box .notif-btn.primary{background:linear-gradient(135deg,#d4a5e5,#b8a9e8);color:#0b0a0f}
.notification-box .notif-btn.primary:hover{filter:brightness(1.1)}
.notification-box .notif-btn.secondary{background:rgba(212,165,229,0.08);color:var(--text-dim);border:1px solid rgba(212,165,229,0.1)}
.notification-box .notif-btn.secondary:hover{background:rgba(212,165,229,0.15);color:var(--text)}

/* ===== Lightbox（长按预览） ===== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11,10,15,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-overlay .lightbox-img-wrap {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay .lightbox-img-wrap img {
    width: auto;
    height: auto;
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}
.lightbox-overlay .lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212,165,229,0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(212,165,229,0.2);
    color: var(--accent);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    pointer-events: auto;
}
.lightbox-overlay .lightbox-close:hover {
    background: rgba(212,165,229,0.3);
}
.lightbox-overlay .lightbox-id {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11,10,15,0.5);
    backdrop-filter: blur(4px);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent);
    border: 1px solid rgba(212,165,229,0.15);
    pointer-events: none;
    -webkit-touch-callout: none;
}