/**
 * 侧栏布局 — 对齐第一福利导航
 *
 * @package Sex_DH_Nav
 */

:root {
	--sidebar-width: 200px;
	--color-sidebar: #2c2c2c;
	--color-sidebar-hover: #383838;
	--color-sidebar-active: rgba(255, 153, 0, 0.15);
	--color-sidebar-text: rgba(255, 255, 255, 0.85);
	--color-accent-orange: #ff9900;
	--color-accent: #ff9900;
	--color-accent-hover: #e68a00;
	--color-page-bg: #f5f5f5;
	--color-panel: #ffffff;
	--color-border-light: #eee;
	--shadow-panel: 0 1px 2px rgba(0, 0, 0, 0.04);
	--radius-card: 8px;
}

body {
	background: var(--color-page-bg);
	font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========== Layout ========== */
.site-layout {
	display: flex;
	min-height: 100vh;
}

.site-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 200;
	width: var(--sidebar-width);
	height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--color-sidebar);
	color: var(--color-sidebar-text);
}

.site-sidebar__brand {
	padding: 16px 14px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-sidebar__title {
	display: block;
	text-decoration: none;
}

.site-sidebar__logo-line {
	display: block;
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1.25;
}

.site-sidebar__title-accent {
	color: var(--color-accent-orange);
}

.site-sidebar__title-rest {
	color: #fff;
}

.site-sidebar .custom-logo {
	max-height: 36px;
}

.sidebar-nav {
	flex: 1;
	overflow-y: auto;
	padding: 6px 0 12px;
	scrollbar-width: thin;
}

.sidebar-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar-nav__list a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	font-size: 0.8125rem;
	color: var(--color-sidebar-text);
	border-left: 3px solid transparent;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sidebar-nav__list a:hover {
	background: var(--color-sidebar-hover);
	color: #fff;
}

.sidebar-nav__list .current-menu-item a,
.sidebar-nav__list a:focus-visible {
	background: var(--color-sidebar-active);
	border-left-color: var(--color-accent-orange);
	color: #fff;
}

.sidebar-nav__icon {
	width: 18px;
	text-align: center;
	font-size: 0.875rem;
	opacity: 0.9;
}

.sidebar-nav__text {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sidebar-nav__list--util {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-content {
	flex: 1;
	margin-left: var(--sidebar-width);
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1;
	margin-bottom: 0;
	padding-bottom: 0;
}

/* ========== Top bar ========== */
.main-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 46px;
	padding: 0 16px;
	background: #fafafa;
	border-bottom: 1px solid var(--color-border-light);
}

.main-topbar__left {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	flex: 1;
}

.main-topbar__menu {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 32px;
	height: 32px;
	padding: 6px;
	background: none;
	border: none;
	cursor: pointer;
	flex-shrink: 0;
}

.main-topbar__menu span {
	display: block;
	width: 100%;
	height: 2px;
	background: #666;
	border-radius: 1px;
}

.main-topbar__list {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-topbar__list a {
	font-size: 0.8125rem;
	color: #666;
	white-space: nowrap;
}

.main-topbar__list a:hover,
.main-topbar__list .current-menu-item a {
	color: var(--color-accent-orange);
}

.main-topbar__list .menu-item-highlight a {
	color: var(--color-accent-orange);
	font-weight: 600;
}

.main-topbar__right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.main-topbar__quote {
	margin: 0;
	font-size: 0.75rem;
	color: #999;
	max-width: 260px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.main-topbar__search {
	display: flex;
	color: #888;
}

/* ========== Hero ========== */
.hero-banner {
	position: relative;
	min-height: 320px;
	background: #333 center/cover no-repeat;
	background-image: var(--hero-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px 32px;
}

.hero-banner__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.hero-banner__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 640px;
}

.search-hero__groups {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 20px;
	margin-bottom: 14px;
}

.search-hero__group {
	padding: 6px 2px;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.75);
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	cursor: pointer;
}

.search-hero__group.is-active {
	color: #fff;
	font-weight: 600;
	border-bottom-color: #fff;
}

.search-hero__form {
	display: flex;
	align-items: center;
	background: rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 28px;
	overflow: hidden;
	backdrop-filter: blur(8px);
	margin-bottom: 10px;
}

.search-hero__input {
	flex: 1;
	padding: 13px 20px;
	font-size: 0.9375rem;
	color: #fff;
	background: transparent;
	border: none;
	outline: none;
}

.search-hero__input::placeholder {
	color: rgba(255, 255, 255, 0.55);
}

.search-hero__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 18px;
	color: rgba(255, 255, 255, 0.85);
	background: transparent;
	border: none;
	cursor: pointer;
}

.search-hero__engines {
	display: none;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 16px;
}

.search-hero__engines.is-active {
	display: flex;
}

.search-hero__engine {
	padding: 0;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.8);
	background: none;
	border: none;
	cursor: pointer;
}

.search-hero__engine:hover,
.search-hero__engine.is-active {
	color: #fff;
	text-decoration: underline;
}

.hero-banner__notice {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 14px auto 0;
	padding: 6px 16px;
	max-width: 100%;
	background: rgba(0, 0, 0, 0.4);
	border-radius: 20px;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(4px);
}

.hero-banner__notice-icon {
	flex-shrink: 0;
}

.hero-banner__notice-track {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* ========== Panels ========== */
.home-body {
	padding: 12px 14px 24px;
}

.home-sections {
	padding-bottom: 0;
}

.panel-box {
	background: var(--color-panel);
	border: none;
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-panel);
	margin-bottom: 10px;
	padding: 14px 16px;
}

.panel-box__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.panel-box__head--tabs {
	margin-bottom: 10px;
	border-bottom: 1px solid var(--color-border-light);
	padding-bottom: 0;
}

.panel-box__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
}

