/*
 * XUANLI Clone — 版式还原参考站 tmmq.top（绿色卡片式单页文档）。
 * 颜色在 :root；改过的几处是为了文字对比度到 4.5:1（参考站页脚 #5b7f8c 只有 4.2）。
 */

:root {
	--xl-bg: #eef2f5;
	--xl-paper: #fff;
	--xl-text: #1a2c3e;
	--xl-muted: #4f6672;
	--xl-green: #2e7d64;
	--xl-green-dark: #0b3b2f;
	--xl-green-text: #1d5a48;
	--xl-link: #1a6e55;
	--xl-line: #cfe2ea;
	--xl-line-soft: #e2edf2;
	--xl-card: #f8fafc;
	--xl-radius: 20px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 2rem 1rem;
	background: var(--xl-bg);
	color: var(--xl-text);
	font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	font-size: 16px;
	line-height: 1.55;
	overflow-wrap: break-word;
	/* 芬兰语、德语、匈牙利语的长复合词在手机上会撑破版面，按 <html lang> 自动断字。 */
	-webkit-hyphens: auto;
	hyphens: auto;
}

/* 网格 / 弹性布局的子项默认 min-width:auto，长单词会把整列撑出屏幕。 */
.xl-two-col > *,
.xl-col > *,
.xl-doc-grid > *,
.xl-signatures > * {
	min-width: 0;
}

a {
	color: var(--xl-link);
	text-decoration: none;
}

a:hover,
a:focus-visible {
	text-decoration: underline;
}

:focus-visible {
	outline: 3px solid #1f6feb;
	outline-offset: 2px;
}

p {
	margin: 0 0 .75rem;
}

img,
svg {
	max-width: 100%;
}

.xl-icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -.125em;
	flex-shrink: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- 容器 ---------- */

.xl-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 2rem 2rem 1.5rem;
	background: var(--xl-paper);
	border-radius: 28px;
	box-shadow: 0 20px 35px -12px rgba(0, 0, 0, .15);
	transition: opacity .15s;
}

.xl-loading .xl-container {
	opacity: .55;
}

/* ---------- 标题 ---------- */

h1,
h2,
h3 {
	line-height: 1.3;
}

h1 {
	margin: 0 0 .6rem;
	padding-left: 1rem;
	border-left: 6px solid var(--xl-green);
	color: var(--xl-green-dark);
	font-size: 1.9rem;
	font-weight: 700;
}

.xl-h1-main {
	display: block;
}

.xl-h1-sub {
	display: block;
	margin-top: .15rem;
	color: #2c5a4a;
	font-size: 1.3rem;
	font-weight: 500;
}

h2 {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin: 2rem 0 1rem;
	padding-bottom: .3rem;
	border-bottom: 2px solid #d4e2e9;
	color: var(--xl-green-text);
	font-size: 1.5rem;
	font-weight: 600;
}

h3 {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 1.2rem 0 .7rem;
	color: #1d4e3f;
	font-size: 1.2rem;
	font-weight: 600;
}

.xl-card > h3:first-child {
	margin-top: 0;
}

/* ---------- 页头 ---------- */

.xl-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1.5rem;
}

.xl-head-text {
	flex: 1;
	min-width: 0;
}

.xl-subhead {
	margin: 0 0 1.4rem;
	padding-bottom: .75rem;
	border-bottom: 2px solid #cbdde6;
	color: #2c5a4a;
}

.xl-qr {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: 8px 10px 10px;
	background: #fff;
	border: 1px solid var(--xl-line-soft);
	border-radius: 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.xl-qr > svg {
	display: block;
	width: 132px;
	height: 132px;
}

.xl-qr figcaption {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
	padding: 2px 10px;
	background: #eff7f3;
	border-radius: 30px;
	color: var(--xl-link);
	font-size: .75rem;
	font-weight: 600;
}

/* ---------- 语言切换 ---------- */

.xl-toolbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	flex-wrap: wrap;
	gap: .75rem;
	margin: 0 0 1rem;
}

.xl-toolbar-split {
	justify-content: space-between;
}

.xl-toolbar-top {
	margin-bottom: .25rem;
}

.xl-lang {
	display: flex;
	align-items: center;
	gap: .4rem;
	margin: 0;
}

.xl-lang label {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	color: var(--xl-green-text);
	font-size: .85rem;
	font-weight: 600;
}

.xl-lang select {
	min-width: 220px;
	padding: .4rem 2rem .4rem .9rem;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d5a48' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7rem center / 14px;
	border: 1px solid #b9d0db;
	border-radius: 40px;
	color: var(--xl-green-text);
	font: inherit;
	font-size: .9rem;
	cursor: pointer;
	appearance: none;
}

