:root {
	--s1-bg: #f8fafc;
	--s1-surface: #ffffff;
	--s1-text: #0f172a;
	--s1-text-muted: #64748b;
	--s1-border: #e2e8f0;
	--s1-primary: #2563eb;
	--s1-primary-hover: #1d4ed8;
	--s1-shadow: none;
	--s1-radius: 8px;
	--s1-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
	--s1-highlight-bg: #fef08a;
	--s1-highlight-color: inherit;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--s1-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--s1-text);
	background: var(--s1-bg);
	-webkit-font-smoothing: antialiased;
}

.s1-main {
	min-height: 100vh;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* 搜索页布局 */
.s1-search-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	padding: 1.5rem 1rem 1rem;
}

.s1-search-page__toolbar {
	width: 100%;
}

.s1-search-page__toolbar-inner {
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
}

.s1-search-page--has-results .s1-search-page__toolbar-inner {
	max-width: 960px;
}

.s1-search-page__inner {
	flex: 1;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
}

.s1-search-page--has-results .s1-search-page__inner {
	max-width: 960px;
}

.s1-search-page--searched {
	padding: 0;
}

.s1-search-page--searched .s1-search-page__toolbar {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--s1-bg);
	border-bottom: 1px solid var(--s1-border);
	padding: 0.625rem 1rem;
}

.s1-search-page--searched .s1-search-page__toolbar-inner {
	max-width: 960px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.s1-search-page--searched .s1-search-page__inner {
	max-width: 960px;
	padding: 0.75rem 1rem 1.5rem;
}

.s1-search-page--searched .s1-search-page__header {
	padding-top: 0;
	margin-bottom: 0;
	text-align: left;
	flex: 1;
	min-width: 0;
}

.s1-search-page--searched .s1-search-page__home-link {
	justify-content: flex-start;
	max-width: 100%;
}

.s1-search-page--searched .s1-search-page__subtitle {
	display: none;
}

.s1-search-page--searched .s1-search-page__title {
	margin: 0;
	font-size: 1.3125rem;
	font-weight: 600;
	line-height: 1;
}

.s1-search-page--searched .s1-search-page__title-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.s1-search-page--searched .s1-search-page__icon {
	width: 26px;
	height: 26px;
	border-radius: 5px;
}

.s1-search-page--searched .s1-search-form {
	margin-bottom: 0;
	flex: 0 0 auto;
	width: min(46vw, 260px);
	max-width: 260px;
}

.s1-search-page--searched .s1-search-form__field {
	height: 38px;
}

.s1-search-page--searched .s1-search-form__input {
	padding: 0 0.75rem;
	font-size: 0.875rem;
	line-height: 1;
}

.s1-search-page--searched .s1-search-form__submit {
	width: 30px;
	height: 30px;
	margin-right: 0.25rem;
	border-radius: 5px;
}

.s1-search-page--searched .s1-search-form__submit svg {
	width: 16px;
	height: 16px;
}

@media (min-width: 640px) {
	.s1-search-page--searched .s1-search-form {
		width: 280px;
		max-width: 280px;
	}

	.s1-search-page--searched .s1-search-form__input {
		font-size: 0.9375rem;
	}
}

.s1-search-page__header {
	text-align: center;
	margin-bottom: 1.25rem;
	padding-top: 14vh;
}

.s1-search-page__title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.25rem, 3vw, 1.625rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.s1-search-page__home-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	color: inherit;
	text-decoration: none;
}

.s1-search-page__home-link:hover {
	color: var(--s1-primary);
}

.s1-search-page__home-link:focus-visible {
	outline: 2px solid var(--s1-primary);
	outline-offset: 3px;
	border-radius: 4px;
}

.s1-search-page__icon {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	flex-shrink: 0;
	object-fit: contain;
}

.s1-search-page__title-text {
	line-height: 1.25;
}

.s1-search-page__subtitle {
	margin: 0;
	color: var(--s1-text-muted);
	font-size: 0.875rem;
	font-weight: 400;
}

/* 搜索表单 */
.s1-search-form {
	margin-bottom: 1rem;
}

