:root {
	--accent: #f97316; /* 首页橙色主色调 */
	--dark: #1e293b;
	--light-gray: #f1f5f9;
	--gray: #94a3b8;
	--white: #ffffff;
	--shadow: 0 4px 20px rgba(0,0,0,0.08);
	--container-width: 1200px;
	--spacing: 2rem;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
	background-color: #f8fafc;
	color: var(--dark);
	line-height: 1.8;
	padding: 2rem 1rem;
}

/* 容器样式（与首页一致） */
.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* 顶部导航栏：返回首页 + 语言切换（新增组合布局） */
.top-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 3rem;
	flex-wrap: wrap;
	gap: 1rem;
}

/* 返回首页链接样式 */
.back-home {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--accent);
	font-weight: 600;
	font-size: 1.1rem;
	text-decoration: none;
	transition: all 0.3s ease;
}

.back-home:hover {
	text-decoration: underline;
	gap: 0.7rem; /*  hover时箭头轻微偏移，增强交互感 */
}

/* 语言切换栏（复用首页样式，调整父容器） */
.lang-switcher {
	display: flex;
	gap: 0.8rem;
}

.lang-switcher button {
	background: var(--white);
	border: 1px solid var(--light-gray);
	color: var(--dark);
	padding: 0.6rem 1.2rem;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.3s ease;
}

.lang-switcher button.active {
	background: var(--accent);
	color: var(--white);
	border-color: var(--accent);
}

.lang-switcher button:hover:not(.active) {
	border-color: var(--accent);
	color: var(--accent);
}

/* 标题样式（与首页一致） */
h1 {
	font-size: 2.5rem;
	color: var(--dark);
	margin-bottom: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
}

h2 {
	font-size: 1.8rem;
	color: var(--dark);
	margin: 2.5rem 0 1.2rem;
	font-weight: 600;
	padding-bottom: 0.8rem;
	border-bottom: 2px solid var(--light-gray);
}

/* 文本样式 */
p {
	margin-bottom: 1.2rem;
	font-size: 1.1rem;
	color: var(--dark);
}

ul {
	margin: 1rem 0 1.5rem 1.5rem;
	list-style-type: disc;
}

ul li {
	margin-bottom: 0.8rem;
	font-size: 1.1rem;
	color: var(--dark);
}

/* 链接样式（与首页一致） */
a {
	color: var(--accent);
	text-decoration: none;
	font-weight: 500;
	transition: underline 0.3s ease;
}

a:hover {
	text-decoration: underline;
}

/* 最后更新时间样式 */
.updated {
	display: inline-block;
	background: var(--light-gray);
	padding: 0.6rem 1.2rem;
	border-radius: 8px;
	color: var(--dark);
	font-weight: 500;
	margin-bottom: 3rem;
}

/* RTL 布局适配（阿拉伯语）- 调整返回首页和语言切换位置 */
[dir="rtl"] {
	direction: rtl;
	unicode-bidi: embed;
}

[dir="rtl"] .top-nav {
	justify-content: space-between;
}

[dir="rtl"] .back-home {
	flex-direction: row-reverse; /* 箭头反转到右侧 */
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] p,
[dir="rtl"] ul,
[dir="rtl"] li {
	text-align: right;
}

[dir="rtl"] ul {
	margin: 1rem 1.5rem 1.5rem 0;
	list-style-position: inside;
}

/* Cookie弹窗样式（优化适配多语言） */
#cookieBanner {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: #fff;
	padding: 20px;
	box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
	display: none;
	z-index: 9998;
	border-top: 2px solid var(--light-gray);
}

#cookieBanner .container {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

#cookieBanner p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
}

#cookieBanner .button-group {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

#cookieBanner button {
	padding: 10px 20px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 500;
	border: none;
	transition: all 0.3s ease;
}

#acceptCookies {
	background: var(--accent);
	color: var(--white);
}

#acceptCookies:hover {
	background: #e66a10; /* 深色 hover 效果 */
}

#rejectCookies {
	background: var(--light-gray);
	color: var(--dark);
}

#rejectCookies:hover {
	background: #e2e8f0; /* 深色 hover 效果 */
}

/* 响应式适配（与首页一致，优化移动端布局） */
@media (max-width: 768px) {
	h1 {
		font-size: 2rem;
	}

	h2 {
		font-size: 1.5rem;
	}

	.top-nav {
		flex-direction: column;
		align-items: flex-start;
	}

	[dir="rtl"] .top-nav {
		align-items: flex-end;
	}

	.lang-switcher {
		width: 100%;
		justify-content: flex-start;
		gap: 0.5rem;
	}

	[dir="rtl"] .lang-switcher {
		justify-content: flex-end;
	}

	.lang-switcher button {
		padding: 0.5rem 1rem;
		font-size: 0.9rem;
	}

	.back-home {
		font-size: 1rem;
	}
}