.panel-box__tab {
	padding: 8px 2px;
	font-size: 0.875rem;
	font-weight: 500;
	color: #888;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	cursor: pointer;
}

.panel-box__tab.is-active {
	color: var(--color-accent-orange);
	border-bottom-color: var(--color-accent-orange);
	font-weight: 600;
}

.my-nav__manage {
	flex-shrink: 0;
	padding: 5px 12px;
	font-size: 0.75rem;
	font-weight: 600;
	color: #fff;
	background: #e74c3c;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

.my-nav__manage:hover {
	background: #c0392b;
}

.my-nav__panel {
	min-height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px dashed #ddd;
	border-radius: 6px;
	background: #fafafa;
}

.my-nav__panel:not(.is-active) {
	display: none;
}

.my-nav__empty {
	margin: 0;
	font-size: 0.8125rem;
	color: #aaa;
}

/* ========== Mini grid (6 col) ========== */
.hot-tabs__panel {
	display: none;
}

.hot-tabs__panel.is-active {
	display: block;
}

.hot-tabs__empty {
	text-align: center;
	color: #999;
	font-size: 0.875rem;
	padding: 20px;
}

.site-mini-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
}

.site-mini__link {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 10px;
	min-height: 64px;
	background: #fff;
	border: 1px solid #f0f0f0;
	border-radius: var(--radius-card);
	color: #333;
	transition: box-shadow 0.15s, transform 0.15s;
}

.site-mini__link:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
}

.site-mini__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9375rem;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #6c5ce7, #a29bfe);
	border-radius: 8px;
	overflow: hidden;
}

.site-mini:nth-child(6n+2) .site-mini__icon {
	background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
}

