 /**
 * Uslik - 基础层：设计变量、重置、排版与通用组件。
 */

/* ------------------------------------------------------------------
   1. 设计变量
------------------------------------------------------------------ */
:root {
	--brand: #2163e8;
	--brand-rgb: 33, 99, 232;
	--brand-2: #4079eb;
	--brand-dark: #5688ee;
	--brand-dark-rgb: 86, 136, 238;
	--brand-ink: var(--brand);
	--brand-soft: rgba(var(--brand-rgb), 0.08);
	--brand-soft-2: rgba(var(--brand-rgb), 0.14);
	--brand-shadow: rgba(var(--brand-rgb), 0.26);

	--bg: #f5f7fb;
	--bg-2: #eef2f8;
	--surface: #ffffff;
	--surface-2: #f8fafc;
	--surface-3: #f1f5f9;
	--surface-alpha: rgba(255, 255, 255, 0.82);

	--text: #0f172a;
	--text-2: #334155;
	--muted: #64748b;
	--muted-2: #94a3b8;
	--border: #e7ecf3;
	--border-strong: #d9e2ec;

	--success: #12805c;
	--success-soft: rgba(18, 128, 92, 0.1);
	--danger: #dc2626;
	--danger-soft: rgba(220, 38, 38, 0.09);
	--warning: #b45309;
	--warning-soft: rgba(180, 83, 9, 0.1);

	--shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
	--shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
	--shadow-md: 0 16px 40px -24px rgba(15, 23, 42, 0.22);
	--shadow-lg: 0 32px 70px -32px rgba(15, 23, 42, 0.3);

	--radius-xs: 8px;
	--radius-sm: 10px;
	--radius: 14px;
	--radius-lg: 18px;
	--radius-xl: 24px;

	--container: 1240px;
	--header-h: 68px;

	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	--font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

	--ease: cubic-bezier(0.4, 0, 0.2, 1);
	color-scheme: light;
}

[data-theme="dark"] {
	--brand-ink: var(--brand-dark);
	--brand-soft: rgba(var(--brand-rgb), 0.18);
	--brand-soft-2: rgba(var(--brand-rgb), 0.26);

	--bg: #0b1220;
	--bg-2: #0e1626;
	--surface: #121b2c;
	--surface-2: #162034;
	--surface-3: #1b2740;
	--surface-alpha: rgba(11, 18, 32, 0.84);

	--text: #e8eef8;
	--text-2: #c3cfdf;
	--muted: #93a3b8;
	--muted-2: #6f8098;
	--border: rgba(148, 163, 184, 0.16);
	--border-strong: rgba(148, 163, 184, 0.26);

	--success: #34d399;
	--success-soft: rgba(52, 211, 153, 0.12);
	--danger: #f87171;
	--danger-soft: rgba(248, 113, 113, 0.12);
	--warning: #fbbf24;
	--warning-soft: rgba(251, 191, 36, 0.12);

	--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
	--shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.28);
	--shadow-md: 0 18px 44px -24px rgba(0, 0, 0, 0.6);
	--shadow-lg: 0 36px 80px -32px rgba(0, 0, 0, 0.7);
	color-scheme: dark;
}

/* ------------------------------------------------------------------
   2. 重置
------------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.no-scroll {
	overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	color: var(--text);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--brand-ink);
	text-decoration: none;
	transition: color 0.18s var(--ease);
}

a:hover {
	color: var(--brand-ink);
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

svg {
	display: inline-block;
	flex: 0 0 auto;
	fill: currentColor;
}

button,
input,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

figure {
	margin: 0;
}

table {
	border-collapse: collapse;
	width: 100%;
}

[hidden] {
	display: none !important;
}

::selection {
	background: rgba(var(--brand-rgb), 0.2);
	color: var(--text);
}

:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------
   3. 布局与工具类
------------------------------------------------------------------ */
.container {
	width: min(100% - 48px, var(--container));
	margin-inline: auto;
}

.site-content {
	min-height: 40vh;
}

.site-main {
	padding-bottom: 64px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 999;
	width: auto;
	height: auto;
	padding: 10px 18px;
	clip: auto;
	clip-path: none;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--brand-ink);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: gap 0.18s var(--ease), color 0.18s var(--ease);
}

.text-link:hover {
	gap: 7px;
	color: var(--brand-ink);
}

/* ------------------------------------------------------------------
   4. 按钮
------------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 42px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: var(--text-2);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:active {
	transform: translateY(1px);
}

.btn--primary {
	background: var(--brand);
	color: #fff;
	box-shadow: 0 10px 22px -14px var(--brand-shadow);
}

.btn--primary:hover {
	background: var(--brand-2);
	color: #fff;
	box-shadow: 0 14px 26px -14px var(--brand-shadow);
}

.btn--ghost {
	border-color: var(--border);
	background: var(--surface);
	color: var(--text-2);
	box-shadow: var(--shadow-xs);
}

.btn--ghost:hover {
	border-color: transparent;
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.btn--soft {
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.btn--soft:hover {
	background: var(--brand-soft-2);
	color: var(--brand-ink);
}

.btn--sm {
	height: 34px;
	padding: 0 14px;
	font-size: 13px;
}

.btn--lg {
	height: 48px;
	padding: 0 24px;
	font-size: 15px;
}

.btn--block {
	width: 100%;
}

.btn[disabled],
.btn.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.btn.is-loading::after {
	content: "";
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: uslik-spin 0.7s linear infinite;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 50%;
	background: transparent;
	color: var(--text-2);
	transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.icon-btn:hover {
	background: var(--brand-soft);
	color: var(--brand-ink);
}

@keyframes uslik-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ------------------------------------------------------------------
   5. 标签、开关与徽章
------------------------------------------------------------------ */
.chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 13px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text-2);
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.chip svg {
	color: var(--cat-color, var(--muted));
}

.chip:hover {
	border-color: transparent;
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.chip:hover svg {
	color: var(--brand-ink);
}

.chip--outline {
	background: transparent;
}

.chip.is-active {
	border-color: var(--brand);
	background: var(--brand-soft);
	color: var(--brand-ink);
	font-weight: 600;
}

.chip.is-active svg {
	color: var(--brand-ink);
}

.chip--sm {
	height: 28px;
	padding: 0 10px;
	font-size: 12px;
}

.chip__count {
	min-width: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--surface-3);
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}

.chip:hover .chip__count {
	background: rgba(var(--brand-rgb), 0.14);
	color: var(--brand-ink);
}

.sort-tabs {
	/* 用块级 flex + fit-content 取代 inline-flex：内容窄时仍贴合胶囊，
	   内容超出屏幕时受 max-width 约束并在内部横向滚动。
	   避免撑破 body（body 为 overflow-x:hidden，超出部分会被裁掉且无法滚动，
	   微信/QQ 内置浏览器尤其明显）。 */
	display: flex;
	width: -moz-fit-content;
	width: fit-content;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	align-items: center;
	gap: 2px;
	padding: 4px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface-2);
}

.sort-tabs::-webkit-scrollbar {
	display: none;
}

.sort-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 30px;
	padding: 0 14px;
	border-radius: 999px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.sort-tab:hover {
	color: var(--brand-ink);
}

.sort-tab.is-active {
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	height: 20px;
	padding: 0 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

.badge--brand {
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.badge--soft {
	background: var(--surface-3);
	color: var(--muted);
}

.status-dot {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-size: 12px;
}

.status-dot__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--muted-2);
}

.status-dot.is-online {
	color: var(--success);
}

.status-dot.is-online .status-dot__dot {
	background: var(--success);
	box-shadow: 0 0 0 3px var(--success-soft);
}

.status-dot.is-offline {
	color: var(--danger);
}

.status-dot.is-offline .status-dot__dot {
	background: var(--danger);
	box-shadow: 0 0 0 3px var(--danger-soft);
}

/* ------------------------------------------------------------------
   6. 表单
------------------------------------------------------------------ */
.search-form {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 7px 7px 7px 18px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	box-shadow: var(--shadow-sm);
	transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.search-form:focus-within {
	border-color: rgba(var(--brand-rgb), 0.4);
	box-shadow: 0 0 0 4px var(--brand-soft);
}

.search-form__icon {
	display: inline-flex;
	color: var(--muted);
}

.search-form__input {
	flex: 1;
	min-width: 0;
	height: 38px;
	border: 0;
	background: transparent;
	color: var(--text);
	font-size: 15px;
	outline: none;
}

.search-form__input::placeholder {
	color: var(--muted-2);
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="number"],
select,
textarea {
	width: 100%;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text);
	font-size: 14px;
	transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="number"],
select {
	height: 44px;
	padding: 0 14px;
}

textarea {
	padding: 12px 14px;
	line-height: 1.65;
	resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
	border-color: rgba(var(--brand-rgb), 0.5);
	box-shadow: 0 0 0 4px var(--brand-soft);
	outline: none;
}

.form-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 0;
}

.form-field label {
	color: var(--text-2);
	font-size: 13px;
	font-weight: 600;
}

.form-required {
	color: var(--danger);
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.form-field--full {
	grid-column: 1 / -1;
}

.form-field--honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-hint {
	color: var(--muted);
	font-size: 12px;
	line-height: 1.55;
}

.form-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 20px 0 0;
	color: var(--text-2);
	font-size: 13px;
	line-height: 1.6;
	cursor: pointer;
}

.form-check input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--brand);
}

.form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px dashed var(--border);
}

.form-actions .form-hint {
	margin: 0;
	flex: 1;
	min-width: 180px;
}

/* 算术验证码 */
.captcha-field__row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.captcha-field__question {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 92px;
	padding: 9px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	color: var(--text);
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	user-select: none;
}

.captcha-field__row input {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 110px;
}

/* ------------------------------------------------------------------
   7. 提示条、空状态与列表
------------------------------------------------------------------ */
.alert {
	display: flex;
	gap: 14px;
	padding: 18px 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.alert__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.alert__body {
	min-width: 0;
}

.alert__body h2,
.alert__body strong {
	display: block;
	margin: 0 0 5px;
	font-size: 15px;
}

.alert__body p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

.alert__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.alert--success {
	border-color: rgba(18, 128, 92, 0.22);
	background: linear-gradient(0deg, var(--success-soft), var(--success-soft)), var(--surface);
}

[data-theme="dark"] .alert--success {
	border-color: rgba(52, 211, 153, 0.28);
}

.alert--success .alert__icon {
	background: var(--success-soft);
	color: var(--success);
}

.alert--success .alert__body h2 {
	color: var(--text);
}

.alert--error {
	border-color: rgba(220, 38, 38, 0.2);
	background: linear-gradient(0deg, var(--danger-soft), var(--danger-soft)), var(--surface);
}

[data-theme="dark"] .alert--error {
	border-color: rgba(248, 113, 113, 0.28);
}

.alert--error .alert__icon {
	background: var(--danger-soft);
	color: var(--danger);
}

.alert--info {
	border-color: rgba(var(--brand-rgb), 0.22);
	background: linear-gradient(0deg, var(--brand-soft-2), var(--brand-soft-2)), var(--surface);
}

.alert--info .alert__icon {
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.empty-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 64px 28px;
	border: 1px dashed var(--border-strong);
	border-radius: var(--radius-xl);
	background: var(--surface);
	text-align: center;
}

.empty-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.empty-card h2 {
	margin-bottom: 8px;
	font-size: 20px;
}

.empty-card p {
	max-width: 420px;
	margin: 0 0 20px;
	color: var(--muted);
	font-size: 14px;
}

.empty-card--small {
	padding: 48px 24px;
}

.empty-card--small h2 {
	font-size: 17px;
}

.empty-card__actions,
.empty-card__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.empty-card__chips {
	margin-top: 18px;
}

.rules-list {
	display: grid;
	gap: 12px;
}

.rules-list li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.6;
}

.rules-list li svg {
	margin-top: 4px;
	color: var(--brand-ink);
}

.info-list {
	display: grid;
	gap: 2px;
}

.info-list li {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding: 9px 0;
	border-bottom: 1px dashed var(--border);
	font-size: 13px;
}

.info-list li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.info-list__label {
	color: var(--muted);
}

.info-list__value {
	color: var(--text-2);
	font-weight: 600;
	text-align: right;
	word-break: break-all;
}

.info-list__value.status-dot {
	font-weight: 500;
}

/* ------------------------------------------------------------------
   8. 分页
------------------------------------------------------------------ */
.pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 36px;
}

.pagination__item {
	display: inline-flex;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-width: 38px;
	height: 38px;
	padding: 0 13px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text-2);
	font-size: 13px;
	font-weight: 600;
	transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.pagination .page-numbers:hover {
	border-color: transparent;
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.pagination .page-numbers.current {
	border-color: transparent;
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	color: var(--muted-2);
}

.pagination .pagination-arrow {
	width: 14px;
	height: 14px;
}

.pagination__item span.page-numbers:not(.current):not(.dots) {
	background: transparent;
}

/* ------------------------------------------------------------------
   9. 正文排版
------------------------------------------------------------------ */
.entry-content {
	color: var(--text-2);
	font-size: 16px;
	line-height: 1.85;
	word-wrap: break-word;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content pre,
.entry-content blockquote,
.entry-content table,
.entry-content figure {
	margin: 0 0 1.25em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin: 1.8em 0 0.7em;
	color: var(--text);
	line-height: 1.4;
}

.entry-content h2 {
	font-size: 24px;
}

.entry-content h3 {
	font-size: 19px;
}

.entry-content h4 {
	font-size: 17px;
}

.entry-content a {
	color: var(--brand-ink);
	text-decoration: underline;
	text-decoration-color: rgba(var(--brand-rgb), 0.35);
	text-underline-offset: 3px;
}

.entry-content a:hover {
	text-decoration-color: currentColor;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
	list-style: disc;
}

.entry-content ol {
	list-style: decimal;
}

.entry-content li {
	margin-bottom: 0.45em;
}

.entry-content li > ul,
.entry-content li > ol {
	margin: 0.45em 0 0;
}

.entry-content blockquote {
	padding: 18px 22px;
	border-left: 3px solid var(--brand);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--brand-soft);
	color: var(--text-2);
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content code {
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--surface-3);
	color: var(--text);
	font-family: var(--font-mono);
	font-size: 0.88em;
}

.entry-content pre {
	padding: 18px 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface-2);
	color: var(--text-2);
	font-family: var(--font-mono);
	font-size: 13px;
	line-height: 1.7;
	overflow-x: auto;
}

.entry-content pre code {
	padding: 0;
	background: transparent;
	color: inherit;
}

.entry-content img {
	border-radius: var(--radius);
}

.entry-content figure img {
	display: block;
	margin-inline: auto;
}

.entry-content figcaption,
.entry-content .wp-caption-text {
	margin-top: 8px;
	color: var(--muted);
	font-size: 12px;
	text-align: center;
}

.entry-content table {
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-size: 14px;
}

