/*
Theme Name: 蜂鸟交易纪律
Theme URI: http://127.0.0.1:8088/
Author: 蜂鸟交易纪律
Description: 蜂鸟交易纪律专用轻量主题：研究终端式外壳、三档自适应布局、深浅双主题，内嵌 [dalt_app] 应用。
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: dalv
*/

/* =========================================================
   1. 设计令牌
   ========================================================= */
:root {
	/* 表面与文字 */
	--bg: #070c15;
	--bg-2: #0a121f;
	--surface: #0e1928;
	--surface-2: #142235;
	--text: #e9f0fa;
	--text-2: #b9c8dc;
	--muted: #8698b2;
	--line: rgba(255, 255, 255, .085);
	--line-2: rgba(255, 255, 255, .17);

	/* 品牌色：涨绿为主，情绪金为辅 */
	--accent: #2ee6a8;
	--accent-ink: #04120d;
	--accent-soft: rgba(46, 230, 168, .11);
	--gold: #f0c069;
	--gold-soft: rgba(240, 192, 105, .11);
	--btn-bg: linear-gradient(135deg, #35eab0, #1cc08d);
	--btn-ink: #04120d;
	--btn-shadow: 0 10px 26px rgba(46, 230, 168, .22);

	/* 光晕 */
	--tint-1: rgba(46, 230, 168, .09);
	--tint-2: rgba(240, 192, 105, .07);

	/* 尺度 */
	--shadow: 0 26px 68px rgba(0, 0, 0, .48);
	--shadow-sm: 0 10px 26px rgba(0, 0, 0, .28);
	--radius: 16px;
	--radius-sm: 11px;
	--maxw: 1440px;
	--header-h: 60px;
	--shell-bar: 42px;

	/* 字体与排版 */
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	--font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

	color-scheme: dark;
}

:root[data-theme="light"] {
	--bg: #f4f6fa;
	--bg-2: #ecf0f6;
	--surface: #ffffff;
	--surface-2: #f2f6fb;
	--text: #0a1421;
	--text-2: #2c3d52;
	--muted: #55657d;
	--line: rgba(10, 20, 33, .1);
	--line-2: rgba(10, 20, 33, .19);

	--accent: #0b7c5d;
	--accent-ink: #ffffff;
	--accent-soft: rgba(11, 124, 93, .09);
	--gold: #9a6a0c;
	--gold-soft: rgba(154, 106, 12, .1);
	--btn-bg: #0b7c5d;
	--btn-ink: #ffffff;
	--btn-shadow: 0 10px 24px rgba(11, 124, 93, .22);

	--tint-1: rgba(11, 124, 93, .06);
	--tint-2: rgba(154, 106, 12, .05);

	--shadow: 0 20px 50px rgba(17, 40, 72, .12);
	--shadow-sm: 0 8px 22px rgba(17, 40, 72, .09);

	color-scheme: light;
}

/* =========================================================
   2. 基础
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scrollbar-gutter: stable;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	background-image:
		radial-gradient(920px 460px at 8% -12%, var(--tint-1), transparent 62%),
		radial-gradient(760px 400px at 96% -4%, var(--tint-2), transparent 64%);
	background-repeat: no-repeat;
}

a { color: var(--accent); text-decoration: none; }

a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 10px; left: 10px;
	width: auto; height: auto;
	clip: auto;
	padding: 10px 16px;
	background: var(--surface);
	color: var(--text);
	border-radius: 8px;
	z-index: 999;
}

::selection {
	background: var(--accent-soft);
	color: var(--text);
}

/* 等宽数字：所有数值列对齐，避免跳动 */
.num,
.hero-stats b,
.preview-rows b,
.pw-v,
.shell-title,
.site-nav a,
.spec dt { font-variant-numeric: tabular-nums; }

/* =========================================================
   3. 页头
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--bg);
	background: color-mix(in srgb, var(--bg) 84%, transparent);
	backdrop-filter: saturate(150%) blur(14px);
	-webkit-backdrop-filter: saturate(150%) blur(14px);
	border-bottom: 1px solid var(--line);
	transition: border-color .25s, box-shadow .25s;
}

.site-header.is-stuck {
	border-color: var(--line-2);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.admin-bar .site-header { top: 32px; }

.header-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 24px;
	min-height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 14px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
	font-weight: 700;
	white-space: nowrap;
}

.brand:hover { text-decoration: none; }

.brand-mark {
	width: 30px; height: 30px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	background: var(--accent);
	color: var(--accent-ink);
	font-family: var(--font-mono);
	font-size: 15px;
	font-weight: 700;
	box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22), 0 6px 16px rgba(46, 230, 168, .2);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }

.brand-name { font-size: 15.5px; letter-spacing: .2px; }

.brand-sub {
	font-size: 10.5px;
	font-weight: 500;
	color: var(--muted);
	letter-spacing: .1em;
	text-transform: uppercase;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-left: auto;
	overflow-x: auto;
	scrollbar-width: none;
}

.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
	display: inline-block;
	padding: 6px 11px;
	border-radius: 7px;
	color: var(--muted);
	font-size: 13.5px;
	white-space: nowrap;
	transition: color .18s, background .18s;
}

.site-nav a:hover {
	color: var(--text);
	background: var(--surface-2);
	text-decoration: none;
}

.site-nav a[aria-current="true"] {
	color: var(--text);
	background: var(--accent-soft);
	box-shadow: inset 0 0 0 1px var(--line);
}

.site-nav a.nav-pan {
	color: var(--accent);
	box-shadow: inset 0 0 0 1px var(--line);
}

.site-nav a.nav-pan:hover {
	color: var(--accent);
	background: var(--accent-soft);
}

.theme-toggle {
	flex: none;
	width: 34px; height: 34px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line-2);
	border-radius: 8px;
	background: var(--surface);
	color: var(--text);
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	transition: border-color .18s, background .18s, transform .18s;
}

.theme-toggle:hover {
	border-color: var(--accent);
	background: var(--surface-2);
	transform: translateY(-1px);
}

.theme-toggle .ico { display: block; }
.theme-toggle .ico-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="light"] .theme-toggle .ico-moon { display: none; }

/* =========================================================
   4. 首屏
   ========================================================= */
.hero {
	position: relative;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: clamp(38px, 5.6vw, 68px) 24px clamp(30px, 4vw, 54px);
	display: grid;
	grid-template-columns: minmax(0, 680px) minmax(0, 1fr);
	gap: clamp(26px, 4vw, 62px);
	align-items: center;
}

/* 极淡的坐标网格：给首屏一点"终端"质感，不影响阅读 */
.hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	background-image:
		linear-gradient(to right, var(--line) 1px, transparent 1px),
		linear-gradient(to bottom, var(--line) 1px, transparent 1px);
	background-size: 72px 72px;
	opacity: .5;
	-webkit-mask-image: radial-gradient(78% 68% at 22% 30%, #000 0%, transparent 78%);
	mask-image: radial-gradient(78% 68% at 22% 30%, #000 0%, transparent 78%);
}

.hero-copy { position: relative; z-index: 1; }

.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	padding: 5px 11px 5px 9px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: var(--surface);
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: .02em;
}

.hero-eyebrow::before {
	content: "";
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero h1 {
	margin: 0 0 16px;
	font-size: clamp(30px, 4.1vw, 50px);
	line-height: 1.16;
	letter-spacing: -.02em;
	font-weight: 800;
	text-wrap: balance;
}

/* 强调词用实色 + 手绘下划，替代低对比度的渐变文字 */
.hero h1 em {
	position: relative;
	font-style: normal;
	color: var(--accent);
	white-space: nowrap;
}

.hero h1 em::after {
	content: "";
	position: absolute;
	left: -.04em;
	right: -.04em;
	bottom: .04em;
	height: .34em;
	background: var(--accent-soft);
	border-radius: 2px;
	z-index: -1;
}

.hero-lead {
	margin: 0 0 20px;
	max-width: 56ch;
	color: var(--text-2);
	font-size: clamp(14.5px, 1.35vw, 16.5px);
	line-height: 1.72;
}

.hero-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.hero-tags li {
	padding: 4px 10px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface);
	color: var(--text-2);
	font-size: 12.5px;
	letter-spacing: .01em;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 18px;
	border-radius: 8px;
	font-size: 14.5px;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
	background: var(--btn-bg);
	color: var(--btn-ink);
	box-shadow: var(--btn-shadow);
}

.btn-primary:hover { box-shadow: var(--btn-shadow), 0 0 0 1px var(--accent); }

.btn-ghost {
	background: var(--surface);
	border-color: var(--line-2);
	color: var(--text);
}

.btn-ghost:hover { border-color: var(--muted); background: var(--surface-2); }

.btn .arrow { font-size: 15px; line-height: 1; transition: transform .18s; }

.btn:hover .arrow { transform: translateX(2px); }

/* 三个关键数字：用真实口径，不用假行情 */
.hero-stats {
	display: flex;
	gap: 0;
	margin: 26px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--line);
	list-style: none;
}

