/* ---------------------------------------------------------
   comcomAI — 隐私政策与服务条款
   色板：品牌绿 #106847 / 品牌橙 #F08200 / 中性阶
   --------------------------------------------------------- */

:root {
	--green-50: #ECF6F1;
	--green-100: #D3EADF;
	--green-200: #A6D5C0;
	--green-400: #3F9D7A;
	--green-500: #1C8158;
	--green-600: #106847;
	--green-700: #0B4F35;
	--green-800: #073A27;

	--orange-500: #F08200;

	--n-0: #FFFFFF;
	--n-25: #FBFCFB;
	--n-50: #F6F8F7;
	--n-100: #EDF1EF;
	--n-200: #DEE5E1;
	--n-300: #C6D0CB;
	--n-400: #A3AFAA;
	--n-500: #898989;
	--n-600: #666F6B;
	--n-700: #4A514D;
	--n-800: #2F3531;
	--n-900: #171A18;

	--serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
	--sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

	--page: 1160px;
	--gutter: 40px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--n-25);
	color: var(--n-700);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--green-600);
	outline-offset: 3px;
	border-radius: 2px;
}

.shell {
	width: 100%;
	max-width: var(--page);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.skip-link {
	position: absolute;
	left: 24px;
	top: -60px;
	z-index: 50;
	padding: 10px 16px;
	background: var(--n-0);
	border: 1px solid var(--n-200);
	color: var(--green-600);
	font-size: 14px;
	transition: top .18s ease;
}

.skip-link:focus {
	top: 12px;
}

/* ------------------------------- 顶部导航 */

.site-header {
	border-bottom: 1px solid var(--n-100);
	background: var(--n-25);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-height: 76px;
}

.wordmark {
	display: flex;
	align-items: baseline;
	gap: 10px;
	white-space: nowrap;
}

.wordmark__latin {
	font-family: var(--sans);
	font-size: 21px;
	font-weight: 600;
	letter-spacing: -0.015em;
	color: var(--green-600);
}

.wordmark__cn {
	font-size: 12px;
	letter-spacing: 0.16em;
	color: var(--n-600);
	padding-left: 10px;
	border-left: 1px solid var(--n-200);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 34px;
	font-size: 14px;
	color: var(--n-700);
}

.site-nav a {
	position: relative;
	padding: 4px 0;
	transition: color .18s ease;
}

.site-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 1px;
	background: var(--green-600);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .22s ease;
}

.site-nav a:hover {
	color: var(--green-600);
}

.site-nav a:hover::after {
	transform: scaleX(1);
}

.site-nav__current {
	color: var(--green-600);
}

.site-nav__current::after {
	transform: scaleX(1);
}

/* ------------------------------- 页首 */

.crumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 30px 0 0;
	font-size: 12.5px;
	color: var(--n-500);
}

.crumbs a:hover {
	color: var(--green-600);
}

.crumbs__sep {
	color: var(--n-300);
}

.legal-hero {
	padding: 30px 0 44px;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22em;
	color: var(--green-500);
	text-transform: uppercase;
}

.eyebrow::before {
	content: "";
	width: 24px;
	height: 1px;
	background: var(--green-200);
}

.legal-hero h1 {
	margin: 0;
	max-width: 18em;
	font-family: var(--serif);
	font-size: clamp(34px, 4.6vw, 54px);
	font-weight: 600;
	line-height: 1.28;
	letter-spacing: 0.01em;
	color: var(--green-600);
	text-wrap: balance;
}

.legal-hero__sub {
	margin: 20px 0 0;
	max-width: 40em;
	font-size: 15px;
	line-height: 1.9;
	color: var(--n-600);
}

/* 文档元信息 */

.doc-meta {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin: 0;
	padding: 20px 0;
	border-top: 1px solid var(--n-200);
	border-bottom: 1px solid var(--n-200);
}

.doc-meta div {
	min-width: 0;
}

.doc-meta dt {
	margin-bottom: 6px;
	font-size: 11.5px;
	letter-spacing: 0.08em;
	color: var(--n-500);
}

.doc-meta dd {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--n-800);
}

/* 草案提示 */

.draft-note {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	margin: 0;
	padding: 14px 0;
	font-size: 12.5px;
	line-height: 1.8;
	color: var(--n-600);
}

.draft-note__tag {
	flex: none;
	padding: 2px 7px;
	border: 1px solid var(--n-300);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	color: var(--n-600);
	background: var(--n-0);
}