.s1-search-page:not(.s1-search-page--searched) .s1-search-form {
	width: 100%;
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
}

/* 首页文章列表 */
.s1-post-list {
	margin-top: 1.25rem;
}

.s1-search-page:not(.s1-search-page--searched) .s1-post-list {
	width: 100%;
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
}

.s1-search-page--searched .s1-post-list {
	display: none;
}

.s1-post-list__items {
	list-style: none;
	margin: 0;
	padding: 0.25rem 0;
	background: var(--s1-surface);
	border: 1px solid var(--s1-border);
	border-radius: calc(var(--s1-radius) + 2px);
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.04),
		0 4px 12px rgba(15, 23, 42, 0.03);
	overflow: hidden;
}

.s1-post-list__item {
	border-bottom: 1px solid var(--s1-border);
}

.s1-post-list__item:last-child {
	border-bottom: none;
}

.s1-post-list__link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.875rem;
	color: var(--s1-text);
	text-decoration: none;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.3;
	transition: background 0.15s ease, color 0.15s ease;
	position: relative;
}

.s1-post-list__link::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 2px;
	height: 0;
	border-radius: 0 2px 2px 0;
	background: var(--s1-primary);
	transform: translateY(-50%);
	transition: height 0.15s ease;
}

.s1-post-list__link::after {
	content: "→";
	flex-shrink: 0;
	margin-left: auto;
	font-size: 0.75rem;
	color: var(--s1-primary);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.s1-post-list__text {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.s1-post-list__item:hover .s1-post-list__link {
	background: linear-gradient(to right, rgba(37, 99, 235, 0.04), transparent);
	color: var(--s1-primary);
}

.s1-post-list__item:hover .s1-post-list__link::before {
	height: 55%;
}

.s1-post-list__item:hover .s1-post-list__link::after {
	opacity: 1;
	transform: translateX(0);
}

.s1-post-list__link:focus-visible {
	outline: 2px solid var(--s1-primary);
	outline-offset: -2px;
	background: rgba(37, 99, 235, 0.04);
}

@media (min-width: 640px) {
	.s1-post-list__link {
		font-size: 0.875rem;
		padding: 0.5625rem 1rem;
	}
}

.s1-search-form__field {
	display: flex;
	align-items: center;
	background: var(--s1-surface);
	border: 1px solid var(--s1-border);
	border-radius: var(--s1-radius);
	transition: border-color 0.15s;
}

.s1-search-form__field:focus-within {
	border-color: var(--s1-primary);
}

.s1-search-form__input {
	flex: 1;
	border: none;
	background: transparent;
	padding: 0.75rem 1rem;
	font-size: 0.9375rem;
	color: var(--s1-text);
	outline: none;
	min-width: 0;
}

.s1-search-form__input::placeholder {
	color: var(--s1-text-muted);
}

.s1-search-form__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-right: 0.35rem;
	border: none;
	border-radius: 6px;
	background: var(--s1-primary);
	color: #fff;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.15s;
}

.s1-search-form__submit svg {
	width: 18px;
	height: 18px;
}

.s1-search-form__submit:hover {
	background: var(--s1-primary-hover);
}

.s1-search-form__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* 状态提示 */
.s1-search-status {
	color: var(--s1-text-muted);
	font-size: 0.8125rem;
	font-weight: 400;
	margin-bottom: 0.625rem;
	line-height: 1.4;
}

.s1-search-status--error {
	color: #dc2626;
}

.s1-search-page:not(.s1-search-page--searched) .s1-search-page__inner > .s1-search-status {
	text-align: center;
	padding: 1.25rem 1rem;
}

.s1-search-status.is-loading:not(.s1-results__toolbar-status) {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 6rem;
	padding: 2rem 1rem;
	margin-bottom: 0;
	text-align: center;
}

.s1-search-page--searched .s1-search-status:not(.s1-results__toolbar-status) {
	display: none;
}

.s1-search-results {
	width: 100%;
	min-height: 1px;
}

.s1-search-page--has-results .s1-search-results {
	margin-top: 0;
}

/* 搜索结果 */
.s1-results__toolbar {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.5rem;
	margin-bottom: 0.625rem;
	min-width: 0;
}

.s1-results__toolbar-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-width: 0;
}

