/**
 * Sex DH 导航 — 深色主题样式
 *
 * @package Sex_DH_Nav
 */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
	--color-bg: #eef0f5;
	--color-bg-elevated: #ffffff;
	--color-bg-card: #ffffff;
	--color-bg-card-hover: #f8f9fc;
	--color-header: #1e2230;
	--color-border: #e2e6ef;
	--color-text: #1f2430;
	--color-text-muted: #6b7287;
	--color-accent: #ff9900;
	--color-accent-hover: #e68a00;
	--color-accent-soft: rgba(255, 153, 0, 0.12);
	--color-badge: #ff9800;
	--color-badge-featured: #e94560;
	--color-link: #2563eb;
	--color-link-hover: #1d4ed8;
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 14px;
	--shadow-card: 0 2px 12px rgba(30, 34, 48, 0.08);
	--transition: 0.2s ease;
	--container-width: 1200px;
	--header-height: 56px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-link);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover,
a:focus {
	color: var(--color-link-hover);
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	line-height: 1.3;
	font-weight: 600;
}

p {
	margin: 0 0 1em;
}

.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;
}

.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Top Bar
   -------------------------------------------------------------------------- */
.top-bar {
	background: var(--color-header);
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.8125rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 36px;
	flex-wrap: wrap;
}

.top-bar__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.top-bar__links a {
	color: rgba(255, 255, 255, 0.85);
}

.top-bar__links a:hover {
	color: #fff;
}

.top-bar__tagline {
	margin: 0;
	color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--color-header);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: var(--header-height);
	flex-wrap: wrap;
}

.site-branding {
	flex-shrink: 0;
}

.site-branding .custom-logo-link {
	display: block;
	line-height: 0;
}

.site-branding .custom-logo {
	max-height: 48px;
	width: auto;
}

.site-title {
	font-size: 1.375rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.02em;
}

.site-title:hover {
	color: var(--color-accent-hover);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 8px;
	background: transparent;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.nav-toggle__bar {
	display: block;
	width: 100%;
	height: 2px;
	background: #fff;
	border-radius: 1px;
	transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle {
	border-color: rgba(255, 255, 255, 0.25);
}

.primary-nav {
	flex: 1;
}

.primary-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav__list {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.primary-nav__list::-webkit-scrollbar {
	display: none;
}

.primary-nav__list a {
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.875rem;
	font-weight: 500;
	white-space: nowrap;
}

.primary-nav__list a:hover,
.primary-nav__list .current-menu-item a,
.primary-nav__list .current_page_item a {
	color: #fff;
}

/* --------------------------------------------------------------------------
   Main Layout
   -------------------------------------------------------------------------- */
.site-main {
	min-height: calc(100vh - var(--header-height) - 160px);
	margin-bottom: 0;
	padding-bottom: 0;
}

.section {
	padding: 40px 0;
}

.section--seo {
	padding-top: 20px;
	border-top: 1px solid var(--color-border);
}

.section__title {
	font-size: 1.375rem;
	margin-bottom: 24px;
	color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
	padding: 28px 0 20px;
	text-align: center;
	background: var(--color-bg-elevated);
	border-bottom: 1px solid var(--color-border);
}

.hero--compact {
	padding: 24px 0 16px;
}

.hero__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	margin-bottom: 8px;
	color: var(--color-text);
}

.hero__subtitle {
	font-size: 0.9375rem;
	color: var(--color-text-muted);
	max-width: 560px;
	margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Search Panel
   -------------------------------------------------------------------------- */
.search-panel {
	padding: 20px 0;
	background: var(--color-bg-elevated);
	border-bottom: 1px solid var(--color-border);
}

.search-panel__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.search-panel__tab {
	padding: 6px 14px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--color-text-muted);
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: 20px;
	cursor: pointer;
	transition: all var(--transition);
}

.search-panel__tab:hover,
.search-panel__tab.is-active {
	color: #fff;
	background: var(--color-accent);
	border-color: var(--color-accent);
}

.search-panel__form {
	display: flex;
	gap: 10px;
	max-width: 720px;
}

.search-panel__input {
	flex: 1;
	padding: 12px 16px;
	font-size: 0.9375rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	outline: none;
}

.search-panel__input:focus {
	border-color: var(--color-accent);
}

.search-panel__submit {
	padding: 12px 24px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #fff;
	background: var(--color-accent);
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.search-panel__submit:hover {
	background: var(--color-accent-hover);
}

/* --------------------------------------------------------------------------
   Notice Bar
   -------------------------------------------------------------------------- */
.notice-bar {
	background: #fff8e6;
	border-bottom: 1px solid #ffe4a8;
	overflow: hidden;
}

.notice-bar__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 40px;
}

.notice-bar__label {
	flex-shrink: 0;
	padding: 2px 8px;
	font-size: 0.75rem;
	font-weight: 700;
	color: #fff;
	background: var(--color-badge);
	border-radius: 4px;
}

.notice-bar__track {
	overflow: hidden;
	flex: 1;
}

.notice-bar__list {
	display: flex;
	gap: 48px;
	list-style: none;
	margin: 0;
	padding: 0;
	animation: notice-scroll 30s linear infinite;
	white-space: nowrap;
}

.notice-bar__item {
	font-size: 0.875rem;
	color: #8a6d1a;
}

@keyframes notice-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Hot Tabs
   -------------------------------------------------------------------------- */
.hot-tabs {
	padding: 24px 0;
	background: var(--color-bg);
}

.hot-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
	border-bottom: 2px solid var(--color-border);
	padding-bottom: 12px;
}

.hot-tabs__btn {
	padding: 8px 18px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--color-text-muted);
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -14px;
	cursor: pointer;
}

