/*
Theme Name: GenAngels
Theme URI: https://genangels.com
Description: GenAngels 黑白主题（照 index.html 风格）。需要配合 GenAngels Core 插件。
Version: 0.1.3
Author: GenAngels
Text Domain: genangels
*/

:root {
	--ink: #000;
	--paper: #fff;
	--soft: #f4f4f4;
	--line: #d4d4d4;
	--dim: #8a8a8a;
	--sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--mono: ui-monospace, "JetBrains Mono", Consolas, Menlo, monospace;
	--top-h: 64px;
	/* PMPro 3.x 的颜色变量，统一成黑白 */
	--pmpro--color--accent: #000;
	--pmpro--color--base: #fff;
	--pmpro--color--contrast: #000;
	--pmpro--color--border--variation: #000;
	--pmpro--base--border-radius: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
}
::selection { background: #000; color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }

.ga-dim { color: var(--dim); font-weight: 700; }
.ga-warn { border: 2px solid #000; padding: 12px 16px; font-weight: 800; }
.ga-empty { font-weight: 800; text-transform: uppercase; color: var(--dim); }
.ga-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 24px 64px; }

/* ---------- 按钮 ---------- */
.ga-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	border: 1px solid #000; background: #fff; color: #000;
	padding: 8px 16px; font: 800 13px/1.2 var(--sans);
	text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
	cursor: pointer; transition: background .15s, color .15s; white-space: nowrap;
}
.ga-btn:hover { background: #000; color: #fff; }
.ga-btn-solid { background: #000; color: #fff; }
.ga-btn-solid:hover { background: #fff; color: #000; }
.ga-btn-sm { padding: 5px 10px; font-size: 12px; }
.ga-btn-lg { padding: 14px 32px; font-size: 15px; letter-spacing: .15em; font-weight: 900; }
.ga-btn.is-off { opacity: .25; pointer-events: none; }
.ga-btn.is-active { background: #000; color: #fff; }
.ga-link { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.ga-link:hover { text-decoration: underline; }
.ga-pill { display: inline-block; background: #000; color: #fff; font-size: 10px; padding: 2px 6px; margin-left: 4px; letter-spacing: .08em; }

/* ---------- 顶部栏 ---------- */
.ga-top {
	position: sticky; top: 0; z-index: 50;
	display: flex; align-items: center; gap: 16px;
	height: var(--top-h); padding: 0 24px;
	background: rgba(255,255,255,.96);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	border-bottom: 2px solid #000;
}
.ga-brand {
	font-size: 28px; font-weight: 900; font-style: italic; text-transform: uppercase;
	letter-spacing: -0.05em; text-decoration: none; white-space: nowrap;
}
.ga-brand span { font-weight: 300; color: #9ca3af; }
.ga-top-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.admin-bar .ga-top { top: 32px; }

/* ---------- 首页 ---------- */
.ga-hero { padding: 48px 24px 32px; border-bottom: 2px solid #000; }
.ga-hero-title {
	font-size: clamp(44px, 9vw, 112px); line-height: .92; font-weight: 900; font-style: italic;
	text-transform: uppercase; letter-spacing: -0.05em;
}
.ga-hero-title span { font-weight: 300; color: #9ca3af; }
.ga-hero-sub { max-width: 640px; margin: 16px 0 24px; font-weight: 600; color: #333; }

.ga-home { display: grid; grid-template-columns: 260px 1fr; gap: 0; }
.ga-home-side { border-right: 1px solid var(--line); padding: 20px 16px; }
.ga-home-side .ga-cal { position: sticky; top: calc(var(--top-h) + 16px); }
.ga-home-main { padding: 20px 24px 64px; min-width: 0; }

.ga-datebar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.ga-date-btn {
	border: 1px solid #000; padding: 4px 10px; font: 800 11px/1.4 var(--sans);
	text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.ga-date-btn:hover { background: #000; color: #fff; }

.ga-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.ga-card { display: flex; flex-direction: column; border: 1px solid var(--line); text-decoration: none; transition: border-color .15s; }
.ga-card:hover { border-color: #000; }
.ga-card-img { aspect-ratio: 3/4; background: var(--soft); overflow: hidden; }
.ga-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ga-card:hover .ga-card-img img { transform: scale(1.03); }
.ga-card-body { padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.ga-card-date { font: 900 11px/1.3 var(--sans); letter-spacing: .1em; }
.ga-card-title { font-weight: 700; font-size: 14px; margin: 6px 0; line-height: 1.35; }
.ga-card-meta { font-size: 12px; color: var(--dim); font-weight: 700; text-transform: uppercase; }
.ga-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; }

/* ---------- 日历 ---------- */
.ga-side-label { font: 900 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin: 4px 0 10px; }
.ga-cal { user-select: none; }
.ga-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ga-cal-title { font: 900 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; }
.ga-cal-nav { width: 26px; height: 26px; border: 1px solid #000; background: #fff; font-weight: 900; cursor: pointer; }
.ga-cal-nav:hover { background: #000; color: #fff; }
.ga-cal-nav:disabled { opacity: .2; cursor: default; background: #fff; color: #000; }
.ga-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.ga-cal-dow { font: 800 10px/1 var(--sans); color: var(--dim); text-align: center; padding: 4px 0; }
.ga-cal-day {
	font: 700 12px/1 var(--mono); text-align: center; padding: 7px 0;
	color: #c4c4c4; border: 1px solid transparent; text-decoration: none;
}
a.ga-cal-day { color: #000; border-color: #000; font-weight: 900; }
a.ga-cal-day:hover { background: #000; color: #fff; }
a.ga-cal-day.is-current { background: #000; color: #fff; }

/* ---------- 每日页 ---------- */
.ga-daybar {
	position: sticky; top: var(--top-h); z-index: 40;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 10px 24px; background: #fff; border-bottom: 1px solid #000;
}
.admin-bar .ga-daybar { top: calc(var(--top-h) + 32px); }
.ga-daybar-nav { display: flex; align-items: center; gap: 12px; }
.ga-daybar-title { display: flex; align-items: baseline; gap: 12px; }
.ga-vol { font-size: 22px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.04em; }
.ga-sizes { display: flex; gap: 4px; }

.ga-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 60vh; }
.ga-side { border-right: 1px solid var(--line); padding: 16px 14px; }
.ga-side-cal { margin-bottom: 20px; }
.ga-side-cal > summary { cursor: pointer; list-style: none; }
.ga-side-cal > summary::-webkit-details-marker { display: none; }
.ga-side-list { display: flex; flex-direction: column; gap: 3px; }
.ga-side-item {
	display: flex; justify-content: space-between; align-items: center; gap: 8px;
	padding: 8px 10px; border: 1px solid transparent; border-left: 3px solid #000;
	font: 800 13px/1.2 var(--sans); text-transform: uppercase; text-decoration: none;
}
.ga-side-item:hover { border-color: #000; }
.ga-side-item.active { background: #000; color: #fff; border-color: #000; }
.ga-side-item.locked { border-left-color: var(--line); color: #666; }
.ga-side-item.locked.active { color: #fff; background: #333; border-color: #333; }
.ga-side-state { font: 700 11px/1 var(--mono); white-space: nowrap; }

.ga-main { padding: 24px 28px 64px; min-width: 0; }

/* ---------- 帖子 ---------- */
.ga-post-head { border-bottom: 2px solid #000; padding-bottom: 14px; margin-bottom: 20px; }
.ga-post-title { font-size: clamp(20px, 2.4vw, 30px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.15; }
.ga-post-meta { display: flex; gap: 14px; margin-top: 8px; font: 800 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }

.ga-promo {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	border: 2px solid #000; padding: 14px 18px; margin-bottom: 20px;
}
.ga-promo p { margin: 0; font-weight: 800; font-size: 15px; }
.ga-download { margin-bottom: 20px; }

/* 缩略图网格：S / M / L */
.ga-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ga-grid.sz-s { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.ga-grid.sz-l { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.ga-item { margin: 0; min-width: 0; }
.ga-thumb { display: block; aspect-ratio: 3/4; background: var(--soft); border: 1px solid var(--line); overflow: hidden; cursor: zoom-in; }
.ga-thumb:hover { border-color: #000; }
.ga-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ga-cap { margin-top: 6px; }
.ga-cap .ga-prompt summary { padding: 5px 8px; }
.ga-cap .ga-prompt-title { font-size: 11px; }

/* 提示词 */
.ga-prompts { margin-top: 36px; }
.ga-section-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #000; padding-bottom: 10px; margin-bottom: 12px; }
.ga-section-head h3 { font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; font-style: italic; }
.ga-prompt { border: 1px solid var(--line); margin-bottom: 6px; background: #fff; }
.ga-prompt[open] { border-color: #000; }
.ga-prompt summary {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 8px 12px; cursor: pointer; list-style: none;
}
.ga-prompt summary::-webkit-details-marker { display: none; }
.ga-prompt summary::before { content: "+"; font-weight: 900; width: 12px; flex-shrink: 0; }
.ga-prompt[open] summary::before { content: "−"; }
.ga-prompt-title { flex: 1; min-width: 0; font: 800 13px/1.3 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ga-prompt-text {
	margin: 0; padding: 12px 14px; border-top: 1px solid var(--line); background: #fafafa;
	font: 13px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; max-height: 60vh; overflow: auto;
}
.ga-copy {
	border: 1px solid #000; background: #fff; font: 900 10px/1 var(--sans); letter-spacing: .1em;
	padding: 5px 8px; cursor: pointer; flex-shrink: 0;
}
.ga-copy:hover, .ga-copy.done { background: #000; color: #fff; }

.ga-group { border: 1px solid #000; margin-bottom: 8px; }
.ga-group > summary {
	display: flex; justify-content: space-between; align-items: center;
	padding: 10px 14px; cursor: pointer; list-style: none;
	font: 900 15px/1 var(--sans); text-transform: uppercase; letter-spacing: .04em;
}
.ga-group > summary::-webkit-details-marker { display: none; }
.ga-group[open] > summary { background: #000; color: #fff; }
.ga-group[open] > summary .ga-dim { color: #bbb; }
.ga-group-body { padding: 8px; }

/* 锁定页 */
.ga-locked { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: 28px; border: 2px solid #000; padding: 24px; }
.ga-locked-cover { aspect-ratio: 3/4; overflow: hidden; background: var(--soft); }
.ga-locked-cover img { width: 100%; height: 100%; object-fit: cover; }
.ga-lock-badge { display: inline-block; background: #000; color: #fff; font: 900 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; padding: 8px 12px; }
.ga-locked-need { font-size: 17px; margin: 16px 0 8px; }
.ga-locked-stats { list-style: none; padding: 0; margin: 0 0 20px; font-weight: 600; }
.ga-locked-stats li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.ga-locked-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ga-locked-login { margin-top: 18px; font-size: 14px; }
.ga-locked-login a { font-weight: 800; }
.ga-locked:not(:has(.ga-locked-cover)) { grid-template-columns: 1fr; }

/* ---------- 灯箱 ---------- */
.ga-lb { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.94); display: flex; flex-direction: column; }
.ga-lb[hidden] { display: none; }
.ga-lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 16px 64px; touch-action: pan-y; }
.ga-lb-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ga-lb-btn {
	position: absolute; z-index: 2; border: 1px solid #fff; background: rgba(0,0,0,.4); color: #fff;
	width: 48px; height: 48px; font-size: 28px; line-height: 1; cursor: pointer;
}
.ga-lb-btn:hover { background: #fff; color: #000; }
.ga-lb-close { top: 12px; right: 12px; font-size: 20px; }
.ga-lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.ga-lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.ga-lb-bar { color: #fff; padding: 8px 16px 14px; display: flex; gap: 16px; align-items: flex-start; max-height: 35vh; overflow: auto; }
.ga-lb-count { font: 800 12px/1.8 var(--mono); white-space: nowrap; }
.ga-lb-cap { flex: 1; min-width: 0; }
.ga-lb-cap .ga-prompt { background: #111; border-color: #444; color: #fff; }
.ga-lb-cap .ga-prompt-text { background: #111; color: #eee; border-color: #444; }
.ga-lb-cap .ga-copy { background: #000; color: #fff; border-color: #fff; }

.ga-toast {
	position: fixed; left: 50%; top: 24px; transform: translate(-50%, -80px); z-index: 1100;
	background: #000; color: #fff; padding: 10px 28px; font: 900 13px/1 var(--sans);
	letter-spacing: .15em; text-transform: uppercase; transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.ga-toast.show { transform: translate(-50%, 0); }

/* ---------- 普通页面（含 PMPro 订阅 / 登录 / 账户） ---------- */
.ga-h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.05em; line-height: 1; margin-bottom: 28px; border-bottom: 2px solid #000; padding-bottom: 16px; }
.ga-content { font-size: 16px; }
.ga-content h2, .ga-content h3 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; margin: 24px 0 12px; }
.ga-content a { font-weight: 700; }
.ga-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.ga-content th, .ga-content td { border: 1px solid #000; padding: 10px 12px; text-align: left; }
.ga-content th { background: #f4f4f4; color: #000; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; font-weight: 900; }

.ga-page input[type=text], .ga-page input[type=email], .ga-page input[type=password],
.ga-page input[type=tel], .ga-page input[type=number], .ga-page select, .ga-page textarea {
	width: 100%; max-width: 480px; border: 1px solid #000; border-radius: 0; background: #fff;
	padding: 10px 12px; font: 600 15px/1.3 var(--sans); outline: none;
}
.ga-page input:focus, .ga-page select:focus, .ga-page textarea:focus { box-shadow: 0 0 0 2px #000; }
.ga-page label { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.ga-page input[type=submit], .ga-page button, .ga-page .button, .ga-page .pmpro_btn, .ga-page a.pmpro_btn {
	display: inline-block; border: 1px solid #000 !important; border-radius: 0 !important;
	background: #000 !important; color: #fff !important; padding: 10px 22px !important;
	font: 900 13px/1.2 var(--sans) !important; text-transform: uppercase; letter-spacing: .1em;
	text-decoration: none; cursor: pointer; box-shadow: none !important;
}
.ga-page input[type=submit]:hover, .ga-page button:hover, .ga-page .button:hover, .ga-page .pmpro_btn:hover {
	background: #fff !important; color: #000 !important;
}
.ga-page .pmpro_card, .ga-page .pmpro_box, .ga-page .pmpro_section, .ga-page fieldset {
	border: 1px solid #000 !important; border-radius: 0 !important; box-shadow: none !important;
}
.ga-page .pmpro_card_title, .ga-page .pmpro_section_title, .ga-page legend {
	font-weight: 900 !important; text-transform: uppercase; letter-spacing: -0.01em;
}
.ga-page .pmpro_message, .ga-page .pmpro_error, .ga-page .pmpro_success, .ga-page .pmpro_alert {
	border: 2px solid #000 !important; border-radius: 0 !important; background: #fff !important; color: #000 !important; font-weight: 700;
}
.ga-page .pmpro_error { border-style: dashed !important; }

/* ---------- 页脚 ---------- */
.ga-foot {
	border-top: 2px solid #000; padding: 20px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	font: 700 12px/1.5 var(--sans); text-transform: uppercase; letter-spacing: .06em;
}
.ga-foot nav { display: flex; gap: 16px; }
.ga-foot a { text-decoration: none; }
.ga-foot a:hover { text-decoration: underline; }

/* ---------- 手机 ---------- */
@media (max-width: 900px) {
	:root { --top-h: 56px; }
	.ga-top { padding: 0 14px; gap: 10px; }
	.ga-brand { font-size: 21px; }
	.ga-top-nav { gap: 10px; }
	.ga-top-nav .ga-link:first-child { display: none; }
	.ga-top-nav .ga-link { white-space: nowrap; font-size: 11px; letter-spacing: .03em; }
	.ga-top-nav .ga-btn { padding: 6px 10px; font-size: 11px; letter-spacing: .04em; }
	.ga-side-cal > summary::after { content: " ▸"; }
	.ga-side-cal[open] > summary::after { content: " ▾"; }
	.ga-home, .ga-shell { grid-template-columns: 1fr; }
	.ga-home-side, .ga-side { border-right: 0; border-bottom: 1px solid var(--line); }
	.ga-home-side .ga-cal { position: static; max-width: 320px; }
	.ga-side-cal { max-width: 320px; }
	.ga-side-cal:not([open]) { margin-bottom: 8px; }
	.ga-side-list { flex-direction: row; flex-wrap: wrap; }
	.ga-side-item { border-left-width: 1px; border-color: #000; padding: 6px 8px; font-size: 12px; }
	.ga-side-item.locked { border-color: var(--line); }
	.ga-main, .ga-home-main { padding: 18px 14px 48px; }
	.ga-daybar { padding: 8px 14px; }
	.ga-vol { font-size: 18px; }
	.ga-daybar-title .ga-dim { display: none; }
	.ga-grid { grid-template-columns: repeat(2, 1fr); }
	.ga-grid.sz-s { grid-template-columns: repeat(3, 1fr); }
	.ga-grid.sz-l { grid-template-columns: 1fr; }
	.ga-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.ga-locked { grid-template-columns: 1fr; padding: 16px; }
	.ga-locked-cover { max-width: 260px; }
	.ga-lb-stage { padding: 8px; }
	.ga-lb-prev, .ga-lb-next { top: auto; bottom: 12px; transform: none; }
	.admin-bar .ga-top { top: 46px; }
	.admin-bar .ga-daybar { top: calc(var(--top-h) + 46px); }
}
@media (max-width: 480px) {
	.ga-cards { grid-template-columns: 1fr; }
	.ga-brand { font-size: 18px; }
	.ga-brand span { display: none; }
}

/* ---------- 订阅页：三张等级卡片 ---------- */
.ga-page .ga-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 8px 0 20px; }
.ga-lv { display: flex; flex-direction: column; border: 2px solid #000; padding: 24px 22px; background: #fff; }
.ga-lv.is-mine { background: #f4f4f4; }
.ga-lv-name { font-size: 26px !important; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.04em; margin: 0 0 8px !important; }
.ga-lv-price { border-bottom: 2px solid #000; padding-bottom: 14px; margin-bottom: 14px; }
.ga-lv-amt { font-size: 40px; font-weight: 900; letter-spacing: -0.04em; }
.ga-lv-per { font-size: 14px; font-weight: 800; text-transform: uppercase; color: var(--dim); margin-left: 4px; }
.ga-lv-desc { flex: 1; font-size: 15px; }
.ga-lv-desc p { margin: 0 0 10px; font-weight: 700; }
.ga-lv-desc ul { margin: 0 0 16px; padding-left: 18px; }
.ga-lv-desc li { margin-bottom: 6px; }
.ga-lv-act .ga-btn { width: 100%; padding: 12px 16px !important; }
.ga-lv-note { font-size: 13px; color: #555; font-weight: 600; }