.entry-content th,
.entry-content td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--border);
	text-align: left;
}

.entry-content th {
	background: var(--surface-2);
	color: var(--text);
	font-weight: 600;
}

.entry-content hr {
	height: 1px;
	margin: 2em 0;
	border: 0;
	background: var(--border);
}

.entry-content .alignwide {
	width: min(100% + 80px, 100vw - 40px);
	max-width: none;
	margin-inline: calc((100% - min(100% + 80px, 100vw - 40px)) / 2);
}

.entry-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
}

.entry-content .wp-block-button__link {
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.entry-content .wp-block-quote {
	border-left: 3px solid var(--brand);
}

.entry-pages {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 24px 0;
}

.entry-pages a,
.entry-pages span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 13px;
}

.entry-pages span {
	background: var(--brand-soft);
	color: var(--brand-ink);
}

/* ------------------------------------------------------------------
   10. 区块内容兼容（替代 WordPress 核心内联样式）
------------------------------------------------------------------ */
img:is([sizes="auto" i], [sizes^="auto," i]) {
	contain-intrinsic-size: 3000px 1500px;
}

.alignleft {
	float: left;
	margin: 0.35em 1.4em 1em 0;
}

.alignright {
	float: right;
	margin: 0.35em 0 1em 1.4em;
}

.aligncenter {
	display: block;
	clear: both;
	margin-inline: auto;
}

.has-text-align-left {
	text-align: left;
}

.has-text-align-center {
	text-align: center;
}

.has-text-align-right {
	text-align: right;
}

.has-fit-text {
	white-space: nowrap !important;
}

.is-layout-flex {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em;
}

.is-layout-grid {
	display: grid;
	gap: 0.5em;
}

.is-layout-flex > :is(*, div),
.is-layout-grid > :is(*, div) {
	margin: 0;
}

.items-justified-left {
	justify-content: flex-start;
}

.items-justified-center {
	justify-content: center;
}

.items-justified-right {
	justify-content: flex-end;
}

.items-justified-space-between {
	justify-content: space-between;
}

.is-small-text {
	font-size: 0.875em;
}

.is-regular-text {
	font-size: 1em;
}

.is-large-text {
	font-size: 2.25em;
}

.is-larger-text {
	font-size: 3em;
}

.has-small-font-size {
	font-size: 13px;
}

.has-medium-font-size {
	font-size: 20px;
}

.has-large-font-size {
	font-size: 36px;
}

.has-x-large-font-size {
	font-size: 42px;
}

.has-drop-cap:not(:focus):first-letter {
	float: left;
	margin: 0.05em 0.1em 0 0;
	font-size: 8.4em;
	font-style: normal;
	font-weight: 100;
	line-height: 0.68;
	text-transform: uppercase;
}

p.has-background {
	padding: 1.25em 2.375em;
}

p.has-drop-cap.has-background {
	overflow: hidden;
}

p.has-text-color:not(.has-link-color) a {
	color: inherit;
}

.wp-element-button,
.wp-block-button__link,
.wp-block-file__button {
	cursor: pointer;
}

.wp-block-button__link,
.wp-block-file__button {
	display: inline-block;
	padding: calc(0.667em + 2px) calc(1.333em + 2px);
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font-size: 1.125em;
	text-decoration: none;
	box-shadow: none;
}

.wp-block-file__button {
	padding: 0.5em 1em;
	border-radius: var(--radius-xs);
	font-size: 1em;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 1px solid currentColor;
	background: transparent;
	color: var(--brand-ink);
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
	margin: 0 0 1.25em;
}

.gallery-item {
	margin: 0;
}

.gallery-icon img {
	width: 100%;
	height: auto;
}

.wp-caption {
	max-width: 100%;
}

.gallery-caption,
.wp-caption-text {
	margin-top: 6px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.6;
}

html :where(img[class*="wp-image-"]) {
	height: auto;
	max-width: 100%;
}

/* ------------------------------------------------------------------
   11. 动效与响应式
------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

@media (max-width: 782px) {
	.container {
		width: calc(100% - 32px);
	}

	.site-main {
		padding-bottom: 48px;
	}

	.form-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.entry-content {
		font-size: 15px;
	}
}

@media (max-width: 480px) {
	.search-form {
		padding-left: 14px;
	}

	.search-form__submit span {
		display: none;
	}

	.btn--lg {
		height: 46px;
		padding: 0 20px;
		font-size: 14px;
	}

	.alert {
		padding: 16px;
	}

	.alert__icon {
		flex-basis: 34px;
		width: 34px;
		height: 34px;
	}
}
/**
 * Uslik - 组件层：页头页脚、卡片、抽屉、标签页与评论。
 */

/* ------------------------------------------------------------------
   1. 页头与品牌
------------------------------------------------------------------ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 90;
	border-bottom: 1px solid var(--border);
	background: var(--surface-alpha);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
	backdrop-filter: saturate(180%) blur(18px);
	transition: box-shadow 0.24s var(--ease);
}

.site-header.is-scrolled {
	box-shadow: 0 12px 30px -24px rgba(15, 23, 42, 0.5);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 18px;
	height: var(--header-h);
}

.nav-toggle {
	display: none;
}

.site-branding {
	flex: 0 0 auto;
}

.header-divider {
	flex: 0 0 auto;
	width: 1px;
	height: 22px;
	background: var(--border-strong);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--text);
}

.brand:hover {
	color: var(--text);
}

.brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 12px;
	background: var(--brand);
	color: #fff;
	box-shadow: 0 10px 20px -12px var(--brand-shadow);
}

.brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	min-width: 0;
}

.brand-text strong {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.brand-text small {
	margin-top: 2px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 400;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 220px;
}

.brand-logo {
	width: auto;
	max-height: 38px;
	border-radius: 10px;
}

.brand-logo--dark {
	display: none;
}

[data-theme="dark"] .brand-logo--light {
	display: none;
}

[data-theme="dark"] .brand-logo--dark {
	display: inline-block;
}

.brand--logo-only .brand-text {
	display: none;
}

.header-start {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 25px;
	padding: 0 14px;
	margin-right: 6px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--brand), rgba(var(--brand-rgb), 0.6));
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 8px 20px -8px rgba(var(--brand-rgb), 0.7);
	transition: filter .2s ease, transform .2s ease;
}

.header-start:hover {
	color: #fff;
	filter: brightness(1.06);
	transform: translateY(-1px);
}

/* 移动端悬浮入口：仅在小屏显示，作为右下角悬浮按钮 */
.header-start--float {
	display: none;
}

/* 移动端悬浮提交入口：仅在小屏显示，位置在 Start 悬浮按钮上方 */
.header-cta-float {
	display: none;
}

.primary-nav {
	flex: 1;
	min-width: 0;
	padding-left: 4px;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
}

.primary-menu li {
	position: relative;
}

.primary-menu a {
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 13px;
	border-radius: 999px;
	color: var(--text-2);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a,
.primary-menu .current_page_item > a {
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.primary-menu .menu-item-has-children > a::after {
	content: "";
	width: 5px;
	height: 5px;
	margin-left: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.primary-menu .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 20;
	display: grid;
	min-width: 190px;
	padding: 8px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface);
	box-shadow: var(--shadow-md);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.primary-menu .sub-menu a {
	height: 38px;
	width: 100%;
	font-size: 13px;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 3px;
	margin-left: auto;
}

.header-cta {
	margin-left: 6px;
}

/* 语言切换器 */
.uslik-lang {
	position: relative;
	display: inline-flex;
}

.uslik-lang__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 10px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text-2);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	cursor: pointer;
	list-style: none;
	transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.uslik-lang__btn::-webkit-details-marker {
	display: none;
}

.uslik-lang__btn:hover,
.uslik-lang[open] .uslik-lang__btn {
	border-color: rgba(var(--brand-rgb), 0.4);
	color: var(--brand-ink);
}

.uslik-lang__btn svg {
	flex: 0 0 auto;
}

.uslik-lang__menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 30;
	display: grid;
	min-width: 168px;
	max-height: 320px;
	overflow-y: auto;
	padding: 8px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface);
	box-shadow: var(--shadow-md);
}

.uslik-lang__menu a {
	display: flex;
	align-items: center;
	height: 34px;
	padding: 0 12px;
	border-radius: 9px;
	color: var(--text-2);
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.uslik-lang__menu a:hover {
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.uslik-lang__menu a.is-current {
	background: var(--brand-soft);
	color: var(--brand-ink);
	font-weight: 600;
}

/* 移动抽屉变体：平铺语言胶囊 */
.uslik-lang--drawer .uslik-lang__btn {
	display: none;
}

.uslik-lang--drawer .uslik-lang__menu {
	position: static;
	top: auto;
	right: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
	max-height: none;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

.uslik-lang--drawer .uslik-lang__menu a {
	height: 32px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
}

/* 账户入口 */
.header-account {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 170px;
	height: 38px;
	margin-left: 6px;
	padding: 0 12px 0 5px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text-2);
	font-size: 13px;
	font-weight: 600;
	transition: border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.header-account:hover {
	border-color: rgba(var(--brand-rgb), 0.4);
	box-shadow: 0 10px 24px -18px rgba(var(--brand-rgb), 0.9);
	color: var(--brand-ink);
}

.header-account__avatar {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: hsl(var(--avatar-hue, 220) 68% 93%);
	color: hsl(var(--avatar-hue, 220) 55% 40%);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	overflow: hidden;
}

[data-theme="dark"] .header-account__avatar {
	background: hsl(var(--avatar-hue, 220) 32% 24%);
	color: hsl(var(--avatar-hue, 220) 70% 76%);
}

.header-account__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.header-account--login {
	flex: 0 0 auto;
	padding: 0 14px;
}

.theme-toggle__sun {
	display: none;
}

[data-theme="dark"] .theme-toggle__sun {
	display: inline-flex;
}

[data-theme="dark"] .theme-toggle__moon {
	display: none;
}

/* ------------------------------------------------------------------
   2. 全屏搜索
------------------------------------------------------------------ */
.search-overlay {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 12vh 20px 40px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s var(--ease), visibility 0.22s;
}

.search-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.search-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(9, 15, 28, 0.52);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.search-overlay__panel {
	position: relative;
	width: min(680px, 100%);
	padding: 26px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background: var(--surface);
	box-shadow: var(--shadow-lg);
	transform: translateY(-14px) scale(0.985);
	transition: transform 0.24s var(--ease);
}

.search-overlay.is-open .search-overlay__panel {
	transform: none;
}

.search-overlay__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.search-overlay__eyebrow {
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.search-overlay__close {
	position: absolute;
	top: 18px;
	right: 18px;
}

.search-form--overlay {
	padding-left: 20px;
	border-radius: var(--radius-lg);
	box-shadow: none;
	background: var(--surface-2);
}

.search-form--overlay .search-form__input {
	height: 44px;
	font-size: 16px;
}

.search-overlay__quick {
	margin-top: 20px;
}

.search-overlay__label {
	display: block;
	margin-bottom: 10px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
}

.search-overlay__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px dashed var(--border);
	color: var(--muted);
	font-size: 12px;
}

/* ------------------------------------------------------------------
   3. 移动抽屉
------------------------------------------------------------------ */
.mobile-drawer {
	position: fixed;
	inset: 0;
	z-index: 130;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.24s var(--ease), visibility 0.24s;
}

.mobile-drawer.is-open {
	opacity: 1;
	visibility: visible;
}

.mobile-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(9, 15, 28, 0.48);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.mobile-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: min(340px, 86vw);
	background: var(--surface);
	box-shadow: var(--shadow-lg);
	transform: translateX(-102%);
	transition: transform 0.28s var(--ease);
}

.mobile-drawer.is-open .mobile-drawer__panel {
	transform: none;
}

.mobile-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: 1px solid var(--border);
}

.brand--drawer .brand-mark {
	width: 32px;
	height: 32px;
	border-radius: 10px;
}

.mobile-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 18px;
}

.drawer-menu {
	display: grid;
	gap: 2px;
	list-style: none;
	margin-bottom: 22px;
}

.drawer-menu a {
	display: flex;
	align-items: center;
	padding: 11px 14px;
	border-radius: 12px;
	color: var(--text-2);
	font-size: 14px;
	font-weight: 500;
}

.drawer-menu a:hover,
.drawer-menu .current-menu-item > a {
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.drawer-block + .drawer-block {
	margin-top: 22px;
}

.drawer-title {
	margin: 0 0 10px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.drawer-cats {
	display: grid;
	gap: 2px;
	list-style: none;
}

.drawer-cats a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 8px;
	border-radius: 12px;
	color: var(--text-2);
	font-size: 13px;
}

.drawer-cats a:hover {
	background: var(--surface-2);
	color: var(--brand-ink);
}

.drawer-cats__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 9px;
	background: rgba(var(--brand-rgb), 0.1);
	color: var(--cat-color, var(--brand-ink));
}

.drawer-cats__count {
	margin-left: auto;
	color: var(--muted-2);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}

.drawer-links {
	display: grid;
	gap: 2px;
	list-style: none;
}

.drawer-links a,
.drawer-link-btn {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--text-2);
	font-size: 13px;
	text-align: left;
}

.drawer-links a:hover,
.drawer-link-btn:hover {
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.mobile-drawer__foot {
	padding: 14px 18px;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 12px;
}

/* ------------------------------------------------------------------
   4. 标签页
------------------------------------------------------------------ */
.tabs__nav {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 4px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface-2);
}

