/* ==========================================================================
   Privacy Divide 主样式
   主题定位：手机与电脑隐私隔离 · 深色科技风 · 响应式
   ========================================================================== */

:root {
	--pd-primary: #22d3ee;
	--pd-accent: #3b82f6;
	--pd-bg: #0b1220;
	--pd-surface: #111a2e;
	--pd-surface-2: #16213a;
	--pd-text: #e6edf6;
	--pd-muted: #94a3b8;
	--pd-border: rgba(148, 163, 184, 0.18);
	--pd-radius: 18px;
	--pd-shadow: 0 18px 50px rgba(2, 6, 18, 0.45);
	--pd-gradient: linear-gradient(135deg, var(--pd-primary), var(--pd-accent));
}

/* ---------- 基础 ---------- */
html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--pd-bg);
	color: var(--pd-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
		"Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

a {
	color: var(--pd-primary);
	transition: color 0.2s ease;
}

a:hover {
	color: var(--pd-accent);
}

h1, h2, h3, h4 {
	line-height: 1.25;
	font-weight: 700;
	margin: 0 0 0.6em;
}

p {
	margin: 0 0 1em;
}

/* ---------- 布局容器 ---------- */
.pd-container {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 24px;
}

.pd-container--narrow {
	max-width: 820px;
}

.pd-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--pd-primary);
	color: #06101f;
	padding: 10px 16px;
	border-radius: 0 0 10px 0;
	z-index: 200;
}

.pd-skip-link:focus {
	left: 0;
}

/* ---------- 头部 ---------- */
.pd-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(11, 18, 32, 0.82);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--pd-border);
}

.pd-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
}

.pd-brand {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pd-brand__name {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	background: var(--pd-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.pd-brand__tagline {
	font-size: 0.75rem;
	color: var(--pd-muted);
}

.pd-brand img {
	max-height: 44px;
	width: auto;
}

/* 导航菜单 */
.pd-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pd-menu a {
	display: inline-block;
	padding: 10px 14px;
	color: var(--pd-text);
	border-radius: 10px;
	font-size: 0.95rem;
}

.pd-menu a:hover,
.pd-menu .current-menu-item a {
	color: var(--pd-primary);
	background: rgba(34, 211, 238, 0.08);
}

/* 汉堡按钮（移动端） */
.pd-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	background: transparent;
	border: 1px solid var(--pd-border);
	border-radius: 10px;
	cursor: pointer;
	padding: 9px;
}

.pd-nav-toggle span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--pd-text);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.pd-nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.pd-nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.pd-nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.pd-hero {
	position: relative;
	overflow: hidden;
	padding: 72px 0 40px;
	background:
		radial-gradient(900px 480px at 80% -10%, rgba(59, 130, 246, 0.22), transparent 60%),
		radial-gradient(700px 420px at 10% 20%, rgba(34, 211, 238, 0.16), transparent 55%);
}

.pd-hero__inner {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	align-items: center;
	gap: 48px;
}

.pd-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--pd-primary);
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 18px;
}

.pd-hero__title {
	font-size: clamp(2rem, 4.2vw, 3.1rem);
	letter-spacing: -0.01em;
}

.pd-hero__subtitle {
	color: var(--pd-muted);
	font-size: 1.08rem;
	max-width: 540px;
}

.pd-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

/* 按钮 */
.pd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 24px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.98rem;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pd-btn--primary {
	background: var(--pd-gradient);
	color: #06101f;
	box-shadow: 0 12px 30px rgba(34, 211, 238, 0.25);
}

.pd-btn--primary:hover {
	transform: translateY(-2px);
	color: #06101f;
}

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

.pd-btn--ghost:hover {
	border-color: var(--pd-primary);
	color: var(--pd-primary);
}

.pd-btn--lg {
	padding: 15px 30px;
	font-size: 1.05rem;
}

/* Hero 双设备视觉 */
.pd-hero__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
}

.pd-device {
	border: 1px solid var(--pd-border);
	border-radius: 20px;
	background: var(--pd-surface);
	box-shadow: var(--pd-shadow);
	padding: 14px;
}

.pd-device--phone {
	width: 132px;
}

.pd-device--desktop {
	width: 200px;
}

.pd-device__screen {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 10px;
	min-height: 110px;
}

.pd-device__dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--pd-gradient);
}

.pd-device__line {
	height: 8px;
	width: 100%;
	border-radius: 6px;
	background: rgba(148, 163, 184, 0.3);
}

.pd-device__line--short {
	width: 60%;
}

.pd-divider {
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--pd-gradient);
	color: #06101f;
	box-shadow: 0 10px 26px rgba(59, 130, 246, 0.35);
}

