/* ==========================================================================
   拾光机 官方网站 · 全站样式
   自研轻量设计系统，替代原 Amaze UI + fullPage（无框架、无构建、无 jQuery）
   品牌色取自官方 logo（蓝色系）
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
	/* 品牌色（logo 蓝） */
	--brand: #1e88e5;
	--brand-600: #1976d2;
	--brand-700: #1565c0;
	--brand-deep: #0d2b6b;
	--brand-deeper: #081d4a;
	--brand-light: #4fc3f7;
	--brand-soft: #eaf4ff;

	/* 中性色 */
	--ink: #0f1c33;
	--ink-2: #35435c;
	--muted: #6b7c93;
	--line: #e4eaf3;
	--bg: #ffffff;
	--bg-soft: #f5f8fd;
	--bg-dark: #0b1730;

	/* 语义色 */
	--ok: #12b76a;

	/* 圆角 / 阴影 / 间距 */
	--r-sm: 10px;
	--r-md: 16px;
	--r-lg: 22px;
	--r-pill: 999px;
	--sh-1: 0 1px 2px rgba(13, 43, 107, .06), 0 4px 14px rgba(13, 43, 107, .06);
	--sh-2: 0 8px 30px rgba(13, 43, 107, .10);
	--sh-brand: 0 10px 30px rgba(30, 136, 229, .28);

	--w: 1180px;
	--header-h: 72px;

	--font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB",
		system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.75;
	color: var(--ink-2);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--brand-600); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-700); }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
	margin: 0 0 .6em;
	color: var(--ink);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