.hero-stats li {
	flex: 1 1 0;
	padding-right: 14px;
	min-width: 0;
}

.hero-stats li + li {
	padding-left: 16px;
	border-left: 1px solid var(--line);
}

.hero-stats b {
	display: block;
	font-family: var(--font-mono);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--text);
}

.hero-stats span {
	display: block;
	margin-top: 2px;
	color: var(--muted);
	font-size: 12px;
	letter-spacing: .02em;
}

.hero-note {
	margin: 16px 0 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.6;
}

/* ---------- 决策卡模板预览 ---------- */
.preview {
	position: relative;
	z-index: 1;
	justify-self: end;
	width: 100%;
	max-width: 520px;
	padding: 16px 18px 18px;
	background: var(--surface);
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.preview::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	background: linear-gradient(150deg, var(--accent-soft), transparent 42%);
	opacity: .7;
}

.preview-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}

.preview-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--text);
	font-size: 13px;
	font-weight: 600;
}

.preview-badge::before {
	content: "";
	width: 7px; height: 7px;
	border-radius: 2px;
	background: var(--gold);
}

.preview-note {
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.preview-rows {
	margin: 0;
	padding: 6px 0 4px;
	list-style: none;
}

.preview-rows li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px dashed var(--line);
}

.preview-rows li:last-child { border-bottom: 0; }