.xl-lang-buttons {
	display: flex;
	gap: 8px;
}

.xl-lang-buttons a {
	padding: 6px 14px;
	background: #f0f4f8;
	border: 1px solid #cbdde6;
	border-radius: 30px;
	color: var(--xl-text);
	font-size: .85rem;
}

.xl-lang-buttons a[aria-current="true"] {
	background: var(--xl-green);
	border-color: var(--xl-green);
	color: #fff;
}

/* ---------- 卡片 / 列表 ---------- */

.xl-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin: 1rem 0;
}

.xl-col {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.xl-card {
	padding: 1.2rem 1.5rem;
	background: var(--xl-card);
	border: 1px solid var(--xl-line-soft);
	border-radius: var(--xl-radius);
}

.xl-card-warm {
	background: #fef6e0;
}

.xl-card-mint {
	background: #f0f7f4;
}

.xl-card-blue {
	background: #eef4fa;
}

.xl-spec {
	margin: 0;
	padding: 0;
	list-style: none;
}

.xl-spec li {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	padding: .45rem 0;
	border-bottom: 1px dashed #d0e0e8;
}

.xl-spec li:last-child {
	border-bottom: 0;
}

.xl-spec-label {
	width: 190px;
	color: #1c5a48;
	font-weight: 700;
}

.xl-spec-value {
	flex: 1;
	min-width: 180px;
}

.xl-mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .9em;
	-webkit-hyphens: manual;
	hyphens: manual;
}

.xl-muted {
	color: var(--xl-muted);
	font-size: .92rem;
}

/* ---------- 表格 ---------- */

.xl-table-wrap {
	overflow-x: auto;
}

.xl-table {
	width: 100%;
	margin: .75rem 0;
	border-collapse: collapse;
	background: #fff;
}

.xl-table th,
.xl-table td {
	padding: .7rem 1rem;
	border: 1px solid var(--xl-line);
	text-align: left;
	vertical-align: middle;
}

.xl-table th {
	background: #e6f0f4;
	color: #124e3e;
	font-weight: 700;
}

.xl-note {
	margin: .5rem 0 0;
	padding: .4rem 0 .4rem 1rem;
	border-left: 3px solid var(--xl-green);
	background: #f9fbfd;
	color: #2c5a4a;
	font-size: .9rem;
}

.xl-compliance {
	margin: 1rem 0;
	padding: 1rem 1.3rem;
	background: #e2f0ea;
	border: 1px solid #bdd9cf;
	border-radius: 18px;
	font-size: .95rem;
}

.xl-compliance-lead {
	display: flex;
	align-items: center;
	gap: .4rem;
}

.xl-compliance-lead .xl-icon,
.xl-doc-grid .xl-compliance-lead .xl-icon {
	color: #1e7e34;
}

.xl-limits {
	margin: .5rem 0 1rem;
	border-collapse: collapse;
}

.xl-limits th,
.xl-limits td {
	padding: .2rem .8rem .2rem 0;
	text-align: left;
	vertical-align: top;
}

.xl-limits th {
	white-space: nowrap;
}

/* ---------- 标志 / 黑框警告 ---------- */

.xl-marks {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2.5rem;
	margin: 1rem 0 1.5rem;
	padding: 1.2rem 1.5rem;
	background: #f9fdfe;
	border: 1px solid var(--xl-line-soft);
	border-radius: 24px;
}

.xl-mark {
	display: block;
	width: auto;
	height: 110px;
}

.xl-blackbox {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	margin: 1rem 0;
	padding: 1.5rem;
	background: #000;
	border-radius: 16px;
	color: #fff;
}

.xl-blackbox-text {
	flex: 2;
	min-width: 220px;
}

.xl-blackbox p {
	margin: 0 0 .6rem;
}

.xl-blackbox-head {
	display: inline-flex !important;
	align-items: center;
	gap: .5rem;
	padding: .2rem 1rem;
	background: #ffcc00;
	border-radius: 8px;
	color: #000;
	font-size: 1.4rem;
	font-weight: 700;
}

.xl-blackbox-keep {
	display: table;
	padding: .1rem .8rem;
	background: #fff;
	border-radius: 6px;
	color: #000;
	font-size: 1.2rem;
	font-weight: 700;
}

.xl-blackbox-desc {
	display: table;
	padding: .3rem .8rem;
	background: #fff;
	border-radius: 6px;
	color: #000;
	font-size: .95rem;
}

