:root {
  --background: #fafafa;
  --text: #151515;
  --secondary: #707070;
  --line: #dedede;
  --hover: #f1f1f1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(760px, calc(100% - 48px)); margin-inline: auto; }
.site-header { height: 96px; display: flex; align-items: center; justify-content: space-between; }
.name { font-weight: 650; letter-spacing: -.02em; }
.site-header nav { display: flex; gap: 28px; color: var(--secondary); }
.site-header nav a, .site-footer a { transition: color .18s; }
.site-header nav a:hover, .site-footer a:hover { color: var(--text); }
.intro { padding: 108px 0 154px; }
h1 { margin: 0; font-size: clamp(34px, 7vw, 50px); line-height: 1.22; letter-spacing: -.045em; font-weight: 620; }
.lead { max-width: 570px; margin: 22px 0 0; font-size: clamp(20px, 3.5vw, 25px); line-height: 1.65; letter-spacing: -.025em; color: #393939; }
.availability { margin: 30px 0 0; color: var(--secondary); font-size: 13px; display: flex; align-items: center; gap: 9px; }
.availability span { width: 7px; height: 7px; border-radius: 50%; background: #38a853; box-shadow: 0 0 0 3px #dcf2e2; }
.section { padding: 0 0 128px; scroll-margin-top: 50px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--text); }
.section-title h2 { margin: 0; font-size: 14px; font-weight: 600; }
.section-title > span { font-size: 12px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.project { min-height: 120px; display: grid; grid-template-columns: 42px 1fr 110px 20px; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); transition: background-color .18s, padding .18s; }
.project:hover { background: var(--hover); padding-inline: 12px; }
.index { align-self: start; padding-top: 29px; color: #999; font-size: 11px; font-variant-numeric: tabular-nums; }
.project-main h3 { margin: 0 0 8px; font-size: 19px; font-weight: 550; letter-spacing: -.025em; }
.project-main p { margin: 0; color: var(--secondary); line-height: 1.6; }
.project-meta { display: flex; flex-direction: column; gap: 7px; color: var(--secondary); font-size: 12px; }
.project-meta span:last-child { color: #aaa; }
.arrow { font-size: 16px; transform: translate(-3px, 3px); opacity: 0; transition: opacity .18s, transform .18s; }
.project:hover .arrow { opacity: 1; transform: none; }
.about-content, .contact-content { width: 72%; margin-left: auto; padding-top: 28px; }
.about-content p { margin: 0 0 18px; font-size: 17px; line-height: 1.85; color: #393939; }
.contact-content p { margin: 0 0 18px; color: var(--secondary); }
.contact-content a { display: inline-block; font-size: 18px; border-bottom: 1px solid; padding-bottom: 3px; }
.site-footer { height: 130px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--secondary); font-size: 12px; }
.site-footer div { display: flex; gap: 22px; }
@media (max-width: 620px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { height: 74px; }
  .site-header nav { gap: 20px; }
  .intro { padding: 80px 0 116px; }
  .lead { font-size: 20px; line-height: 1.65; }
  .section { padding-bottom: 96px; }
  .project { min-height: 136px; grid-template-columns: 28px 1fr 18px; gap: 10px; padding-block: 22px; }
  .project:hover { padding-inline: 8px; }
  .index { padding-top: 2px; }
  .project-main h3 { font-size: 18px; }
  .project-main p { font-size: 14px; }
  .project-meta { grid-column: 2; flex-direction: row; gap: 12px; margin-top: -4px; }
  .arrow { grid-column: 3; grid-row: 1 / span 2; opacity: .5; }
  .about-content, .contact-content { width: 100%; }
  .about-content p { font-size: 16px; }
  .site-footer { height: auto; padding: 32px 0; align-items: flex-start; gap: 24px; }
  .site-footer div { flex-wrap: wrap; justify-content: flex-end; gap: 14px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 极简风格细化：中性底色、Ant Design 蓝色与更紧凑的阅读节奏。 */
:root { --background: #fafafa; --text: #262626; --secondary: #737373; --line: #e5e5e5; --hover: #e6f4ff; --accent: #1677ff; --accent-hover: #4096ff; --accent-soft: #e6f4ff; --accent-border: #91caff; }
body { font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
.wrap { width: min(800px, calc(100% - 64px)); }
.site-header { height: 110px; }
.name { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.name-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--accent-border); border-radius: 11px; font: italic 20px Georgia, serif; color: var(--accent); background: var(--accent-soft); }
.name-note { color: #8c8c8c; font-size: 11px; font-weight: 400; border-left: 1px solid var(--line); padding-left: 12px; }
.site-header nav { font-size: 13px; }
.site-header nav a:hover, .site-footer a:hover { color: var(--accent); }
.intro { padding: 80px 0 100px; }
.intro-label { margin: 0 0 27px; font-size: 10px; color: #8c8c8c; letter-spacing: .13em; }
h1 { font-size: clamp(34px, 7vw, 50px); line-height: 1.3; font-weight: 600; letter-spacing: -.035em; }
.lead { max-width: 650px; font-size: 23px; line-height: 1.8; color: var(--secondary); text-wrap: pretty; }
.availability { font-size: 12px; }
.availability span { width: 6px; height: 6px; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.section { padding-bottom: 85px; }
.section-title { padding-bottom: 18px; border-color: #bfbfbf; }
.section-title h2 { display: flex; gap: 15px; align-items: baseline; }
.section-title h2 small { font-size: 9px; font-weight: 400; color: #8c8c8c; letter-spacing: .09em; }
.section-title > span { font-size: 11px; }
.project { min-height: 108px; grid-template-columns: 32px minmax(0,1fr) 95px 28px; gap: 20px; position: relative; isolation: isolate; }
.project::before { content: ""; position: absolute; inset: 8px -14px; background: var(--hover); border-radius: 8px; opacity: 0; transition: opacity .2s; z-index: -1; }
.project:hover { background: transparent; padding-inline: 0; }
.project:hover::before, .project:focus-visible::before { opacity: 1; }
.index { align-self: center; padding: 0; color: #8c8c8c; font-family: Consolas, monospace; }
.project-main h3 { font-size: 17px; font-weight: 600; }
.project-main p { font-size: 13px; line-height: 1.7; }
.project:hover h3 { color: var(--accent); }
.project-meta { font-size: 10px; gap: 7px; align-items: flex-start; }
.project-meta span:first-child { padding: 3px 8px; border: 1px solid var(--accent-border); background: var(--accent-soft); color: var(--accent); border-radius: 4px; }
.project-meta span:last-child { padding-left: 8px; color: #8c8c8c; }
.arrow { opacity: 1; transform: none; color: #8c8c8c; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.project:hover .arrow { color: var(--accent); background: var(--accent-soft); transform: translate(2px,-2px); }
.about-content, .contact-content { width: 74%; }
.about-content p { font-size: 14px; line-height: 2; color: var(--secondary); }
.contact-content p { font-size: 14px; }
.contact-content a { font-size: 21px; color: var(--accent); border-color: var(--accent-border); padding-bottom: 7px; }
.site-footer { height: 112px; font-size: 11px; }
@media(max-width:620px) {
  .wrap { width: calc(100% - 44px); }
  .site-header { height: 86px; }
  .name-note { display: none; }
  .intro { padding: 60px 0 76px; }
  h1 { font-size: clamp(30px,8.5vw,42px); }
  .intro-label { font-size: 9px; margin-bottom: 23px; }
  .lead { font-size: 19px; margin-top: 17px; }
  .section { padding-bottom: 64px; }
  .section-title h2 { gap: 10px; }
  .section-title h2 small { font-size: 8px; letter-spacing: .04em; }
  .project { min-height: 130px; grid-template-columns: 22px minmax(0,1fr) 24px; gap: 10px; padding: 23px 0; }
  .project:hover { padding: 23px 0; }
  .index { grid-row: 1; align-self: start; padding-top: 4px; }
  .project-main h3 { font-size: 16px; }
  .project-main p { font-size: 12px; }
  .project-meta { align-items: center; margin-top: 0; }
  .project-meta span:first-child { padding: 2px 6px; }
  .arrow { width: 24px; height: 24px; }
  .about-content, .contact-content { width: 100%; }
  .site-footer { height: auto; gap: 15px; padding: 30px 0; }
  .site-footer div { gap: 15px; }
}
@media(max-width:360px) {
  .wrap { width: calc(100% - 32px); }
  .section-title h2 small { display: none; }
  .site-footer div { gap: 10px; }
}

/* 链接悬停与文本选中使用统一的蓝色主题。 */
.contact-content a:hover { color: var(--accent-hover); border-color: var(--accent-hover); }
::selection { background: var(--accent-soft); color: var(--accent); }

/* 数字名称标识保持清晰可读。 */
.name-mark { font: 600 11px/1 Consolas, monospace; letter-spacing: -.04em; }

/* 移除页脚上方分隔线，保留作品列表分隔线。 */
.site-footer { border-top: none; }
/* 公众号入口与二维码弹窗适配鼠标、键盘和触屏。 */
.wechat-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.wechat-button:hover { color: var(--accent); }
.wechat-button:focus-visible, .wechat-close:focus-visible, .wechat-save:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wechat-dialog { width: min(360px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; padding: 30px 24px; background: var(--background); color: var(--text); text-align: center; box-shadow: 0 20px 80px #0002; }
.wechat-dialog::backdrop { background: #0005; }
.wechat-dialog form { position: absolute; top: 10px; right: 12px; }
.wechat-close { border: none; background: transparent; color: var(--secondary); font-size: 26px; width: 32px; height: 32px; cursor: pointer; }
.wechat-caption { color: var(--secondary); font-size: 11px; margin: 4px 0 10px; }
.wechat-dialog h2 { font-size: 22px; margin: 0 0 20px; }
.wechat-dialog img { display: block; width: min(258px, 100%); height: auto; margin: 0 auto; border-radius: 4px; }
.wechat-hint { font-size: 12px; line-height: 1.8; color: var(--secondary); margin: 18px 0 12px; }
.wechat-save { font-size: 13px; color: var(--accent); }
/* 桌面悬停使用非模态浮层，不遮挡页面；触屏继续使用居中弹窗。 */
.wechat-dialog.is-preview { position: fixed; inset: auto; margin: 0; width: min(300px, calc(100% - 24px)); padding: 24px 20px; z-index: 100; }
.wechat-dialog.is-preview img { width: 216px; }
.wechat-dialog.is-preview h2 { font-size: 19px; margin-bottom: 14px; }
.wechat-dialog.is-preview .wechat-hint { font-size: 11px; margin-top: 12px; }

/* 二维码浮层只保留图片。 */
.wechat-dialog, .wechat-dialog.is-preview { width: min(282px, calc(100% - 24px)); padding: 12px; border-radius: 10px; background: #fff; }
.wechat-dialog.is-preview img { width: 258px; max-width: 100%; }

/* 缩小公众号二维码浮层，桌面与移动端保持一致。 */
.wechat-dialog, .wechat-dialog.is-preview { width: min(170px, calc(100% - 24px)); padding: 6px; border-radius: 8px; }
.wechat-dialog img, .wechat-dialog.is-preview img { width: 156px; max-width: 100%; height: auto; }
/* 安装包是主要入口，源码保持次要层级。 */
.lifeplan-project { padding-block: 25px; }
.download-links { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 15px; font-size: 12px; }
.download-links a { color: var(--accent); border-bottom: 1px solid currentColor; padding-block: 4px; }
.download-links > span { color: var(--secondary); }
.project-main .download-version { font-size: 10px; margin-top: 10px; color: var(--secondary); }
.lifeplan-project .project-meta a { font-size: 11px; margin-left: 8px; padding-block: 5px; }

/* 压缩介绍区留白，在线使用入口合并箭头。 */
.intro { padding: 40px 0 56px; }
.project-meta .online-link { color: var(--accent); white-space: nowrap; }
@media (max-width: 620px) { .intro { padding: 32px 0 46px; } }

/* 页脚固定在视口底部，正文预留空间以免被遮挡。 */
body { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
.site-footer { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 30; height: 76px; min-height: 76px; padding-block: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--background); }
@media (max-width: 620px) {
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { height: auto; min-height: 76px; flex-wrap: wrap; padding-block: 18px; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
}

/* 覆盖年份末项样式，确保在线使用入口始终为蓝色。 */
.project .project-meta .online-link:last-child { color: #1677ff; }

/* 版本号紧随下载链接，窄屏空间不足时自然换行。 */
.download-links { align-items: center; }
.download-links .download-version { margin: 0; white-space: nowrap; font-size: 10px; color: var(--secondary); }

/* 个人摄影保持完整竖幅，作为介绍文字右侧的安静留白。 */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 216px; align-items: center; gap: 38px; padding-top: 24px; padding-bottom: 48px; }
.intro-copy { min-width: 0; }
.personal-photo { margin: 0; }
.personal-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; border-radius: 6px; }
@media (max-width: 620px) {
  .intro { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; padding-bottom: 40px; }
  .personal-photo { width: min(216px, 66%); justify-self: center; }
}

.personal-photo figcaption { margin-top: 9px; color: #929292; font-size: 10px; line-height: 1.6; text-align: center; letter-spacing: .03em; }
.personal-photo figcaption time { margin-left: 6px; }