.preview-rows span {
	color: var(--muted);
	font-size: 12.5px;
	letter-spacing: .08em;
}

.preview-rows b {
	color: var(--text-2);
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 500;
}

.preview-weights {
	margin-top: 12px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.pw-head {
	margin-bottom: 9px;
	color: var(--muted);
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.pw-row {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 40px;
	align-items: center;
	gap: 10px;
	padding: 4px 0;
}

.pw-k { color: var(--text-2); font-size: 12.5px; }

.pw-track {
	height: 5px;
	border-radius: 3px;
	background: var(--surface-2);
	overflow: hidden;
}

.pw-track i {
	display: block;
	height: 100%;
	border-radius: 3px;
	background: var(--accent);
	opacity: .85;
}

.pw-track i.is-gold { background: var(--gold); }

.pw-v {
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 11.5px;
	text-align: right;
}

.preview-foot {
	margin: 12px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 11.5px;
	line-height: 1.55;
}

/* =========================================================
   5. 应用外壳
   ========================================================= */
.app-section {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 6px 24px 10px;
	scroll-margin-top: calc(var(--header-h) + 12px);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	margin: 0 0 12px;
}

.section-head h2 {
	margin: 0;
	font-size: clamp(17px, 2vw, 21px);
	font-weight: 700;
	letter-spacing: -.01em;
}

.section-head span { color: var(--muted); font-size: 12.5px; }

.app-shell {
	position: relative;
	padding: 8px;
	background: var(--surface);
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: box-shadow .25s;
}

.app-shell:focus-within { box-shadow: var(--shadow), 0 0 0 1px var(--accent); }

/* 窗口栏：让 iframe 读起来像一个工作台窗口，而不是嵌套网页 */
.shell-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	height: var(--shell-bar);
	padding: 0 4px 0 6px;
}

.shell-dots {
	display: inline-flex;
	gap: 5px;
	flex: none;
}

.shell-dots i {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--line-2);
}

