/*
	About Page Styles
	目标：让 about.html 与主页 index.html 使用同一套视觉语言
	- 背景层直接复用 main.css 的 #bg 滚动壁纸与 #overlay 斜向几何叠层（不再用深紫色压暗）
	- 字体沿用 body.font-milky-coffee（fonts.css 里的 Milky-Coffee）
	- 圆角、白色描边、彩色小装饰条、逐级上浮入场，全部取自主页
	- 正文改用浅色磨砂卡片承托深色文字，长文阅读清晰；首屏仍是白字压在图片上，与主页大标题一致
*/

/* ===== 1. 设计变量 ===== */
:root {
	/* 玻璃卡片：白色磨砂，让壁纸透出来 */
	--about-glass: linear-gradient(158deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.86));
	--about-glass-border: rgba(255, 255, 255, 0.92);
	--about-glass-shadow: 0 22px 60px rgba(28, 32, 52, 0.22), 0 2px 10px rgba(28, 32, 52, 0.08);

	/* 文字：卡片内深色，首屏图片上白色 */
	--about-ink: #262a3d;
	--about-ink-soft: rgba(38, 42, 61, 0.88);
	--about-ink-muted: rgba(38, 42, 61, 0.62);

	/* 主页的一言高亮色，这里取四个做装饰 */
	--about-red: #ff6b6b;
	--about-blue: #3742fa;
	--about-green: #2ed573;
	--about-purple: #a55eea;
	--about-accent: #4a5cf5;

	--about-radius: 20px;
	--about-radius-sm: 14px;
}

/* ===== 2. 基础层：背景与页面容器 ===== */
html {
	min-height: 100%;
	background: #f6f2ea; /* 壁纸加载失败时的浅色兜底，不再是深色 */
}

body.about-body {
	min-height: 100vh;
	height: auto;
	overflow-x: hidden;
	overflow-y: auto;
	background: transparent;
	/* main.css 里 body 是 15pt 且强制 300 字重，这里按阅读场景收紧字号、抬到 400 */
	font-size: 16px;
	font-weight: 400 !important;
	line-height: 1.75;
	font-family: var(--primary-font, 'Milky-Coffee', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif);
	color: var(--about-ink);
}

/* 壁纸层：main.css 里已有动画与背景图，这里只补上固定定位（主页靠 #wrapper 固定） */
#bg {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	z-index: 0;
}

/* 叠层：交给 main.css 的 #overlay（overlay-pattern.png + overlay.svg），只确保层级正确 */
#overlay {
	z-index: 1;
}

#main.about-page {
	position: relative;
	inset: auto;
	z-index: 2;
	width: 100%;
	height: auto;
	min-height: 100vh;
	padding: clamp(26px, 4vw, 56px) 24px 40px;
	box-sizing: border-box;
	text-align: left;
}

#main.about-page:before {
	display: none;
}

.about-shell {
	width: min(100%, 980px);
	margin: 0 auto;
}