.site-mini:nth-child(6n+3) .site-mini__icon {
	background: linear-gradient(135deg, #1dd1a1, #10ac84);
}

.site-mini:nth-child(6n+4) .site-mini__icon {
	background: linear-gradient(135deg, #ff9f43, #feca57);
}

.site-mini:nth-child(6n+5) .site-mini__icon {
	background: linear-gradient(135deg, #54a0ff, #2e86de);
}

.site-mini:nth-child(6n+6) .site-mini__icon {
	background: linear-gradient(135deg, #ff9ff3, #f368e0);
}

.site-mini__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.site-mini__body {
	min-width: 0;
}

.site-mini__title {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-mini__title strong {
	font-weight: 600;
}

.site-mini__tag {
	font-style: normal;
	font-size: 0.625rem;
	padding: 0 4px;
	margin-right: 2px;
	color: #fff;
	background: #e74c3c;
	border-radius: 2px;
	vertical-align: middle;
}

.site-mini__desc {
	display: -webkit-box;
	font-size: 0.6875rem;
	color: #aaa;
	line-height: 1.4;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ========== 站长推荐模块 ========== */
.editor-pick {
	padding: 14px 16px 18px;
}

.editor-pick__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.editor-pick__title {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
	color: #333;
}

.editor-pick__title-icon {
	font-size: 1.125rem;
}

.editor-pick__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.editor-pick__tab {
	padding: 6px 16px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #666;
	background: #f0f0f0;
	border: none;
	border-radius: 20px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.editor-pick__tab.is-active {
	color: #fff;
	background: #e74c3c;
	font-weight: 600;
}

.editor-pick__panel {
	display: none;
}

.editor-pick__panel.is-active {
	display: block;
}

.editor-pick__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding-top: 4px;
	margin: 0 -4px;
}

.editor-pick__grid {
	display: flex;
	gap: 14px;
	min-width: min-content;
	padding: 0 4px 4px;
}

.editor-pick__col {
	flex: 0 0 168px;
	width: 168px;
}

.editor-pick__empty {
	text-align: center;
	color: #999;
	font-size: 0.875rem;
	padding: 24px;
}

/* 站长推荐 — 纯图片卡 */
.site-pick-card {
	position: relative;
}

.site-pick-card__link {
	display: block;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	transition: transform 0.2s, box-shadow 0.2s;
}

.site-pick-card__link:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.site-pick-card__img {
	display: block;
	width: 100%;
	height: auto;
}

/* ========== 面包屑 ========== */
.breadcrumb {
	margin-bottom: 14px;
}

.breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.75rem;
	color: #999;
}

.breadcrumb__link {
	color: #666;
	text-decoration: none;
}

.breadcrumb__link:hover {
	color: var(--color-accent-orange, #ff9900);
}

.breadcrumb__current {
	color: #333;
	font-weight: 600;
}

.breadcrumb__sep {
	color: #ccc;
}

/* ========== 站点详情页 ========== */
.site-detail {
	margin-bottom: 12px;
}

.site-detail__hero {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin-bottom: 14px;
}

.site-detail__icon {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #ff9900, #ff6b35);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(255, 120, 0, 0.25);
}

.site-detail__icon-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.site-detail__icon-letter {
	line-height: 1;
}

.site-detail__intro {
	flex: 1;
	min-width: 0;
}

.site-detail__title {
	margin: 0 0 8px;
	font-size: 1.375rem;
	font-weight: 800;
	color: #222;
	line-height: 1.3;
}

.site-detail__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.site-detail__pill {
	display: inline-block;
	padding: 2px 10px;
	font-size: 0.6875rem;
	font-weight: 600;
	color: #666;
	background: #f3f3f3;
	border-radius: 12px;
}

.site-detail__pill--featured {
	color: #fff;
	background: #e74c3c;
}

.site-detail__pill--heat {
	color: #c05621;
	background: #fff3e6;
}

.site-detail__lead {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.65;
	color: #666;
}

.site-detail__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.site-detail__term {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 12px;
	font-size: 0.75rem;
	color: #666;
	background: #f7f7f7;
	border: 1px solid #eee;
	border-radius: 16px;
	text-decoration: none;
}

.site-detail__term:hover {
	color: var(--color-accent-orange, #ff9900);
	border-color: #ffd9a8;
}

.site-detail__thumb {
	margin-bottom: 16px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #eee;
}

.site-detail__thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.site-detail__content {
	margin-bottom: 18px;
	font-size: 0.875rem;
	line-height: 1.75;
	color: #555;
}

.site-detail__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding-top: 6px;
	border-top: 1px solid #f0f0f0;
}

.site-detail__visit {
	min-width: 180px;
	text-align: center;
}

.site-detail__url {
	margin: 0;
	font-size: 0.75rem;
	color: #999;
	word-break: break-all;
}

.site-detail__url code {
	font-size: 0.75rem;
	color: #666;
	background: #f7f7f7;
	padding: 2px 6px;
	border-radius: 4px;
}

.site-detail__empty-url {
	margin: 0;
	font-size: 0.8125rem;
	color: #999;
}

.site-detail__back {
	font-size: 0.8125rem;
}

.site-detail-related {
	margin-bottom: 12px;
}

.site-detail-related__head {
	margin-bottom: 12px;
}

.site-detail-related__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #333;
}

.btn--ghost {
	display: inline-block;
	padding: 8px 18px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #666;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 20px;
	text-decoration: none;
	transition: border-color 0.15s, color 0.15s;
}

.btn--ghost:hover {
	color: var(--color-accent-orange, #ff9900);
	border-color: #ffc266;
}

.archive-panel .archive-header {
	margin-bottom: 16px;
}

.archive-panel .archive-header__title {
	color: #222;
}

.archive-panel .archive-header__desc,
.archive-panel .archive-header__count {
	color: #888;
}

.archive-panel .search-form--page {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.archive-panel .search-form__input {
	flex: 1;
	min-width: 200px;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 0.875rem;
}

/* ========== APP 详情页 ========== */
.app-detail {
	max-width: 920px;
	margin-left: auto;
	margin-right: auto;
}

.app-detail__top {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	margin-bottom: 18px;
}

.app-detail__icon-wrap {
	flex: 0 0 120px;
}

.app-detail__icon {
	display: block;
	width: 120px;
	height: 120px;
	border-radius: 22px;
	object-fit: cover;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.app-detail__icon--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(135deg, #ff9900, #ff5722);
}

.app-detail__info {
	flex: 1;
	min-width: 0;
}

.app-detail__title {
	margin: 0 0 8px;
	font-size: 1.5rem;
	font-weight: 800;
	color: #222;
}

.app-detail__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 6px;
}

.app-detail__badge {
	display: inline-block;
	padding: 2px 8px;
	font-size: 0.6875rem;
	font-weight: 600;
	border-radius: 3px;
	color: #fff;
	background: #666;
}

.app-detail__badge--official {
	background: #333;
}

.app-detail__badge--noads {
	color: #1976d2;
	background: #e3f2fd;
}

.app-detail__badge--hot {
	background: #e74c3c;
}

.app-detail__updated {
	margin: 0 0 8px;
	font-size: 0.75rem;
	color: #999;
}

.app-detail__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin-bottom: 8px;
	font-size: 0.75rem;
	line-height: 1.6;
}

.app-detail__tag {
	color: #1976d2;
	text-decoration: none;
}

.app-detail__tag:hover {
	text-decoration: underline;
	color: #ff9900;
}

.app-detail__spec {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
	font-size: 0.75rem;
	color: #888;
}

.app-detail__platform {
	margin-left: 4px;
	font-size: 1rem;
}

.app-detail__cta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.app-detail__download {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 28px;
	font-size: 0.9375rem;
	font-weight: 700;
	color: #fff;
	background: #e74c3c;
	border-radius: 4px;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(231, 76, 60, 0.35);
	transition: background 0.15s, transform 0.15s;
}

.app-detail__download:hover {
	background: #c0392b;
	color: #fff;
	transform: translateY(-1px);
}

.app-detail__like {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 10px 16px;
	font-size: 0.875rem;
	color: #e91e63;
	background: #fff;
	border: 1px solid #f8bbd0;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.15s;
}

.app-detail__like:hover,
.app-detail__like.is-liked {
	background: #fce4ec;
}

.app-detail__like-count {
	font-style: normal;
	font-weight: 700;
}

.app-detail__stats {
	margin: 0;
	font-size: 0.75rem;
	color: #999;
}

.app-detail__mobile {
	margin-left: 8px;
	color: #1976d2;
	text-decoration: none;
}

.app-detail__mobile:hover {
	color: #ff9900;
}

.app-detail__promo {
	margin-bottom: 16px;
	border-radius: 8px;
	overflow: hidden;
}

.app-detail__promo img {
	display: block;
	width: 100%;
	height: auto;
}

.app-detail__desc {
	margin-bottom: 16px;
	font-size: 0.875rem;
	line-height: 1.85;
	color: #555;
}

.app-detail__desc p {
	margin: 0 0 10px;
}

.app-detail__desc strong,
.app-detail__desc b {
	color: #e74c3c;
	font-weight: 600;
}

.app-detail__more-wrap {
	text-align: center;
	margin-bottom: 8px;
}

.app-detail__more {
	display: inline-block;
	padding: 10px 32px;
	font-size: 0.875rem;
	color: #1976d2;
	background: #fff;
	border: 1px solid #90caf9;
	border-radius: 24px;
	text-decoration: none;
	transition: border-color 0.15s, color 0.15s;
}

.app-detail__more:hover {
	color: #ff9900;
	border-color: #ffc266;
}

.site-detail-related--app {
	max-width: 920px;
	margin-left: auto;
	margin-right: auto;
}

.related-app-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 14px 12px;
}

.related-app {
	position: relative;
}

.related-app__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: #333;
}

.related-app__ribbon {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	padding: 2px 6px;
	font-size: 0.625rem;
	font-weight: 700;
	color: #fff;
	background: #e74c3c;
	border-radius: 0 0 6px 0;
}

.related-app__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 6px;
	border-radius: 16px;
	overflow: hidden;
	background: #f5f5f5;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.related-app__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.related-app__letter {
	font-size: 1.5rem;
	font-weight: 700;
	color: #ff9900;
}

.related-app__title {
	display: block;
	font-size: 0.75rem;
	line-height: 1.35;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.related-app__link:hover .related-app__title {
	color: #ff9900;
}

@media (max-width: 768px) {
	.app-detail__top {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.app-detail__info {
		width: 100%;
	}

	.app-detail__tags,
	.app-detail__spec,
	.app-detail__cta-row {
		justify-content: center;
	}

	.app-detail__stats {
		text-align: center;
	}
}

/* ========== Nav blocks ========== */
.nav-block__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--color-border-light);
}

.nav-block__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 1rem;
	font-weight: 700;
	color: #333;
	margin: 0;
}

.nav-block__icon {
	font-size: 1.125rem;
}

.nav-block__sub,
.nav-block__update {
	font-size: 0.75rem;
	font-weight: 400;
	color: #999;
}

.nav-block__update {
	margin-left: auto;
}

.nav-block__more {
	flex-shrink: 0;
	font-size: 0.75rem;
	color: #999;
	padding-top: 4px;
}

.nav-block__more:hover {
	color: var(--color-accent-orange);
}

/* ========== APP grid (4 col) ========== */
.site-app-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.site-app__link {
	display: flex;
	gap: 12px;
	padding: 12px;
	background: #fafafa;
	border: 1px solid var(--color-border-light);
	border-radius: 8px;
	color: #333;
	transition: box-shadow 0.15s;
}

.site-app__link:hover {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	border-color: #ffc966;
}

.site-app__thumb {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	overflow: hidden;
	background: #eee;
}

.site-app__img,
.site-app__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.site-app__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-accent-orange);
	background: #fff3e0;
}