.hot-tabs__btn.is-active {
	color: var(--color-accent);
	border-bottom-color: var(--color-accent);
}

.hot-tabs__panel {
	display: none;
}

.hot-tabs__panel.is-active {
	display: block;
}

.hot-tabs__empty {
	color: var(--color-text-muted);
	text-align: center;
	padding: 24px;
}

/* --------------------------------------------------------------------------
   Nav Block (Category Section)
   -------------------------------------------------------------------------- */
.home-sections {
	padding: 8px 0 0;
}

.nav-block {
	margin-bottom: 20px;
	padding: 20px;
	background: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
}

.nav-block__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--color-accent);
}

.nav-block__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0;
	color: var(--color-text);
}

.nav-block__icon {
	font-size: 1.25rem;
}

.nav-block__more {
	flex-shrink: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-text-muted);
}

.nav-block__more:hover {
	color: var(--color-accent);
}

.nav-block__desc {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	margin: -4px 0 12px;
}

/* --------------------------------------------------------------------------
   Site List & Item (compact)
   -------------------------------------------------------------------------- */
.site-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 10px;
}

.site-list--hot {
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.site-item {
	margin: 0;
}

.site-item__link {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	color: var(--color-text);
	transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-item__link:hover {
	background: var(--color-bg-card-hover);
	border-color: rgba(233, 69, 96, 0.35);
	box-shadow: var(--shadow-card);
	color: var(--color-text);
}

.site-item__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	font-size: 1.125rem;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, var(--color-accent) 0%, #ff7b54 100%);
	border-radius: 10px;
	overflow: hidden;
}

.site-item__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.site-item__body {
	flex: 1;
	min-width: 0;
}

.site-item__title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
}

.site-item__tag {
	font-style: normal;
	font-size: 0.6875rem;
	font-weight: 700;
	padding: 1px 6px;
	color: #fff;
	background: var(--color-badge);
	border-radius: 4px;
	line-height: 1.5;
}

.site-item__tag--featured {
	background: var(--color-badge-featured);
}

.site-item__title {
	font-size: 0.9375rem;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-item__desc {
	display: block;
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.site-item__heat {
	flex-shrink: 0;
	align-self: center;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--color-badge);
	padding: 4px 8px;
	background: rgba(255, 152, 0, 0.12);
	border-radius: 12px;
}

/* --------------------------------------------------------------------------
   Category Grid
   -------------------------------------------------------------------------- */
.category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
}

.category-grid__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 24px 16px;
	background: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	text-align: center;
	color: var(--color-text);
	transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.category-grid__item:hover {
	background: var(--color-bg-card-hover);
	border-color: var(--color-accent);
	transform: translateY(-2px);
	color: var(--color-text);
}