.shell-dots i:first-child { background: var(--gold); opacity: .75; }

.shell-title {
	margin-left: 6px;
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: .04em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.shell-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	flex: none;
}

.shell-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 28px;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: transparent;
	color: var(--muted);
	font-family: var(--font-sans);
	font-size: 12px;
	cursor: pointer;
	transition: color .18s, border-color .18s, background .18s;
}

.shell-btn:hover {
	color: var(--text);
	border-color: var(--line-2);
	background: var(--surface-2);
}

.shell-body { position: relative; }

.app-shell .dalt-app-frame {
	display: block;
	width: 100%;
	height: clamp(700px, calc(100svh - 200px), 1500px);
	min-height: 700px;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--bg-2);
}

/* 全屏阅读：只留窗口栏与内容 */
body.shell-full { overflow: hidden; }

.app-shell.is-full {
	position: fixed;
	inset: 0;
	z-index: 200;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--bg);
	box-shadow: none;
}

.app-shell.is-full .shell-bar {
	height: 46px;
	padding: 0 12px 0 14px;
	border-bottom: 1px solid var(--line);
}

.app-shell.is-full .shell-body { height: calc(100% - 46px); }

.app-shell.is-full .dalt-app-frame {
	height: 100%;
	min-height: 0;
	border-radius: 0;
}

/* WordPress 正文兜底（其它页面/文章） */
.entry {
	max-width: 860px;
	margin: 0 auto;
	padding: 44px 24px 8px;
}

.entry-title {
	margin: 0 0 18px;
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.3;
}

.entry-content > * + * { margin-top: 1em; }

.entry-content blockquote {
	margin: 1.4em 0;
	padding: 12px 18px;
	border-left: 3px solid var(--accent);
	background: var(--surface);
	color: var(--text-2);
	border-radius: 0 10px 10px 0;
}

/* =========================================================
   6. 能力：规格表式分栏（不是同质卡片网格）
   ========================================================= */
.features {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: clamp(28px, 4vw, 46px) 24px 10px;
	scroll-margin-top: calc(var(--header-h) + 12px);
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line-2);
	border-bottom: 1px solid var(--line);
}

.feature-item {
	position: relative;
	padding: 22px 26px 24px;
	border-right: 1px solid var(--line);
	transition: background .22s;
}

.feature-item:nth-child(2n) { border-right: 0; }

.feature-item:hover { background: var(--surface); }

.feature-item .kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: .1em;
}

.feature-item .kicker b {
	color: var(--accent);
	font-weight: 600;
}

.feature-item h3 {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.feature-item p {
	margin: 0;
	max-width: 34em;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.68;
}

/* =========================================================
   7. 指标口径
   ========================================================= */
.spec {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: clamp(30px, 4.4vw, 50px) 24px 10px;
	scroll-margin-top: calc(var(--header-h) + 12px);
}

.spec-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 40px;
	margin: 8px 0 0;
	border-top: 1px solid var(--line-2);
}

.spec-item {
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

.spec dt {
	display: flex;
	align-items: baseline;
	gap: 9px;
	margin: 0 0 4px;
	color: var(--text);
	font-size: 13.5px;
	font-weight: 600;
}

.spec dt::before {
	content: "·";
	color: var(--accent);
	font-family: var(--font-mono);
	font-weight: 700;
}

.spec dd {
	max-width: 42em;
	margin: 0;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.7;
}

.spec-foot {
	margin: 18px 0 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.7;
}

/* =========================================================
   8. 页脚
   ========================================================= */
.site-footer {
	margin-top: clamp(34px, 5vw, 56px);
	border-top: 1px solid var(--line);
	background: var(--bg-2);
	scroll-margin-top: var(--header-h);
}

.footer-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 34px 24px 26px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, .9fr);
	gap: 26px 40px;
}