.site-app__body {
	flex: 1;
	min-width: 0;
}

.site-app__title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin-bottom: 4px;
}

.site-app__tag {
	font-style: normal;
	font-size: 0.625rem;
	padding: 1px 5px;
	color: #fff;
	background: #ff9800;
	border-radius: 3px;
}

.site-app__tag--hot {
	background: #e74c3c;
}

.site-app__title {
	font-size: 0.875rem;
	font-weight: 600;
}

.site-app__desc {
	display: block;
	font-size: 0.75rem;
	color: #888;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.site-app__meta {
	display: flex;
	gap: 12px;
	margin-top: 6px;
}

.site-app__stat {
	font-size: 0.6875rem;
	color: #aaa;
}

.home-sections .panel-box.nav-block {
	padding: 14px 16px 16px;
}

/* ========== Float tools ========== */
.float-tools {
	position: fixed;
	right: 16px;
	bottom: 24px;
	z-index: 150;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.float-tools__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	font-size: 1rem;
	line-height: 1;
	color: #666;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s;
}

.float-tools__btn:hover {
	transform: scale(1.06);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	color: #333;
}

.float-tools__btn span {
	pointer-events: none;
}

/* ========== Footer ========== */
.site-footer {
	margin-top: auto;
	padding: 0;
	background: #fff;
	color: #666;
	font-size: 0.75rem;
	line-height: 1.8;
	border-top: 1px solid #eee;
}