:focus-visible {
	outline: 3px solid rgba(30, 136, 229, .45);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---------- 3. 布局 ---------- */
.wrap { width: min(100% - 40px, var(--w)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: linear-gradient(160deg, var(--brand-deep), var(--brand-deeper)); color: #cddcf5; }
.section--dark h2 { color: #fff; }
.section--dark p { color: #a9c0e4; }

.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.section--dark .section-head p { color: #9db6dd; }

.eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	padding: 5px 14px;
	border-radius: var(--r-pill);
	background: var(--brand-soft);
	color: var(--brand-700);
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .04em;
}
.section--dark .eyebrow { background: rgba(79, 195, 247, .14); color: var(--brand-light); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 4. 顶栏导航 ---------- */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	height: var(--header-h);
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, .82);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.is-scrolled {
	border-bottom-color: var(--line);
	box-shadow: 0 6px 24px rgba(13, 43, 107, .06);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; }

.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand b { display: block; font-size: 1.12rem; font-weight: 700; letter-spacing: .02em; line-height: 1.2; }
.brand span { display: block; color: var(--muted); font-size: .74rem; letter-spacing: .16em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
	padding: 9px 14px;
	border-radius: var(--r-pill);
	color: var(--ink-2);
	font-size: .95rem;
	font-weight: 500;
}
.nav a:hover { background: var(--brand-soft); color: var(--brand-700); }
.nav a.is-active { color: var(--brand-700); font-weight: 600; }

.nav-toggle {
	display: none;
	margin-left: auto;
	width: 44px; height: 44px;
	align-items: center; justify-content: center;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
}
.nav-toggle span {
	display: block; width: 18px; height: 2px; margin: 3px auto;
	background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 5. 按钮 ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 46px; padding: 0 24px;
	border: 1px solid transparent; border-radius: var(--r-pill);
	font-size: .97rem; font-weight: 600; white-space: nowrap;
	cursor: pointer; transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; box-shadow: var(--sh-brand); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 34px rgba(30, 136, 229, .34); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-700); }
.btn-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-light:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn-lg { height: 54px; padding: 0 30px; font-size: 1.02rem; }

/* ---------- 6. 首屏 Hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(64px, 9vw, 116px);
	background:
		radial-gradient(1000px 520px at 82% -8%, rgba(79, 195, 247, .30), transparent 60%),
		radial-gradient(760px 460px at 6% 8%, rgba(30, 136, 229, .18), transparent 62%),
		linear-gradient(165deg, #f7fbff 0%, #eef5fe 100%);
}
.hero::after {
	content: "";
	position: absolute; right: -160px; top: -120px;
	width: 520px; height: 520px; border-radius: 50%;
	background: linear-gradient(135deg, rgba(79, 195, 247, .34), rgba(30, 136, 229, .18));
	filter: blur(6px);
	pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.hero h1 {
	margin-bottom: 14px;
	font-size: clamp(1.8rem, 3.7vw, 2.85rem);   /* 比通用 h1 收一档，避免"地方"被拆到第三行 */
	line-height: 1.22;
	word-break: break-word;
}
.hero .lead { max-width: 560px; font-size: clamp(1.02rem, 2.2vw, 1.22rem); color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 7px 14px; border-radius: var(--r-pill);
	background: #fff; border: 1px solid var(--line);
	color: var(--ink-2); font-size: .86rem; box-shadow: var(--sh-1);
}
.badge svg { width: 16px; height: 16px; color: var(--brand); flex: none; }

.hero-visual {
	position: relative;
	display: flex; align-items: center; justify-content: center;
	min-height: 320px;
}
.hero-visual .glow {
	position: absolute; inset: 8% 12%;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 40%, rgba(79, 195, 247, .40), rgba(30, 136, 229, .06) 70%);
	filter: blur(18px);
}
.hero-visual img {
	position: relative;
	width: min(78%, 320px);
	filter: drop-shadow(0 22px 40px rgba(13, 43, 107, .22));
}

/* ---------- 7. 卡片 ---------- */
.card {
	padding: 26px 24px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	box-shadow: var(--sh-1);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: #d6e4f7; }
.card h3 { margin-bottom: .45em; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .ico {
	width: 52px; height: 52px; margin-bottom: 16px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 14px; background: var(--brand-soft); color: var(--brand-700);
}
.card .ico svg { width: 26px; height: 26px; }
.section--dark .card {
	background: rgba(255, 255, 255, .05);
	border-color: rgba(255, 255, 255, .12);
	box-shadow: none;
}
.section--dark .card:hover { background: rgba(255, 255, 255, .08); }
.section--dark .card h3 { color: #fff; }
.section--dark .card p { color: #a9c0e4; }

/* ---------- 8. 业务流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.flow-item {
	position: relative;
	padding: 22px 16px 20px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	text-align: center;
	box-shadow: var(--sh-1);
}
.flow-item::before {
	counter-increment: step;
	content: counter(step, decimal-leading-zero);
	display: block; margin-bottom: 10px;
	color: var(--brand); font-size: .8rem; font-weight: 700; letter-spacing: .12em;
}
.flow-item b { display: block; margin-bottom: 6px; color: var(--ink); font-size: .99rem; }
.flow-item small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.6; }

/* ---------- 9. 产品（双端） ---------- */
.product { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; padding: 30px; }
.product + .product { margin-top: 20px; }
.product .qr {
	width: 176px; height: 176px; padding: 10px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
	box-shadow: var(--sh-1);
}
.product .qr img { width: 100%; height: 100%; object-fit: contain; }
/* 二维码占位（正式码未替换前使用，避免扫到错误的码） */
.qr-empty {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	width: 100%; height: 100%; padding: 8px;
	border: 1px dashed #c7d8ee; border-radius: 12px; background: #f8fbff;
	color: var(--muted); font-size: .78rem; line-height: 1.55; text-align: center;
}
.qr-empty b { color: var(--ink-2); font-size: .88rem; }
.product h3 { margin-bottom: .35em; font-size: 1.25rem; }
.product .tag {
	display: inline-block; margin-bottom: 12px; padding: 3px 11px;
	border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand-700);
	font-size: .78rem; font-weight: 600;
}
.product ul { display: grid; gap: 8px; }
.product li { position: relative; padding-left: 22px; color: var(--muted); font-size: .95rem; }
.product li::before {
	content: ""; position: absolute; left: 4px; top: .62em;
	width: 7px; height: 7px; border-radius: 50%;
	background: linear-gradient(135deg, var(--brand-light), var(--brand));
}

/* ---------- 10. 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat { text-align: center; padding: 8px; }
.stat b { display: block; color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.stat span { color: #9db6dd; font-size: .9rem; }

/* ---------- 11. 关于 / 联系 ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(26px, 4vw, 52px); align-items: start; }
.info-list { display: grid; gap: 16px; }
.info-row { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row dt { color: var(--muted); font-size: .92rem; }
.info-row dd { margin: 0; color: var(--ink); font-weight: 500; }
.info-row dd a { font-weight: 500; }

.map-card {
	padding: 24px;
	background: linear-gradient(160deg, var(--brand-deep), var(--brand-deeper));
	border-radius: var(--r-lg);
	color: #cddcf5;
	box-shadow: var(--sh-2);
}
.map-card h3 { color: #fff; }
.map-card p { color: #9db6dd; margin-bottom: 0; }
/* 深色卡片里的定义列表必须覆盖回浅色，否则深色字压在深蓝底上看不见 */
.map-card .info-list { color: #cddcf5; }
.map-card .info-row { border-bottom-color: rgba(255, 255, 255, .16); }
.map-card .info-row dt { color: #9db6dd; }
.map-card .info-row dd { color: #fff; font-weight: 600; }
.map-card .info-row dd a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.map-card .info-row dd a:hover { color: #cfe6ff; }

/* ---------- 12. 招聘 ---------- */
.job {
	display: flex; align-items: center; justify-content: space-between; gap: 18px;
	padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-md);
	background: #fff; box-shadow: var(--sh-1);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.job + .job { margin-top: 14px; }
.job:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: #d6e4f7; }
.job b { display: block; color: var(--ink); font-size: 1.05rem; }
.job small { color: var(--muted); }
.job .arrow { color: var(--brand); font-weight: 600; font-size: .92rem; white-space: nowrap; }

/* ---------- 13. CTA 条 ---------- */
.cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
	padding: clamp(28px, 4vw, 44px);
	border-radius: var(--r-lg);
	background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
	color: #fff; box-shadow: var(--sh-brand);
}
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { margin: 0; color: rgba(255, 255, 255, .88); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 14. 页脚 ---------- */
.site-footer { background: var(--bg-dark); color: #8fa5c6; padding: 56px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { color: #8fa5c6; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-brand img { width: 38px; height: 38px; }
.footer-brand b { color: #fff; font-size: 1.05rem; }
.footer-links { display: grid; gap: 9px; }
.footer-bottom {
	margin-top: 38px; padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between;
	font-size: .84rem; color: #7188ab;
}

/* ---------- 15. 通用小组件 ---------- */
.note {
	padding: 16px 18px;
	border: 1px dashed #cfe0f6;
	border-left: 3px solid var(--brand);
	border-radius: var(--r-sm);
	background: #f8fbff;
	color: var(--ink-2);
	font-size: .93rem;
}
.note strong { color: var(--ink); }
.muted { color: var(--muted); }
.center { text-align: center; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-weight: 500; }

.doc {
	max-width: 860px; margin-inline: auto;
	padding: clamp(24px, 4vw, 44px);
	background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1);
}
.doc h2 { font-size: 1.5rem; margin-top: 1.6em; }
.doc h3 { font-size: 1.08rem; margin-top: 1.5em; }
.doc p, .doc li { color: var(--ink-2); font-size: .96rem; }
.doc ul { display: grid; gap: 8px; margin: 0 0 1em; }
.doc li { position: relative; padding-left: 20px; }
.doc li::before {
	content: ""; position: absolute; left: 3px; top: .65em;
	width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
/* 文档内表格（隐私政策的权限表 / 第三方 SDK 清单 ✓） */
.doc table {
	width: 100%; border-collapse: collapse; margin: 0 0 1.2em;
	font-size: .9rem; display: block; overflow-x: auto; max-width: 100%;
}
.doc th, .doc td {
	border: 1px solid var(--line); padding: 10px 12px;
	text-align: left; vertical-align: top; color: var(--ink-2);
}
.doc th { background: #f5f7f9; color: var(--ink); font-weight: 600; white-space: nowrap; }
@media (max-width: 860px) {
	.doc table { font-size: .84rem; }
	.doc th { white-space: normal; }
}

/* ---------- 16. 进场动画 ----------
   仅在 JS 可用时（html 带 .js 类）才把内容藏起来做动画。
   否则 JS 加载失败 / 被爬虫抓取时，首屏以下的内容会整段不可见。 */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1024px) {
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
	.hero-grid, .about-grid { grid-template-columns: 1fr; }
	.hero-visual { order: -1; min-height: 220px; }
	.hero-visual img { width: min(56%, 240px); }
	.grid-3 { grid-template-columns: 1fr; }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.product { grid-template-columns: 1fr; text-align: center; }
	.product .qr { margin-inline: auto; }
	.product li { text-align: left; }
	.cta { flex-direction: column; align-items: flex-start; }

	/* 移动端导航 */
	.nav-toggle { display: flex; }
	.nav {
		position: fixed; inset: var(--header-h) 0 auto;
		margin: 0; padding: 14px 20px 22px;
		flex-direction: column; align-items: stretch; gap: 2px;
		background: #fff; border-bottom: 1px solid var(--line);
		box-shadow: var(--sh-2);
		transform: translateY(-118%); opacity: 0; visibility: hidden;
		transition: transform .26s ease, opacity .26s ease, visibility .26s;
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
	}
	.nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.nav a { padding: 13px 14px; border-radius: 12px; font-size: 1rem; }
	.site-header .btn-primary { display: none; }
}

@media (max-width: 560px) {
	.grid-2, .grid-4 { grid-template-columns: 1fr; }
	.flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1fr; }
	.hero-cta .btn { width: 100%; }
	.info-row { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.card:hover, .job:hover { transform: none; }
}
