:root {
	--orange: #f97316;
	--orange-dark: #c2410c;
	--orange-soft: #fff1e8;
	--cream: #fffaf5;
	--ink: #292524;
	--muted: #78716c;
	--line: #e7e5e4;
	--paper: #ffffff;
	--success: #22c55e;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	background:
		linear-gradient(135deg, rgba(249, 115, 22, 0.045), transparent 32rem),
		var(--cream);
	color: var(--ink);
	font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
	line-height: 1.75;
}

a {
	color: inherit;
}

img {
	display: block;
	max-width: 100%;
}

.skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--paper);
	color: var(--orange-dark);
	transform: translateY(-180%);
}

.skip-link:focus {
	transform: translateY(0);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 250, 245, 0.96);
	border-bottom: 1px solid rgba(231, 229, 228, 0.9);
	backdrop-filter: blur(12px);
}

.header-inner {
	width: min(1180px, calc(100% - 40px));
	min-height: 76px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	font-size: 18px;
	font-weight: 800;
	text-decoration: none;
}

.brand strong,
.footer-brand strong {
	color: var(--orange-dark);
}

.brand-mark {
	width: 34px;
	height: 34px;
	fill: var(--orange);
}

.header-nav {
	display: flex;
	align-items: center;
	gap: 30px;
}

.header-nav a {
	color: var(--muted);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.header-nav a:not(.support-link) {
	padding: 24px 0 20px;
	border-bottom: 3px solid transparent;
}

.header-nav a.active,
.header-nav a:not(.support-link):hover {
	color: var(--orange-dark);
	border-color: var(--orange);
}

.support-link {
	padding: 9px 18px;
	border: 1px solid var(--orange);
	border-radius: 8px;
	color: var(--orange-dark) !important;
}

.support-link:hover {
	background: var(--orange);
	color: #fff !important;
}

.language-select { max-width: 170px; padding: 9px 30px 9px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-raised); color: var(--text); font: inherit; font-size: 0.86rem; }

.lang-switch { display: flex; align-items: center; gap: 10px; }
.lang-switch a { font-size: 0.86rem; }
.lang-switch a.active { color: var(--primary-dark); font-weight: 800; text-decoration: underline; }

.skip-link { position: absolute; top: -60px; left: 16px; padding: 8px 12px; background: var(--text); color: white; z-index: 10; }
.skip-link:focus { top: 12px; }


.page-intro {
	position: relative;
	overflow: hidden;
	padding: 54px 0 76px;
	background:
		linear-gradient(125deg, rgba(41, 37, 36, 0.98), rgba(68, 53, 44, 0.92)),
		repeating-linear-gradient(120deg, transparent 0, transparent 52px, rgba(255, 255, 255, 0.05) 53px, transparent 54px);
	color: #fff;
}

.page-intro::before,
.page-intro::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: var(--orange);
	opacity: 0.12;
}

.page-intro::before {
	top: -150px;
	right: 8vw;
	width: 360px;
	height: 360px;
}

.page-intro::after {
	right: 2vw;
	bottom: -150px;
	width: 260px;
	height: 260px;
	border: 44px solid #fff;
	background: transparent;
	opacity: 0.05;
}

.intro-inner {
	position: relative;
	z-index: 1;
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
}

.breadcrumb ol {
	display: flex;
	gap: 10px;
	margin: 0 0 34px;
	padding: 0;
	color: rgba(255, 255, 255, 0.68);
	font-size: 14px;
	list-style: none;
}

.breadcrumb li + li::before {
	content: "/";
	margin-right: 10px;
}

.breadcrumb a {
	text-decoration: none;
}

.eyebrow,
.chapter-label {
	margin: 0 0 8px;
	color: var(--orange-dark);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
}

.page-intro .eyebrow {
	color: #fb923c;
}

.page-intro h1 {
	max-width: 800px;
	margin: 0;
	font-size: clamp(38px, 5vw, 62px);
	line-height: 1.18;
	letter-spacing: -0.03em;
}

.intro-summary {
	max-width: 680px;
	margin: 22px 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 18px;
}

.intro-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}

.intro-meta span {
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 13px;
}

.tutorial-layout {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
	padding: 72px 0 100px;
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 72px;
	align-items: start;
}

.chapter-nav {
	position: sticky;
	top: 108px;
}

.chapter-nav-title {
	margin: 0 0 14px;
	color: var(--ink);
	font-size: 13px;
	font-weight: 800;
}

