:root {
	--font-sans: "Poppins", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
	--bg: #f7f7f9;
	--bg-soft: #ffffffcc;
	--text: #111;
	--text-soft: #333;
	--accent: #ff6bd6;
	--card: #fff;
	--border: #e5e7eb;
	--shadow: rgba(17, 17, 17, 0.08);
}
body.theme-dark {
	--bg: #0b0b0f;
	--bg-soft: #0b0b0fcc;
	--text: #f5f7fb;
	--text-soft: #ccd1d9;
	--accent: #ff9ae2;
	--card: #12121a;
	--border: #2a2a33;
	--shadow: rgba(0, 0, 0, 0.25);
}
html, body { height: 100%; }
body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--text);
	background: var(--bg);
	display: flex;
	flex-direction: column;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: none; }
.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	backdrop-filter: saturate(1.2) blur(8px);
	background: var(--bg-soft);
	border-bottom: 1px solid var(--border);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	max-width: 1120px;
	margin: 0 auto;
	padding: 10px 16px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--text);
}
.site-title-main {
	text-align: center;
	font-size: 35px;
	letter-spacing: 0.6px;
	margin: 100px 0 100px;
}
.site-title-main + .section-card { margin-top: 0; }
.site-title-main + .home-search { margin-top: 0; }
.site-title-main + .home-search + .section-card { margin-top: 0; }
.brand img { height: 36px; width: auto; }
.brand-title { font-weight: 600; letter-spacing: .3px; }
.top-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.nav-link {
	text-decoration: none;
	padding: 8px 6px;
	position: relative;
}
.top-nav .nav-link:hover { color: var(--text); }
.nav-label {
	position: relative;
	display: inline-block;
}
.nav-label::after {
	content: "";
	position: absolute;
	left: 50%;
	right: 50%;
	bottom: -6px;
	height: 2px;
	background: var(--text);
	border-radius: 999px;
	opacity: 0;
	transition: left 180ms ease, right 180ms ease, opacity 180ms ease;
}
.nav-link:hover .nav-label::after,
.nav-link:focus-visible .nav-label::after {
	left: 0;
	right: 0;
	opacity: 1;
}
.nav-link.active .nav-label::after {
	left: 0;
	right: 0;
	opacity: 1;
}
.header-actions { display: flex; gap: 8px; }
.content {
	max-width: 1120px;
	width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 16px;
	flex: 1;
}
.home-search {
	margin: 6px 0 100px;
}
.search-form {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--card);
	box-shadow: 0 8px 20px var(--shadow);
}
.search-form i {
	font-size: 18px;
	color: var(--text-soft);
}
.search-form input[type="text"] {
	border: none;
	outline: none;
	background: transparent;
	color: var(--text);
	padding: 10px 12px;
	margin: 0;
	margin-left: 2px;
	width: 100%;
	font-size: 16px;
	border-radius: 0;
}
.search-form button {
	border: none;
	background: var(--text);
	color: var(--bg);
	border-radius: 999px;
	padding: 8px 14px;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}