.tabs__btn {
	height: 30px;
	padding: 0 15px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.tabs__btn:hover {
	color: var(--brand-ink);
}

.tabs__btn.is-active {
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.tabs__nav--sm {
	padding: 3px;
}

.tabs__nav--sm .tabs__btn {
	height: 27px;
	padding: 0 12px;
	font-size: 12.5px;
}

.tabs__panel {
	animation: uslik-tab-in 0.24s var(--ease);
}

@keyframes uslik-tab-in {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ------------------------------------------------------------------
   5. 区块标题
------------------------------------------------------------------ */
.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.section-head__title {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
}

.section-head__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.section-head__icon.is-article {
	background: var(--warning-soft);
	color: var(--warning);
}

.section-head h2 {
	margin: 0;
	font-size: 17px;
}

.section-head p {
	margin: 2px 0 0;
	color: var(--muted);
	font-size: 12.5px;
}

/* ------------------------------------------------------------------
   6. 站点头像与卡片
------------------------------------------------------------------ */
.site-avatar {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 13px;
	background: hsl(var(--avatar-hue, 220) 68% 93%);
	color: hsl(var(--avatar-hue, 220) 55% 40%);
	font-size: 17px;
	font-weight: 700;
	overflow: hidden;
}

[data-theme="dark"] .site-avatar {
	background: hsl(var(--avatar-hue, 220) 32% 24%);
	color: hsl(var(--avatar-hue, 220) 70% 76%);
}

.site-avatar img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #fff;
}

.site-avatar.is-xs {
	width: 28px;
	height: 28px;
	border-radius: 9px;
	font-size: 12px;
}

.site-avatar.is-sm {
	width: 36px;
	height: 36px;
	border-radius: 11px;
	font-size: 14px;
}

.site-avatar.is-lg {
	width: 76px;
	height: 76px;
	border-radius: 20px;
	font-size: 28px;
}

.site-card {
	position: relative;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-card:hover {
	border-color: rgba(var(--brand-rgb), 0.3);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.site-card__link {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	color: inherit;
}

.site-card__link:hover {
	color: inherit;
}

.site-card__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.site-card__name {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	color: var(--text);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-card__badge {
	flex: 0 0 auto;
	height: 18px;
	padding: 0 6px;
	border-radius: 999px;
	background: rgb(255 120 0 / 8%);
	color: #d9672f;
	font-size: 10px;
	font-weight: 600;
	line-height: 18px;
}

.site-card__badge.is-top {
	background: var(--surface-3);
	color: var(--muted);
}

.site-card__lang {
	flex: 0 0 auto;
	height: 18px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--surface-3);
	color: var(--muted-2);
	font-size: 10px;
	font-weight: 600;
	line-height: 18px;
}

.site-card__desc {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.5;
}

.site-card__aside {
	display: flex;
	align-items: center;
	gap: 10px;
}

.site-card__host {
	color: var(--muted-2);
	font-size: 11.5px;
	white-space: nowrap;
	max-width: 130px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.site-card__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--surface-2);
	color: var(--muted-2);
	transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.site-card:hover .site-card__arrow {
	background: var(--brand-soft);
	color: var(--brand-ink);
	transform: translateX(2px);
}

.site-card--compact .site-card__link {
	grid-template-columns: 36px minmax(0, 1fr) auto;
	gap: 10px;
	padding: 11px 13px;
}

.site-card--compact .site-avatar {
	width: 36px;
	height: 36px;
	border-radius: 11px;
	font-size: 14px;
}

.site-card--compact .site-card__name {
	font-size: 13.5px;
}

.site-card--compact .site-card__desc {
	font-size: 12px;
}

.site-card--compact .site-card__arrow {
	width: 24px;
	height: 24px;
}

.site-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.site-grid--featured {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-grid--archive {
	grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
	gap: 14px;
}

/* ------------------------------------------------------------------
   7. 侧栏卡片与迷你列表
------------------------------------------------------------------ */
.side-card {
	padding: 18px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

.side-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}

.side-card__head h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 14.5px;
}

.side-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.side-card__icon.is-article {
	background: var(--warning-soft);
	color: var(--warning);
}

.side-card__head .text-link {
	font-size: 12px;
	font-weight: 500;
	color: var(--muted);
}

.side-card__head .text-link:hover {
	color: var(--brand-ink);
}

/* 侧栏榜单：标签与列表之间留出间距 */
.side-card .rank-tabs .tabs__panels {
	margin-top: 12px;
}

.mini-rank-list {
	display: grid;
	gap: 1px;
	list-style: none;
}

.mini-rank a {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 7px 8px;
	border-radius: 10px;
	transition: background 0.18s var(--ease);
}

.mini-rank a:hover {
	background: var(--surface-2);
}

.mini-rank__no {
	flex: 0 0 16px;
	color: var(--muted-2);
	font-size: 11px;
	font-weight: 700;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.mini-rank:nth-child(-n + 3) .mini-rank__no {
	color: var(--brand-ink);
}

.mini-rank__name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	color: var(--text-2);
	font-size: 13px;
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mini-rank a:hover .mini-rank__name {
	color: var(--brand-ink);
}

.mini-rank__meta {
	flex: 0 0 auto;
	color: var(--muted);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}

.mini-post-list {
	display: grid;
	gap: 2px;
	list-style: none;
}

.mini-post a {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 7px 6px;
	border-radius: 9px;
	transition: background 0.18s var(--ease);
}

.mini-post a:hover {
	background: var(--surface-2);
}

.mini-post__title {
	flex: 1;
	min-width: 0;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--text-2);
	font-size: 13px;
	line-height: 1.5;
}

.mini-post a:hover .mini-post__title {
	color: var(--brand-ink);
}

.mini-post__date {
	flex: 0 0 auto;
	color: var(--muted-2);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}

.submit-card {
	position: relative;
	padding: 22px 18px;
	border-color: rgba(var(--brand-rgb), 0.16);
	background: radial-gradient(120% 120% at 100% 0%, var(--brand-soft) 0%, transparent 60%), var(--surface);
	text-align: left;
}

.submit-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 12px;
	border-radius: 12px;
	background: var(--brand);
	color: #fff;
	box-shadow: 0 10px 20px -12px var(--brand-shadow);
}

.submit-card h2 {
	margin: 0 0 6px;
	font-size: 15px;
}

.submit-card p {
	margin: 0 0 14px;
	color: var(--muted);
	font-size: 12.5px;
}

.side-link-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	color: var(--text-2);
	font-size: 13px;
	font-weight: 600;
	box-shadow: var(--shadow-xs);
}

.side-link-card span {
	flex: 1;
}

.side-link-card:hover {
	border-color: transparent;
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.side-widgets {
	display: grid;
	gap: 14px;
}

/* 榜单模块自带卡片样式，外层小工具不再重复描边 */
.side-widgets .uslik-widget--ranking {
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

.widget {
	padding: 18px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

.widget-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 14.5px;
}

.widget ul {
	display: grid;
	gap: 8px;
	list-style: none;
	font-size: 13px;
}

.widget ul a {
	color: var(--muted);
}

.widget ul a:hover {
	color: var(--brand-ink);
}

.widget select,
.widget .search-form {
	max-width: 100%;
}

/* ------------------------------------------------------------------
   8. 通知条
------------------------------------------------------------------ */
.notice-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	padding: 10px 16px;
	border: 1px solid rgba(var(--brand-rgb), 0.14);
	border-radius: 999px;
	background: var(--brand-soft);
	color: var(--text-2);
	font-size: 13px;
}

.notice-bar__icon {
	display: inline-flex;
	color: var(--brand-ink);
}

.notice-bar p {
	flex: 1;
	min-width: 160px;
	margin: 0;
}

.notice-bar .text-link {
	font-size: 12px;
}

/* ------------------------------------------------------------------
   9. 分类快捷导航
------------------------------------------------------------------ */
.category-rail {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 12px 9px 16px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

.category-rail__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	padding-right: 12px;
	border-right: 1px solid var(--border);
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.category-rail__scroll {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 1;
	min-width: 0;
	padding: 2px 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.category-rail__scroll::-webkit-scrollbar {
	display: none;
}

.category-rail__more {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--muted);
	cursor: pointer;
	transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.category-rail__more[hidden] {
	display: none;
}

.category-rail__more:hover {
	border-color: var(--brand);
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.category-rail__more svg {
	transition: transform 0.18s var(--ease);
}

.category-rail__more.is-flipped svg {
	transform: rotate(180deg);
}

.category-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 11px;
	border-radius: 999px;
	color: var(--text-2);
	font-size: 12.5px;
	font-weight: 500;
	white-space: nowrap;
	transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.category-pill svg {
	color: var(--cat-color, var(--muted));
}

.category-pill:hover {
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.category-pill__count {
	color: var(--muted);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------
   10. 页脚
------------------------------------------------------------------ */
.site-footer {
	margin-top: 24px;
	border-top: 1px solid var(--border);
	background: var(--surface);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.7fr repeat(3, 1fr);
	gap: 40px;
	padding: 52px 0 40px;
}

.footer-grid--cols-0 {
	grid-template-columns: minmax(0, 1fr);
}

.footer-grid--cols-1 {
	grid-template-columns: 1.7fr 1fr;
}

.footer-grid--cols-2 {
	grid-template-columns: 1.7fr repeat(2, 1fr);
}

.footer-brand .brand {
	margin-bottom: 14px;
}

.brand--footer .brand-mark {
	width: 32px;
	height: 32px;
	border-radius: 10px;
}

.footer-desc {
	max-width: 330px;
	margin: 0 0 18px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.7;
}

.footer-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.footer-stats span {
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 11.5px;
}

.footer-title {
	margin: 0 0 14px;
	color: var(--text);
	font-size: 13px;
	font-weight: 700;
}

.footer-menu {
	display: grid;
	gap: 9px;
	list-style: none;
}

.footer-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	color: var(--muted);
	font-size: 13px;
}

.footer-menu a:hover {
	color: var(--brand-ink);
}

.footer-menu--extra {
	margin-top: 9px;
}

.footer-count {
	color: var(--muted-2);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------
   11. 返回顶部
------------------------------------------------------------------ */
.to-top {
	position: fixed;
	right: 22px;
	bottom: 26px;
	z-index: 80;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 50%;
	background: var(--surface);
	color: var(--text-2);
	box-shadow: var(--shadow-md);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s, background 0.18s var(--ease), color 0.18s var(--ease);
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.to-top:hover {
	border-color: transparent;
	background: var(--brand);
	color: #fff;
}

.to-top__icon {
	transform: rotate(-90deg);
}

/* ------------------------------------------------------------------
   12. 评论与评分
------------------------------------------------------------------ */
.comments-area {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--border);
}

.comments-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.comments-head__title {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.comments-head__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.comments-head h2 {
	margin: 0;
	font-size: 18px;
	letter-spacing: -0.01em;
}

.comments-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 22px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--surface-3);
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
}

.comments-rating {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

.comments-rating strong {
	color: var(--text);
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
}

.comments-rating__meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.comments-rating__meta small {
	color: var(--muted);
	font-size: 11px;
}

/* 星级 */
.rating-stars,
.comment-rating {
	--rating-color: #f5a623;
}

[data-theme="dark"] .rating-stars,
[data-theme="dark"] .comment-rating {
	--rating-color: #fbbf24;
}

.rating-stars {
	position: relative;
	display: inline-flex;
	flex: none;
	line-height: 0;
	color: var(--border-strong);
}

.rating-stars__base,
.rating-stars__fill {
	display: inline-flex;
	gap: 2px;
}

.rating-stars__fill {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: var(--rating, 0%);
	overflow: hidden;
	color: var(--rating-color);
}

.rating-stars .uslik-icon {
	display: block;
	flex: none;
}

/* 评论列表 */
.comment-list {
	display: grid;
	gap: 14px;
	margin: 18px 0 28px;
	padding: 0;
	list-style: none;
}

.comment-list .comment,
.comment-list .pingback,
.comment-list .trackback {
	margin: 0;
}

.comment-list .children {
	display: grid;
	gap: 14px;
	margin: 14px 0 0;
	padding-left: 24px;
	border-left: 2px solid var(--border);
	list-style: none;
}

.comment-item__inner {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 14px;
	padding: 18px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
	transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.comment-item__inner:hover {
	border-color: var(--border-strong);
	box-shadow: var(--shadow-sm);
}

.children .comment-item__inner {
	background: var(--surface-2);
}

.comment-item__avatar {
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.comment-item__avatar-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--border);
	border-radius: 50%;
	background: hsl(var(--avatar-hue, 220) 68% 93%);
	color: hsl(var(--avatar-hue, 220) 55% 40%);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

[data-theme="dark"] .comment-item__avatar-fallback {
	background: hsl(var(--avatar-hue, 220) 32% 24%);
	color: hsl(var(--avatar-hue, 220) 70% 76%);
}

.comment-item__main {
	min-width: 0;
}

.comment-item__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 12px;
}

.comment-item__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
	color: var(--muted-2);
	font-size: 12px;
}

.comment-item__author {
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.comment-item__author a {
	color: inherit;
	text-decoration: none;
}

.comment-item__author a:hover {
	color: var(--brand-ink);
}

.comment-item__sep {
	color: var(--border-strong);
}

.comment-item__time {
	color: var(--muted-2);
	font-size: 12px;
	white-space: nowrap;
}

.comment-badge {
	display: inline-flex;
	align-items: center;
	height: 20px;
	padding: 0 7px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
}

.comment-badge--admin {
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.comment-badge--author {
	background: var(--warning-soft);
	color: var(--warning);
}

.comment-item__head > .rating-stars {
	margin-left: auto;
}

.comment-item__content {
	margin-top: 10px;
	color: var(--text-2);
	font-size: 14px;
	line-height: 1.75;
	overflow-wrap: anywhere;
}

.comment-item__content p:last-child {
	margin-bottom: 0;
}

.comment-item__content img,
.comment-item__content video {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-sm);
}

.comment-item__foot {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.comment-item__foot .comment-reply-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 28px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.comment-item__foot .comment-reply-link:hover {
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.comment-item__pending {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--warning);
	font-size: 12px;
}

.comment-item--ping .comment-item__inner {
	grid-template-columns: 28px minmax(0, 1fr);
	align-items: center;
	padding: 12px 16px;
	background: var(--surface-2);
}

.comment-item__ping-icon {
	display: inline-flex;
	color: var(--muted-2);
}

.comment-item__ping {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

.comment-item__ping span {
	margin-left: 6px;
	color: var(--muted-2);
}

/* 空状态 */
.comments-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 18px 0 28px;
	padding: 26px 20px;
	border: 1px dashed var(--border-strong);
	border-radius: var(--radius-lg);
	background: var(--surface-2);
	color: var(--muted);
	font-size: 13px;
}

.comments-empty .uslik-icon {
	color: var(--muted-2);
}

/* 表单 */
.comment-respond {
	margin-top: 30px;
	padding: 22px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

.comment-reply-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	font-size: 18px;
	letter-spacing: -0.01em;
}

.comment-reply-title__icon {
	display: inline-flex;
	color: var(--brand-ink);
}

.comment-reply-title small {
	margin-left: auto;
	font-size: 12px;
	font-weight: 400;
}

.comment-reply-title small a {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 12px;
	line-height: 1.5;
	text-decoration: none;
}

.comment-reply-title small a:hover {
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.comment-form {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
}

.comment-form p {
	margin: 0;
}

.comment-form > .comment-notes,
.comment-form > .logged-in-as,
.comment-form > .comment-form-comment,
.comment-form > .comment-rating,
.comment-form > .comment-form-cookies-consent,
.comment-form > .form-submit,
.comment-form > .form-allowed-tags {
	grid-column: 1 / -1;
}

.comment-form > .comment-form-comment {
	position: relative;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	color: var(--text-2);
	font-size: 13px;
	font-weight: 600;
}

.comment-form .required {
	color: var(--danger);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	background: var(--surface-2);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
	background: var(--surface);
}

.comment-form textarea {
	width: 100%;
	min-height: 148px;
	padding-bottom: 58px;
	background: var(--surface-2);
	resize: vertical;
}

.comment-notes,
.logged-in-as,
.comments-closed {
	margin: 0;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.6;
}

.comment-notes,
.logged-in-as {
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	background: var(--surface-2);
}

.logged-in-as a {
	color: var(--brand-ink);
}

.logged-in-as span {
	margin: 0 6px;
	color: var(--border-strong);
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--muted);
	font-size: 12.5px;
}

.comment-form-cookies-consent label {
	margin: 0;
	font-size: 12.5px;
	font-weight: 400;
}

.comment-form-cookies-consent input {
	margin-top: 3px;
}

.form-submit {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* 提交按钮浮在输入框内右下角，textarea 底部留出对应空间 */
.comment-submit {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 1;
	box-shadow: 0 8px 18px -12px var(--brand-shadow);
}

.comment-rating {
	position: relative;
	min-width: 0;
	margin: 0;
	padding: 12px 14px;
	border: 1px dashed var(--border-strong);
	border-radius: var(--radius);
	background: var(--surface-2);
}

.comment-rating legend {
	padding: 0 4px;
	color: var(--text-2);
	font-size: 13px;
	font-weight: 600;
}

.rating-input {
	position: relative;
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 2px;
	width: max-content;
}

.rating-input input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.rating-input label {
	display: inline-flex;
	margin: 0;
	padding: 2px;
	border-radius: 6px;
	color: var(--border-strong);
	cursor: pointer;
	transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}

.rating-input label .uslik-icon {
	display: block;
	width: 26px;
	height: 26px;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
	color: var(--rating-color);
}

.rating-input label:hover {
	transform: scale(1.08);
}

.rating-input input:focus-visible + label {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
}

.comment-form .comment-rating__hint {
	margin: 4px 0 0;
	color: var(--muted-2);
	font-size: 12px;
}

.comments-closed {
	margin-top: 20px;
}

/* ------------------------------------------------------------------
   13. 响应式
------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.primary-nav {
		display: none;
	}

	.header-divider {
		display: none;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.site-branding {
		margin-right: auto;
	}

	.header-actions {
		margin-left: 0;
	}
}

@media (max-width: 900px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px;
	}

	.footer-brand {
		grid-column: 1 / -1;
	}

	.site-grid--archive {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	}

	.header-account {
		width: 38px;
		padding: 0;
		justify-content: center;
		border-radius: 50%;
	}

	.header-account__name {
		display: none;
	}

	/* 顶栏内的 Start 收起，改为右下角悬浮 */
	.site-header .header-start {
		display: none;
	}

	.header-start--float {
		position: fixed;
		right: 20px;
		bottom: calc(20px + env(safe-area-inset-bottom, 0px));
		z-index: 85;
		display: inline-flex;
		height: 40px;
		padding: 0 18px;
		margin-right: 0;
		font-size: 13px;
	}

	/* 为悬浮入口让出位置，避免与 Start 重叠 */
	.to-top {
		bottom: calc(72px + env(safe-area-inset-bottom, 0px));
	}
}

@media (max-width: 782px) {
	:root {
		--header-h: 62px;
	}

	.search-overlay {
		padding-top: 8vh;
	}

	.search-overlay__panel {
		padding: 20px;
	}

	.section-head {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.footer-grid {
		padding: 40px 0 32px;
	}

	.mini-rank__meta {
		display: none;
	}
}

@media (max-width: 640px) {
	.site-grid,
	.site-grid--featured {
		grid-template-columns: minmax(0, 1fr);
	}

	.header-account {
		display: none;
	}

	/* 顶栏提交入口改为右下角悬浮，代码见 .header-cta-float */
	.header-cta {
		display: none;
	}

	.header-cta-float {
		position: fixed;
		right: 16px;
		bottom: calc(140px + env(safe-area-inset-bottom, 0px));
		z-index: 84;
		display: inline-flex;
		width: 40px;
		height: 40px;
		padding: 0;
		margin-left: 0;
		box-shadow: 0 8px 20px -8px rgba(var(--brand-rgb), 0.7);
	}

	/* 悬浮态只保留加号图标，文字由 aria-label 提供 */
	.header-cta-float span {
		display: none;
	}

	.brand-text small {
		display: none;
	}

	.brand-text strong {
		font-size: 15px;
	}

	.to-top {
		right: 16px;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		width: 38px;
		height: 38px;
	}

	.header-start--float {
		right: 16px;
		bottom: calc(88px + env(safe-area-inset-bottom, 0px));
	}

	.notice-bar {
		border-radius: var(--radius);
	}

	.category-rail {
		border-radius: var(--radius-lg);
		flex-wrap: wrap;
	}

	.category-rail__label {
		border-right: 0;
		padding-right: 0;
	}

	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}

	.footer-brand {
		grid-column: auto;
	}

	.comment-list .children {
		padding-left: 12px;
		border-left-width: 1px;
	}

	.comment-item__inner {
		grid-template-columns: 36px minmax(0, 1fr);
		gap: 10px;
		padding: 14px;
	}

	.comment-item__avatar-fallback {
		width: 36px;
		height: 36px;
	}

	.comment-form {
		grid-template-columns: minmax(0, 1fr);
	}

	.comment-respond {
		padding: 16px;
	}

	.comments-rating {
		height: auto;
		padding: 8px 12px;
	}
}

/* ------------------------------------------------------------------
   广告位
------------------------------------------------------------------ */
.uslik-ad-slot {
	margin-top: 18px;
}

.uslik-ad {
	position: relative;
	display: block;
	padding: 14px;
	border: 1px dashed rgba(var(--brand-rgb), 0.32);
	border-radius: var(--radius);
	background: var(--surface-2);
	text-align: center;
}

.uslik-ad__label {
	position: absolute;
	bottom: 6px;
	right: 0;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ffffff;
	background-color: rgb(65 69 77 / 42%);
	box-shadow: rgba(33, 99, 232, 0.26) 0px 10.6517px 22.6517px -14px;
	padding: 2px 5px;
	border-radius: 5px;
}

.uslik-ad__body {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	overflow: hidden;
}

.uslik-ad__body > * {
	max-width: 100%;
}

/* AdSense 等联盟广告：改为块级容器，避免 flex 把 ins 测量成 0 宽 */
.uslik-ad__body--adsense {
	display: block;
}

.uslik-ad__body--adsense .adsbygoogle {
	display: block;
	width: 100%;
}

/* AdSense 的广告框自带边距，外层再留白只会压缩可用宽度 */
.uslik-ad--adsense {
	padding: 0;
}

.uslik-ad__link {
	display: block;
	line-height: 0;
}

.uslik-ad__link img,
.uslik-ad__image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-sm);
}

.uslik-ad__text {
	display: inline-block;
	padding: 6px 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-2);
}

.uslik-ad__text:hover {
	color: var(--brand);
}

.uslik-ad--sidebar,
.uslik-ad--site_detail {
	margin-top: 16px;
}

/* 列表信息流：在网格列表里横跨整行，与普通卡片同宽 */
.uslik-ad--feed {
	grid-column: 1 / -1;
	margin: 0;
}

/* 文章正文内嵌：与段落间距保持一致 */
.entry-content .uslik-ad--article_inline {
	margin: 0 0 1.25em;
}

/* 站点详情 Hero 轮播（位于右侧评分下方） */
.uslik-ad--site_detail_hero {
	width: 100%;
	margin-top: 0;
	padding: 0;
	border-style: solid;
	border-color: var(--border);
	background: var(--surface);
}

/* 窄侧栏内长文本换行，避免撑破卡片 */
.site-hero-card__aside .uslik-ad__text {
	overflow-wrap: anywhere;
}

.uslik-ad-carousel__viewport {
	overflow: hidden;
	border-radius: var(--radius-sm);
}

.uslik-ad-carousel__track {
	display: flex;
	align-items: center;
	transition: transform 0.45s var(--ease);
	will-change: transform;
}

.uslik-ad-carousel__slide {
	display: flex;
	flex: 0 0 100%;
	align-items: center;
	justify-content: center;
	min-width: 100%;
}

.uslik-ad-carousel__slide .uslik-ad__body {
	width: 100%;
}

.uslik-ad-carousel__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 12px;
}

.uslik-ad-carousel__dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--border-strong);
	cursor: pointer;
	transition: width 0.2s var(--ease), background 0.2s var(--ease);
}

.uslik-ad-carousel__dot.is-active {
	width: 20px;
	background: var(--brand);
}

@media (prefers-reduced-motion: reduce) {
	.uslik-ad-carousel__track {
		transition: none;
	}
}

/* ------------------------------------------------------------------
   友情链接
------------------------------------------------------------------ */
.uslik-links {
	margin-top: 26px;
}

.uslik-links__title {
	margin-bottom: 12px;
	font-size: 16px;
	font-weight: 650;
	color: var(--text);
}

.uslik-links__grid {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.uslik-links__grid--cols-1 { grid-template-columns: minmax(0, 1fr); }
.uslik-links__grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.uslik-links__grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.uslik-links__grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.uslik-links__grid--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.uslik-links__grid--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.uslik-links__link {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 100%;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text-2);
	transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}

.uslik-links__link:hover {
	border-color: rgba(var(--brand-rgb), 0.28);
	box-shadow: var(--shadow-sm);
	color: var(--text);
	transform: translateY(-1px);
}

.uslik-links__logo {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	object-fit: cover;
}

.uslik-links__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.uslik-links__name {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.uslik-links__desc {
	font-size: 12px;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 900px) {
	.uslik-links__grid--cols-4,
	.uslik-links__grid--cols-5,
	.uslik-links__grid--cols-6 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ------------------------------------------------------------------
   Cookie 同意横幅
------------------------------------------------------------------ */
.cookie-notice {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 120;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--border);
	background: var(--surface-alpha);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
	backdrop-filter: saturate(180%) blur(18px);
	box-shadow: 0 -18px 40px -30px rgba(15, 23, 42, 0.55);
}

.cookie-notice[hidden] {
	display: none;
}

.cookie-notice__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	width: min(1180px, 100%);
	margin: 0 auto;
}

.cookie-notice__text {
	flex: 1 1 auto;
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--text-2);
}

.cookie-notice__link {
	margin-left: 4px;
	color: var(--brand);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cookie-notice .btn {
	flex: 0 0 auto;
}

@media (max-width: 640px) {
	.cookie-notice__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.cookie-notice__text {
		font-size: 12px;
	}

	.cookie-notice .btn {
		width: 100%;
		justify-content: center;
	}
}
/**
 * Uslik - 页面层：首页、归档、站点详情、文章与功能页。
 */

/* ------------------------------------------------------------------
   1. 面包屑
------------------------------------------------------------------ */
.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 16px 0 4px;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.6;
}

.breadcrumbs a {
	color: var(--muted);
}

.breadcrumbs a:hover {
	color: var(--brand-ink);
}

.breadcrumbs span[aria-current="page"] {
	color: var(--text-2);
	font-weight: 500;
}

.breadcrumbs__sep {
	color: var(--border-strong);
}

/* 移动端：面包屑固定一行，末级标题过长时以省略号收尾 */
@media (max-width: 782px) {
	.breadcrumbs {
		flex-wrap: nowrap;
		white-space: nowrap;
		overflow: hidden;
	}

	/* 上级链接与分隔符不参与压缩，把剩余宽度全部留给末级标题 */
	.breadcrumbs > a,
	.breadcrumbs__sep {
		flex: 0 0 auto;
	}

	.breadcrumbs > :last-child {
		flex: 0 1 auto;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

/* ------------------------------------------------------------------
   2. 首页英雄区
------------------------------------------------------------------ */
.home-hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--border);
	background:
		radial-gradient(900px 360px at 18% -12%, rgba(var(--brand-rgb), 0.13), transparent 62%),
		radial-gradient(700px 320px at 86% -4%, rgba(124, 58, 237, 0.08), transparent 60%),
		var(--surface);
}

.home-hero.has-image {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.97)),
		var(--hero-image);
	background-size: cover;
	background-position: center;
}

