/*
 * LabTheme 全站换肤层（cult-ui 设计语言，布局零改动）。
 * 所有站点统一加载（starisle_enqueue_assets()，依赖 starisle-main，随后覆盖生效），
 * 并随买家主题包一同分发，买家站与演示站观感一致。
 * 色板：zinc 中性边框/卡片 + 站点原薄荷绿 primary
 */

/* =====================================================================
   cult-ui 全站换肤层（布局零改动，仅组件外观）
   色板：zinc 中性边框/卡片 + 站点原薄荷绿 primary
   ===================================================================== */

/* ── 1. 变量级：全站线条/表面统一为 zinc 中性 ── */
:root {
	--line: rgba(255, 255, 255, 0.09);
	--line-strong: rgba(255, 255, 255, 0.16);
	--surface: #0c0c0f;
	--surface-2: #111114;
	--surface-3: #16161b;
}

/* ── 2. 按钮 ── */
.btn--primary {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(120, 227, 196, 0.55);
	background: linear-gradient(110deg, #5ecfb4 18%, #a7f3dd 38%, #5ecfb4 58%);
	background-size: 220% 100%;
	animation: cuShimmer 3.2s linear infinite;
	box-shadow: 0 0 24px rgba(120, 227, 196, 0.28);
}
@keyframes cuShimmer { to { background-position: -220% 0; } }
.btn--primary:hover {
	background: linear-gradient(110deg, #5ecfb4 18%, #a7f3dd 38%, #5ecfb4 58%);
	background-size: 220% 100%;
	animation: cuShimmer 3.2s linear infinite;
	box-shadow: 0 0 36px rgba(120, 227, 196, 0.45);
}
.btn--ghost {
	border: 1px solid var(--line-strong) !important;
	background: rgba(255, 255, 255, 0.024) !important;
	transition: border-color 0.25s, background 0.25s;
}
.btn--ghost:hover {
	border-color: rgba(120, 227, 196, 0.55) !important;
	background: rgba(255, 255, 255, 0.05) !important;
}

/* ── 3. 导航：常驻毛玻璃 + 细分隔线 + 链接 pill 化 ── */
.site-header {
	background: rgba(6, 9, 15, 0.72);
	border-bottom-color: var(--line);
	backdrop-filter: blur(14px) saturate(1.2);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.header__nav a, .header__menu a {
	border: 1px solid transparent;
	border-radius: 999px;
	transition: border-color 0.2s, background 0.2s;
}
.header__nav a:hover, .header__menu a:hover {
	border-color: var(--line);
	background: rgba(255, 255, 255, 0.024);
}
.header__nav a.is-active, .header__menu a.is-active {
	border-color: var(--line-strong);
	background: rgba(255, 255, 255, 0.045);
}
.icon-btn {
	border: 1px solid transparent;
	border-radius: 12px;
	transition: border-color 0.2s, background 0.2s;
}
.icon-btn:hover {
	border-color: var(--line);
	background: rgba(255, 255, 255, 0.03);
}

/* ── 4. 表单控件：shadcn 风格 ── */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="range"]),
textarea, select {
	border: 1px solid var(--line-strong) !important;
	border-radius: 10px !important;
	background: rgba(255, 255, 255, 0.02) !important;
	transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
	border-color: rgba(120, 227, 196, 0.55) !important;
	box-shadow: 0 0 0 3px rgba(120, 227, 196, 0.12) !important;
	outline: none !important;
}
input::placeholder, textarea::placeholder { color: rgba(214, 226, 236, 0.35); }

/* ── 5. 分页：bordered pill ── */
.pagination .page-numbers {
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.02);
	transition: border-color 0.2s, background 0.2s;
}
.pagination .page-numbers:hover {
	border-color: rgba(120, 227, 196, 0.45);
	background: rgba(255, 255, 255, 0.045);
}
.pagination .page-numbers.current {
	border-color: rgba(120, 227, 196, 0.55);
	background: rgba(120, 227, 196, 0.1);
	color: var(--accent);
}

/* ── 6. 面包屑：弱化分隔 ── */
.breadcrumbs a { color: var(--muted-2); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs__sep { opacity: 0.4; }

/* ── 7. 标签/徽章 pill 化 ── */
.post-tags a, .tag-links a, .video-card__tag, .card__category {
	border: 1px solid var(--line) !important;
	border-radius: 999px !important;
	background: rgba(255, 255, 255, 0.02) !important;
	transition: border-color 0.2s, background 0.2s;
}
.post-tags a:hover, .tag-links a:hover {
	border-color: rgba(120, 227, 196, 0.45) !important;
	background: rgba(255, 255, 255, 0.05) !important;
}

/* ── 8. hero 背景纹理（首页 solar + 全站 page-hero）── */
.hero--solar::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 35%, transparent 100%);
	mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 35%, transparent 100%);
}
.hero--solar::after {
	content: "";
	position: absolute;
	left: 50%; top: -180px;
	width: 860px; height: 480px;
	transform: translateX(-50%);
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(closest-side, rgba(120, 227, 196, 0.1), transparent 70%);
	filter: blur(6px);
}
.page-hero { position: relative; }
.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 20%, #000 30%, transparent 100%);
	mask-image: radial-gradient(ellipse 70% 70% at 50% 20%, #000 30%, transparent 100%);
}
.page-hero > * { position: relative; z-index: 1; }

/* ── 10. footer：顶部细分隔线 + 列卡片化 ── */
.site-footer, footer { border-top: 1px solid var(--line); }
.footer__col {
	border: 1px solid var(--line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.015);
	padding: 22px;
}

/* ── 11. 首页专属（与概念稿一致）── */
.hero__latest-link {
	padding: 14px 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.024);
	transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.hero__latest-link:hover {
	border-color: rgba(120, 227, 196, 0.45);
	background: rgba(255, 255, 255, 0.045);
	transform: translateY(-2px);
}
.hero__latest-index {
	color: rgba(120, 227, 196, 0.75);
	border: 1px solid rgba(120, 227, 196, 0.28);
	border-radius: 999px;
	padding: 2px 7px;
	background: rgba(120, 227, 196, 0.08);
}
.shop-strip__link {
	padding: 8px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.024);
	transition: border-color 0.25s, background 0.25s;
}
.shop-strip__link:hover {
	border-color: rgba(120, 227, 196, 0.45);
	background: rgba(255, 255, 255, 0.045);
}

/* ── 12. 全站卡片 hover 统一：边框提亮 ── */
.video-card, .feature-card, .card, .ssh-card, .community-card, .price-card {
	transition: border-color 0.25s, transform 0.25s;
}
.video-card:hover, .feature-card:hover, .card:hover, .ssh-card:hover {
	border-color: var(--line-strong) !important;
}

/* ── 14. 播放器（Plyr）不参与换肤 ── */
.plyr input[type="range"], .plyr__control, .plyr__controls__item, .plyr__volume input[type="range"] {
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}
.plyr__control--overlaid, .plyr__control--pressed { background: rgba(0, 0, 0, 0.3) !important; }

/* ── 13. 动效减弱适配 ── */
@media (prefers-reduced-motion: reduce) {
	.btn--primary, .btn--primary:hover { animation: none; }
}