.category-grid__icon {
	font-size: 2rem;
	line-height: 1;
}

.category-grid__name {
	font-size: 1rem;
	font-weight: 600;
}

.category-grid__count {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Site Grid & Cards
   -------------------------------------------------------------------------- */
.site-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.site-card {
	margin: 0;
}

.site-card__link {
	display: block;
	height: 100%;
	background: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	color: var(--color-text);
	transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.site-card__link:hover {
	background: var(--color-bg-card-hover);
	border-color: rgba(233, 69, 96, 0.4);
	box-shadow: var(--shadow-card);
	transform: translateY(-3px);
	color: var(--color-text);
}

.site-card__thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--color-bg-elevated);
	overflow: hidden;
}

.site-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.site-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--color-accent);
	background: var(--color-accent-soft);
}

.site-card__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 3px 10px;
	font-size: 0.75rem;
	font-weight: 600;
	color: #1a1e28;
	background: var(--color-badge);
	border-radius: 20px;
	line-height: 1.4;
}

.site-card__badge--featured {
	color: #fff;
	background: var(--color-badge-featured);
}

.site-card__body {
	padding: 16px;
}

.site-card__title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 6px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-card__excerpt {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Archive Header
   -------------------------------------------------------------------------- */
.archive-header {
	padding: 40px 0 32px;
	text-align: center;
}

.archive-header__icon {
	font-size: 3rem;
	margin-bottom: 12px;
}

.archive-header__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-bottom: 12px;
}

.archive-header__desc {
	color: var(--color-text-muted);
	max-width: 640px;
	margin: 0 auto 12px;
}

.archive-header__desc p:last-child {
	margin-bottom: 0;
}

.archive-header__count {
	font-size: 0.875rem;
	color: var(--color-text-muted);
	margin: 0;
}

/* --------------------------------------------------------------------------
   Single Site
   -------------------------------------------------------------------------- */
.single-site {
	max-width: 760px;
	margin: 0 auto;
	padding: 40px 0;
}

.single-site__header {
	margin-bottom: 24px;
}

.single-site__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.single-site__term {
	padding: 4px 12px;
	font-size: 0.8125rem;
	color: var(--color-accent);
	background: var(--color-accent-soft);
	border-radius: 20px;
}

.single-site__term:hover {
	color: var(--color-accent-hover);
}

.single-site__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-bottom: 8px;
}

.single-site__badge {
	display: inline-block;
	padding: 4px 12px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #fff;
	background: var(--color-badge-featured);
	border-radius: 20px;
}

.single-site__thumb {
	margin-bottom: 24px;
	border-radius: var(--radius-md);
	overflow: hidden;
	border: 1px solid var(--color-border);
}

.single-site__content {
	color: var(--color-text-muted);
	margin-bottom: 32px;
}

.single-site__content p:last-child {
	margin-bottom: 0;
}

.single-site__actions {
	text-align: center;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
	display: inline-block;
	padding: 12px 28px;
	font-size: 0.9375rem;
	font-weight: 600;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: background var(--transition), color var(--transition), border-color var(--transition);
	text-align: center;
	border: none;
}

.btn--primary {
	color: #fff;
	background: var(--color-accent);
}

.btn--primary:hover {
	background: var(--color-accent-hover);
	color: #fff;
}

.btn--secondary {
	color: var(--color-text);
	background: transparent;
	border: 1px solid var(--color-border);
}

.btn--secondary:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Search Form
   -------------------------------------------------------------------------- */
.search-form {
	display: flex;
	gap: 12px;
	max-width: 520px;
	margin: 0 auto 32px;
}

.search-form__input {
	flex: 1;
	padding: 12px 16px;
	font-size: 1rem;
	color: var(--color-text);
	background: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	outline: none;
}