[data-theme="dark"] .home-hero.has-image {
	background-image:
		linear-gradient(rgba(11, 18, 32, 0.86), rgba(11, 18, 32, 0.96)),
		var(--hero-image);
}

.home-hero__decor {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.home-hero__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.55;
}

.home-hero__orb--one {
	top: -110px;
	left: 4%;
	width: 300px;
	height: 300px;
	background: rgba(var(--brand-rgb), 0.2);
}

.home-hero__orb--two {
	top: -90px;
	right: 6%;
	width: 240px;
	height: 240px;
	background: rgba(139, 92, 246, 0.16);
}

.home-hero__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--border) 1px, transparent 1px),
		linear-gradient(90deg, var(--border) 1px, transparent 1px);
	background-size: 52px 52px;
	opacity: 0.55;
	-webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 12%, transparent 70%);
	mask-image: radial-gradient(ellipse at 50% 0%, #000 12%, transparent 70%);
}

.home-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 860px;
	padding: 62px 0 54px;
	text-align: center;
}

.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	padding: 6px 14px 6px 10px;
	border: 1px solid rgba(var(--brand-rgb), 0.18);
	border-radius: 999px;
	background: var(--surface-alpha);
	color: var(--brand-ink);
	font-size: 12px;
	font-weight: 600;
	box-shadow: var(--shadow-xs);
}

.hero-eyebrow__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--brand);
	box-shadow: 0 0 0 4px var(--brand-soft);
}

.home-hero__title {
	max-width: 800px;
	margin: 0 0 14px;
	font-size: 30px;
	line-height: 1.16;
	letter-spacing: -0.03em;
}

.home-hero__subtitle {
	max-width: 600px;
	margin: 0 0 28px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.7;
}

.search-form--hero {
	max-width: 640px;
	padding: 8px 8px 8px 20px;
	box-shadow: var(--shadow-md);
}

.search-form--hero .search-form__input {
	height: 46px;
	font-size: 15.5px;
}

.search-form--hero .search-form__submit {
	height: 46px;
	padding: 0 22px;
}

.hero-quick {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 18px;
}

.hero-quick__label {
	color: var(--muted);
	font-size: 12px;
}

.hero-stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 26px;
	margin: 34px 0 0;
	padding: 0;
	list-style: none;
}

.hero-stats li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: 12px;
}

.hero-stats__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 9px;
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.hero-stats__value {
	color: var(--text);
	font-size: 16px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* ------------------------------------------------------------------
   3. 首页布局与分类区块
------------------------------------------------------------------ */
.home-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 26px;
	align-items: start;
	padding-top: 26px;
}

.home-layout--full {
	grid-template-columns: minmax(0, 1fr);
}

.home-primary,
.home-secondary {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	min-width: 0;
}

.home-primary > *,
.home-secondary > * {
	min-width: 0;
}

.home-secondary {
	gap: 16px;
}

.featured-block,
.category-block,
.home-articles {
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

.featured-block .section-head {
	margin-bottom: 18px;
}

.category-block {
	scroll-margin-top: calc(var(--header-h) + 24px);
}

.category-block__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 14px;
}

.category-block__title {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
}