.xl-blackbox-icon {
	display: block;
	width: 150px;
	height: 150px;
}

/* ---------- 警告 / 注意 ---------- */

.xl-warning,
.xl-caution {
	margin: 1.2rem 0;
	padding: 1.2rem 1.5rem;
	background: #fff7e5;
	border-left: 6px solid #e67e22;
	border-radius: var(--xl-radius);
}

.xl-caution {
	background: #fff1f0;
	border-left-color: #c0392b;
}

.xl-box-label {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 800;
}

.xl-warning ul,
.xl-caution ul {
	margin: .6rem 0 0;
	padding-left: 1.4rem;
}

.xl-warning li,
.xl-caution li {
	margin: .45rem 0;
}

/* ---------- 废弃物说明 ---------- */

.xl-waste {
	padding: .5rem 1.3rem 1rem;
	background: #fefef7;
	border: 1px solid #dce9ef;
	border-radius: var(--xl-radius);
}

.xl-symbols,
.xl-marklist {
	margin: .5rem 0 1rem;
	padding: 0;
	list-style: none;
}

.xl-symbols li,
.xl-marklist li {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	margin: .8rem 0;
}

.xl-symbol-icon {
	display: block;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.xl-marklist li:not(.has-img) {
	padding-left: calc(56px + 1.2rem);
}

/* ---------- 相关文件 ---------- */

.xl-links {
	margin: 1rem 0 1.5rem;
	padding: 1rem 1.2rem;
	background: #f1f6f9;
	border-radius: var(--xl-radius);
	list-style: none;
}

.xl-links li {
	margin: .35rem 0;
}

.xl-links a {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	font-weight: 500;
}

.xl-prose p:last-child {
	margin-bottom: 0;
}

/* ---------- DOC ---------- */

.xl-doc-no {
	margin: 0;
	color: #4a5a63;
}

.xl-doc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.2rem;
	margin: 1rem 0;
}

.xl-full {
	grid-column: 1 / -1;
}

.xl-doc-table {
	width: 100%;
	border-collapse: collapse;
}

.xl-doc-table th,
.xl-doc-table td {
	overflow-wrap: anywhere;
	padding: .4rem .6rem;
	border-bottom: 1px solid #e8eef1;
	text-align: left;
	vertical-align: top;
}

.xl-doc-table tr:last-child th,
.xl-doc-table tr:last-child td {
	border-bottom: 0;
}

.xl-doc-table th {
	width: 190px;
	color: #3d4a52;
	font-weight: 700;
}

.xl-standards th {
	width: 210px;
	white-space: nowrap;
}

.xl-doc-product {
	font-size: 1.1rem;
}

.xl-badge {
	display: inline-block;
	padding: .1rem .65rem;
	border-radius: 12px;
	font-size: .82rem;
	font-weight: 500;
	white-space: nowrap;
}

.xl-badge-ok {
	background: #d4edda;
	color: #155724;
}

.xl-badge-na {
	background: #e8e8e8;
	color: #4a4a4a;
}

.xl-article {
	margin: 0 0 .8rem;
	padding: .7rem .9rem;
	border-left: 3px solid #28a745;
	border-radius: 8px;
	background: #f0f7f4;
}

.xl-article-na {
	border-left-color: #b4b4b4;
	background: #fafafa;
}

.xl-article p {
	margin: 0;
}

.xl-article p + p {
	margin-top: .3rem;
	color: #4a5a63;
	font-size: .93rem;
}

.xl-article-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
}

.xl-signatures {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.xl-sign {
	padding: 1.2rem;
	background: #fff;
	border: 1px solid #dce9ef;
	border-radius: 10px;
}

.xl-sign-for {
	margin-bottom: .8rem;
}

.xl-sign-line {
	display: flex;
	align-items: flex-end;
	width: 220px;
	max-width: 100%;
	min-height: 3rem;
	margin-top: 1rem;
	border-bottom: 1px solid #333;
}

.xl-sign-line img {
	display: block;
	max-height: 70px;
	width: auto;
}

/* ---------- 清单页 ---------- */

.xl-head-list {
	display: block;
}

.xl-search {
	position: relative;
	max-width: 580px;
	margin: 1.5rem auto;
}

.xl-search .xl-icon {
	position: absolute;
	top: 50%;
	left: 18px;
	transform: translateY(-50%);
	color: #5d7a86;
}

.xl-search input {
	width: 100%;
	padding: 12px 20px 12px 46px;
	background: #fff;
	border: 1px solid #b9d0db;
	border-radius: 40px;
	color: var(--xl-text);
	font: inherit;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}

.xl-search input:focus {
	border-color: var(--xl-green);
	box-shadow: 0 0 0 3px rgba(46, 125, 100, .2);
}

.xl-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 1.2rem 0 .3rem;
}