/* ------------------------------- 选项卡 */

.tabs-bar {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(251, 252, 251, 0.94);
	backdrop-filter: saturate(150%) blur(8px);
	border-bottom: 1px solid var(--n-200);
}

.tabs {
	display: flex;
	gap: 44px;
	align-items: stretch;
}

.tab {
	position: relative;
	padding: 21px 1px 19px;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: var(--n-600);
	transition: color .18s ease;
}

.tab:hover {
	color: var(--n-900);
}

.tab::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--orange-500);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .24s cubic-bezier(.2, .7, .3, 1);
}

.tab[aria-selected="true"] {
	color: var(--n-900);
}

.tab[aria-selected="true"]::after {
	transform: scaleX(1);
}

.tab__en {
	margin-left: 8px;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.14em;
	color: var(--n-400);
	text-transform: uppercase;
}

/* ------------------------------- 文档布局 */

.doc-panel {
	display: none;
	grid-template-columns: 204px minmax(0, 1fr);
	gap: 72px;
	padding: 56px 0 88px;
	align-items: start;
}

.doc-panel.is-active {
	display: grid;
}

/* 目录 */

.toc {
	position: sticky;
	top: 96px;
	align-self: start;
}

.toc__title {
	margin: 0 0 18px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.18em;
	color: var(--n-500);
}

.toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 1px solid var(--n-200);
}

.toc li {
	margin: 0;
}

.toc a {
	display: flex;
	gap: 10px;
	padding: 7px 0 7px 16px;
	margin-left: -1px;
	border-left: 1px solid transparent;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--n-600);
	transition: color .16s ease, border-color .16s ease;
}

.toc a:hover {
	color: var(--green-600);
}

.toc a .toc__no {
	flex: none;
	width: 3.2em;
	color: var(--n-400);
	font-variant-numeric: tabular-nums;
	transition: color .16s ease;
}

.toc a.is-current {
	color: var(--green-600);
	border-left-color: var(--green-600);
	font-weight: 500;
}

.toc a.is-current .toc__no {
	color: var(--green-500);
}

.toc__foot {
	margin-top: 26px;
	padding-top: 18px;
	border-top: 1px solid var(--n-100);
}

.print-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12.5px;
	color: var(--n-600);
	transition: color .16s ease;
}

.print-btn:hover {
	color: var(--green-600);
}

.print-btn svg {
	width: 13px;
	height: 13px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.5;
}

/* 正文 */

.document {
	max-width: 748px;
}

.doc-title {
	margin: 0 0 8px;
	font-family: var(--serif);
	font-size: clamp(26px, 2.6vw, 32px);
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--n-900);
}

.doc-subtitle {
	margin: 0 0 10px;
	font-size: 13px;
	letter-spacing: 0.02em;
	color: var(--n-500);
}

.doc-lede {
	margin: 0 0 40px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--n-200);
	font-family: var(--serif);
	font-size: 15.5px;
	line-height: 1.95;
	color: var(--n-600);
}

.clause {
	position: relative;
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	padding: 34px 0 36px;
	border-bottom: 1px solid var(--n-100);
	scroll-margin-top: 116px;
}

.clause:last-of-type {
	border-bottom: 0;
}

.clause__no {
	position: relative;
	padding-top: 7px;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.06em;
	color: var(--green-500);
	font-variant-numeric: tabular-nums;
}

/* 页边细线：签约纸的条款批注线 */
.clause__no::after {
	content: "";
	position: absolute;
	left: -1px;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--green-100);
}

.clause__body {
	min-width: 0;
}

.clause h3 {
	margin: 0 0 14px;
	font-family: var(--sans);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.015em;
	color: var(--green-600);
	text-wrap: balance;
}

.clause p {
	margin: 0 0 13px;
	font-family: var(--serif);
	font-size: 17px;
	font-weight: 400;
	line-height: 2;
	letter-spacing: 0.005em;
	color: var(--n-700);
	text-wrap: pretty;
}

.clause p:last-child {
	margin-bottom: 0;
}

.clause p+p {
	margin-top: 0;
}

/* 占位符：低调但可识别 */

.ph {
	display: inline;
	padding: 0 4px;
	border-bottom: 1px dashed var(--n-400);
	border-radius: 2px;
	background: var(--n-100);
	font-family: var(--sans);
	font-size: 0.88em;
	color: var(--n-700);
	white-space: nowrap;
}