.s1-results__heading,
.s1-results__count {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--s1-text-muted);
	line-height: 1.4;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.s1-results__toolbar-status {
	margin: 0;
	flex-shrink: 0;
	text-align: right;
}

.s1-results__toolbar-status.is-loading {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.375rem;
	min-height: 0;
	padding: 0;
	margin-bottom: 0;
}

.s1-results__toolbar-status.is-loading::after {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	border: 2px solid var(--s1-border);
	border-top-color: var(--s1-primary);
	border-radius: 50%;
	animation: s1-spin 0.7s linear infinite;
}

.s1-results__toolbar .s1-filters {
	margin-bottom: 0;
}

/* 网盘筛选 */
.s1-filters {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.375rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.s1-filters::-webkit-scrollbar {
	display: none;
}

.s1-filter {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	gap: 0.3rem;
	padding: 0.2rem 0.65rem;
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--s1-text-muted);
	background: transparent;
	border: 1px solid var(--s1-border);
	border-radius: 999px;
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s, background 0.15s;
	font-family: inherit;
	line-height: 1.5;
	white-space: nowrap;
}

.s1-filter__icon {
	width: 14px;
	height: 14px;
	border-radius: 3px;
	flex-shrink: 0;
	object-fit: contain;
}

.s1-filter__count {
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.s1-filter__fallback {
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: 1;
}

.s1-filter:hover {
	color: var(--s1-text);
	border-color: #cbd5e1;
}

.s1-filter.is-active {
	background: var(--s1-primary);
	border-color: var(--s1-primary);
	color: #fff;
}

@media (min-width: 640px) {
	.s1-filter {
		gap: 0.35rem;
		padding: 0.3rem 0.8rem;
		font-size: 0.8125rem;
	}

	.s1-filter__icon {
		width: 16px;
		height: 16px;
	}

	.s1-filter__fallback {
		font-size: 0.75rem;
	}
}

.s1-results__empty-filter {
	margin: 0;
	padding: 1rem;
	text-align: center;
	color: var(--s1-text-muted);
	font-size: 0.8125rem;
	background: var(--s1-surface);
	border: 1px solid var(--s1-border);
	border-radius: var(--s1-radius);
}

.s1-result-card[hidden] {
	display: none;
}

.s1-results__list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: var(--s1-surface);
	border: 1px solid var(--s1-border);
	border-radius: var(--s1-radius);
	overflow: hidden;
}

.s1-result-card {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.5rem 0.875rem;
	border-bottom: 1px solid var(--s1-border);
	min-width: 0;
	transition: background 0.12s;
}

.s1-result-card:last-child {
	border-bottom: none;
}

.s1-result-card:hover {
	background: #f8fafc;
}

.s1-result-card__cloud {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	width: 18px;
}

.s1-result-card__cloud-icon {
	width: 18px;
	height: 18px;
	border-radius: 3px;
	flex-shrink: 0;
	object-fit: contain;
	display: block;
}

.s1-result-card__title {
	margin: 0;
	min-width: 0;
	flex: 1;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.s1-result-card__title a {
	color: var(--s1-text);
	text-decoration: none;
}

.s1-result-card__title a:hover {
	color: var(--s1-primary);
}

/* 搜索词等高亮（语义化 mark，全站通用） */
mark {
	background-color: var(--s1-highlight-bg);
	color: var(--s1-highlight-color);
	padding: 0 0.05em;
	border-radius: 2px;
	font-weight: inherit;
}

.s1-result-card__meta {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	gap: 0.5rem;
	font-size: 0.75rem;
	color: var(--s1-text-muted);
	white-space: nowrap;
}

.s1-result-card__meta > span + span::before {
	content: "·";
	margin-right: 0.5rem;
	opacity: 0.35;
}

.s1-result-card__api {
	max-width: 4rem;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0.45;
}

.s1-result-card__pwd {
	padding: 0;
	border: none;
	background: none;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
	cursor: pointer;
	font-variant-numeric: tabular-nums;
	line-height: inherit;
	white-space: nowrap;
	flex-shrink: 0;
	transition: color 0.12s;
}

.s1-result-card__pwd:hover {
	color: var(--s1-primary);
}

.s1-result-card__pwd.is-copied {
	color: #059669;
}

.s1-action {
	padding: 0;
	border: none;
	background: none;
	font-family: inherit;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--s1-text-muted);
	cursor: pointer;
	text-decoration: none;
	line-height: 1;
	white-space: nowrap;
	transition: color 0.12s;
}