.category-block__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 11px;
	background: var(--brand-soft);
	color: var(--cat-color, var(--brand-ink));
}

.category-block h2 {
	margin: 0;
	font-size: 17px;
}

.category-block h2 a {
	color: var(--text);
}

.category-block h2 a:hover {
	color: var(--brand-ink);
}

.category-block p {
	margin: 2px 0 0;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.55;
}

.category-block__more {
	font-size: 12px;
	font-weight: 500;
	color: var(--muted);
}

.category-block__more:hover {
	color: var(--brand-ink);
}

.featured-block .tabs__panels {
	min-height: 120px;
}

/* 文章卡片 */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.post-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	overflow: hidden;
	transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.post-card:hover {
	border-color: rgba(var(--brand-rgb), 0.24);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.post-card__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: hsl(var(--thumb-hue, 220) 60% 94%);
	overflow: hidden;
}

[data-theme="dark"] .post-card__thumb {
	background: hsl(var(--thumb-hue, 220) 28% 22%);
}

.post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s var(--ease);
}

.post-card:hover .post-card__thumb img {
	transform: scale(1.04);
}

.post-card__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: hsl(var(--thumb-hue, 220) 45% 46%);
}

[data-theme="dark"] .post-card__placeholder {
	color: hsl(var(--thumb-hue, 220) 55% 70%);
}

.post-card__body {
	padding: 14px;
}

/* 首页文章模块不显示缩略图，内容区撑满卡片 */
.post-card--text .post-card__body {
	flex: 1;
}

.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 7px;
	color: var(--muted-2);
	font-size: 11.5px;
}

.post-card h3 {
	margin: 0 0 6px;
	font-size: 14.5px;
	line-height: 1.45;
}

.post-card h3 a {
	color: var(--text);
}

.post-card h3 a:hover {
	color: var(--brand-ink);
}

.post-card p {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.6;
}

/* ------------------------------------------------------------------
   4. 站点归档与分类页
------------------------------------------------------------------ */
.archive-wrap {
	padding-top: 2px;
}

.archive-hero {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 14px;
	padding: 22px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background:
		radial-gradient(620px 200px at 100% 0%, var(--brand-soft), transparent 72%),
		var(--surface);
	box-shadow: var(--shadow-xs);
}

.archive-hero__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--brand-soft);
	color: var(--cat-color, var(--brand-ink));
}

.archive-hero__body {
	flex: 1;
	min-width: 0;
}

.archive-hero__eyebrow {
	margin: 0 0 4px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.archive-hero h1 {
	margin: 0 0 4px;
	font-size: clamp(22px, 3vw, 30px);
	letter-spacing: -0.02em;
}

.archive-hero__desc {
	max-width: 660px;
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.6;
}

.archive-hero__parent {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 8px;
	color: var(--muted);
	font-size: 12px;
}

.archive-hero__parent:hover {
	color: var(--brand-ink);
}

.archive-hero__count {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	flex: 0 0 auto;
	padding-left: 20px;
	color: var(--text);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.archive-hero__count small {
	margin-top: 2px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 500;
}

.archive-children {
	margin-top: 14px;
}

.archive-lang-filter {
	margin-top: 14px;
}

.archive-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 20px 0 16px;
}

.archive-toolbar__hint {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-size: 12px;
}

.load-more-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
}

.load-more {
	min-width: 200px;
}

.load-more.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.load-more__status {
	min-height: 18px;
	margin: 0;
	color: var(--muted);
	font-size: 12px;
}

.archive-pagination {
	margin-top: 6px;
}

/* ------------------------------------------------------------------
   5. 站点详情
------------------------------------------------------------------ */
.detail-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 26px;
	align-items: start;
	padding-top: 6px;
}

.detail-primary,
.detail-secondary {
	display: grid;
	gap: 18px;
	min-width: 0;
}

.detail-secondary {
	gap: 16px;
}

.site-hero-card {
	position: relative;
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background:
		radial-gradient(600px 220px at 0% 0%, var(--brand-soft), transparent 68%),
		var(--surface);
	box-shadow: var(--shadow-xs);
	overflow: hidden;
}

.site-hero-card__top {
	display: flex;
	align-items: flex-start;
	gap: 18px;
}

/* 右侧栏：评分与 Hero 轮播同一列堆叠 */
.site-hero-card__aside {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	margin-left: auto;
	max-width: 100%;
}

/* 有广告时按侧栏宽度排版，避免大图撑窄标题区 */
.site-hero-card__aside:has(.uslik-ad) {
	width: clamp(220px, 24vw, 300px);
}

/* 同时有评分时，桌面端由评分胶囊决定侧栏宽度，广告跟随该宽度 */
@media (min-width: 783px) {
	.site-hero-card__aside:has(.uslik-ad):has(.site-hero-card__rating) {
		width: fit-content;
		max-width: min(100%, 300px);
	}

	/* 宽度 0 使广告不参与侧栏的固有宽度计算，再由 min-width 撑满评分宽度 */
	.site-hero-card__aside:has(.uslik-ad):has(.site-hero-card__rating) .uslik-ad--site_detail_hero {
		width: 0;
		min-width: 100%;
	}

	/*
	 * AdSense 需要稳定且够宽的容器才能测量可用空间：
	 * 跟随评分胶囊会被压到一百多像素，广告多半直接不填充。
	 */
	.site-hero-card__aside:has(.uslik-ad--adsense):has(.site-hero-card__rating) {
		width: clamp(220px, 24vw, 300px);
		max-width: min(100%, 300px);
	}

	.site-hero-card__aside:has(.uslik-ad--adsense):has(.site-hero-card__rating) .uslik-ad--site_detail_hero {
		width: 100%;
		min-width: 0;
	}
}

.site-hero-card__avatar {
	flex: 0 0 auto;
}

.site-hero-card__info {
	flex: 1;
	min-width: 0;
}

.site-hero-card__title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
}

.site-hero-card__title-row h1 {
	margin: 0;
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.site-hero-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 10px;
	color: var(--muted);
	font-size: 12px;
}

.site-hero-card__host,
.site-hero-card__views {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* DR 徽章：跟域名同组，按分值分档着色。 */
.site-hero-card__dr {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}

.badge.site-hero-card__dr.is-mid {
	background: var(--surface-3);
	color: var(--text-2);
}

.badge.site-hero-card__dr.is-strong {
	background: var(--success-soft);
	color: var(--success);
}

.badge.site-hero-card__dr.is-weak {
	background: var(--warning-soft);
	color: var(--warning);
}

.site-hero-card__rating {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 8px;
	margin-top: 2px;
	padding: 6px 12px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	color: var(--muted);
	font-size: 12px;
	transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

[data-theme="dark"] .site-hero-card__rating {
	--rating-color: #fbbf24;
}

.site-hero-card__rating:hover {
	border-color: var(--border-strong);
	background: var(--surface-2);
}

.site-hero-card__rating strong {
	color: var(--text);
	font-size: 14px;
	line-height: 1;
}

.site-hero-card__rating--empty .uslik-icon {
	color: var(--muted-2);
}

.site-hero-card__rating--empty:hover .uslik-icon {
	color: var(--rating-color, #f5a623);
}

.site-hero-card__desc {
	margin: 12px 0 14px;
	color: var(--text-2);
	font-size: 14px;
	line-height: 1.7;
}

.site-hero-card__desc .site-hero-card__chip {
	margin-right: 8px;
	vertical-align: middle;
}

.site-hero-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px dashed var(--border);
}

.ai-review {
	padding: 20px 22px;
	border: 1px solid rgba(var(--brand-rgb), 0.16);
	border-radius: var(--radius-xl);
	background:
		linear-gradient(180deg, var(--brand-soft), transparent 78%),
		var(--surface);
}

.ai-review__main {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.ai-review__thumb {
	flex: 0 0 220px;
	display: block;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface-2);
	overflow: hidden;
	transition: border-color 0.2s var(--ease);
}

.ai-review__thumb:hover {
	border-color: rgba(var(--brand-rgb), 0.35);
}

.ai-review__thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: top center;
}

.ai-review__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.ai-review__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: var(--brand);
	color: #fff;
	box-shadow: 0 10px 20px -12px var(--brand-shadow);
}

.ai-review h2 {
	margin: 0;
	font-size: 16px;
}

.ai-review__tag {
	margin-left: auto;
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--surface-3);
	color: var(--muted);
	font-size: 11px;
}

.ai-review__body {
	flex: 1;
	min-width: 0;
	color: var(--text-2);
	font-size: 14px;
	line-height: 1.8;
}

.ai-review__body p:last-child {
	margin-bottom: 0;
}

.detail-section {
	padding: 22px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

.detail-section__head h2 {
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border);
	font-size: 17px;
}

.related-sites {
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

/* ------------------------------------------------------------------
   6. 文章详情
------------------------------------------------------------------ */
.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 26px;
	align-items: start;
	padding-top: 6px;
}

.article-secondary {
	display: grid;
	gap: 16px;
	min-width: 0;
	align-content: start;
}

.entry-article {
	min-width: 0;
	padding: 26px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

.entry-category {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 11px;
	border-radius: 999px;
	background: var(--brand-soft);
	color: var(--brand-ink);
	font-size: 11.5px;
	font-weight: 600;
}

.entry-title {
	margin: 12px 0 14px;
	font-size: clamp(24px, 3.4vw, 34px);
	line-height: 1.28;
	letter-spacing: -0.02em;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: 12px;
}

.entry-meta__author {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--text-2);
	font-weight: 500;
}

.entry-meta__avatar-wrap {
	position: relative;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	overflow: hidden;
}

.entry-meta__avatar-initial {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--brand-soft);
	color: var(--brand-ink);
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.entry-meta__dot {
	color: var(--border-strong);
}

.entry-excerpt {
	margin: 18px 0 0;
	padding: 14px 16px;
	border-left: 3px solid var(--brand);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--surface-2);
	color: var(--text-2);
	font-size: 14px;
	line-height: 1.7;
}

.entry-thumb {
	margin: 20px 0 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.entry-thumb img {
	display: block;
	width: 100%;
}

.entry-article .entry-content {
	margin-top: 24px;
}

.entry-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 26px;
	padding-top: 18px;
	border-top: 1px dashed var(--border);
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.entry-pages {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 22px 0;
}

.author-box {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-top: 24px;
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface-2);
}

.author-box__avatar {
	position: relative;
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
}

.author-box__initial {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--brand-soft);
	color: var(--brand-ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.author-box__body {
	flex: 1;
	min-width: 0;
}

.author-box__label {
	margin: 0;
	color: var(--muted-2);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.author-box__name {
	margin: 2px 0 4px;
	font-size: 16px;
}

.author-box__bio {
	margin: 0;
	color: var(--muted);
	font-size: 12.5px;
}

.author-box .text-link {
	margin-left: auto;
}

.post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 22px;
}

.post-nav__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.post-nav__item:hover {
	border-color: transparent;
	background: var(--brand-soft);
}

.post-nav__item.is-next {
	align-items: flex-end;
	text-align: right;
}

.post-nav__label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--muted);
	font-size: 11.5px;
}

.post-nav__title {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--text-2);
	font-size: 13.5px;
	font-weight: 600;
}

/* ------------------------------------------------------------------
   文中提到的站点
------------------------------------------------------------------ */
.mentioned-sites {
	margin-top: 26px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
}

.mentioned-sites__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 12px;
}

.mentioned-site {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	text-decoration: none;
	transition: border-color 0.18s var(--ease, ease), background 0.18s var(--ease, ease), transform 0.18s var(--ease, ease);
}

.mentioned-site:hover {
	border-color: rgba(var(--brand-rgb), 0.28);
	background: var(--surface-2);
	transform: translateY(-1px);
}

.mentioned-site__avatar {
	flex: 0 0 auto;
}

.mentioned-site__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.mentioned-site__name {
	overflow: hidden;
	color: var(--text-2);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mentioned-site__desc {
	display: -webkit-box;
	overflow: hidden;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.5;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}

.mentioned-site__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.mentioned-site__host {
	overflow: hidden;
	color: var(--muted-2);
	font-size: 11px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mentioned-site__arrow {
	flex: 0 0 auto;
	color: var(--muted-2);
	transition: transform 0.18s var(--ease, ease), color 0.18s var(--ease, ease);
}

.mentioned-site:hover .mentioned-site__arrow {
	color: var(--brand-ink);
	transform: translateX(2px);
}

@media (max-width: 720px) {
	.mentioned-sites__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.related-posts {
	margin-top: 28px;
}

.mini-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.mini-post-card {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.mini-post-card:hover {
	border-color: rgba(var(--brand-rgb), 0.26);
	background: var(--surface-2);
}

.mini-post-card time {
	color: var(--muted-2);
	font-size: 11px;
}

.mini-post-card h3 {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.45;
}

.mini-post-card span {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--muted);
	font-size: 12px;
}

/* ------------------------------------------------------------------
   7. 博客与归档列表
------------------------------------------------------------------ */
.blog-hero {
	margin: 14px 0 22px;
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background:
		radial-gradient(620px 200px at 0% 0%, var(--brand-soft), transparent 72%),
		var(--surface);
	box-shadow: var(--shadow-xs);
}

.blog-hero h1 {
	margin: 0 0 4px;
	font-size: clamp(22px, 3vw, 30px);
	letter-spacing: -0.02em;
}

.blog-hero__desc {
	max-width: 680px;
	margin: 0;
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.65;
}

.blog-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
}

.blog-filter .sort-tabs {
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
}

.blog-filter .sort-tabs::-webkit-scrollbar {
	display: none;
}

.sort-tab__count {
	margin-left: 5px;
	color: var(--muted-2);
	font-size: 11px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.sort-tab.is-active .sort-tab__count {
	color: var(--brand-ink);
	opacity: 0.72;
}

.blog-filter__count {
	color: var(--muted);
	font-size: 12px;
}

.blog-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 26px;
	align-items: start;
}

.blog-primary {
	min-width: 0;
}

.blog-secondary {
	display: grid;
	gap: 16px;
	min-width: 0;
}

.post-list {
	display: grid;
	gap: 14px;
}

.post-row {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 18px;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.post-row:hover {
	border-color: rgba(var(--brand-rgb), 0.24);
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}

.post-row__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius-sm);
	background: hsl(var(--thumb-hue, 220) 60% 94%);
	overflow: hidden;
}

[data-theme="dark"] .post-row__thumb {
	background: hsl(var(--thumb-hue, 220) 28% 22%);
}

.post-row__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s var(--ease);
}

.post-row:hover .post-row__thumb img {
	transform: scale(1.03);
}

.post-row__thumb > span {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: hsl(var(--thumb-hue, 220) 45% 46%);
}

[data-theme="dark"] .post-row__thumb > span {
	color: hsl(var(--thumb-hue, 220) 55% 70%);
}

.post-row__body {
	min-width: 0;
	padding: 2px 0;
}