.search-form button:hover { transform: scale(1.05); opacity: 0.92; }
.search-form button:active { transform: scale(0.99); opacity: 0.96; }
.search-form:focus-within {
	border-color: rgba(255, 107, 214, 0.55);
	box-shadow: 0 10px 26px rgba(255, 107, 214, 0.12);
}
.record-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.record-id {
	font-size: 13px;
	color: var(--text-soft);
	font-weight: 600;
}
.join-sentinel { height: 1px; }
.code-install {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin: 14px 0;
}
.code-title {
	font-size: 16px;
	font-weight: 700;
	margin: 8px 0 10px;
}
.code-subtitle {
	font-size: 12px;
	color: var(--text-soft);
	margin: 6px 0 6px;
}
.code-box {
	position: relative;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--bg);
	padding: 12px 12px 12px;
	overflow: auto;
	box-shadow: 0 4px 12px var(--shadow);
}
.code-box pre {
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
	font-size: 13px;
	line-height: 1.5;
	color: var(--text);
}
.code-copy {
	position: sticky;
	top: 0;
	float: right;
	z-index: 1;
}
.preview-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 6px 0 10px;
}
.preview-inline { padding: 8px 0 10px; }
.color-pickers {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.picker {
	display: flex;
	align-items: center;
	gap: 8px;
}
.picker-label {
	font-size: 13px;
	color: var(--text-soft);
	white-space: nowrap;
}
.color-input {
	appearance: none;
	-webkit-appearance: none;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--card);
	box-shadow: 0 4px 12px var(--shadow);
	cursor: pointer;
}
.color-input::-webkit-color-swatch-wrapper {
	padding: 0;
}
.color-input::-webkit-color-swatch {
	border: none;
	border-radius: 999px;
}
.color-input::-moz-color-swatch {
	border: none;
	border-radius: 999px;
}
.action-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 14px;
}
.tip {
	margin-top: 10px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--bg);
	color: var(--text);
	font-size: 13px;
}
.tip.tip-ok {
	border-color: rgba(34, 197, 94, 0.35);
	background: rgba(34, 197, 94, 0.10);
	color: #0a7a34;
}
body.theme-dark .tip.tip-ok { color: #8dffb7; }
.tip.tip-err {
	border-color: rgba(239, 68, 68, 0.35);
	background: rgba(239, 68, 68, 0.10);
	color: #b00000;
}
body.theme-dark .tip.tip-err { color: #ff9a9a; }
.record-detail {
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.record-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}
.record-badge {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: start;
	gap: 10px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--bg);
	box-shadow: 0 4px 12px var(--shadow);
}
.record-no { font-weight: 400; }
.record-badge .number-tags {
	justify-content: flex-end;
	min-width: 0;
}
.record-title {
	margin: 10px 0 8px;
	font-size: 34px;
	letter-spacing: 0.4px;
	text-align: center;
}
.record-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.kv-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
.field-block { display: flex; flex-direction: column; gap: 10px; }
.field-full { grid-column: 1 / -1; }
.field-title {
	font-size: 18px;
	color: var(--text-soft);
	font-weight: 800;
	padding-left: 10px;
}
.kv {
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--bg);
	padding: 12px 14px;
	box-shadow: 0 4px 12px var(--shadow);
}
.kv-v {
	font-size: 16px;
	color: var(--text);
	word-break: break-word;
}
.status-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}
.status-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.btn.btn-small {
	padding: 6px 10px;
	font-size: 13px;
}
.focus-card {
	border-color: rgba(255, 107, 214, 0.55);
	box-shadow: 0 10px 26px rgba(255, 107, 214, 0.14);
}
.status-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--bg);
	font-weight: 800;
}
.status-pill.ok {
	border-color: rgba(34, 197, 94, 0.35);
	background: rgba(34, 197, 94, 0.10);
	color: #0a7a34;
}
body.theme-dark .status-pill.ok { color: #8dffb7; }
.status-pill.err {
	border-color: rgba(239, 68, 68, 0.35);
	background: rgba(239, 68, 68, 0.10);
	color: #b00000;
}
body.theme-dark .status-pill.err { color: #ff9a9a; }
.status-meta {
	font-size: 13px;
	color: var(--text-soft);
}
.spin {
	display: inline-block;
	animation: spin 1.2s linear infinite;
	transform-origin: 50% 50%;
}
@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}
@media (max-width: 900px) {
	.kv-grid { grid-template-columns: 1fr; }
}
.section-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 16px;
	margin-top: 14px;
	box-shadow: 0 4px 12px var(--shadow);
}
.site-footer {
	border-top: 1px solid var(--border);
	margin-top: auto;
}
.footer-inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 14px 16px;
	color: var(--text-soft);
	font-size: 13px;
}
.footer-legal { text-align: center; }
.card-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}
.record-card {
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 10px;
	background: var(--card);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.record-card.is-disabled {
	opacity: 0.5;
	filter: grayscale(1);
}
.card-top {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.number-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.number-tags {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.number-tag {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--text);
	line-height: 1.2;
}
.number-tag.tag-orange {
	color: #c25500;
}
body.theme-dark .number-tag.tag-orange { color: #ffb36b; }
.number-tag.tag-red {
	color: #b50000;
}
body.theme-dark .number-tag.tag-red { color: #ff9a9a; }
.number-tag.tag-yellow {
	color: #8a6a00;
}
body.theme-dark .number-tag.tag-yellow { color: #ffe08a; }
.number-tag.tag-pink {
	color: #b1007a;
}
body.theme-dark .number-tag.tag-pink { color: #ff9ae2; }
.record-card.tag-orange {
	border-color: rgba(255, 147, 71, 0.45);
	box-shadow: 0 4px 14px rgba(255, 147, 71, 0.16), inset 0 0 0 999px rgba(255, 147, 71, 0.08);
}
.record-card.tag-red {
	border-color: rgba(255, 82, 82, 0.5);
	box-shadow: 0 4px 16px rgba(255, 82, 82, 0.18), inset 0 0 0 999px rgba(255, 82, 82, 0.08);
}
.record-card.tag-red.tag-epic {
	border-color: rgba(255, 82, 82, 0.75);
	border-width: 2px;
	box-shadow:
		0 10px 28px rgba(255, 82, 82, 0.24),
		0 0 0 1px rgba(255, 82, 82, 0.22),
		inset 0 0 0 999px rgba(255, 82, 82, 0.10);
}
.record-card.tag-yellow {
	border-color: rgba(255, 214, 64, 0.55);
	box-shadow: 0 4px 16px rgba(255, 214, 64, 0.16), inset 0 0 0 999px rgba(255, 214, 64, 0.10);
}
.record-card.tag-pink {
	border-color: rgba(255, 107, 214, 0.5);
	box-shadow: 0 4px 16px rgba(255, 107, 214, 0.16), inset 0 0 0 999px rgba(255, 107, 214, 0.08);
}
.record-card.tag-orange,
.record-card.tag-red,
.record-card.tag-yellow,
.record-card.tag-pink {
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
	will-change: transform;
}
.record-card.tag-orange:hover,
.record-card.tag-red:hover,
.record-card.tag-yellow:hover,
.record-card.tag-pink:hover {
	transform: translateY(-2px);
}
@media (prefers-reduced-motion: no-preference) {
	@keyframes niceFloat {
		0%, 100% { transform: translateY(0); }
		50% { transform: translateY(-2px); }
	}
	.record-card.tag-orange,
	.record-card.tag-red,
	.record-card.tag-yellow,
	.record-card.tag-pink {
		animation: niceFloat 3.2s ease-in-out infinite;
	}
}
@media (prefers-reduced-motion: reduce) {
	.record-card.tag-orange,
	.record-card.tag-red,
	.record-card.tag-yellow,
	.record-card.tag-pink { animation: none; }
}
.record-card h4 {
	margin: 0 0 6px;
	font-size: 16px;
}
.record-card p {
	margin: 4px 0;
	font-size: 13px;
	color: var(--text-soft);
}
.btn, button, input[type="submit"] {
	padding: 8px 12px;
	border: 1px solid var(--border);
	background: var(--card);
	color: var(--text);
	border-radius: 999px;
	box-shadow: 0 4px 12px var(--shadow);
	cursor: pointer;
}
.btn-toggle {
	border: none;
	background: transparent;
	box-shadow: none;
	padding: 8px;
}
#themeToggleIcon {
	font-size: 24px;
	line-height: 1;
}
input[type="text"], input[type="password"], input[type="email"] {
	padding: 8px 10px;
	margin: 4px 0;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--card);
	color: var(--text);
}
select, textarea {
	padding: 8px 10px;
	margin: 4px 0;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--card);
	color: var(--text);
	font-family: inherit;
	font-size: 14px;
}
select {
	appearance: none;
	-webkit-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--text-soft) 50%), linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
	background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 11px) calc(50% - 3px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 34px;
}
.select-ui {
	border-radius: 12px;
	padding: 12px 14px;
	box-shadow: 0 4px 12px var(--shadow);
}
textarea { resize: vertical; min-height: 140px; }
.form-shell {
	max-width: 860px;
	margin: 0 auto;
	padding: 10px 0 22px;
}
.join-form { margin-top: 8px; }
.join-title {
	text-align: center;
	font-size: 30px;
	font-weight: 800;
	margin: 10px 0 22px;
}
.field-label {
	font-size: 18px;
	color: var(--text-soft);
	font-weight: 700;
	margin: 0 0 10px;
}
.form-row { margin: 18px 0; }
.form-shell input[type="text"],
.form-shell input[type="password"],
.form-shell input[type="email"],
.form-shell select,
.form-shell textarea {
	width: 100%;
	box-sizing: border-box;
}
.form-shell input[type="text"],
.form-shell input[type="password"],
.form-shell input[type="email"],
.form-shell select,
.form-shell textarea {
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 18px;
	box-shadow: 0 4px 12px var(--shadow);
}
.form-shell textarea { min-height: 200px; }
.agree-row { margin-top: 6px; }
.agree-label { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.agree-label input[type="checkbox"] { transform: translateY(1px); }
.link-accent {
	color: var(--accent);
	font-weight: 700;
}
.link-accent:hover { color: var(--accent); opacity: 0.9; }
.pager-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin: 12px 0;
}
.pager-left {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.pager-meta {
	font-size: 13px;
	color: var(--text-soft);
}
.pager-jump {
	display: flex;
	align-items: center;
	gap: 8px;
}
.pager-jump input[type="number"] {
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--card);
	color: var(--text);
	width: 120px;
}
.muted {
	color: var(--text-soft);
	font-size: 13px;
}
@media (max-width: 900px) {
	.card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.header-inner {
		flex-wrap: wrap;
	}
	.top-nav {
		order: 3;
		width: 100%;
	}
	.card-grid {
		grid-template-columns: 1fr;
	}
}