.pd-divider svg {
	width: 28px;
	height: 28px;
}

/* 数据统计 */
.pd-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin-top: 56px;
	padding: 26px 24px;
	border: 1px solid var(--pd-border);
	border-radius: var(--pd-radius);
	background: rgba(17, 26, 46, 0.6);
}

.pd-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: center;
}

.pd-stat__num {
	font-size: 1.9rem;
	font-weight: 800;
	background: var(--pd-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.pd-stat__label {
	color: var(--pd-muted);
	font-size: 0.85rem;
}

/* ---------- 通用区块 ---------- */
.pd-section {
	padding: 72px 0;
}

.pd-section--alt {
	background: var(--pd-surface);
}

.pd-section__head {
	max-width: 640px;
	margin: 0 auto 44px;
	text-align: center;
}

.pd-section__title {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.pd-section__desc {
	color: var(--pd-muted);
}

/* 卡片网格 */
.pd-grid {
	display: grid;
	gap: 24px;
}

.pd-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

.pd-card {
	background: var(--pd-surface);
	border: 1px solid var(--pd-border);
	border-radius: var(--pd-radius);
	padding: 28px;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pd-card:hover {
	transform: translateY(-4px);
	border-color: rgba(34, 211, 238, 0.4);
	box-shadow: var(--pd-shadow);
}

.pd-card__icon {
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	border-radius: 14px;
	background: rgba(34, 211, 238, 0.1);
	color: var(--pd-primary);
	margin-bottom: 18px;
}

.pd-card__icon svg {
	width: 26px;
	height: 26px;
}

.pd-card__title {
	font-size: 1.15rem;
}

.pd-card__title a {
	color: var(--pd-text);
}

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

.pd-card__desc {
	color: var(--pd-muted);
	font-size: 0.95rem;
}

/* 文章卡片 */
.pd-post-card__thumb {
	display: block;
	overflow: hidden;
	border-radius: 14px;
	margin-bottom: 18px;
}

.pd-post-card__thumb img {
	width: 100%;
	transition: transform 0.3s ease;
}

.pd-post-card__thumb:hover img {
	transform: scale(1.04);
}

.pd-post-card__body time {
	display: inline-block;
	color: var(--pd-muted);
	font-size: 0.8rem;
	margin-bottom: 8px;
}

.pd-readmore {
	font-weight: 600;
	font-size: 0.9rem;
}

/* 对比区块 */
.pd-compare {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.pd-compare__col {
	background: var(--pd-surface-2);
	border: 1px solid var(--pd-border);
	border-radius: var(--pd-radius);
	padding: 30px;
}

.pd-compare__device {
	font-size: 1.2rem;
	margin-bottom: 18px;
	color: var(--pd-primary);
}

.pd-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.pd-checklist li {
	position: relative;
	padding-left: 30px;
	color: var(--pd-text);
}

.pd-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(34, 211, 238, 0.15);
}

.pd-checklist li::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 9px;
	width: 8px;
	height: 4px;
	border-left: 2px solid var(--pd-primary);
	border-bottom: 2px solid var(--pd-primary);
	transform: rotate(-45deg);
}

/* 步骤 */
.pd-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.pd-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 26px 16px;
	border: 1px solid var(--pd-border);
	border-radius: var(--pd-radius);
	background: var(--pd-surface);
	text-align: center;
}

.pd-step__num {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--pd-primary);
}

.pd-step__label {
	color: var(--pd-text);
	font-weight: 600;
}

/* FAQ */
.pd-faq {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.pd-faq__item {
	background: var(--pd-surface-2);
	border: 1px solid var(--pd-border);
	border-radius: 14px;
	padding: 6px 22px;
}

.pd-faq__question {
	cursor: pointer;
	font-weight: 600;
	padding: 16px 0;
	list-style: none;
	position: relative;
}

.pd-faq__question::-webkit-details-marker {
	display: none;
}

.pd-faq__question::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.4rem;
	color: var(--pd-primary);
}

.pd-faq__item[open] .pd-faq__question::after {
	content: "−";
}

.pd-faq__answer {
	color: var(--pd-muted);
	padding-bottom: 18px;
}

/* CTA */
.pd-cta {
	padding: 72px 0;
}

.pd-cta__inner {
	text-align: center;
	padding: 56px 32px;
	border-radius: 26px;
	background:
		radial-gradient(600px 300px at 20% 0%, rgba(34, 211, 238, 0.25), transparent 60%),
		var(--pd-surface-2);
	border: 1px solid var(--pd-border);
}

.pd-cta__title {
	font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.pd-cta__desc {
	color: var(--pd-muted);
	max-width: 520px;
	margin: 0 auto 28px;
}

/* ---------- 布局（列表 / 文章） ---------- */
.pd-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 36px;
	padding: 48px 24px;
}

.pd-page-head {
	margin-bottom: 28px;
}

.pd-page-title {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.pd-post-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* 侧栏 */
.pd-sidebar {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.pd-widget {
	background: var(--pd-surface);
	border: 1px solid var(--pd-border);
	border-radius: var(--pd-radius);
	padding: 24px;
}

.pd-widget__title {
	font-size: 1.05rem;
	margin-bottom: 14px;
}

.pd-sidebar .widget ul,
.pd-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* 单篇文章排版 */
.pd-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	color: var(--pd-muted);
	font-size: 0.9rem;
}

.pd-single__thumb {
	margin: 24px 0;
	border-radius: 18px;
	overflow: hidden;
}

.pd-entry-content {
	font-size: 1.02rem;
}

.pd-entry-content h2,
.pd-entry-content h3 {
	margin-top: 1.6em;
}

.pd-entry-content ul,
.pd-entry-content ol {
	padding-left: 1.4em;
}

.pd-entry-content li {
	margin-bottom: 0.5em;
}

.pd-entry-content blockquote {
	border-left: 3px solid var(--pd-primary);
	margin: 1.6em 0;
	padding: 6px 0 6px 20px;
	color: var(--pd-muted);
}

.pd-entry-content code {
	background: var(--pd-surface-2);
	padding: 2px 6px;
	border-radius: 6px;
	font-size: 0.9em;
}

.pd-entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.4em 0;
}

.pd-entry-content th,
.pd-entry-content td {
	border: 1px solid var(--pd-border);
	padding: 10px 14px;
}

.pd-entry-content img {
	border-radius: 14px;
}

.pd-tags {
	margin-top: 28px;
	color: var(--pd-muted);
}

.pd-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--pd-border);
}