.post-row__cat {
	display: inline-flex;
	margin-bottom: 6px;
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--brand-soft);
	color: var(--brand-ink);
	font-size: 11px;
	font-weight: 600;
}

.post-row h2,
.post-row h3 {
	margin: 0 0 6px;
	font-size: 17px;
	line-height: 1.45;
}

.post-row h2 a,
.post-row h3 a {
	color: var(--text);
}

.post-row h2 a:hover,
.post-row h3 a:hover {
	color: var(--brand-ink);
}

.post-row p {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.65;
}

.post-row__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	color: var(--muted-2);
	font-size: 11.5px;
}

.blog-feature {
	grid-template-columns: minmax(0, 1fr);
	margin-bottom: 18px;
	padding: 18px 20px;
}

.blog-feature__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.blog-feature__head .post-row__cat {
	margin-bottom: 0;
}

.blog-feature h2 {
	font-size: 21px;
}

.blog-feature p {
	-webkit-line-clamp: 3;
}

/* 列表内的条目间距交给 .post-list 的 gap，避免与头条的下边距叠加 */
.post-list > .blog-feature {
	margin-bottom: 0;
}

.post-row__badge {
	display: inline-flex;
	flex: none;
	align-items: center;
	height: 22px;
	padding: 0 9px;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	box-shadow: var(--shadow-sm);
}

.post-row__badge.is-latest {
	background: var(--brand-soft);
	color: var(--brand-ink);
	box-shadow: none;
}

.blog-cat-list {
	display: grid;
	gap: 2px;
	list-style: none;
}

.blog-cat-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 6px;
	border-radius: 9px;
	color: var(--text-2);
	font-size: 13px;
	transition: background 0.18s var(--ease);
}

.blog-cat-list a:hover {
	background: var(--surface-2);
	color: var(--brand-ink);
}

.blog-cat-list__count {
	color: var(--muted-2);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}

.blog-primary > .pagination {
	margin-top: 26px;
}

/* ------------------------------------------------------------------
   8. 搜索结果
------------------------------------------------------------------ */
.search-hero,
.ranking-hero,
.submit-hero,
.sitemap-hero {
	margin: 14px 0 22px;
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background:
		radial-gradient(640px 200px at 0% 0%, var(--brand-soft), transparent 72%),
		var(--surface);
	box-shadow: var(--shadow-xs);
}

.search-hero h1,
.ranking-hero h1,
.submit-hero h1,
.sitemap-hero h1 {
	margin: 0 0 4px;
	font-size: clamp(22px, 3vw, 30px);
	letter-spacing: -0.02em;
}

.search-hero h1 span {
	color: var(--brand-ink);
}

.search-hero__count {
	margin: 0 0 16px;
	color: var(--muted);
	font-size: 12.5px;
}

.search-form--inline {
	max-width: 560px;
	background: var(--surface-2);
	box-shadow: none;
}

.search-tabs {
	margin-top: 16px;
}

.search-block + .search-block {
	margin-top: 30px;
}

.search-block__count {
	color: var(--muted);
	font-size: 12px;
}

/* ------------------------------------------------------------------
   9. 排行榜
------------------------------------------------------------------ */
/* 眉标与「全部站点」入口同行，后者落在右上角 */
.ranking-hero__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 6px;
}

.ranking-hero__top .archive-hero__eyebrow {
	min-width: 0;
	margin: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ranking-hero__badge {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	box-shadow: var(--shadow-xs);
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.ranking-hero__badge:hover,
.ranking-hero__badge:focus-visible {
	border-color: transparent;
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.ranking-hero__badge svg {
	color: var(--brand-ink);
}

.ranking-hero__desc,
.sitemap-hero__desc {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

.ranking-switch {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.ranking-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 26px;
	align-items: start;
}

.ranking-panel {
	min-width: 0;
	padding: 18px 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

.ranking-panel__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--border);
}

.ranking-panel__head h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 15px;
}

.ranking-panel__hint {
	color: var(--muted);
	font-size: 12px;
}

/* 排行榜分页：面板内边距较小，收紧间距并与列表分隔 */
.ranking-panel .pagination {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--border);
}

.ranking-list {
	display: grid;
	/* 列宽强制 minmax(0,1fr)：grid 默认 auto 列的最小尺寸由内容决定，长标题会把列表撑宽 */
	grid-template-columns: minmax(0, 1fr);
	gap: 2px;
	list-style: none;
}

.rank-row {
	display: flex;
	align-items: center;
	min-width: 0;
	gap: 12px;
	padding: 10px;
	border-radius: 12px;
	transition: background 0.18s var(--ease);
}

.rank-row:hover {
	background: var(--surface-2);
}

.rank-row.is-podium {
	background: var(--brand-soft);
}

.rank-row.is-podium:hover {
	background: var(--brand-soft-2);
}

.rank-row__no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	color: var(--muted-2);
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.rank-row.is-podium .rank-row__no {
	background: var(--surface);
	color: var(--brand-ink);
}

.rank-row[data-rank="1"] .rank-row__no {
	background: var(--brand);
	color: #fff;
}

.rank-row__thumb {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: hsl(var(--thumb-hue, 220) 60% 94%);
	color: hsl(var(--thumb-hue, 220) 45% 46%);
	overflow: hidden;
}

[data-theme="dark"] .rank-row__thumb {
	background: hsl(var(--thumb-hue, 220) 28% 22%);
	color: hsl(var(--thumb-hue, 220) 55% 70%);
}

.rank-row__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rank-row__body {
	flex: 1;
	min-width: 0;
}

.rank-row__body h3 {
	margin: 0;
	min-width: 0;
	font-size: 14px;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rank-row__body h3 a {
	color: var(--text);
}

.rank-row__body h3 a:hover {
	color: var(--brand-ink);
}

.rank-row__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	margin-top: 2px;
	min-width: 0;
	max-width: 100%;
	color: var(--muted);
	font-size: 11.5px;
	overflow-wrap: break-word;
}

/* 行内每个项目（分类 / 域名 / 分隔点）都允许收缩，避免长文本撑破容器 */
.rank-row__meta > * {
	min-width: 0;
}

/* 域名、分类等文本项目：宽度不够时裁切并显示省略号 */
.rank-row__meta span,
.rank-row__meta a {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rank-row__meta a {
	color: var(--muted);
}

.rank-row__meta a:hover {
	color: var(--brand-ink);
}

.rank-row__metric {
	flex: 0 0 auto;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--text-2);
	font-size: 11.5px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.rank-row.is-podium .rank-row__metric {
	background: var(--surface);
	color: var(--brand-ink);
}

.ranking-side,
.submit-secondary {
	display: grid;
	gap: 16px;
	min-width: 0;
}

/* ------------------------------------------------------------------
   10. 提交收录
------------------------------------------------------------------ */
.submit-hero__desc {
	max-width: 660px;
	margin: 0;
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.65;
}

.submit-hero__steps {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
}

.submit-step {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--text-2);
	font-size: 12.5px;
	font-weight: 500;
}

.submit-step b {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--brand-soft);
	color: var(--brand-ink);
	font-size: 11px;
	font-weight: 700;
}

.submit-step__line {
	width: 34px;
	height: 1px;
	background: var(--border-strong);
}

.submit-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 26px;
	align-items: start;
}

.submit-primary {
	display: grid;
	gap: 18px;
	min-width: 0;
}

.form-card {
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

.form-card__head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border);
}

.form-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.form-card__head h2 {
	margin: 0;
	font-size: 17px;
}

.form-card__head p {
	margin: 3px 0 0;
	color: var(--muted);
	font-size: 12.5px;
}

.submit-result .alert__body h2 {
	font-size: 18px;
}

.submit-notice-card p {
	margin: 0;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.7;
}

.submit-result__order {
	margin: 8px 0 0;
	color: var(--text-2);
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
}

.submit-promo {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px dashed var(--border);
}

.submit-promo__head h3 {
	margin: 0;
	font-size: 15px;
}

.submit-promo__head p {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.6;
}

.promo-list {
	display: grid;
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.promo-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface-2);
}

.promo-item__label {
	display: flex;
	flex: 1;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	cursor: pointer;
}

.promo-item__label input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--brand);
}

.promo-item__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.promo-item__text strong {
	color: var(--text);
	font-size: 13.5px;
}

.promo-item__text span {
	color: var(--muted);
	font-size: 12px;
	line-height: 1.5;
}

.promo-item__price {
	flex: 0 0 auto;
	color: var(--brand-ink);
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.promo-item--base {
	display: block;
	padding: 14px 16px;
	cursor: default;
}

/* 基础收录内的三档链接类型：一行三张紧凑卡片，窄屏改为单列。 */
.link-options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-top: 12px;
}

.link-option {
	position: relative;
	display: flex;
	min-width: 0;
	margin: 0;
	cursor: pointer;
}

.link-option input {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.link-option__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface);
	transition: border-color 0.18s var(--ease, ease), background-color 0.18s var(--ease, ease);
}

.link-option:hover .link-option__body {
	border-color: var(--border-strong);
}

.link-option input:checked + .link-option__body {
	border-color: rgba(var(--brand-rgb), 0.45);
	background: var(--brand-soft);
}

.link-option input:focus-visible + .link-option__body {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
}

.link-option__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 8px;
}

.link-option__head strong {
	color: var(--text);
	font-size: 13px;
	font-weight: 600;
}

.link-option input:checked + .link-option__body .link-option__head strong {
	color: var(--brand-ink);
}

.link-option__price {
	flex: 0 0 auto;
	color: var(--brand-ink);
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.link-option__desc {
	color: var(--muted);
	font-size: 11.5px;
	line-height: 1.45;
}

@media (max-width: 600px) {
	.link-options {
		grid-template-columns: minmax(0, 1fr);
	}
}

.promo-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--brand-soft);
}

.promo-summary span {
	color: var(--text-2);
	font-size: 13px;
	font-weight: 500;
}

.promo-summary strong {
	color: var(--brand-ink);
	font-size: 18px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.pay-methods {
	margin: 16px 0 0;
	padding: 0;
	border: 0;
}

.pay-methods[hidden] {
	display: none;
}

.pay-methods legend {
	padding: 0;
	color: var(--text-2);
	font-size: 13px;
	font-weight: 600;
}

.pay-methods__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.pay-method {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text-2);
	font-size: 13px;
	cursor: pointer;
	transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}

.pay-method:has(input:checked) {
	border-color: rgba(var(--brand-rgb), 0.45);
	background: var(--brand-soft);
	color: var(--brand-ink);
	font-weight: 600;
	margin-right: 10px;
}

.pay-method input {
	margin: 0;
	accent-color: var(--brand);
}

.pay-methods .form-hint {
	margin-top: 8px;
}

/* ------------------------------------------------------------------
   11. 普通页面
------------------------------------------------------------------ */
.page-main {
	padding-top: 6px;
}

.page-article {
	max-width: 860px;
	margin: 0 auto;
	padding: 28px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

.page-title {
	margin: 0;
	font-size: clamp(24px, 3.2vw, 32px);
	letter-spacing: -0.02em;
}

.page-thumb {
	margin: 18px 0 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.page-article .entry-content {
	margin-top: 20px;
}

.page-main > .container > .comments-area {
	max-width: 860px;
	margin-inline: auto;
}

/* ------------------------------------------------------------------
   11.1 关于我们
------------------------------------------------------------------ */
.about-hero {
	padding: 34px 28px 26px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
	text-align: center;
}

.about-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 12px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--brand-soft);
	color: var(--brand-ink);
	font-size: 12px;
	font-weight: 600;
}

.about-hero .page-title {
	font-size: clamp(26px, 3.6vw, 36px);
}

.about-hero__desc {
	max-width: 660px;
	margin: 12px auto 0;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.75;
}

.about-stats {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-top: 24px;
}

.about-stat {
	min-width: 148px;
	padding: 14px 18px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface-2);
}

.about-stat__value {
	display: block;
	color: var(--text);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.about-stat__label {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 12px;
}

.about-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
	gap: 22px;
	align-items: start;
	margin-top: 22px;
}

.about-layout--single {
	grid-template-columns: minmax(0, 1fr);
	max-width: 860px;
	margin-inline: auto;
}

.about-content {
	padding: 28px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

.about-content .entry-content > :first-child {
	margin-top: 0;
}

.about-content .entry-content > :last-child {
	margin-bottom: 0;
}

.about-blocks {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 26px;
}

.about-content > .about-blocks:first-child {
	margin-top: 0;
}

.about-content .entry-content + .about-blocks {
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

.about-block__title {
	margin: 0 0 10px;
	font-size: 19px;
	letter-spacing: -0.01em;
	line-height: 1.35;
}

.about-block__content {
	color: var(--text-2);
	font-size: 15px;
	line-height: 1.8;
}

.about-block__content > :first-child {
	margin-top: 0;
}

.about-block__content > :last-child {
	margin-bottom: 0;
}

.about-contact {
	position: sticky;
	top: calc(var(--header-h) + 16px);
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

.about-contact__title {
	margin: 0;
	font-size: 18px;
	margin-bottom: 10px;
}

.about-contact__desc {
	margin: 6px 0 16px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.6;
}

.about-contact--hint .btn {
	margin-top: 4px;
}

.about-contact__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.about-contact__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface-2);
}

.about-contact__body {
	min-width: 0;
}

.about-contact__label {
	display: block;
	color: var(--muted);
	font-size: 12px;
}

.about-contact__value {
	display: block;
	margin-top: 2px;
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	word-break: break-word;
}

a.about-contact__value:hover {
	color: var(--brand-ink);
}

.about-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 22px;
	padding: 26px 28px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background: linear-gradient(135deg, var(--brand-soft), var(--surface) 62%);
}

.about-cta__title {
	margin: 0;
	font-size: 19px;
	letter-spacing: -0.01em;
}

.about-cta__desc {
	margin: 6px 0 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.6;
}

.about-cta__actions {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	gap: 10px;
}