.xl-tab {
	padding: 8px 16px;
	background: #f0f4f8;
	border: 1px solid #cbdde6;
	border-radius: 30px;
	color: #124e3e;
	font: inherit;
	font-size: .92rem;
	cursor: pointer;
}

.xl-tab[aria-selected="true"] {
	background: var(--xl-green);
	border-color: var(--xl-green);
	color: #fff;
}

.xl-battery-table td:first-child {
	white-space: nowrap;
}

.xl-linkbtn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--xl-link);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}

.xl-linkbtn:hover {
	text-decoration: underline;
}

.xl-empty td {
	padding: 2rem;
	color: var(--xl-muted);
	font-style: italic;
	text-align: center;
}

/* ---------- 按钮 / 对话框 ---------- */

.xl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .55rem 1.1rem;
	background: var(--xl-green);
	border: 1px solid var(--xl-green);
	border-radius: 30px;
	color: #fff;
	font: inherit;
	font-size: .92rem;
	cursor: pointer;
}

.xl-btn:hover {
	background: #236650;
	text-decoration: none;
}

.xl-btn-ghost {
	background: #fff;
	color: var(--xl-green-text);
}

.xl-btn-ghost:hover {
	background: #eef6f2;
}

.xl-btn-plain {
	background: none;
	border-color: transparent;
	color: var(--xl-muted);
}

.xl-btn-plain:hover {
	background: #f0f4f8;
}

.xl-dialog {
	width: min(440px, calc(100vw - 32px));
	padding: 1.5rem;
	border: 0;
	border-radius: 20px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
	color: var(--xl-text);
}

.xl-dialog::backdrop {
	background: rgba(10, 30, 40, .45);
}

.xl-dialog h2 {
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
	font-size: 1.15rem;
}

.xl-dialog label {
	display: block;
	margin-bottom: .35rem;
	font-weight: 600;
}

.xl-dialog input {
	width: 100%;
	padding: .55rem .8rem;
	border: 1px solid #b9d0db;
	border-radius: 10px;
	font: inherit;
}

.xl-dialog-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: 1rem;
}

/* ---------- 页脚 ---------- */

.xl-footer {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid #d4e2e9;
	color: var(--xl-muted);
	font-size: .8rem;
	text-align: center;
}

.xl-footer p {
	margin: 0 0 .3rem;
}

/* ---------- 响应式 ---------- */

@media (max-width: 768px) {
	.xl-doc-grid,
	.xl-signatures {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	body {
		padding: 0;
		font-size: 15px;
	}

	.xl-container {
		padding: 1.2rem 1rem;
		border-radius: 0;
	}

	h1 {
		font-size: 1.45rem;
	}

	.xl-h1-sub {
		font-size: 1.05rem;
	}

	h2 {
		font-size: 1.25rem;
	}

	.xl-head {
		flex-direction: column;
		align-items: stretch;
	}

	.xl-qr {
		align-self: center;
	}

	.xl-two-col {
		grid-template-columns: 1fr;
	}

	.xl-card {
		padding: 1rem;
	}

	.xl-spec-label,
	.xl-doc-table th {
		width: 120px;
	}

	.xl-standards th {
		width: auto;
		white-space: normal;
	}

	.xl-toolbar,
	.xl-lang,
	.xl-lang select {
		width: 100%;
	}

	.xl-lang select {
		min-width: 0;
		flex: 1;
	}

	.xl-table th,
	.xl-table td {
		padding: .5rem .4rem;
		font-size: .85rem;
		overflow-wrap: anywhere;
	}

	.xl-battery-table td:first-child {
		overflow-wrap: normal;
	}

	.xl-mark {
		height: 72px;
	}

	.xl-blackbox {
		flex-direction: column;
		align-items: flex-start;
	}

	.xl-blackbox-icon {
		align-self: center;
		width: 110px;
		height: 110px;
	}

	.xl-symbol-icon {
		width: 44px;
		height: 44px;
	}

	.xl-marklist li:not(.has-img) {
		padding-left: calc(44px + 1.2rem);
	}
}

@media print {
	body {
		padding: 0;
		background: #fff;
	}

	.xl-container {
		padding: 0;
		box-shadow: none;
	}

	.xl-toolbar .xl-lang,
	.xl-lang-buttons,
	.xl-search,
	.xl-dialog {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