.friend-links {
	padding: 16px 16px 14px;
	background: #fff;
}

.friend-links__head {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px;
	font-size: 0.875rem;
	font-weight: 700;
	color: #333;
}

.friend-links__icon {
	font-size: 0.9375rem;
	line-height: 1;
}

.friend-links__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
}

.friend-links__link {
	color: #666;
	text-decoration: none;
}

.friend-links__link:hover {
	color: var(--color-accent-orange, #ff9900);
}

.friend-links__dot {
	color: #bbb;
	user-select: none;
}

.friend-links__content {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	font-size: 0.8125rem;
}

.friend-links__content a {
	color: #666;
	text-decoration: none;
}

.friend-links__content a:hover {
	color: var(--color-accent-orange, #ff9900);
}

.site-footer__bar {
	padding: 12px 16px 16px;
	background: #f7f7f7;
	border-top: 1px solid #efefef;
}

.site-footer__meta {
	margin: 0;
	color: #888;
	font-size: 0.75rem;
	line-height: 1.85;
}

.site-footer__meta a {
	color: #666;
	text-decoration: none;
}

.site-footer__meta a:hover {
	color: var(--color-accent-orange, #ff9900);
}

.site-footer__sep {
	margin: 0 6px;
	color: #ccc;
}

.site-footer__links,
.site-footer__notice,
.site-footer__domain {
	margin-left: 8px;
}

.site-footer__domain em {
	font-style: normal;
	color: #555;
}

html.theme-dark .site-layout {
	filter: brightness(0.92);
}

/* ========== Misc ========== */
.top-bar,
.site-header {
	display: none !important;
}

.sidebar-toggle {
	display: none;
}

.sidebar-overlay {
	position: fixed;
	inset: 0;
	z-index: 190;
	background: rgba(0, 0, 0, 0.5);
}

.site-main > .container {
	padding: 14px;
}

.section--seo {
	padding: 0 14px 20px;
}

.section--seo .seo-block {
	background: #fff;
	border-radius: 8px;
	padding: 16px;
	border: 1px solid var(--color-border-light);
}

/* ========== Responsive ========== */
@media (max-width: 1400px) {
	.site-mini-grid,
	.featured-strip__grid {
		grid-template-columns: repeat(5, 1fr);
	}
	.site-app-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 1200px) {
	.site-mini-grid,
	.featured-strip__grid {
		grid-template-columns: repeat(4, 1fr);
	}
	.site-app-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 992px) {
	.site-sidebar {
		transform: translateX(-100%);
		transition: transform 0.25s ease;
		box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
	}

	.site-sidebar.is-open {
		transform: translateX(0);
	}

	.site-content {
		margin-left: 0;
	}

	.main-topbar__menu {
		display: flex;
	}

	.main-topbar__quote {
		display: none;
	}

	.site-mini-grid,
	.featured-strip__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.site-mini-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.featured-strip__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.site-app-grid {
		grid-template-columns: 1fr;
	}

	.home-body {
		padding: 10px;
	}

	.hero-banner {
		min-height: 260px;
	}

	.site-footer__links,
	.site-footer__notice,
	.site-footer__domain {
		display: inline;
	}

	.site-footer__meta {
		line-height: 1.75;
	}
}

@media (max-width: 480px) {
	.site-mini-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.editor-pick__col {
		flex: 0 0 148px;
		width: 148px;
	}
}