@media (max-width: 900px) {
	.about-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.about-contact {
		position: static;
	}

	.about-cta {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 640px) {
	.about-hero {
		padding: 26px 18px 22px;
	}

	.about-stats {
		flex-direction: column;
	}

	.about-stat {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 12px;
		min-width: 0;
	}

	.about-stat__label {
		margin-top: 0;
	}

	.about-content,
	.about-contact {
		padding: 20px;
	}
}

/* ------------------------------------------------------------------
   12. 404
------------------------------------------------------------------ */
.notfound-main {
	padding-top: 20px;
}

.notfound {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 36px 20px 28px;
	text-align: center;
}

.notfound__code {
	margin: 0 0 6px;
	color: transparent;
	font-size: clamp(88px, 15vw, 148px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.06em;
	-webkit-text-stroke: 1.5px rgba(var(--brand-rgb), 0.32);
}

.notfound h1 {
	margin: 0 0 8px;
	font-size: clamp(22px, 3vw, 30px);
}

.notfound__desc {
	max-width: 460px;
	margin: 0 0 22px;
	color: var(--muted);
	font-size: 14px;
}

.notfound__search {
	max-width: 520px;
	margin-bottom: 22px;
}

.notfound__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.notfound__chips {
	justify-content: center;
	margin-top: 18px;
}

.notfound__recommend {
	max-width: 780px;
	margin: 34px auto 0;
}

/* ------------------------------------------------------------------
   12.5 模块化首页与页面
------------------------------------------------------------------ */
.home-widget {
	min-width: 0;
}

.home-primary > .home-widget > .notice-bar,
.page-modules > .home-widget > .notice-bar {
	margin-top: 0;
}

.module-stack {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

.module-guide {
	margin-top: 4px;
}

/* 模块化页面 */
.page-module-head {
	max-width: 1100px;
	margin: 0 auto 18px;
	padding: 0 2px;
}

.page-module-head__desc {
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.7;
}

.page-module-intro {
	max-width: 1100px;
	margin: 0 auto 20px;
	padding: 24px 26px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

.page-module-intro > *:first-child {
	margin-top: 0;
}

.page-module-intro > *:last-child {
	margin-bottom: 0;
}

.page-modules {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	max-width: 1100px;
	margin-inline: auto;
}

/* 搜索模块 */
.search-module {
	padding: 22px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

.search-module__title {
	margin: 0;
	font-size: 19px;
	letter-spacing: -0.01em;
}

.search-module__desc {
	margin: 6px 0 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.6;
}

.search-module__form {
	margin-top: 16px;
}

.search-module__cats {
	margin-top: 14px;
}

/* 自定义内容模块 */
.content-module {
	min-width: 0;
}

.content-module--card {
	padding: 24px 26px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

.content-module__title {
	margin: 0 0 12px;
	font-size: 18px;
}

.content-module__body > *:first-child {
	margin-top: 0;
}

.content-module__body > *:last-child {
	margin-bottom: 0;
}

/* 行动号召模块 */
.cta-module {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	padding: 24px 26px;
	border: 1px solid rgba(var(--brand-rgb), 0.22);
	border-radius: var(--radius-xl);
	background:
		radial-gradient(120% 160% at 0% 0%, var(--brand-soft), transparent 62%),
		var(--surface);
	box-shadow: var(--shadow-xs);
}

.cta-module__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 15px;
	background: var(--brand);
	color: #fff;
	box-shadow: 0 12px 26px -16px rgba(var(--brand-rgb), 0.9);
}

.cta-module__body {
	flex: 1 1 260px;
	min-width: 0;
}

.cta-module__body h2 {
	margin: 0;
	font-size: 18px;
}

.cta-module__body p {
	margin: 5px 0 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.65;
}

.cta-module .btn {
	flex: 0 0 auto;
}

/* 全宽页面 */
.container--wide {
	width: min(100% - 48px, 1400px);
}

.page-article--wide {
	max-width: none;
}

/* ------------------------------------------------------------------
   12.6 登录注册
------------------------------------------------------------------ */
.auth-main {
	padding-top: 6px;
}

.auth-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 432px);
	gap: 26px;
	max-width: 1080px;
	margin-inline: auto;
	align-items: start;
}

.auth-intro {
	position: relative;
	overflow: hidden;
	padding: 38px 36px 30px;
	border: 1px solid rgba(var(--brand-rgb), 0.16);
	border-radius: var(--radius-xl);
	background:
		radial-gradient(130% 120% at 0% 0%, var(--brand-soft-2), transparent 58%),
		var(--surface);
	box-shadow: var(--shadow-xs);
}

.auth-intro::after {
	content: "";
	position: absolute;
	right: -120px;
	bottom: -140px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--brand-rgb), 0.16), transparent 68%);
	pointer-events: none;
}

.auth-intro > * {
	position: relative;
	z-index: 1;
}

.auth-intro__badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--brand-soft-2);
	color: var(--brand-ink);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.auth-intro h1 {
	max-width: 460px;
	margin: 20px 0 12px;
	font-size: clamp(26px, 3.2vw, 36px);
	line-height: 1.22;
	letter-spacing: -0.03em;
}

.auth-intro__desc {
	max-width: 430px;
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.85;
}

.auth-benefits {
	display: grid;
	gap: 2px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.auth-benefits li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 15px 0;
	border-top: 1px dashed var(--border);
}

.auth-benefits li:first-child {
	padding-top: 0;
	border-top: 0;
}