.chapter-nav nav {
	border-top: 1px solid var(--line);
}

.chapter-nav a {
	display: flex;
	gap: 12px;
	padding: 13px 4px;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.chapter-nav a:hover {
	color: var(--orange-dark);
}

.chapter-nav span {
	color: var(--orange);
	font-variant-numeric: tabular-nums;
}

.chapters {
	min-width: 0;
}

.tutorial-chapter {
	padding: 0 0 78px;
	border-bottom: 1px solid var(--line);
}

.tutorial-chapter + .tutorial-chapter {
	padding-top: 78px;
}

.chapter-heading {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	gap: 22px;
	margin-bottom: 36px;
}

.chapter-number {
	width: 58px;
	height: 58px;
	display: grid;
	place-items: center;
	background: var(--orange);
	border-radius: 10px;
	color: #fff;
	font-size: 18px;
	font-weight: 800;
}

.chapter-heading h2,
.download-band h2 {
	margin: 0;
	color: var(--ink);
	font-size: 32px;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.chapter-description {
	margin: 10px 0 0;
	color: var(--muted);
}

.steps {
	display: grid;
	gap: 28px;
}

.tutorial-step {
	display: grid;
	grid-template-columns: minmax(240px, 1fr) minmax(260px, 360px);
	gap: 42px;
	align-items: center;
	padding: 36px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: 0 16px 44px rgba(120, 75, 40, 0.07);
}

.compact-step {
	grid-template-columns: 1fr;
}

.step-index {
	display: inline-block;
	margin-bottom: 14px;
	padding-bottom: 4px;
	border-bottom: 2px solid var(--orange);
	color: var(--orange-dark);
	font-size: 13px;
	font-weight: 800;
}

.step-copy h3 {
	margin: 0 0 12px;
	color: var(--ink);
	font-size: 23px;
	line-height: 1.4;
}

.step-copy p {
	margin: 0;
	color: var(--muted);
}

.step-copy strong {
	color: var(--ink);
}

.check-list,
.number-list {
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
}

.check-list li,
.number-list li {
	position: relative;
	margin-top: 8px;
	padding-left: 28px;
}

.check-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--success);
	font-weight: 900;
}

.number-list {
	counter-reset: troubleshooting;
}

.number-list li {
	counter-increment: troubleshooting;
}

.number-list li::before {
	content: counter(troubleshooting);
	position: absolute;
	left: 0;
	color: var(--orange-dark);
	font-weight: 900;
}

.step-image {
	width: 100%;
	justify-self: center;
	border-radius: 10px;
	/* background: var(--orange-soft); */
}

.step-image.landscape {
	aspect-ratio: 4 / 3;
	object-fit:contain;
}

img[src$="connect.png"].landscape {
	aspect-ratio: 2 / 1;
}

.tutorial-visual {
	width: min(100%, 300px);
	min-height: 320px;
	justify-self: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 1px solid #fed7aa;
	border-radius: 18px;
	background: linear-gradient(145deg, #fff7ed, #ffedd5);
	color: var(--ink);
	text-align: center;
}

.permissions {
	min-height: 240px;
	flex-direction: row;
	gap: 12px;
}

.permissions span {
	width: 72px;
	height: 72px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 8px 24px rgba(194, 65, 12, 0.1);
	color: var(--orange-dark);
	font-size: 11px;
	font-weight: 900;
}

.phone-card {
	min-height: 360px;
	border: 10px solid var(--ink);
	border-radius: 36px;
	background: #fff;
}

.phone-card::before {
	content: "";
	width: 62px;
	height: 8px;
	margin-bottom: 80px;
	border-radius: 999px;
	background: var(--ink);
}

.phone-card small,
.qr-card small,
.placement small,
.live-card small {
	color: var(--muted);
	font-weight: 700;
}

.phone-card strong {
	margin: 4px 0;
	color: var(--orange);
	font-size: 34px;
}

.qr-card {
	gap: 22px;
}

.qr-pattern {
	width: 160px;
	height: 160px;
	border: 14px solid #fff;
	background:
		linear-gradient(90deg, var(--ink) 14px, transparent 14px) 0 0 / 28px 28px,
		linear-gradient(var(--ink) 14px, transparent 14px) 0 0 / 28px 28px,
		#fff;
	box-shadow: 0 0 0 1px var(--line);
}

.placement {
	min-height: 260px;
	border: 10px solid var(--ink);
	border-radius: 28px;
}

.camera-dot {
	width: 18px;
	height: 18px;
	margin-bottom: 50px;
	border: 5px solid var(--ink);
	border-radius: 50%;
}

.placement strong {
	color: var(--orange);
	font-size: 28px;
}

.live-card {
	min-height: 280px;
	padding: 32px;
	align-items: flex-start;
	background: var(--ink);
	color: #fff;
	text-align: left;
}

.status-dot {
	width: 12px;
	height: 12px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: var(--success);
	box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.13);
}