.pd-post-nav a {
	font-weight: 600;
}

/* 评论 */
.pd-comments {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--pd-border);
}

.pd-comment-list {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.pd-comment-list .comment-body {
	background: var(--pd-surface);
	border: 1px solid var(--pd-border);
	border-radius: 14px;
	padding: 18px;
}

.pd-comment-list .comment-author img {
	border-radius: 50%;
	margin-right: 8px;
}

.pd-comment-list .comment-metadata {
	font-size: 0.8rem;
	color: var(--pd-muted);
}

/* 搜索表单 */
.pd-search-form {
	display: flex;
	gap: 10px;
}

.pd-search-form input[type="search"] {
	flex: 1;
	background: var(--pd-surface-2);
	border: 1px solid var(--pd-border);
	border-radius: 10px;
	padding: 11px 14px;
	color: var(--pd-text);
}

.pd-search-form input[type="submit"],
.pd-search-form button {
	background: var(--pd-gradient);
	color: #06101f;
	border: none;
	border-radius: 10px;
	padding: 11px 18px;
	font-weight: 600;
	cursor: pointer;
}

/* 404 */
.pd-404 {
	text-align: center;
	padding: 56px 32px;
}

.pd-404__code {
	font-size: 3rem;
	font-weight: 800;
	background: var(--pd-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.pd-404 .pd-search-form {
	max-width: 360px;
	margin: 18px auto 24px;
}

/* 页脚 */
.pd-footer {
	border-top: 1px solid var(--pd-border);
	background: #080e1a;
	margin-top: 40px;
}

.pd-footer__widgets {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	padding: 44px 24px 20px;
}

.pd-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px;
	border-top: 1px solid var(--pd-border);
}

.pd-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pd-footer-menu a {
	color: var(--pd-muted);
	font-size: 0.9rem;
}

.pd-footer-menu a:hover {
	color: var(--pd-primary);
}

.pd-footer__copyright {
	color: var(--pd-muted);
	font-size: 0.85rem;
	margin: 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
	.pd-layout {
		grid-template-columns: 1fr;
	}

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

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

@media (max-width: 768px) {
	.pd-nav-toggle {
		display: flex;
	}

	.pd-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 72px;
		background: rgba(11, 18, 32, 0.98);
		border-bottom: 1px solid var(--pd-border);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
	}

	.pd-nav.is-open {
		max-height: 420px;
	}

	.pd-menu {
		flex-direction: column;
		padding: 12px 24px 20px;
	}

	.pd-hero__inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.pd-hero__visual {
		order: -1;
	}

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

	.pd-compare {
		grid-template-columns: 1fr;
	}

	.pd-footer__widgets {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.pd-grid--3,
	.pd-steps {
		grid-template-columns: 1fr;
	}

	.pd-post-nav {
		flex-direction: column;
	}

	.pd-container {
		padding-inline: 18px;
	}
}