.s1-action:hover {
	color: var(--s1-primary);
}

.s1-action--primary {
	color: var(--s1-primary);
}

.s1-action.is-copied {
	color: #059669;
}

/* 按钮（备用） */
.s1-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.65rem;
	font-size: 0.75rem;
	font-weight: 500;
	border-radius: 5px;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	font-family: inherit;
	line-height: 1.4;
}

.s1-btn--primary {
	background: var(--s1-primary);
	color: #fff;
	border-color: var(--s1-primary);
}

.s1-btn--primary:hover {
	background: var(--s1-primary-hover);
	border-color: var(--s1-primary-hover);
	color: #fff;
}

.s1-btn--ghost {
	background: transparent;
	color: var(--s1-text-muted);
	border-color: var(--s1-border);
}

.s1-btn--ghost:hover {
	background: var(--s1-bg);
	color: var(--s1-text);
}

.s1-btn.is-copied {
	background: #ecfdf5;
	border-color: #6ee7b7;
	color: #059669;
}

/* 空状态 */
.s1-results--empty {
	text-align: center;
	padding: 1.5rem 1rem;
	color: var(--s1-text-muted);
	font-size: 0.8125rem;
	background: var(--s1-surface);
	border: 1px solid var(--s1-border);
	border-radius: var(--s1-radius);
}

.s1-results--empty p {
	margin: 0;
}

/* 全站页脚 */
.s1-site-footer {
	text-align: center;
	padding: 1.25rem 1rem;
	color: var(--s1-text-muted);
	font-size: 0.75rem;
	opacity: 0.65;
}

.s1-search-page .s1-site-footer {
	padding-top: 1.25rem;
	padding-bottom: 0;
}

.s1-search-page--searched .s1-site-footer {
	padding-left: 1rem;
	padding-right: 1rem;
	padding-bottom: 1rem;
}

.s1-site-footer__nav {
	margin-bottom: 0.75rem;
	opacity: 1;
}

.s1-site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.375rem 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
}

.s1-site-footer__menu a {
	color: var(--s1-text-muted);
	text-decoration: none;
	transition: color 0.15s ease;
}

.s1-site-footer__menu a:hover {
	color: var(--s1-primary);
}

.s1-site-footer__menu a:focus-visible {
	outline: 2px solid var(--s1-primary);
	outline-offset: 2px;
	border-radius: 2px;
}

.s1-site-footer__copyright {
	margin: 0;
}

/* 加载动画 */
.s1-search-status.is-loading::after {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 0;
	flex-shrink: 0;
	border: 2px solid var(--s1-border);
	border-top-color: var(--s1-primary);
	border-radius: 50%;
	animation: s1-spin 0.7s linear infinite;
	vertical-align: middle;
}

@keyframes s1-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 639px) {
	.s1-search-page--searched .s1-search-page__inner {
		max-width: none;
		padding-left: 0;
		padding-right: 0;
	}

	.s1-search-page--searched .s1-results__toolbar {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.s1-search-page--searched .s1-results__list,
	.s1-search-page--searched .s1-results__empty-filter,
	.s1-search-page--searched .s1-results--empty {
		border-left: none;
		border-right: none;
		border-radius: 0;
	}

	.s1-result-card {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.s1-result-card__size,
	.s1-result-card__date,
	.s1-result-card__api {
		display: none;
	}
}

/* 页面 / 文章 */
.s1-read-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	padding: 0;
}

.s1-read-page__toolbar {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--s1-bg);
	border-bottom: 1px solid var(--s1-border);
	padding: 0.625rem 1rem;
}