.live-card small {
	color: #a8a29e;
	letter-spacing: 0.12em;
}

.live-card strong {
	margin: 8px 0 32px;
	font-size: 24px;
}

.live-button {
	width: 100%;
	padding: 11px;
	border-radius: 8px;
	background: var(--orange);
	text-align: center;
	font-weight: 800;
}

.tip-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.tip-grid article {
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
}

.tip-grid span {
	color: var(--orange);
	font-size: 13px;
	font-weight: 900;
}

.tip-grid h3 {
	margin: 12px 0 8px;
	font-size: 19px;
}

.tip-grid p {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.download-band {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto 100px;
	padding: 48px 52px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 36px;
	border-radius: 14px;
	background: var(--ink);
	color: #fff;
}

.download-band h2 {
	color: #fff;
}

.download-band p:last-child {
	margin: 8px 0 0;
	color: #d6d3d1;
}

.primary-action {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 14px;
	padding: 13px 22px;
	border-radius: 8px;
	background: var(--orange);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
}

.primary-action:hover {
	background: var(--orange-dark);
}

.site-footer {
	padding: 52px 20px;
	background: #fff;
	border-top: 1px solid var(--line);
	color: var(--muted);
	text-align: center;
}

.footer-brand {
	color: var(--ink);
	font-size: 21px;
	font-weight: 800;
	text-decoration: none;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
	margin: 16px 0;
}

.footer-links a {
	font-size: 14px;
	text-decoration: none;
}

.footer-links a:hover {
	color: var(--orange-dark);
}

.site-footer p {
	margin: 0;
	font-size: 13px;
}

.primary-action:focus-visible,
.header-nav a:focus-visible,
.chapter-nav a:focus-visible {
	outline: 3px solid #fdba74;
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.tutorial-layout {
		grid-template-columns: 1fr;
		gap: 42px;
		padding-top: 48px;
	}

	.chapter-nav {
		position: static;
		overflow-x: auto;
	}

	.chapter-nav nav {
		min-width: max-content;
		display: flex;
		gap: 8px;
		border-top: 0;
	}

	.chapter-nav a {
		padding: 9px 13px;
		border: 1px solid var(--line);
		border-radius: 8px;
		background: var(--paper);
	}

	.download-band {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 680px) {
	html {
		scroll-padding-top: 74px;
	}

	.header-inner {
		width: calc(100% - 28px);
		min-height: 64px;
	}

	.brand {
		font-size: 16px;
	}

	.brand-mark {
		width: 30px;
		height: 30px;
	}

	.header-nav {
		gap: 16px;
	}

	.header-nav a {
		font-size: 14px;
	}

	.header-nav a:first-child,
	.support-link {
		display: none;
	}

	.header-nav a:not(.support-link) {
		padding: 18px 0 15px;
	}

	.page-intro {
		padding: 34px 0 52px;
	}

	.intro-inner,
	.tutorial-layout,
	.download-band {
		width: calc(100% - 28px);
	}

	.breadcrumb ol {
		margin-bottom: 24px;
	}

	.page-intro h1 {
		font-size: 36px;
	}

	.intro-summary {
		font-size: 16px;
	}

	.tutorial-layout {
		padding-bottom: 72px;
	}

	.tutorial-chapter {
		padding-bottom: 58px;
	}

	.tutorial-chapter + .tutorial-chapter {
		padding-top: 58px;
	}

	.chapter-heading {
		grid-template-columns: 46px minmax(0, 1fr);
		gap: 14px;
	}

	.chapter-number {
		width: 46px;
		height: 46px;
		font-size: 15px;
	}

	.chapter-heading h2,
	.download-band h2 {
		font-size: 26px;
	}

	.tutorial-step {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 24px 18px;
	}

	.tutorial-visual {
		width: min(100%, 270px);
	}

	.tip-grid {
		grid-template-columns: 1fr;
	}

	.download-band {
		margin-bottom: 72px;
		padding: 34px 24px;
	}

	.primary-action {
		width: 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