/* 文档结束 */

.doc-end {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 34px;
	padding-top: 26px;
	border-top: 1px solid var(--n-200);
	font-size: 12.5px;
	color: var(--n-500);
}

.doc-end__sig {
	font-family: var(--serif);
	font-size: 14px;
	letter-spacing: 0.02em;
	color: var(--n-600);
}

.doc-end a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--n-600);
}

.doc-end a:hover {
	color: var(--green-600);
}

/* ------------------------------- 页脚 */

.site-footer {
	margin-top: 8px;
	background: var(--n-50);
	border-top: 1px solid var(--n-200);
}

.site-footer__main {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr;
	gap: 48px;
	padding: 56px 0 44px;
}

.footer-brand__name {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--green-600);
}

.footer-brand__cn {
	margin-top: 6px;
	font-size: 13px;
	letter-spacing: 0.04em;
	color: var(--n-700);
}

.footer-brand__addr {
	margin-top: 18px;
	max-width: 24em;
	font-size: 12.5px;
	line-height: 1.9;
	color: var(--n-600);
}

.footer-col h4 {
	margin: 0 0 16px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.16em;
	color: var(--n-500);
}

.footer-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.footer-col a {
	font-size: 13px;
	color: var(--n-700);
	transition: color .16s ease;
}

.footer-col a:hover {
	color: var(--green-600);
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 18px 0 26px;
	border-top: 1px solid var(--n-200);
	font-size: 12px;
	color: var(--n-500);
}

.site-footer__legal nav {
	display: flex;
	gap: 20px;
}

.site-footer__legal a:hover {
	color: var(--green-600);
}

/* ------------------------------- 响应式 */

@media (max-width: 1024px) {
	:root {
		--gutter: 32px;
	}

	.doc-panel {
		grid-template-columns: 176px minmax(0, 1fr);
		gap: 48px;
	}

	.clause {
		grid-template-columns: 78px minmax(0, 1fr);
	}
}

@media (max-width: 900px) {
	.site-nav {
		gap: 22px;
		font-size: 13px;
	}

	.site-nav a[data-optional] {
		display: none;
	}

	.doc-meta {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px 24px;
	}

	/* 移动端不再用选项卡，两份文档上下排列 */
	.tabs-bar {
		display: none;
	}

	.doc-panel,
	.doc-panel.is-active {
		display: block;
		padding: 40px 0 0;
	}

	.doc-panel+.doc-panel {
		margin-top: 24px;
		border-top: 1px solid var(--n-200);
	}

	.toc {
		display: none;
	}

	.document {
		max-width: none;
	}

	.doc-panel:last-of-type {
		padding-bottom: 56px;
	}

	.clause {
		grid-template-columns: minmax(0, 1fr);
		padding: 28px 0 30px;
		scroll-margin-top: 24px;
	}

	.clause__no {
		padding-top: 0;
		margin-bottom: 8px;
	}

	.clause__no::after {
		display: none;
	}
}

@media (max-width: 640px) {
	:root {
		--gutter: 20px;
	}

	.site-header__inner {
		min-height: 64px;
	}

	.wordmark__cn {
		display: none;
	}

	.site-nav {
		gap: 18px;
		font-size: 12.5px;
	}

	.legal-hero {
		padding: 22px 0 32px;
	}

	.legal-hero__sub {
		font-size: 14px;
	}

	.draft-note {
		font-size: 12px;
	}

	.doc-title {
		font-size: 25px;
	}

	.clause h3 {
		font-size: 18.5px;
	}

	.clause p {
		font-size: 16px;
		line-height: 1.95;
	}

	.doc-end {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.site-footer__main {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 40px 0 32px;
	}

	.site-footer__legal {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ------------------------------- 打印 */

@media print {

	.site-header,
	.tabs-bar,
	.toc,
	.draft-note,
	.site-footer,
	.crumbs,
	.doc-end a {
		display: none !important;
	}

	body {
		background: #fff;
	}

	.shell {
		max-width: none;
		padding: 0;
	}

	.doc-panel {
		display: block !important;
		padding: 0;
		break-before: page;
	}

	.doc-panel:first-of-type {
		break-before: auto;
	}

	.clause {
		break-inside: avoid;
		padding: 18px 0;
	}

	.clause p {
		font-size: 11pt;
		line-height: 1.8;
		color: #000;
	}

	.clause__no::after {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}