.auth-benefits > li > .uslik-icon {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	padding: 10px;
	border-radius: 12px;
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.auth-benefits div {
	display: grid;
	gap: 3px;
}

.auth-benefits strong {
	color: var(--text);
	font-size: 14px;
}

.auth-benefits span {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.65;
}

.auth-intro__foot {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px dashed var(--border);
	color: var(--muted);
	font-size: 12.5px;
}

.auth-panel {
	padding: 28px 28px 26px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background: var(--surface);
	box-shadow: var(--shadow-md);
}

.auth-panel__head h2 {
	margin: 0;
	font-size: 23px;
	letter-spacing: -0.02em;
}

.auth-panel__head p {
	margin: 6px 0 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.65;
}

.auth-tabs {
	display: flex;
	gap: 4px;
	margin-top: 20px;
	padding: 4px;
	border-radius: 12px;
	background: var(--surface-2);
}

.auth-tabs a {
	flex: 1 1 0;
	padding: 9px 6px;
	border-radius: 9px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	transition: color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.auth-tabs a:hover {
	color: var(--text);
}

.auth-tabs a.is-active {
	background: var(--surface);
	box-shadow: var(--shadow-xs);
	color: var(--brand-ink);
}

.auth-notice {
	margin-top: 16px;
}

.auth-notice .alert {
	padding: 14px 16px;
}

.auth-form {
	display: grid;
	gap: 16px;
	margin-top: 20px;
}

.auth-form .form-check {
	margin: 0;
}

.auth-form__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
}

.auth-form .form-actions {
	margin-top: 4px;
	padding-top: 0;
	border-top: 0;
}

.auth-form .form-actions .btn {
	width: 100%;
}

.auth-link {
	color: var(--brand-ink);
	font-size: 13px;
	font-weight: 600;
}

.auth-link:hover {
	text-decoration: underline;
}

.auth-foot {
	margin: 2px 0 0;
	color: var(--muted);
	font-size: 13px;
	text-align: center;
}

.auth-foot a {
	margin-left: 6px;
	color: var(--brand-ink);
	font-weight: 600;
}

.auth-closed {
	margin-top: 4px;
	padding: 34px 20px;
	border-style: solid;
}

.auth-closed .empty-card__icon {
	width: 52px;
	height: 52px;
	margin-bottom: 12px;
}

.auth-closed p {
	margin-bottom: 16px;
}

/* 密码显隐 */
.field-password {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"label label"
		"input toggle"
		"hint hint";
	column-gap: 8px;
	row-gap: 7px;
}

.field-password > label {
	grid-area: label;
}

.field-password > input {
	grid-area: input;
}

.field-password > .form-hint {
	grid-area: hint;
}

.password-toggle {
	grid-area: toggle;
	align-self: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.password-toggle:hover,
.password-toggle.is-active {
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.password-toggle:focus-visible {
	background: var(--brand-soft);
	color: var(--brand-ink);
	outline: none;
}

/* ------------------------------------------------------------------
   12.7 用户中心
------------------------------------------------------------------ */
.user-main {
	padding-top: 6px;
}

.user-layout {
	display: grid;
	grid-template-columns: 264px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.user-side {
	position: sticky;
	top: calc(var(--header-h) + 20px);
	display: grid;
	gap: 16px;
}

.user-card {
	padding: 22px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

.user-card__head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.user-avatar {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: hsl(var(--avatar-hue, 220) 68% 93%);
	color: hsl(var(--avatar-hue, 220) 55% 40%);
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	overflow: hidden;
	box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px rgba(var(--brand-rgb), 0.16);
}

[data-theme="dark"] .user-avatar {
	background: hsl(var(--avatar-hue, 220) 32% 24%);
	color: hsl(var(--avatar-hue, 220) 70% 76%);
}

.user-card__body {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.user-card__name {
	overflow: hidden;
	color: var(--text);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.user-card__handle {
	color: var(--muted);
	font-size: 12.5px;
}

.user-card__meta {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px dashed var(--border);
	color: var(--muted);
	font-size: 12.5px;
}

.user-card--menu {
	padding: 10px;
}

.user-menu {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.user-menu a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--text-2);
	font-size: 13.5px;
	font-weight: 600;
	transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.user-menu a:hover {
	background: var(--surface-2);
	color: var(--text);
}

.user-menu a.is-active {
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.user-menu .uslik-icon {
	flex: 0 0 auto;
	opacity: 0.85;
}

.user-menu--foot {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid var(--border);
}

.user-menu a.user-menu__logout {
	color: var(--danger);
}

.user-menu a.user-menu__logout:hover {
	background: var(--danger-soft);
	color: var(--danger);
}

.user-content {
	display: grid;
	gap: 20px;
	min-width: 0;
}

.user-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 26px 28px;
	border: 1px solid rgba(var(--brand-rgb), 0.18);
	border-radius: var(--radius-xl);
	background:
		radial-gradient(120% 160% at 100% 0%, var(--brand-soft-2), transparent 60%),
		var(--surface);
	box-shadow: var(--shadow-xs);
}

.user-hero__body {
	min-width: 0;
}

.user-hero h1 {
	margin: 0;
	font-size: clamp(21px, 2.6vw, 27px);
	letter-spacing: -0.02em;
}

.user-hero p {
	margin: 7px 0 0;
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.7;
}

.user-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.uc-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.uc-stat {
	padding: 18px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

.uc-stat__label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
}

.uc-stat__label .uslik-icon {
	color: var(--brand-ink);
}

.uc-stat strong {
	display: block;
	margin-top: 10px;
	font-size: 24px;
	line-height: 1;
	letter-spacing: -0.02em;
}

.uc-panel {
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

.uc-panel__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--border);
}

.uc-panel__head h2 {
	margin: 0;
	font-size: 16px;
	letter-spacing: -0.01em;
}

.uc-panel__meta {
	color: var(--muted);
	font-size: 12.5px;
}

.uc-panel__body {
	padding: 18px 20px 20px;
}

.uc-table-wrap {
	overflow-x: auto;
}

.uc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.uc-table th {
	padding: 0 12px 10px;
	border-bottom: 1px solid var(--border);
	color: var(--muted);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
}

.uc-table td {
	padding: 13px 12px;
	border-bottom: 1px dashed var(--border);
	color: var(--text-2);
	vertical-align: middle;
}

.uc-table tr:last-child td {
	border-bottom: 0;
}

.uc-table th:first-child,
.uc-table td:first-child {
	padding-left: 0;
}

.uc-table th:last-child,
.uc-table td:last-child {
	padding-right: 0;
}

.uc-table__title {
	display: block;
	color: var(--text);
	font-weight: 600;
}

.uc-table__sub {
	display: block;
	margin-top: 3px;
	overflow-wrap: anywhere;
	color: var(--muted);
	font-size: 11.5px;
}

.uc-table__mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
}

.uc-table__muted {
	color: var(--muted-2);
}

.uc-table__action {
	text-align: right;
	white-space: nowrap;
}

.uc-table__actions {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.uc-table__form {
	display: inline-flex;
	margin: 0;
}

.uc-table__delete {
	padding: 0;
	border: 0;
	background: none;
	color: var(--danger);
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}

.uc-table__delete:hover {
	text-decoration: underline;
}

.uc-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 11.5px;
	font-weight: 700;
	white-space: nowrap;
}

.uc-badge--live {
	background: var(--success-soft);
	color: var(--success);
}

.uc-badge--pending {
	background: var(--warning-soft);
	color: var(--warning);
}

.uc-badge--draft {
	background: var(--surface-3);
	color: var(--muted);
}

/* 认领中的站点 */
.uc-claim-intro {
	margin: 0 0 16px;
	color: var(--muted);
	font-size: 13px;
}

.uc-claim {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface-2);
}

.uc-claim + .uc-claim {
	margin-top: 14px;
}

.uc-claim__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
}

.uc-claim__title {
	margin: 0;
	font-size: 15px;
}

.uc-claim__url {
	display: block;
	margin-top: 3px;
	overflow-wrap: anywhere;
	color: var(--muted);
	font-size: 12px;
}

.uc-claim__token {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: 12px;
}

.uc-claim__token code,
.uc-claim__code {
	display: block;
	max-width: 100%;
	padding: 6px 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	overflow-wrap: anywhere;
	color: var(--text);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
}

.uc-claim__methods {
	display: grid;
	gap: 12px;
}

@media (min-width: 860px) {
	.uc-claim__methods {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.uc-claim__method {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.uc-claim__method h4 {
	margin: 0;
	font-size: 13px;
}

.uc-claim__method p {
	margin: 0;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.7;
}

.uc-claim__method form {
	margin: 0;
}

.uc-claim__foot {
	display: flex;
	justify-content: flex-end;
}

.uc-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 40px 20px;
	border: 1px dashed var(--border-strong);
	border-radius: var(--radius-lg);
	text-align: center;
}

.uc-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.uc-empty p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

.uc-form .form-actions {
	margin-top: 20px;
}

.user-pagination {
	margin-top: 18px;
	justify-content: flex-end;
}

.user-menu__badge {
	margin-left: auto;
	min-width: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.uc-panel__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.uc-inline-form {
	margin: 0;
}

.uc-hint {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	padding: 15px 18px;
	border: 1px dashed rgba(var(--brand-rgb), 0.35);
	border-radius: var(--radius-lg);
	background: var(--brand-soft-2);
}

.uc-hint p {
	flex: 1 1 220px;
	margin: 0;
	color: var(--text-2);
	font-size: 13px;
	line-height: 1.6;
}

.uc-hint--warning {
	border-color: rgba(180, 83, 9, 0.32);
	background: var(--warning-soft);
}

.uc-hint--warning .uc-hint__icon {
	color: var(--warning);
}

.uc-hint--warning form {
	margin: 0;
}

.uc-hint__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--surface);
	color: var(--brand-ink);
}

.uc-notices {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.uc-notice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 6px;
	border-bottom: 1px dashed var(--border);
}

.uc-notice:last-child {
	border-bottom: 0;
}

.uc-notice.is-unread {
	background: linear-gradient(90deg, var(--brand-soft-2), transparent 70%);
}

.uc-notice__icon {
	display: inline-flex;
	flex: 0 0 28px;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
}

.uc-notice__icon.is-success {
	background: var(--success-soft);
	color: var(--success);
}

.uc-notice__icon.is-warning {
	background: var(--warning-soft);
	color: var(--warning);
}

.uc-notice__icon.is-error {
	background: var(--danger-soft);
	color: var(--danger);
}

.uc-notice__icon.is-info {
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.uc-notice__body {
	flex: 1 1 auto;
	min-width: 0;
}

.uc-notice__body p {
	margin: 0;
	overflow-wrap: anywhere;
	font-size: 13px;
	line-height: 1.65;
}

.uc-notice__meta {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 11.5px;
}

.uc-notice__link {
	flex: 0 0 auto;
	font-size: 12px;
}

.uc-site-banner {
	display: grid;
	gap: 10px;
	margin-bottom: 20px;
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface-2);
}

.uc-review-note strong {
	display: block;
	margin-bottom: 4px;
	color: var(--danger);
	font-size: 12px;
}

.uc-review-note p {
	margin: 0;
	color: var(--text-2);
	font-size: 13px;
	line-height: 1.7;
}

.uc-table__note {
	display: block;
	margin-top: 5px;
	overflow-wrap: anywhere;
	color: var(--danger);
	font-size: 11.5px;
}

.uc-check {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin-top: 16px;
	color: var(--text-2);
	font-size: 13px;
	line-height: 1.6;
}

.uc-check input {
	margin-top: 3px;
}

.uc-panel--danger {
	border-color: rgba(220, 38, 38, 0.24);
}

.uc-panel--danger .uc-panel__head h2 {
	color: var(--danger);
}

.uc-danger__text {
	margin: 0 0 16px;
	color: var(--text-2);
	font-size: 13px;
	line-height: 1.75;
}

.btn--danger {
	border-color: var(--danger);
	background: var(--danger);
	color: #fff;
}

.btn--danger:hover {
	border-color: var(--danger);
	background: var(--danger);
	color: #fff;
	filter: brightness(0.94);
}

.uc-fav-form {
	display: inline-flex;
	margin: 0;
}

.uc-fav-form .btn.is-active {
	color: var(--brand-ink);
	border-color: rgba(var(--brand-rgb), 0.35);
	background: var(--brand-soft);
}

.detail-notice {
	margin-bottom: 18px;
}

/* ------------------------------------------------------------------
   13. 响应式
------------------------------------------------------------------ */
@media (max-width: 1080px) {
	.home-layout,
	.detail-layout,
	.article-layout,
	.blog-layout,
	.ranking-layout,
	.submit-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.auth-layout,
	.user-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.auth-layout {
		max-width: 620px;
	}

	.user-side {
		position: static;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
		align-items: start;
	}

	.user-menu {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-secondary,
	.detail-secondary,
	.article-secondary,
	.blog-secondary,
	.ranking-side,
	.submit-secondary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}

	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mini-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.home-hero__inner {
		padding: 50px 0 44px;
	}

	.archive-hero {
		padding: 18px;
	}

	.post-row {
		grid-template-columns: 168px minmax(0, 1fr);
		gap: 14px;
	}

	.blog-feature {
		grid-template-columns: minmax(0, 1fr);
	}

	.site-hero-card,
	.detail-section,
	.related-sites {
		padding: 20px;
	}

	.entry-article {
		padding: 22px;
	}

	.ranking-panel {
		padding: 14px 16px;
	}

	.form-card {
		padding: 20px;
	}

	.uc-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.user-side {
		grid-template-columns: minmax(0, 1fr);
	}

	.user-menu {
		grid-template-columns: minmax(0, 1fr);
	}

	.auth-intro {
		padding: 30px 26px 26px;
	}
}

@media (max-width: 782px) {
	.home-hero__inner {
		padding: 40px 0 36px;
	}

	.home-hero__subtitle {
		font-size: 14px;
		margin-bottom: 22px;
	}

	.hero-stats {
		gap: 16px;
		margin-top: 26px;
	}

	.hero-stats li {
		font-size: 11px;
	}

	.hero-stats__value {
		font-size: 15px;
	}

	.featured-block,
	.category-block,
	.home-articles {
		padding: 16px;
		border-radius: var(--radius-lg);
	}

	.search-module,
	.content-module--card,
	.cta-module,
	.page-module-intro {
		padding: 16px;
		border-radius: var(--radius-lg);
	}

	.search-hero,
	.ranking-hero,
	.submit-hero,
	.sitemap-hero {
		padding: 18px;
	}

	.archive-hero {
		flex-wrap: wrap;
	}

	.archive-hero__count {
		align-items: flex-start;
		padding-left: 0;
		font-size: 22px;
	}

	.site-hero-card__top {
		flex-wrap: wrap;
		gap: 14px;
	}

	.site-hero-card__aside,
	.site-hero-card__aside:has(.uslik-ad) {
		order: 3;
		align-items: stretch;
		width: 100%;
		max-width: 100%;
		margin-left: 0;
	}

	.site-hero-card__rating {
		order: 3;
		width: 100%;
		margin-left: 0;
		justify-content: center;
	}

	.site-hero-card .site-avatar.is-lg {
		width: 64px;
		height: 64px;
		border-radius: 17px;
		font-size: 24px;
	}

	.entry-article,
	.page-article {
		padding: 18px;
		border-radius: var(--radius-lg);
	}

	.related-sites,
	.detail-section {
		padding: 16px;
		border-radius: var(--radius-lg);
	}

	.mini-post-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.submit-step__line {
		display: none;
	}

	.archive-toolbar .sort-tabs,
	.ranking-switch .sort-tabs,
	.search-tabs {
		max-width: 100%;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.archive-toolbar .sort-tabs::-webkit-scrollbar,
	.ranking-switch .sort-tabs::-webkit-scrollbar,
	.search-tabs::-webkit-scrollbar {
		display: none;
	}

	.rank-row {
		gap: 9px;
		padding: 8px;
	}

	.auth-panel {
		padding: 22px 20px;
	}

	.auth-intro h1 {
		font-size: 25px;
	}

	.user-hero {
		padding: 22px 20px;
	}

	.uc-panel__head {
		padding: 14px 16px;
	}

	.uc-panel__body {
		padding: 14px 16px 16px;
	}
}

@media (max-width: 640px) {
	.home-secondary,
	.detail-secondary,
	.article-secondary,
	.blog-secondary,
	.ranking-side,
	.submit-secondary {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ai-review__main {
		flex-direction: column;
	}

	.ai-review__thumb {
		flex: none;
		width: min(100%, 260px);
	}

	.blog-feature h2 {
		font-size: 19px;
	}

	.search-form--hero,
	.search-form--inline,
	.notfound__search {
		padding: 6px;
		padding-left: 14px;
	}

	.search-form--hero .search-form__input,
	.search-form--hero .search-form__submit {
		height: 40px;
	}

	.search-form--hero .search-form__submit {
		padding: 0 16px;
	}

	.hero-stats {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		width: 100%;
	}

	.hero-stats li {
		justify-content: center;
		padding: 8px 10px;
		border: 1px solid var(--border);
		border-radius: 12px;
		background: var(--surface-alpha);
	}

	.post-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
		padding: 12px;
	}

	.post-row__thumb {
		aspect-ratio: 16 / 8;
	}

	.post-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.author-box {
		flex-wrap: wrap;
	}

	.author-box .text-link {
		margin-left: 0;
	}

	.rank-row__metric {
		display: none;
	}

	/* 窄屏标题改两行截断：单行 nowrap 省略在 375px 宽下只剩几个字，可读性差 */
	.rank-row__body h3 {
		white-space: normal;
		overflow: hidden;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		word-break: break-word;
	}

	.rank-row__meta {
		font-size: 11px;
	}

	.archive-hero {
		gap: 8px;
	}

	.notfound {
		padding: 24px 8px;
	}

	.cta-module {
		align-items: flex-start;
	}

	.cta-module .btn {
		width: 100%;
		justify-content: center;
	}

	.auth-intro {
		padding: 24px 18px 20px;
	}

	.auth-intro h1 {
		font-size: 22px;
	}

	.auth-benefits {
		margin-top: 20px;
	}

	.auth-panel {
		padding: 20px 16px;
	}

	.auth-tabs a {
		padding: 8px 4px;
		font-size: 12.5px;
	}

	.uc-stats {
		gap: 10px;
	}

	.uc-stat {
		padding: 14px;
	}

	.uc-stat strong {
		font-size: 21px;
	}

	.uc-table th,
	.uc-table td {
		padding-left: 8px;
		padding-right: 8px;
	}
}

/* 站点详情：分享、举报与认领 */
.site-tools .side-card__head {
	margin-bottom: 12px;
}

.share-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.share-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 10px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface, #fff);
	color: var(--muted);
	font-size: 12px;
	line-height: 1.4;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.share-btn:hover,
.share-btn:focus-visible {
	border-color: currentColor;
	color: var(--brand, #2163e8);
}

.tool-details {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--border);
}

.tool-details summary {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	cursor: pointer;
	list-style: none;
}

.tool-details summary::-webkit-details-marker {
	display: none;
}

.tool-details summary::after {
	content: "+";
	margin-left: auto;
	color: var(--muted);
	font-weight: 500;
}

.tool-details[open] summary::after {
	content: "−";
}

.tool-form {
	display: grid;
	gap: 10px;
	margin-top: 10px;
}

.tool-form .form-field {
	margin: 0;
}

.tool-form .form-field label {
	font-size: 12px;
}

.tool-hint {
	margin: 8px 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.6;
}

.tool-hint code {
	word-break: break-all;
}

.tool-token {
	margin: 8px 0;
	padding: 8px 10px;
	border-radius: 8px;
	background: var(--surface-2, #f4f6fb);
	color: var(--text, #1f2937);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
	line-height: 1.5;
	word-break: break-all;
}

/* ------------------------------------------------------------------
   余额、充值、站点推广
------------------------------------------------------------------ */
.promo-item__plan {
	flex: 0 0 auto;
}

.promo-item__plan select {
	min-width: 132px;
	padding: 7px 10px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface);
	color: var(--text);
	font-size: 12.5px;
}

.promo-item__plan select:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.user-card__balance {
	margin-top: 10px;
	padding-top: 10px;
}

.user-card__balance .text-link {
	margin-left: auto;
}

.uc-badge--featured {
	background: var(--brand-soft-2);
	color: var(--brand-ink);
}

.uc-badge--top {
	background: var(--success-soft);
	color: var(--success);
}

.uc-balance {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border: 1px solid rgba(var(--brand-rgb), 0.25);
	border-radius: 14px;
	background: var(--brand-soft);
}

.uc-balance__main {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.uc-balance__label {
	color: var(--text-2);
	font-size: 12.5px;
}

.uc-balance__value {
	color: var(--brand-ink);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.uc-balance__note {
	flex: 1 1 220px;
	margin: 0;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.6;
}

.uc-recharge {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px dashed var(--border);
}

.uc-recharge__title {
	margin: 0 0 12px;
	font-size: 15px;
}

.uc-amount-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.uc-amount-preset {
	padding: 7px 14px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text-2);
	font-size: 12.5px;
	cursor: pointer;
	transition: border-color 0.18s var(--ease), color 0.18s var(--ease), background 0.18s var(--ease);
}

.uc-amount-preset:hover,
.uc-amount-preset.is-active {
	border-color: rgba(var(--brand-rgb), 0.45);
	background: var(--brand-soft);
	color: var(--brand-ink);
	font-weight: 600;
}

.uc-recharge .pay-methods {
	margin-top: 0;
}

/* 充值按钮靠右，与支付方式拉开距离 */
.uc-recharge__actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 20px;
}

.uc-form__label {
	display: block;
	margin-bottom: 8px;
	color: var(--text-2);
	font-size: 13px;
	font-weight: 600;
}

.uc-promo-grid {
	display: grid;
	gap: 16px;
	margin-top: 14px;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.uc-promo-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface-2);
}

.uc-promo-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.uc-promo-card__head h3 {
	margin: 0;
	font-size: 15px;
}

.uc-promo-card__desc {
	margin: 0;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.6;
}

.uc-promo-card .form-field {
	margin: 0;
}

.uc-promo-card__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--brand-soft);
}

.uc-promo-card__total span {
	color: var(--text-2);
	font-size: 12.5px;
}

.uc-promo-card__total strong {
	color: var(--brand-ink);
	font-size: 18px;
	font-variant-numeric: tabular-nums;
}

.uc-amount--plus {
	color: var(--success);
	font-weight: 600;
}

.uc-amount--minus {
	color: var(--danger);
	font-weight: 600;
}

/* ------------------------------------------------------------------
   14. 网站地图
------------------------------------------------------------------ */
.sitemap-pages {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px dashed var(--border);
}

.sitemap-pages__label {
	display: block;
	margin-bottom: 10px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sitemap-cats {
	margin-top: 8px;
}

.sitemap-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.sitemap-section__head h2 {
	margin: 0;
	font-size: 18px;
	letter-spacing: -0.01em;
}

.sitemap-section__head span {
	color: var(--muted);
	font-size: 12.5px;
}

.sitemap-cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
	align-items: start;
}

.sitemap-cat {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

.sitemap-cat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.sitemap-cat__head h3 {
	min-width: 0;
	margin: 0;
	font-size: 15px;
}

.sitemap-cat__head h3 a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	color: var(--text);
}

.sitemap-cat__head h3 a:hover {
	color: var(--brand-ink);
}

.sitemap-cat__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 9px;
	background: var(--brand-soft);
	color: var(--cat-color, var(--brand-ink));
}

.sitemap-cat__count {
	flex: 0 0 auto;
	color: var(--muted);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.sitemap-cat__subs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	padding-bottom: 8px;
	border-bottom: 1px dashed var(--border);
}

.sitemap-cat__subs a {
	color: var(--muted);
	font-size: 12.5px;
}

.sitemap-cat__subs a:hover {
	color: var(--brand-ink);
}

.sitemap-sites {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sitemap-sites a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-width: 0;
	padding: 4px 0;
	color: var(--text-2);
	font-size: 13px;
}

.sitemap-sites a:hover {
	color: var(--brand-ink);
}

.sitemap-sites__name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sitemap-sites__host {
	flex: 0 0 auto;
	max-width: 45%;
	overflow: hidden;
	color: var(--muted);
	font-size: 11.5px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sitemap-cat__more {
	margin-top: 2px;
	font-size: 12.5px;
}

@media (max-width: 640px) {
	.sitemap-cat-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sitemap-sites {
		grid-template-columns: minmax(0, 1fr);
	}

	.sitemap-sites__host {
		max-width: 50%;
	}
}
/*
Theme Name: Uslik
Theme URI: https://example.com/uslik
Author: Uslik
Author URI: https://example.com
Description: 一款借鉴「元圣网址导航系统」的现代化 WordPress 网址导航主题。内置站点收录、分类导航、精选推荐、排行榜、点击统计、网站投稿与简约文章模块，采用紧凑胶囊化布局与柔和选中态，支持深色模式。
Version: 1.1.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uslik
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, grid-layout
*/

/*
 * 主题前台样式位于 assets/css 目录，按基础层、组件层、页面层拆分加载。
 * 本文件仅保留 WordPress 主题声明与最小兜底，避免样式重复。
 */

body {
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}