.s1-read-page__toolbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	max-width: 960px;
	margin: 0 auto;
}

.s1-read-page__brand {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.45rem;
	flex: 1;
	min-width: 0;
	max-width: 100%;
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.s1-read-page__brand:hover {
	color: var(--s1-primary);
}

.s1-read-page__brand:focus-visible {
	outline: 2px solid var(--s1-primary);
	outline-offset: 3px;
	border-radius: 4px;
}

.s1-read-page__brand-icon {
	width: 26px;
	height: 26px;
	border-radius: 5px;
	flex-shrink: 0;
	object-fit: contain;
}

.s1-read-page__brand-name {
	font-size: 1.3125rem;
	font-weight: 600;
	line-height: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.s1-read-page .s1-search-form {
	margin-bottom: 0;
	flex: 0 0 auto;
	width: min(46vw, 260px);
	max-width: 260px;
}

.s1-read-page .s1-search-form__field {
	height: 38px;
}

.s1-read-page .s1-search-form__input {
	padding: 0 0.75rem;
	font-size: 0.875rem;
	line-height: 1;
}

.s1-read-page .s1-search-form__submit {
	width: 30px;
	height: 30px;
	margin-right: 0.25rem;
	border-radius: 5px;
}

.s1-read-page .s1-search-form__submit svg {
	width: 16px;
	height: 16px;
}

@media (min-width: 640px) {
	.s1-read-page .s1-search-form {
		width: 280px;
		max-width: 280px;
	}

	.s1-read-page .s1-search-form__input {
		font-size: 0.9375rem;
	}
}

.s1-read-page__inner {
	flex: 1;
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	padding: 0.75rem 1rem 1.5rem;
}

.s1-read-page__card {
	background: var(--s1-surface);
	border: 1px solid var(--s1-border);
	border-radius: calc(var(--s1-radius) + 4px);
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.04),
		0 8px 24px rgba(15, 23, 42, 0.04);
	overflow: hidden;
}

.s1-read-page__header {
	padding: 1.75rem 1.5rem 1.25rem;
	border-bottom: 1px solid var(--s1-border);
	background: linear-gradient(to bottom, rgba(37, 99, 235, 0.03), transparent);
}

.s1-read-page__title {
	margin: 0;
	font-size: clamp(1.375rem, 4vw, 1.875rem);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.s1-read-page__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.625rem;
	margin-top: 0.875rem;
}

.s1-read-page__date {
	font-size: 0.8125rem;
	color: var(--s1-text-muted);
}

.s1-read-page__meta-sep {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--s1-border);
	flex-shrink: 0;
}

.s1-read-page__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}

.s1-read-page__tag a {
	display: inline-block;
	padding: 0.125rem 0.5rem;
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--s1-primary);
	text-decoration: none;
	background: rgba(37, 99, 235, 0.06);
	border-radius: 999px;
	transition: background 0.15s ease, color 0.15s ease;
}

.s1-read-page__tag a:hover {
	color: #fff;
	background: var(--s1-primary);
}

.s1-read-page__tag a:focus-visible {
	outline: 2px solid var(--s1-primary);
	outline-offset: 2px;
}

.s1-read-page__cover {
	margin: 0;
	border-bottom: 1px solid var(--s1-border);
}

.s1-read-page__cover-img {
	display: block;
	width: 100%;
	height: auto;
}

.s1-read-page__content {
	padding: 1.5rem;
	line-height: 1.85;
	font-size: 1.03125rem;
	color: var(--s1-text);
}

.s1-read-page__content > :first-child {
	margin-top: 0;
}

.s1-read-page__content > :last-child {
	margin-bottom: 0;
}

