/* Calid 官网 —— 全站共用样式。
   设计口径：白底、细线、大留白；唯一强调色是「热」的赭红，只用在与温度有关的数字和主按钮上。
   不做渐变、不做大色块、不引第三方字体（系统字体在 macOS 上就是 SF，最贴近产品本身）。 */

:root {
	--ink: #16181c;
	--ink-2: #3f444d;
	--muted: #767c86;
	--line: #e7e8ea;
	--line-2: #d8dade;
	--soft: #f7f7f8;
	--heat: #c2410c;
	--heat-soft: #fdf1ea;
	--radius: 14px;
	--wrap: 980px;
}

* { box-sizing: border-box; }

/* hidden 属性必须压过作者样式。
   .btn 是 display:inline-flex、.code-box 是 display:flex —— 作者样式的
   优先级高于浏览器给 [hidden] 的 display:none，于是「隐藏」根本不生效：
   结账页那颗「重新生成」按钮会一直挂着，没拿到码时也会出现一个空码框。 */
[hidden] { display: none !important; }

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

body {
	margin: 0;
	background: #fff;
	color: var(--ink);
	font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
		"Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0; }

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 28px;
}

/* ---------- 顶栏 ---------- */

header.site {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--line);
}

header.site .wrap {
	display: flex;
	align-items: center;
	gap: 20px;
	height: 58px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.brand img { width: 22px; height: 22px; border-radius: 6px; }

header.site nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 26px;
	font-size: 13.5px;
	color: var(--muted);
}

header.site nav a:hover { color: var(--ink); }

.nav-lang {
	padding-left: 22px;
	border-left: 1px solid var(--line);
	color: var(--ink-2);
}

/* ---------- 版式块 ---------- */

section.band { padding: 92px 0; }
section.band + section.band { border-top: 1px solid var(--line); }
section.band.tight { padding: 64px 0; }

.eyebrow {
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

h1 {
	margin: 18px 0 0;
	font-size: 44px;
	line-height: 1.18;
	font-weight: 600;
	letter-spacing: -0.02em;
}

h2 {
	margin: 14px 0 0;
	font-size: 28px;
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: -0.01em;
}

h3 {
	margin: 0;
	font-size: 15.5px;
	font-weight: 600;
}

.lede {
	margin-top: 18px;
	font-size: 17px;
	line-height: 1.72;
	color: var(--ink-2);
	max-width: 34em;
}

.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.6; }

/* ---------- 首屏 ---------- */

/* 🔴 只写上下，不能用 padding 简写。这个 section 同时挂着 .wrap，
   `padding: 76px 0 84px` 会把 .wrap 的左右 28px 一起抹成 0 —— 桌面端
   首屏文字因此比下面各区块更靠左，手机上更是直接贴屏幕边（"MACOS" 的 M 被切掉半条）。
   分开写就只剩上下生效，左右仍归 .wrap 管。 */
.hero { padding-top: 76px; padding-bottom: 84px; }

.hero .grid {
	display: grid;
	grid-template-columns: 1.04fr 0.96fr;
	gap: 56px;
	align-items: center;
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	padding: 0 20px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	border: 1px solid transparent;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }

.btn-ghost {
	border-color: var(--line-2);
	color: var(--ink);
	background: #fff;
}
.btn-ghost:hover { border-color: var(--ink-2); }

.spec {
	margin-top: 22px;
	font-size: 12.5px;
	color: var(--muted);
	letter-spacing: 0.01em;
}

.spec span + span::before {
	content: "·";
	margin: 0 9px;
	color: var(--line-2);
}

/* 截图外框。
   2026-11-17 起截图自带「菜单栏 + 桌面 + 面板」三层，它本身就是一张完整的屏幕片段，
   所以这里不再给它加 border 和白底（那会变成「卡片里嵌卡片」，框套框看着发重），
   只留圆角裁切和一层浮起的阴影。 */
.shot {
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 18px 44px rgba(16, 18, 22, 0.09), 0 2px 6px rgba(16, 18, 22, 0.04);
}

/* 🔴 height: auto 不能省。HTML 里的 width/height 属性是 presentational hint，
   会直接变成 CSS 的 height:405px / 522px；只写 width:100% 的话宽度跟着容器缩放、
   高度却钉死在原图像素上 ⇒ 图片被纵向拉长（实测 338×405 对 1.48 的原比例是 -43.7%，
   截图里的文字整个压瘦）。写成 auto 之后浏览器仍会用两个属性算出 aspect-ratio
   提前占位，加载前不跳、加载后不变形，两边都要。 */
.shot img { width: 100%; height: auto; }

/* 400 而不是 340：截图里含菜单栏，整体缩到 340 时 13pt 的菜单项只剩 12px，
   在 1x 屏上看不清 —— 而菜单栏正是这张图想说的事，看不清就白加了。 */