.footer-brand {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.footer-brand .brand-mark { width: 26px; height: 26px; font-size: 13px; border-radius: 7px; }

.footer-brand strong { display: block; color: var(--text); font-size: 14px; font-weight: 700; }

.footer-brand small {
	display: block;
	margin-top: 3px;
	color: var(--muted);
	font-size: 11.5px;
	letter-spacing: .04em;
}

.footer-col h3 {
	margin: 0 0 6px;
	color: var(--text);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.footer-col p,
.footer-col ul {
	margin: 0;
	padding: 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.72;
}

.footer-col ul { list-style: none; }

.footer-col li + li { margin-top: 2px; }

.footer-bar {
	border-top: 1px solid var(--line);
}

.footer-bar-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 13px 24px 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: .02em;
}

.footer-bar-inner a { color: var(--muted); }

.footer-bar-inner a:hover { color: var(--accent); text-decoration: none; }

.footer-bar-inner .spacer { margin-left: auto; }

/* =========================================================
   9. 微交互（JS 增强，禁用 JS 时内容照常可见）
   ========================================================= */
.reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .55s ease, transform .55s cubic-bezier(.22, .61, .36, 1);
}

.reveal.is-in {
	opacity: 1;
	transform: none;
}

/* =========================================================
   10. 三档自适应
   ========================================================= */
@media (min-width: 1200px) {
	.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.feature-item:nth-child(2n) { border-right: 1px solid var(--line); }
	.feature-item:last-child { border-right: 0; }
	.feature-item p { max-width: none; }
}

@media (max-width: 1023px) {
	.hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
		padding: 40px 20px 22px;
	}
	.hero-lead { max-width: 62ch; }
	.preview { max-width: 520px; }
	.app-section { padding: 4px 20px 6px; }
	.features { padding: 26px 20px 6px; }
	.spec { padding: 28px 20px 6px; }
	.app-shell .dalt-app-frame {
		height: clamp(660px, calc(100svh - 180px), 1400px);
		min-height: 660px;
	}
	.footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
	:root { --header-h: 54px; --shell-bar: 40px; }
	.header-inner { padding: 0 14px; gap: 8px; }
	.brand-sub { display: none; }
	.brand-name { font-size: 15px; }
	.site-nav a { padding: 6px 8px; font-size: 13px; }
	.hero { padding: 28px 16px 18px; gap: 22px; }
	.hero::before { inset: 0 0 auto; background-size: 56px 56px; }
	.hero h1 { letter-spacing: -.03em; }
	.hero-stats { margin-top: 20px; padding-top: 12px; }
	.hero-stats b { font-size: 17px; }
	.hero-actions .btn { flex: 1 1 auto; }
	.preview { padding: 14px 14px 16px; }
	.app-section { padding: 4px 12px 4px; }
	.app-shell { padding: 5px; border-radius: 13px; }
	.shell-bar { padding: 0 2px; gap: 8px; }
	.shell-btn { height: 30px; padding: 0 9px; }
	.app-shell .dalt-app-frame {
		height: calc(100svh - 132px);
		min-height: 520px;
		border-radius: 9px;
	}
	.feature-grid { grid-template-columns: minmax(0, 1fr); }
	.feature-item { padding: 18px 2px 20px; border-right: 0; }
	.feature-item p { max-width: none; }
	.spec-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.spec-item { padding: 14px 0; }
	.footer-inner { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 28px 16px 20px; }
	.footer-bar-inner { padding: 12px 16px 14px; }
	.footer-bar-inner .spacer { display: none; }
}

@media (max-width: 400px) {
	.site-nav a { padding: 6px 7px; font-size: 12.5px; }
	.site-nav a[data-minor="1"] { display: none; }
	.hero h1 { font-size: 27px; }
	.shell-dots { display: none; }
	.shell-title { margin-left: 0; font-size: 10.5px; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	* { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

@media (forced-colors: active) {
	.btn, .theme-toggle, .feature-item { border: 1px solid CanvasText; }
}