.search-form__input:focus {
	border-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Pagination (WordPress)
   -------------------------------------------------------------------------- */
.nav-pagination {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.nav-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	margin: 0 4px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-text-muted);
	background: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.nav-pagination .page-numbers:hover {
	color: var(--color-text);
	background: var(--color-bg-card-hover);
	border-color: var(--color-accent);
}

.nav-pagination .page-numbers.current {
	color: #fff;
	background: var(--color-accent);
	border-color: var(--color-accent);
	cursor: default;
}

.nav-pagination .page-numbers.dots {
	background: transparent;
	border-color: transparent;
	cursor: default;
}

.nav-pagination .page-numbers.dots:hover {
	color: var(--color-text-muted);
	background: transparent;
	border-color: transparent;
}

.nav-pagination .prev,
.nav-pagination .next {
	padding: 0 16px;
}

/* --------------------------------------------------------------------------
   SEO Block
   -------------------------------------------------------------------------- */
.seo-block {
	max-width: 800px;
	margin: 0 auto;
	padding: 32px;
	background: var(--color-bg-elevated);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
}

.seo-block__title {
	font-size: 1.25rem;
	margin-bottom: 16px;
}

.seo-block__content {
	color: var(--color-text-muted);
	font-size: 0.9375rem;
	line-height: 1.75;
}

.seo-block__content p:last-child {
	margin-bottom: 0;
}

.seo-widgets {
	margin-top: 24px;
}

/* --------------------------------------------------------------------------
   Footer (layout overrides)
   -------------------------------------------------------------------------- */
.site-footer {
	padding: 0;
	background: #fff;
	border-top: 1px solid #eee;
	color: #666;
}

.friend-links {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.friend-links__title {
	display: block;
	font-size: 0.875rem;
	margin-bottom: 8px;
	color: rgba(255, 255, 255, 0.9);
}

.friend-links__content {
	font-size: 0.8125rem;
	line-height: 1.8;
}

.friend-links__content a {
	color: rgba(255, 255, 255, 0.75);
}

.friend-links__content a:hover {
	color: #fff;
}

.footer-widgets {
	margin-bottom: 24px;
}

.site-footer__bottom {
	text-align: center;
}

.site-footer__notice {
	font-size: 0.8125rem;
	margin-bottom: 8px;
}

.site-footer__copy {
	font-size: 0.8125rem;
	margin: 0;
	opacity: 0.85;
}

.site-footer__copy a {
	color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.error-404 {
	text-align: center;
	padding: 80px 0;
}

.error-404__code {
	font-size: 6rem;
	font-weight: 800;
	color: var(--color-accent);
	line-height: 1;
	margin-bottom: 16px;
	opacity: 0.8;
}

.error-404__title {
	font-size: 1.5rem;
	margin-bottom: 12px;
}

.error-404__text {
	color: var(--color-text-muted);
	margin-bottom: 32px;
}

.error-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

/* --------------------------------------------------------------------------
   No Results
   -------------------------------------------------------------------------- */
.no-results {
	text-align: center;
	padding: 48px 20px;
	color: var(--color-text-muted);
	font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Entry Content
   -------------------------------------------------------------------------- */
.entry-content a {
	color: var(--color-link);
	text-decoration: underline;
}

.entry-content a:hover {
	color: var(--color-link-hover);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
	.site-header__inner {
		flex-wrap: wrap;
		padding: 12px 0;
	}

	.nav-toggle {
		display: flex;
		margin-left: auto;
	}

	.primary-nav {
		display: none;
		width: 100%;
		order: 4;
	}

	.primary-nav.is-open {
		display: block;
		padding: 12px;
		background: rgba(0, 0, 0, 0.25);
		border-radius: var(--radius-sm);
	}

	.primary-nav__list {
		flex-direction: column;
		gap: 0;
		padding: 12px 0;
	}

	.primary-nav__list a {
		display: block;
		padding: 10px 0;
		border-bottom: 1px solid var(--color-border);
	}

	.search-panel__form {
		flex-direction: column;
	}

	.site-list,
	.site-list--hot {
		grid-template-columns: 1fr;
	}

	.hero {
		padding: 20px 0 12px;
	}

	.section {
		padding: 28px 0;
	}

	.category-grid {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
		gap: 12px;
	}

	.site-grid {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
		gap: 16px;
	}

	.search-form {
		flex-direction: column;
	}

	.nav-pagination .page-numbers {
		min-width: 36px;
		height: 36px;
		padding: 0 8px;
		margin: 0 2px;
		font-size: 0.8125rem;
	}

	.error-404__code {
		font-size: 4rem;
	}
}

@media (max-width: 480px) {
	.site-grid {
		grid-template-columns: 1fr;
	}

	.category-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