.hero .shot { width: 100%; max-width: 400px; margin-left: auto; }

/* ---------- 三栏 ---------- */

.cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-top: 46px;
}

.card {
	border-top: 1px solid var(--line-2);
	padding-top: 20px;
}

.card p {
	margin-top: 9px;
	font-size: 14px;
	line-height: 1.72;
	color: var(--ink-2);
}

.card .num {
	font-size: 12px;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.08em;
}

/* ---------- 双栏截图 ---------- */

.two {
	display: grid;
	grid-template-columns: 400px 1fr;
	gap: 44px;
	align-items: center;
	margin-top: 44px;
}

.two.rev { grid-template-columns: 1fr 400px; }

.two .shot { max-width: 400px; }

.two h3 { font-size: 17px; }

.two p {
	margin-top: 10px;
	font-size: 14.5px;
	line-height: 1.75;
	color: var(--ink-2);
}

.deg {
	font-variant-numeric: tabular-nums;
	color: var(--heat);
}

/* ---------- 诚实说明 ---------- */

.honest {
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 34px 36px;
	margin-top: 40px;
}

.honest h3 { font-size: 15px; }
.honest p {
	margin-top: 12px;
	font-size: 14.5px;
	line-height: 1.78;
	color: var(--ink-2);
}
.honest p + h3 { margin-top: 28px; }
.honest b { font-weight: 600; color: var(--ink); }

/* ---------- 下载 + 赞助 ----------
   2026-11-27 起不再定价：不摆价格、不摆功能清单（功能在 #how 已经讲过）。
   一张卡片，左边只说「这份下载是什么」，右边放两个动作：下载（主）与赞助（次）。 */

.free-card {
	display: grid;
	grid-template-columns: 1.35fr 0.65fr;
	gap: 44px;
	align-items: center;
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 12px 30px rgba(16, 18, 22, 0.06);
	padding: 34px 36px;
	margin-top: 44px;
}

.free-card .get-copy h3 { margin: 0 0 10px; }

.free-card .get-copy p {
	font-size: 14px;
	line-height: 1.7;
	color: var(--ink-2);
}

.free-cta {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.free-cta .btn { width: 100%; }

/* 支付宝收款码（只出现在中文页）。二维码永远衬白底 —— 黑码白底是它的
   识别前提，直接贴在深色卡片上四周留白消失，扫码识别率会掉。 */
.alipay {
	margin-top: 14px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.alipay img {
	width: 128px;
	height: 128px;
	padding: 8px;
	background: #fff;
	border-radius: 8px;
	border: 1px solid var(--line-2);
}

.alipay-note {
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--muted);
}

.free-cta .note {
	margin-top: 4px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--muted);
	text-align: center;
}

/* ---------- FAQ ---------- */

.faq { margin-top: 38px; }

.faq dt {
	font-size: 15px;
	font-weight: 600;
	padding-top: 22px;
	border-top: 1px solid var(--line);
}

.faq dd {
	margin: 8px 0 22px;
	font-size: 14.5px;
	line-height: 1.75;
	color: var(--ink-2);
	max-width: 46em;
}

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

footer.site {
	border-top: 1px solid var(--line);
	padding: 44px 0 56px;
	font-size: 13px;
	color: var(--muted);
}

footer.site .wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
	align-items: baseline;
}

footer.site .links {
	margin-left: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
}

footer.site a:hover { color: var(--ink); }

/* ---------- 法务页 ---------- */

.legal { padding: 64px 0 90px; }

.legal h1 {
	font-size: 30px;
	margin: 0;
	letter-spacing: -0.01em;
}

.legal .updated {
	margin-top: 10px;
	font-size: 12.5px;
	color: var(--muted);
}

.legal h2 {
	font-size: 16px;
	margin: 36px 0 0;
	letter-spacing: 0;
}

.legal p,
.legal li {
	font-size: 14.5px;
	line-height: 1.8;
	color: var(--ink-2);
	margin-top: 10px;
	max-width: 44em;
}

.legal ul { margin: 6px 0 0; padding-left: 20px; }

.legal .back {
	display: inline-block;
	margin-top: 44px;
	font-size: 13px;
	color: var(--muted);
	border-bottom: 1px solid var(--line-2);
}

/* ---------- 结算页（checkout.html） ---------- */

/* 一列、窄、居中。这一页只有一个表单，把它拉宽只是让视线来回跑。 */
.checkout {
	max-width: 620px;
	padding: 64px 28px 88px;
}

.checkout h1 { margin-top: 0; font-size: 34px; }

.test-banner {
	display: inline-block;
	margin-bottom: 20px;
	padding: 7px 13px;
	border-radius: 999px;
	background: var(--heat-soft);
	color: var(--heat);
	font-size: 12.5px;
	font-weight: 500;
}