/* ===== 3. 入场动效：对应主页的 iUp 逐级上浮 ===== */
@keyframes aboutRise {
	from {
		opacity: 0;
		transform: translate3d(0, 26px, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.about-shell > * {
	animation: aboutRise 0.9s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.about-shell > :nth-child(1) { animation-delay: 0.05s; }
.about-shell > :nth-child(2) { animation-delay: 0.20s; }
.about-shell > :nth-child(3) { animation-delay: 0.35s; }
.about-shell > :nth-child(4) { animation-delay: 0.50s; }

/* ===== 4. 彩色小装饰条（主页药丸按钮的招牌细节） ===== */
.pill-decor {
	position: absolute;
	width: 16px;
	height: 6px;
	border-radius: 3px;
	transition: all 0.3s ease;
	pointer-events: none;
}

.pill-decor--left {
	top: 6px;
	left: -8px;
	background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
}

.pill-decor--right {
	bottom: 6px;
	right: -8px;
	background: linear-gradient(45deg, #3742fa, #5352ed);
}

/* ===== 5. 返回主页：与主页药丸按钮同一语言 ===== */
.back-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	padding: 8px 18px 8px 10px;
	border: 2px solid rgba(255, 255, 255, 0.82);
	border-radius: 999px;
	/* 壁纸每次随机，浅色图上白字会糊，加一层淡暗底保证可读 */
	background: rgba(24, 27, 42, 0.30);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: #fff;
	box-shadow: 0 6px 20px rgba(16, 20, 34, 0.18);
	font-size: 0.88rem;
	text-decoration: none;
	text-shadow: 0 1px 8px rgba(16, 18, 30, 0.45);
	transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.back-link:hover {
	transform: translateY(-1px) scale(1.03);
	border-color: #fff;
	background: rgba(24, 27, 42, 0.46);
	box-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}

.back-link:hover .pill-decor--left { left: -14px; }
.back-link:hover .pill-decor--right { right: -14px; }

.back-arrow {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.28);
	font-size: 1.06rem;
	line-height: 1;
}

.back-hint {
	margin-left: 2px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.14em;
}

/* ===== 6. 卡片：白色磨砂玻璃 ===== */
.about-card,
.guestbook-card {
	position: relative;
	border: 1px solid var(--about-glass-border);
	border-radius: var(--about-radius);
	background: var(--about-glass);
	box-shadow: var(--about-glass-shadow);
	backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
}

.about-card {
	overflow: hidden;
	padding: 0;
}

/* 首屏：白字压在图片上，和主页大标题的处理一致 */
.about-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(214px, 24vw, 292px);
	padding: clamp(22px, 3vw, 34px) clamp(22px, 4.4vw, 44px);
	overflow: hidden;
}

.about-cover {
	position: absolute;
	inset: 0;
	/* 三层叠压：底部整体压暗 + 左下角局部压暗（标题与头像都在左下），保证白字在任何壁纸上都能读 */
	background:
		radial-gradient(ellipse 62% 88% at 16% 82%, rgba(14, 16, 28, 0.5), transparent 68%),
		linear-gradient(180deg, rgba(18, 20, 32, 0.05) 0%, rgba(18, 20, 32, 0.22) 46%, rgba(18, 20, 32, 0.72) 100%),
		url("https://img-api.moeblock.com/api.php") center 40% / cover no-repeat,
		linear-gradient(118deg, #4e4b83, #7773b8 37%, #668ac2 76%, #5288b9);
}

.about-profile-row {
	position: relative;
	display: flex;
	align-items: flex-end;
	gap: clamp(16px, 2.4vw, 26px);
	width: 100%;
}

.about-avatar-frame {
	flex: 0 0 auto;
	padding: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 12px 32px rgba(16, 20, 36, 0.3);
}

.about-avatar {
	display: block;
	width: clamp(84px, 9vw, 112px);
	height: clamp(84px, 9vw, 112px);
	border-radius: 50%;
	object-fit: cover;
}

.about-profile-copy {
	min-width: 0;
	padding-bottom: 2px;
}

/* 只用在首屏图片上，所以是白字 */
.about-hero .eyebrow {
	margin: 0 0 8px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.17em;
	text-shadow: 0 1px 10px rgba(14, 16, 28, 0.5);
}

.about-card h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(2.1rem, 4.6vw, 3.15rem);
	font-weight: 900;
	letter-spacing: -0.035em;
	line-height: 1.06;
	text-shadow: 0 6px 28px rgba(10, 12, 24, 0.5), 0 1px 3px rgba(10, 12, 24, 0.35);
}

.about-motto {
	margin: 10px 0 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.95rem;
	font-weight: 500;
	text-shadow: 0 2px 12px rgba(10, 12, 24, 0.45);
}

.about-motto span {
	margin-left: 5px;
	color: #fff;
	font-weight: 700;
}

/* 正文：浅色卡片上的深色文字 */
.about-card-body {
	padding: clamp(20px, 2.8vw, 30px) clamp(22px, 4.4vw, 44px) clamp(28px, 3.6vw, 40px);
}

.about-story {
	position: relative;
	max-width: 740px;
	margin: 0 auto;
	padding-left: 30px;
	color: var(--about-ink-soft);
	font-size: 1rem;
	line-height: 1.95;
	letter-spacing: 0.004em;
}

/* 时间线：主页红 → 蓝 → 绿 → 紫 的渐变 */
.about-story:before {
	position: absolute;
	top: 1.05em;
	bottom: 0.7em;
	left: 4px;
	width: 2px;
	border-radius: 2px;
	background: linear-gradient(180deg, rgba(255, 107, 107, 0), rgba(255, 107, 107, 0.55) 12%, rgba(55, 66, 250, 0.45) 48%, rgba(46, 213, 115, 0.45) 78%, rgba(165, 94, 234, 0));
	content: "";
}

.about-story p {
	position: relative;
	margin: 0;
	padding: 0 0 1em;
}

.about-story p:not(.about-lead) {
	padding-left: 18px;
}

.about-story p:not(.about-lead):before {
	position: absolute;
	top: 0.8em;
	left: -24px;
	width: 7px;
	height: 7px;
	border: 1px solid rgba(74, 92, 245, 0.55);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(74, 92, 245, 0.1);
	content: "";
}

.about-story p:last-child {
	padding-bottom: 0;
}

.about-story .about-lead {
	margin: 0 0 1.3em;
	padding: 14px 18px;
	border-radius: 0 var(--about-radius-sm) var(--about-radius-sm) 0;
	background: linear-gradient(100deg, rgba(255, 107, 107, 0.13), rgba(74, 92, 245, 0.05));
	box-shadow: inset 3px 0 0 var(--about-red);
	color: #3b3f57;
	font-size: 1.06rem;
	font-weight: 650;
	line-height: 1.8;
}

.about-story .about-lead:before {
	display: none;
}

/* ===== 7. 留言板 ===== */
.guestbook-card {
	margin-top: 20px;
	padding: clamp(22px, 3.2vw, 34px) clamp(22px, 4.2vw, 40px) clamp(24px, 3.4vw, 36px);
}

.guestbook-heading-row {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 10px;
}

.guestbook-mark {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, 0.95);
	border-radius: 15px;
	background: linear-gradient(145deg, rgba(255, 107, 107, 0.18), rgba(74, 92, 245, 0.16));
	color: var(--about-accent);
	font-size: 1.3rem;
	box-shadow: 0 8px 22px rgba(40, 46, 90, 0.12);
}

.section-heading {
	min-width: 0;
}

.section-heading h2 {
	margin: 0;
	color: var(--about-ink);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.guestbook-intro {
	margin: 0 0 14px;
	color: var(--about-ink-muted);
	font-size: 0.9rem;
	line-height: 1.8;
}

.guestbook-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.guestbook-form label {
	display: flex;
	flex-direction: column;
	gap: 5px;
	color: var(--about-ink-soft);
	font-size: 0.82rem;
	font-weight: 600;
}

.guestbook-form label i {
	color: var(--about-red);
	font-style: normal;
}

.guestbook-form input,
.guestbook-form textarea {
	width: 100%;
	padding: 10px 13px;
	border: 1px solid rgba(38, 42, 61, 0.14);
	border-radius: var(--about-radius-sm);
	background: rgba(255, 255, 255, 0.72);
	color: var(--about-ink);
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 400 !important;
	line-height: 1.6;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.guestbook-form input::placeholder,
.guestbook-form textarea::placeholder {
	color: rgba(38, 42, 61, 0.38);
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
	border-color: var(--about-accent);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(74, 92, 245, 0.16);
	outline: none;
}

.guestbook-form textarea {
	min-height: 92px;
	resize: vertical;
}

.honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.form-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 2px;
}

.privacy-note {
	margin: 0;
	flex: 1 1 320px;
	color: var(--about-ink-muted);
	font-size: 0.76rem;
	line-height: 1.75;
}

.privacy-note span {
	margin-right: 4px;
}

/* 提交按钮：与主页药丸按钮同款（白边、圆角、两侧彩色装饰条） */
.submit-wrap {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
}

.submit-wrap > button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 22px;
	border: 2px solid rgba(38, 42, 61, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
	color: var(--about-ink);
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 700 !important;
	line-height: 1.2;
	cursor: pointer;
	transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.submit-wrap > button:enabled:hover {
	transform: scale(1.05);
	border-color: var(--about-accent);
	background: #fff;
	color: var(--about-accent);
	box-shadow: 0 0 24px rgba(74, 92, 245, 0.24);
}

.submit-wrap > button:enabled:hover ~ .pill-decor--left { left: -14px; }
.submit-wrap > button:enabled:hover ~ .pill-decor--right { right: -14px; }

.submit-wrap > button:disabled {
	cursor: not-allowed;
	color: var(--about-ink-muted);
	opacity: 0.75;
}

.submit-wrap > button:disabled ~ .pill-decor {
	opacity: 0.35;
}

.guestbook-status {
	margin: 14px 0 0;
	color: var(--about-ink-muted);
	font-size: 0.8rem;
	line-height: 1.75;
}

.guestbook-status.is-error {
	color: #d63a4a;
}

.guestbook-list {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid rgba(38, 42, 61, 0.1);
}

.guestbook-entry {
	position: relative;
	margin-top: 12px;
	padding: 15px 18px;
	border: 1px solid rgba(38, 42, 61, 0.09);
	border-radius: var(--about-radius-sm);
	background: rgba(255, 255, 255, 0.62);
}

.guestbook-entry:before {
	position: absolute;
	top: 14px;
	bottom: 14px;
	left: -1px;
	width: 3px;
	border-radius: 3px;
	background: linear-gradient(180deg, var(--about-red), var(--about-blue));
	content: "";
}

.guestbook-entry-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.guestbook-entry-heading h3 {
	margin: 0;
	color: var(--about-ink);
	font-size: 0.96rem;
	font-weight: 700;
}

.guestbook-entry-heading time {
	flex: 0 0 auto;
	color: var(--about-ink-muted);
	font-size: 0.72rem;
}

.guestbook-entry-message {
	margin: 8px 0 0;
	color: var(--about-ink-soft);
	font-size: 0.92rem;
	line-height: 1.85;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.empty-state {
	margin: 0;
	padding: 10px 0;
	color: var(--about-ink-muted);
	font-size: 0.86rem;
	text-align: center;
}

/* ===== 8. Token 账本面板 ===== */
/* 首屏数字仿主页时钟：点阵数字 + 15 色横向渐变，画在 canvas 上（见 asset/js/token-ledger.js） */
/* 容器只负责纵向排布，自己不画任何底：总消耗、标签栏、明细区各自是独立的框 */
.token-ledger {
	position: relative;
	display: block;
	margin: 0 0 18px;
	isolation: isolate;
}


/* 总消耗：不套白卡片，整块直接浮在壁纸上（就是主页时钟那套语言）。
   所以这里的文字全部转白 + 阴影，靠壁纸对比度读。 */
.token-counter {
	display: block;
	width: 100%;
	padding: clamp(18px, 2.6vw, 26px) 0 clamp(16px, 2.4vw, 22px);
	border: 0;
	background: none;
	box-shadow: none;
	color: #fff;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.token-counter:hover {
	transform: translateY(-1px);
}

/* 头部：标记 + 标题 + 展开提示 */
.token-head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.token-mark {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: linear-gradient(140deg, var(--about-red), var(--about-purple));
	color: #fff;
	font-size: 1.05rem;
	box-shadow: 0 8px 20px rgba(120, 90, 200, 0.28);
}

.token-heading {
	flex: 1 1 auto;
	min-width: 0;
}

.token-eyebrow {
	display: block;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-shadow: 0 2px 10px rgba(14, 18, 32, 0.5);
}

.token-title {
	display: block;
	margin-top: 3px;
	color: #fff;
	font-size: clamp(0.98rem, 1.6vw, 1.1rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	text-shadow: 0 2px 14px rgba(14, 18, 32, 0.55);
}

.token-hint {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.74rem;
	text-shadow: 0 2px 10px rgba(14, 18, 32, 0.5);
	transition: color 0.3s ease;
}

.token-counter:hover .token-hint {
	color: #fff;
}

.token-caret {
	display: inline-block;
	font-size: 0.9rem;
	transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}

.token-ledger.is-open .token-caret {
	transform: rotate(180deg);
}

.token-ledger.is-open .token-hint-text {
	font-size: 0;
}

.token-ledger.is-open .token-hint-text:after {
	font-size: 0.74rem;
	content: "收起明细";
}

/* 数字玻璃板：参数 1:1 照搬主页 index.html 的 #canvas（main.css:1082-1095）——
   2px 白边 + 15px 圆角 + 15% 白径向渐变 + blur(10px) + 15 秒循环变色。
   玻璃本身必须是半透明的，壁纸要能透出来；一旦把底色做深做厚，
   视觉上就变成「又套了一层」，那正是要避免的。 */
.token-clock {
	position: relative;
	display: block;
	margin: clamp(12px, 2vw, 18px) 0 0;
	/* 四边同一个 padding：数字 + 角标正好铺满内容区，四周留白天然相等 */
	padding: clamp(14px, 2vw, 18px);
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 15px;
	background-color: rgba(16, 20, 34, 0.86);
	background-image: radial-gradient(circle at center,
		rgba(255, 255, 255, 0.15) 0%,
		rgba(255, 255, 255, 0.08) 50%,
		rgba(255, 255, 255, 0.03) 100%);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow:
		0 0 20px rgba(255, 255, 255, 0.1),
		inset 0 0 20px rgba(255, 255, 255, 0.05);
	transition: all 0.3s ease;
	animation:
		tokenClockBorder 15s linear infinite,
		tokenClockBackground 15s linear infinite;
}

.token-counter:hover .token-clock {
	transform: scale(1.01);
	box-shadow:
		0 0 30px rgba(255, 255, 255, 0.2),
		inset 0 0 25px rgba(255, 255, 255, 0.08);
	animation-play-state: paused;
}

/* 以下两组关键帧的色值与 main.css 的 clockBorderColor / clockBackgroundColor 完全一致 */
@keyframes tokenClockBorder {
	0%      { border-color: rgba(255, 255, 255, 0.4); }
	6.67%   { border-color: rgba(255, 107, 107, 0.4); }
	13.33%  { border-color: rgba(78, 205, 196, 0.4); }
	20%     { border-color: rgba(69, 183, 209, 0.4); }
	26.67%  { border-color: rgba(150, 206, 180, 0.4); }
	33.33%  { border-color: rgba(255, 234, 167, 0.4); }
	40%     { border-color: rgba(221, 160, 221, 0.4); }
	46.67%  { border-color: rgba(152, 216, 200, 0.4); }
	53.33%  { border-color: rgba(247, 220, 111, 0.4); }
	60%     { border-color: rgba(187, 143, 206, 0.4); }
	66.67%  { border-color: rgba(133, 193, 233, 0.4); }
	73.33%  { border-color: rgba(248, 196, 113, 0.4); }
	80%     { border-color: rgba(130, 224, 170, 0.4); }
	86.67%  { border-color: rgba(241, 148, 138, 0.4); }
	93.33%  { border-color: rgba(215, 189, 226, 0.4); }
	100%    { border-color: rgba(255, 255, 255, 0.4); }
}

/* 色值与 main.css:1062 的 clockBackgroundColor 完全一致 */
@keyframes tokenClockBackground {
	0%      { background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 100%); }
	6.67%   { background-image: radial-gradient(circle at center, rgba(255, 107, 107, 0.15) 0%, rgba(255, 107, 107, 0.08) 50%, rgba(255, 107, 107, 0.03) 100%); }
	13.33%  { background-image: radial-gradient(circle at center, rgba(78, 205, 196, 0.15) 0%, rgba(78, 205, 196, 0.08) 50%, rgba(78, 205, 196, 0.03) 100%); }
	20%     { background-image: radial-gradient(circle at center, rgba(69, 183, 209, 0.15) 0%, rgba(69, 183, 209, 0.08) 50%, rgba(69, 183, 209, 0.03) 100%); }
	26.67%  { background-image: radial-gradient(circle at center, rgba(150, 206, 180, 0.15) 0%, rgba(150, 206, 180, 0.08) 50%, rgba(150, 206, 180, 0.03) 100%); }
	33.33%  { background-image: radial-gradient(circle at center, rgba(255, 234, 167, 0.15) 0%, rgba(255, 234, 167, 0.08) 50%, rgba(255, 234, 167, 0.03) 100%); }
	40%     { background-image: radial-gradient(circle at center, rgba(221, 160, 221, 0.15) 0%, rgba(221, 160, 221, 0.08) 50%, rgba(221, 160, 221, 0.03) 100%); }
	46.67%  { background-image: radial-gradient(circle at center, rgba(152, 216, 200, 0.15) 0%, rgba(152, 216, 200, 0.08) 50%, rgba(152, 216, 200, 0.03) 100%); }
	53.33%  { background-image: radial-gradient(circle at center, rgba(247, 220, 111, 0.15) 0%, rgba(247, 220, 111, 0.08) 50%, rgba(247, 220, 111, 0.03) 100%); }
	60%     { background-image: radial-gradient(circle at center, rgba(187, 143, 206, 0.15) 0%, rgba(187, 143, 206, 0.08) 50%, rgba(187, 143, 206, 0.03) 100%); }
	66.67%  { background-image: radial-gradient(circle at center, rgba(133, 193, 233, 0.15) 0%, rgba(133, 193, 233, 0.08) 50%, rgba(133, 193, 233, 0.03) 100%); }
	73.33%  { background-image: radial-gradient(circle at center, rgba(248, 196, 113, 0.15) 0%, rgba(248, 196, 113, 0.08) 50%, rgba(248, 196, 113, 0.03) 100%); }
	80%     { background-image: radial-gradient(circle at center, rgba(130, 224, 170, 0.15) 0%, rgba(130, 224, 170, 0.08) 50%, rgba(130, 224, 170, 0.03) 100%); }
	86.67%  { background-image: radial-gradient(circle at center, rgba(241, 148, 138, 0.15) 0%, rgba(241, 148, 138, 0.08) 50%, rgba(241, 148, 138, 0.03) 100%); }
	93.33%  { background-image: radial-gradient(circle at center, rgba(215, 189, 226, 0.15) 0%, rgba(215, 189, 226, 0.08) 50%, rgba(215, 189, 226, 0.03) 100%); }
	100%    { background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 100%); }
}

/* 主数字：canvas 点阵铺满内容区，单位角标纯视觉浮在右下角。
   canvas 的宽高由 JS 反解成正好铺满内容区，所以数字墨迹的四边
   到玻璃板边框的距离都等于玻璃板的 padding，天然等距。
   角标绝对定位、不占布局宽度，只是叠在数字上面 —— 两者不互相挤压。 */
.token-figure {
	position: relative;
	display: block;
}

.token-figure canvas {
	display: block;
	max-width: 100%;
	/* 壁纸是亮的和风插画，粉紫点直接压上去几乎读不出来。
	   主页时钟的浅绿点落在浅灰衣服上，天然有对比。
	   给每个点补一圈极淡的暗边，让它从花底上立起来；
	   不用 canvas 内描边（那会把相切的点粘成色带），用滤镜只做外扩。 */
	filter: drop-shadow(0 0 1.5px rgba(8, 10, 20, 0.85));
}

/* 单位（tokens / B）做成玻璃板右下角的角标：
   半透明白底 + 细白边 + 同款圆角，和这块板子是同一套语言。
   绝对定位浮在数字右下角，不参与布局，也不吃鼠标事件。 */
.token-unit {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 2px 9px;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.5;
	text-transform: lowercase;
	text-shadow: 0 2px 10px rgba(14, 18, 32, 0.5);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	pointer-events: none;
}

.token-unit:empty {
	display: none;
}

.token-exact {
	display: block;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.78rem;
	letter-spacing: 0.02em;
	text-align: center;
	text-shadow: 0 2px 10px rgba(14, 18, 32, 0.5);
}

/* 完整数字已经画在主位时这一行为空，不能留一段空白 */
.token-exact:empty {
	display: none;
}

.token-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 14px;
	margin-top: 10px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.72rem;
	text-shadow: 0 2px 10px rgba(14, 18, 32, 0.5);
}

.token-meta span {
	position: relative;
}

.token-meta span + span:before {
	position: absolute;
	top: 50%;
	left: -8px;
	color: rgba(255, 255, 255, 0.5);
	content: "·";
	transform: translateY(-50%);
}

/* 构成条：输入 / 输出 / 缓存读取 */
.token-composition {
	display: block;
	margin-top: 14px;
}

.comp-bar {
	display: flex;
	height: 6px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.22);
	overflow: hidden;
}

.comp-bar .comp {
	display: block;
	height: 100%;
}

.comp--in { background: linear-gradient(90deg, var(--about-blue), #5352ed); }
.comp--out { background: linear-gradient(90deg, var(--about-green), #26d0ce); }
.comp--cache { background: rgba(255, 255, 255, 0.55); }

.comp-key {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px 6px;
	margin-top: 8px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.7rem;
	text-shadow: 0 2px 10px rgba(14, 18, 32, 0.5);
}

.comp-key .dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-left: 6px;
	border-radius: 50%;
}

.comp-key .dot:first-child {
	margin-left: 0;
}

.dot--in { background: #4ecdc4; }
.dot--out { background: #82e0aa; }
.dot--cache { background: rgba(255, 255, 255, 0.6); }

/* 展开面板：用 grid-template-rows 做高度过渡，避免 max-height 猜数字。
   内部再配合位移 + 淡入，视觉上是「从总消耗框下面翻出来」。 */
.token-panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.token-ledger.is-open .token-panel {
	grid-template-rows: 1fr;
}

.token-panel-inner {
	overflow: hidden;
	transform: translateY(-14px);
	opacity: 0;
	transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.35s ease;
}

.token-ledger.is-open .token-panel-inner {
	transform: translateY(0);
	opacity: 1;
}

/* 标签栏与明细区都复用同一块"主页玻璃"：白半透明 + 2px 白边 + 15px 圆角，
   和上面的时钟是同一块板子的语言，不再另起一套白卡片。 */
.token-clock > *,
.token-tabs > *,
.token-view > * {
	position: relative;
	z-index: 1;
}

.token-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
	padding: 12px 14px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 15px;
	background-color: rgba(16, 20, 34, 0.86);
	background-image: radial-gradient(circle at center,
		rgba(255, 255, 255, 0.15) 0%,
		rgba(255, 255, 255, 0.08) 50%,
		rgba(255, 255, 255, 0.03) 100%);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow:
		0 0 20px rgba(255, 255, 255, 0.1),
		inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.token-tab {
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, 0.42);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.9);
	font-family: inherit;
	font-size: 0.76rem;
	font-weight: 600;
	text-shadow: 0 2px 10px rgba(14, 18, 32, 0.5);
	cursor: pointer;
	transition: all 0.25s ease;
}

.token-tab:hover {
	border-color: rgba(255, 255, 255, 0.8);
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.token-tab[aria-selected="true"] {
	border-color: rgba(255, 255, 255, 0.9);
	background: rgba(255, 255, 255, 0.28);
	color: #fff;
	box-shadow: 0 0 18px rgba(255, 255, 255, 0.22);
}

/* 明细区：同一块主页玻璃 */
.token-view {
	margin-top: 10px;
	padding: clamp(16px, 2.6vw, 22px) clamp(16px, 3vw, 24px);
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 15px;
	background-color: rgba(16, 20, 34, 0.86);
	background-image: radial-gradient(circle at center,
		rgba(255, 255, 255, 0.15) 0%,
		rgba(255, 255, 255, 0.08) 50%,
		rgba(255, 255, 255, 0.03) 100%);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow:
		0 0 20px rgba(255, 255, 255, 0.1),
		inset 0 0 20px rgba(255, 255, 255, 0.05);
	color: #fff;
}

/* 时间热力图：照 GitHub 贡献图的排法 —— 一列 = 一周，一列 7 格 = 周日到周六，
   顶部按列标月份，左侧标星期，鼠标悬停看当天日期与消耗。 */
.heat-scroll {
	--heat-cell: 13px;
	overflow-x: auto;
	padding-bottom: 4px;
	/* 周数跟着数据走之后，方阵不再铺满整个面板，靠居中收成一块完整的日历 */
	text-align: center;
}

.heat-inner {
	display: inline-block;
	text-align: left;
}

/* 月份行：列宽和间距必须与下面的格子完全一致，否则月份标签会对不齐 */
.heat-months {
	display: grid;
	gap: 3px;
	margin: 0 0 4px 30px;
}

.heat-month {
	overflow: hidden;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.6rem;
	text-overflow: clip;
	white-space: nowrap;
	text-shadow: 0 2px 10px rgba(14, 18, 32, 0.5);
}

.heat-body {
	display: flex;
	align-items: flex-start;
	gap: 6px;
}

/* 星期列：7 行，与格子同高，只标一 / 三 / 五 */
.heat-days {
	display: grid;
	grid-template-rows: repeat(7, var(--heat-cell));
	gap: 3px;
	width: 24px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.6rem;
	line-height: var(--heat-cell);
	text-align: right;
	text-shadow: 0 2px 10px rgba(14, 18, 32, 0.5);
}

.heat-grid {
	display: grid;
	grid-auto-flow: column;
	gap: 3px;
}

.heat-cell {
	display: block;
	width: var(--heat-cell);
	height: var(--heat-cell);
	border-radius: 3px;
	/* 玻璃底现在是深色，空格子不必再用描边勾轮廓 —— 一圈圈描边会连成一张
	   网格噪点，把真正的数据淹掉。只留一层很淡的实心色块，网格靠 gap 的缝
	   自己成形；0.04 是在深底上「能看出有格子」与「不抢戏」之间的上限。 */
	background: rgba(255, 255, 255, 0.04);
}

/* 统计区间之外的格子：只留一点痕迹，比数据区更暗，读起来是「这段时间没记录」 */
.heat-cell[data-out="1"] {
	background: rgba(255, 255, 255, 0.018);
}

/* 悬停提示：脱离文档流，跟着鼠标走 */
.heat-tip {
	position: fixed;
	z-index: 9999;
	display: none;
	flex-direction: column;
	gap: 3px;
	max-width: 240px;
	padding: 8px 11px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 10px;
	background: rgba(20, 24, 40, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 10px 30px rgba(6, 9, 20, 0.45);
	color: #fff;
	font-size: 0.72rem;
	line-height: 1.45;
	pointer-events: none;
}

.heat-tip.is-on {
	display: flex;
}

.heat-tip b {
	font-weight: 700;
}

.heat-tip i {
	color: rgba(255, 255, 255, 0.8);
	font-style: normal;
}

/* 热力档位走主页时钟调色板：青 → 蓝 → 紫，越亮烧得越多 */
.heat-l1 { background: rgba(78, 205, 196, 0.35); }
.heat-l2 { background: rgba(69, 183, 209, 0.55); }
.heat-l3 { background: rgba(133, 193, 233, 0.8); }
.heat-l4 { background: rgba(187, 143, 206, 0.9); }
.heat-l5 { background: linear-gradient(135deg, #dda0dd, #f1948a); }

.heat-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin-top: 12px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.68rem;
	text-shadow: 0 2px 10px rgba(14, 18, 32, 0.5);
}

.heat-legend .heat-cell {
	width: 12px;
	min-height: 12px;
}

.heat-note {
	margin-left: 10px;
}

/* 列表：项目 / 模型 / 提交 */
.token-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.token-row {
	padding: 11px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.token-row:last-child {
	border-bottom: 0;
}

.token-row-head {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.token-row-rank {
	flex: 0 0 auto;
	width: 20px;
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.7rem;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 2px 10px rgba(14, 18, 32, 0.5);
}

.token-row-name {
	flex: 1 1 auto;
	overflow: hidden;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-shadow: 0 2px 10px rgba(14, 18, 32, 0.55);
}

.token-row-name code {
	padding: 1px 5px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.18);
	color: #ffeaa7;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.76rem;
}

.token-row-val {
	flex: 0 0 auto;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 2px 10px rgba(14, 18, 32, 0.55);
}

.token-bar {
	height: 4px;
	margin: 6px 0 0 30px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.16);
	overflow: hidden;
}

.token-bar > i {
	display: block;
	height: 100%;
	border-radius: 2px;
	background: linear-gradient(90deg, #4ecdc4, #bb8fce);
}

.token-row-sub {
	margin: 4px 0 0 30px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.68rem;
	text-shadow: 0 2px 10px rgba(14, 18, 32, 0.5);
}

.token-more,
.token-empty {
	margin: 12px 0 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.7rem;
	text-align: center;
	text-shadow: 0 2px 10px rgba(14, 18, 32, 0.5);
}

/* 数据来源说明：跟着展开面板一起收起，样式上是一段不画框的小字 */
.token-source {
	margin: 10px 0 0;
	padding: 0 6px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.68rem;
	line-height: 1.7;
	text-shadow: 0 2px 10px rgba(14, 18, 32, 0.5);
}

.token-source code {
	padding: 1px 5px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.16);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.66rem;
}

/* 数据缺失时的降级样式 */
.token-ledger.is-empty .token-clock {
	display: none;
}

/* ===== 9. 页脚 ===== */
.about-footer {
	padding: 22px 8px 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.78rem;
	text-align: center;
	text-shadow: 0 1px 10px rgba(12, 14, 24, 0.55);
}

/* ===== 10. 响应式 ===== */
@media (max-width: 760px) {
	#main.about-page {
		padding: 24px 18px 30px;
	}

	.about-hero {
		min-height: 196px;
		padding: 20px;
	}

	.about-avatar {
		width: 82px;
		height: 82px;
	}

	.about-story {
		max-width: 100%;
		padding-left: 24px;
		font-size: 0.96rem;
		line-height: 1.9;
	}

	.about-story:before {
		left: 3px;
	}

	.about-story p:not(.about-lead) {
		padding-left: 14px;
	}

	.about-story p:not(.about-lead):before {
		left: -19px;
		width: 6px;
		height: 6px;
	}

	.about-story .about-lead {
		padding: 12px 15px;
		font-size: 1rem;
	}
}

@media (max-width: 560px) {
	#main.about-page {
		padding: 18px 13px 26px;
	}

	.about-card,
	.guestbook-card {
		border-radius: 18px;
	}

	.about-hero {
		min-height: 174px;
		padding: 17px;
	}

	.about-avatar-frame {
		padding: 4px;
	}

	.about-avatar {
		width: 68px;
		height: 68px;
	}

	.about-card h1 {
		font-size: 1.95rem;
	}

	.about-motto {
		font-size: 0.84rem;
	}

	.about-card-body {
		padding: 18px 17px 24px;
	}

	.about-story {
		padding-left: 22px;
		font-size: 0.92rem;
	}

	.about-story:before {
		left: 2px;
	}

	.about-story p:not(.about-lead) {
		padding-left: 12px;
	}

	.about-story p:not(.about-lead):before {
		left: -17px;
	}

	.about-story .about-lead {
		font-size: 0.97rem;
	}

	.guestbook-card {
		margin-top: 14px;
		padding: 20px 16px 22px;
	}

	.guestbook-heading-row {
		gap: 12px;
	}

	.guestbook-mark {
		width: 42px;
		height: 42px;
		border-radius: 13px;
	}

	.section-heading h2 {
		font-size: 1.42rem;
	}

	.form-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.form-footer {
		align-items: flex-start;
		gap: 12px;
	}

	.privacy-note {
		flex: 1 1 100%;
		font-size: 0.72rem;
	}

	.submit-wrap {
		width: 100%;
	}

	.submit-wrap > button {
		width: 100%;
	}

	.back-hint {
		display: none;
	}

	/* 移动端时钟照主页 main.css:1313 的做法收细边框、缩小圆角 */
	.token-clock,
	.token-tabs,
	.token-view {
		border-width: 1px;
		border-radius: 10px;
	}

	.token-tabs {
		padding: 10px 11px;
	}

	.token-tab {
		padding: 5px 11px;
		font-size: 0.72rem;
	}

	.token-view {
		padding: 14px 13px;
	}
}

/* ===== 11. 无障碍 ===== */
.back-link:focus-visible,
.submit-wrap > button:focus-visible,
.guestbook-form input:focus-visible,
.guestbook-form textarea:focus-visible {
	outline: 2px solid var(--about-accent);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*:before,
	*:after {
		animation-duration: 0.01ms !important;
		animation-delay: 0ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