.s1-read-page__content h2,
.s1-read-page__content h3,
.s1-read-page__content h4 {
	margin: 2em 0 0.75em;
	line-height: 1.35;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.s1-read-page__content h2 {
	font-size: 1.375rem;
	padding-left: 0.75rem;
	border-left: 3px solid var(--s1-primary);
}

.s1-read-page__content h3 {
	font-size: 1.1875rem;
}

.s1-read-page__content p,
.s1-read-page__content ul,
.s1-read-page__content ol,
.s1-read-page__content blockquote,
.s1-read-page__content pre,
.s1-read-page__content table,
.s1-read-page__content .wp-block-image {
	margin: 0 0 1.25em;
}

.s1-read-page__content ul,
.s1-read-page__content ol {
	padding-left: 1.5em;
}

.s1-read-page__content li + li {
	margin-top: 0.375em;
}

.s1-read-page__content a {
	color: var(--s1-primary);
	text-decoration: underline;
	text-decoration-color: rgba(37, 99, 235, 0.35);
	text-underline-offset: 3px;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.s1-read-page__content a:hover {
	color: var(--s1-primary-hover);
	text-decoration-color: currentColor;
}

.s1-read-page__content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--s1-radius);
}

.s1-read-page__content hr {
	margin: 2.5em 0;
	border: 0;
	border-top: 1px solid var(--s1-border);
}

.s1-read-page__content blockquote {
	padding: 0.875rem 1rem;
	border-left: 3px solid var(--s1-primary);
	border-radius: 0 var(--s1-radius) var(--s1-radius) 0;
	background: rgba(37, 99, 235, 0.04);
	color: var(--s1-text-muted);
}

.s1-read-page__content pre,
.s1-read-page__content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.875em;
}

.s1-read-page__content pre {
	padding: 1rem 1.125rem;
	overflow-x: auto;
	background: var(--s1-bg);
	border: 1px solid var(--s1-border);
	border-radius: var(--s1-radius);
}

.s1-read-page__content :not(pre) > code {
	padding: 0.125em 0.375em;
	background: var(--s1-bg);
	border: 1px solid var(--s1-border);
	border-radius: 4px;
}

.s1-read-page__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
	border-radius: var(--s1-radius);
	overflow: hidden;
}

.s1-read-page__content th,
.s1-read-page__content td {
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--s1-border);
	text-align: left;
}

.s1-read-page__content th {
	background: var(--s1-bg);
	font-weight: 600;
}

.s1-read-page__pages {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--s1-border);
	font-size: 0.875rem;
	color: var(--s1-text-muted);
}

.s1-read-page__pages a {
	color: var(--s1-primary);
}

.s1-read-page .s1-site-footer {
	padding-top: 1.25rem;
	padding-left: 1rem;
	padding-right: 1rem;
	padding-bottom: 1rem;
}

@media (max-width: 639px) {
	.s1-read-page__inner {
		max-width: none;
		padding-left: 0;
		padding-right: 0;
	}

	.s1-read-page__card {
		border-left: none;
		border-right: none;
		border-radius: 0;
	}

	.s1-read-page__header {
		padding: 1.25rem 1.125rem 1rem;
	}

	.s1-read-page__content {
		padding: 1.125rem;
		font-size: 1rem;
	}
}


@media (prefers-color-scheme: dark) {
	:root {
		--s1-bg: #0f172a;
		--s1-surface: #1e293b;
		--s1-text: #f1f5f9;
		--s1-text-muted: #94a3b8;
		--s1-border: #334155;
		--s1-primary: #3b82f6;
		--s1-primary-hover: #2563eb;
		--s1-shadow: none;
	}

	.s1-result-card:hover {
		background: rgba(255, 255, 255, 0.03);
	}

	.s1-post-list__item:hover .s1-post-list__link {
		background: linear-gradient(to right, rgba(59, 130, 246, 0.08), transparent);
	}

	.s1-read-page__header {
		background: linear-gradient(to bottom, rgba(59, 130, 246, 0.06), transparent);
	}

	.s1-read-page__tag a {
		background: rgba(59, 130, 246, 0.12);
	}

	.s1-read-page__content blockquote {
		background: rgba(59, 130, 246, 0.06);
	}
}