.pay-card {
	margin-top: 30px;
	padding: 26px 26px 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.pay-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 18px;
	font-size: 15px;
}

.pay-price {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.muted-row {
	margin-top: 8px;
	font-size: 13px;
	color: var(--muted);
}

#pay-form { margin-top: 26px; }

.field-label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	color: var(--ink-2);
}

.field {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--line-2);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	font: inherit;
	font-size: 15px;
}

.field:focus {
	outline: none;
	border-color: var(--ink);
	box-shadow: 0 0 0 3px rgba(22, 24, 28, 0.06);
}

.field-hint {
	margin-top: 8px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--muted);
}

.btn-block { width: 100%; margin-top: 18px; }
.btn-sm { height: 32px; padding: 0 14px; margin-left: auto; font-size: 13px; }

.field-error {
	margin-top: 12px;
	font-size: 13px;
	color: var(--heat);
}

.done { margin-top: 24px; }

.done-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--line-2);
	border-radius: 50%;
	background: var(--soft);
	font-size: 15px;
}

.done h2 { margin-top: 14px; font-size: 22px; }
.done .lede { font-size: 15px; margin-top: 8px; }

.code-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 22px;
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--soft);
}

.code-label { width: 100%; font-size: 12px; color: var(--muted); }

#code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 17px;
	letter-spacing: 0.06em;
}

.steps {
	margin: 24px 0 0;
	padding-left: 20px;
	font-size: 14.5px;
	line-height: 1.8;
	color: var(--ink-2);
}

.steps li { margin-top: 6px; }

.done > .btn { margin-top: 26px; }

/* ---------- 扫码支付 ---------- */
/* 二维码那一块必须永远是白底黑码，不跟随任何主题：
   深色底或彩色底会让识别率明显下降，而这是付款链路的最后一步。 */
.qr-stage { margin-top: 26px; text-align: center; }

.qr-box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(248px, 66vw);
	aspect-ratio: 1;
	margin: 0 auto;
	padding: 11px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fff;
}

.qr-box svg { display: block; width: 100%; height: 100%; }
.qr-placeholder { font-size: 13px; line-height: 1.7; color: var(--muted); }
.qr-caption { margin-top: 12px; font-size: 13px; color: var(--muted); }

.pay-meta {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 18px;
	margin-top: 14px;
	font-size: 12.5px;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.pay-meta code { font-size: 12px; letter-spacing: 0.03em; }

.pay-status {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 10px;
	font-size: 13px;
	color: var(--heat);
}

.pay-status .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	animation: calid-pulse 1.6s ease-in-out infinite;
}

@keyframes calid-pulse {
	0%, 100% { opacity: 0.28; }
	50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.pay-status .dot { animation: none; opacity: 1; }
}

.qr-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 18px;
}

/* 演示模式：用文案把它和真实支付区分开，别让人以为已经扣款。 */
.test-banner.warn { background: #fdf1e3; color: #9a5000; }

.fine {
	margin-top: 26px;
	font-size: 12.5px;
	color: var(--muted);
}

/* ---------- 「码丢了」相关的三处：恢复提示 / 收件地址 / 重发入口 ----------
   语气统一：一句话说明白，不加图标、不加色块。这些元素都出现在用户
   已经付过钱或正要付钱的时刻，任何多余的东西都像是在推销。 */

.resume {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--soft);
	font-size: 13px;
	color: var(--ink-2);
}

.resume span { flex: 1 1 200px; }
.resume .btn { margin-left: 0; }

.linkish {
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.fine .linkish { margin: 0; }

.done-resend { margin-top: 18px; font-size: 13px; color: var(--muted); }

.resend {
	margin-top: 30px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	/* 从 #resend 深链进来会滚到这里，留出站点头的高度，
	   否则标题会被那条固定头压住一截。 */
	scroll-margin-top: 84px;
}

.resend h2 { font-size: 18px; }
.resend .field-hint { margin: 8px 0 12px; }

/* ---------- 窄屏 ---------- */

@media (max-width: 820px) {
	.hero { padding-top: 52px; padding-bottom: 60px; }
	.hero .grid,
	.two,
	.two.rev { grid-template-columns: 1fr; gap: 34px; }
	.hero .shot { margin: 0 auto; }
	.cols { grid-template-columns: 1fr; gap: 24px; }
	.free-card { grid-template-columns: 1fr; gap: 28px; padding: 26px 22px; }
	h1 { font-size: 34px; }
	h2 { font-size: 24px; }
	section.band { padding: 64px 0; }
	header.site nav { gap: 18px; }
	header.site nav a:not(.nav-lang) { display: none; }
	.honest { padding: 26px 22px; }
	.checkout { padding: 40px 22px 64px; }
	.checkout h1 { font-size: 28px; }
	.pay-card { padding: 20px 18px 18px; }
}
