/* 定义全站色彩、字体与主题变量。 */
:root {
  color-scheme: dark;
  --bg: #101012;
  --panel: #19191d;
  --line: #303034;
  --muted: #aaa8b1;
  --accent: #b297ff;
  --mono: "SFMono-Regular",Consolas,"Liberation Mono",monospace;
  --sans: Inter,"Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  font-family: var(--sans);
  background: var(--bg);
  color: #f4f3f5;
}

/* 统一元素的尺寸计算方式。 */
* {
  box-sizing: border-box;
}

/* 设置平滑滚动与锚点顶部留白。 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

/* 清除页面默认边距。 */
body {
  margin: 0;
}

/* 弹窗打开时锁定背景滚动。 */
body:has(dialog[open]) {
  overflow: hidden;
}

/* 让表单控件沿用页面字体。 */
button,
input,
select {
  font: inherit;
}

/* 移除触屏浏览器的默认高亮。 */
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

/* 优化链接与按钮的触屏响应。 */
button,
a {
  touch-action: manipulation;
}

/* 设置按钮指针与文字颜色。 */
button {
  cursor: pointer;
  color: inherit;
}

/* 统一链接的颜色和装饰。 */
a {
  color: inherit;
  text-decoration: none;
}

/* 清除按钮的默认外观。 */
button {
  border: 0;
  background: none;
}

/* 弱化不可用按钮。 */
button:disabled {
  opacity: .35;
  cursor: default;
}

/* 为键盘焦点绘制轮廓。 */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* 设置选中文本的配色。 */
::selection {
  background: #bca3f4;
  color: #151021;
}

/* 隐藏图标定义和隐蔽元素。 */
[hidden],
.symbols {
  display: none!important;
}

/* 限定内容宽度并水平居中。 */
.shell {
  width: min(88%,1480px);
  margin-inline: auto;
}

/* 统一线性图标的尺寸和笔触。 */
.ic {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* 保持导航栏置顶并模糊背景。 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid #ffffff10;
  background: #101012eb;
  backdrop-filter: blur(16px);
}

/* 将品牌、导航和履历入口分列对齐。 */
.header-inner {
  height: 73px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* 排布品牌标志和名称。 */
.brand {
  width: max-content;
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 780;
  letter-spacing: -.045em;
  font-size: 23px;
}

/* 限定品牌标志大小与颜色。 */
.brand svg {
  width: 36px;
  height: 32px;
  color: var(--accent);
}

/* 突出品牌名末尾的圆点。 */
.brand-dot {
  color: var(--accent);
}

/* 水平排列主导航。 */
.header-inner nav {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 100%;
}

/* 设置导航文字及其过渡。 */
.nav-link {
  font-size: 13px;
  letter-spacing: .04em;
  color: #aaa7b0;
  position: relative;
  transition: color .2s;
}

/* 强调悬停和选中的导航项。 */
.nav-link:hover,
.nav-link.active {
  color: white;
}

/* 在当前导航项左侧显示圆点。 */
.nav-link.active:before {
  content: "";
  position: absolute;
  background: var(--accent);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  left: -12px;
  top: calc(50% - 2px);
}

/* 统一履历与小型按钮的边框和间距。 */
.resume,
.small-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 9px 16px;
  border: 1px solid #48464e;
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: .04em;
  transition: background .2s,border-color .2s;
}

/* 为边框按钮提供悬停反馈。 */
.resume:hover,
.small-button:hover {
  background: #27242d;
  border-color: var(--accent);
}

/* 缩小履历入口图标。 */
.resume .ic {
  width: 14px;
  height: 14px;
}

/* 定义首屏背景并裁切越界画面。 */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  background: radial-gradient(ellipse at 78% 70%,#211d2b55,transparent 53%),var(--bg);
}

/* 设置首屏双栏比例与上下留白。 */
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  align-items: center;
  min-height: 470px;
  padding-block: 40px 43px;
}

/* 保持首屏文字位于作品图上层。 */
.hero-copy {
  position: relative;
  z-index: 1;
}

/* 移除标题与段落默认外边距。 */
h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* 设置首屏标题的字距和自适应字号。 */
h1 {
  font-family: "Helvetica Neue",Arial,sans-serif;
  font-weight: 560;
  font-size: clamp(85px,7.65vw,124px);
  line-height: .91;
  letter-spacing: -.073em;
  margin: 0 0 24px;
}

/* 用衬线字呈现第二行标题。 */
h1 em {
  font-family: Baskerville,"Times New Roman",Georgia,serif;
  font-weight: 400;
  letter-spacing: -.065em;
}

/* 突出标题尾部句点。 */
h1 em span {
  color: var(--accent);
}

/* 排布设计师姓名与职位。 */
.identity-line {
  font-size: 18px;
  font-weight: 450;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: .04em;
  line-height: 1.5;
}

/* 强调设计师姓名。 */
.identity-line strong {
  font-weight: 590;
}

/* 弱化姓名与职位间的斜线。 */
.slash {
  color: #6b6774;
  font-weight: 300;
}

/* 绘制浏览作品的主按钮。 */
.primary {
  display: inline-flex;
  align-items: center;
  gap: 27px;
  margin-top: 25px;
  padding: 12px 18px;
  border-radius: 6px;
  background: #b69aff;
  color: #17121f;
  font-size: 13px;
  font-weight: 650;
  transition: background .2s,transform .2s;
}

/* 并排放置浏览作品与作品册入口。 */
.hero-actions {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 20px;
}

/* 两个文件下载入口共享一行，空间不足时整组移到浏览按钮下方。 */
.hero-downloads {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  max-width: 100%;
}

/* 将 PDF 下载显示为可区别于浏览按钮的次级文字链接。 */
.pdf-link {
  color: #c7b5eb;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 为下载链接提供清晰的悬停与键盘焦点反馈。 */
.pdf-link:is(:hover, :focus-visible) {
  color: #f4edff;
}

/* 将履历入口和文件下载并排放置。 */
.profile-actions {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 20px;
}

/* 在履历标题和关闭按钮之间靠右对齐下载入口。 */
.resume-download {
  margin-inline-start: auto;
}

/* 让页数和下载入口在窄屏下自然换行。 */
.collection-meta-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 12px;
}

/* 其他作品分类没有对应的整册 PDF。 */
.collection:not([data-category="book"]) .book-download {
  display: none;
}

/* 设置原作品册入口的文字与图标间距。 */
.book-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c4becb;
  font-size: 12px;
}

/* 突出作品册入口的悬停状态。 */
.book-link:hover {
  color: var(--accent);
}

/* 限定作品册入口图标的大小。 */
.book-link .ic {
  width: 12px;
  height: 12px;
}

/* 限定主按钮箭头的大小。 */
.primary .ic {
  width: 15px;
  height: 15px;
}

/* 为主按钮添加上移反馈。 */
.primary:hover {
  background: #c6b1ff;
  transform: translateY(-2px);
}

/* 将首屏作品展示区设为构图容器。 */
.hero-stage {
  align-self: stretch;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 在作品后叠加渐隐点阵。 */
.hero-stage:before {
  content: "";
  position: absolute;
  inset: -7% -19% -5% -15%;
  background-image: radial-gradient(#ada3be70 .85px,transparent .9px);
  background-size: 19px 19px;
  mask-image: radial-gradient(ellipse at center,#000 15%,transparent 70%);
  pointer-events: none;
}

/* 通过透视变换响应指针倾斜。 */
.art-board {
  position: absolute;
  inset: -10% -7% 2% -11%;
  display: grid;
  grid-template: minmax(0,1fr) / minmax(0,1fr);
  place-items: center;
  transform: perspective(1100px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition: transform .4s ease-out;
  will-change: transform;
}

/* 在作品下方绘制环境光。 */
.art-board:before {
  content: "";
  position: absolute;
  inset: 21% 3% 6%;
  border-radius: 50%;
  background: radial-gradient(ellipse,#73619a2b,transparent 70%);
}

/* 在同一个浮动容器内定位三幅等尺寸画面。 */
.hero-stack {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  animation: float 7.5s ease-in-out infinite;
}

/* 固定透视构图的边界，仅对画面的透明度进行过渡。 */
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .32s ease-in-out;
}

/* 显示当前选择的作品。 */
.hero-art.is-current {
  opacity: 1;
}

/* 在画面右下角排列切换控件。 */
.showcase-control {
  position: absolute;
  inset: auto 0 -12px auto;
  display: flex;
  align-items: center;
  gap: 17px;
  color: #9a96a2;
  font-size: 10px;
  letter-spacing: .1em;
}

/* 排布精选作品的当前和总序号。 */
.slide-index {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 10px var(--mono);
  color: #837d90;
}

/* 强调当前精选作品序号。 */
#slide-current {
  color: #cbb5f8;
}

/* 绘制序号间的分隔线。 */
.index-line {
  width: 25px;
  height: 1px;
  background: #625368;
}

/* 并排放置前后切换按钮。 */
.step-pair {
  display: inline-flex;
  gap: 6px;
}

/* 统一圆形按钮的大小和边框。 */
.step-pair button,
.round {
  display: inline-grid;
  place-items: center;
  border: 1px solid #46434b;
  border-radius: 50%;
  width: 31px;
  height: 31px;
  transition: border-color .2s,background .2s;
}

/* 在悬停时突出圆形按钮。 */
.step-pair button:hover,
.round:hover {
  background: #302a3a;
  border-color: #a68bd9;
}

/* 限定切换箭头的大小。 */
.step-pair .ic {
  width: 13px;
  height: 13px;
}

/* 定义首屏主图的悬浮动画。 */
@keyframes float {
  /* 在动画中点抬升主图。 */
  50% {
    transform: translateY(-6px);
  }
}

/* 定义卡片和弹窗的入场动画。 */
@keyframes arrive {
  /* 从略低且透明的位置开始。 */
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  /* 恢复最终位置和不透明度。 */
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 为作品档案区设置上下留白。 */
.archive {
  padding-block: 46px 72px;
}

/* 分置栏目标题与布局开关。 */
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

/* 设置二级标题的字体层次。 */
h2 {
  font-size: clamp(31px,2.6vw,46px);
  line-height: 1.2;
  letter-spacing: -.04em;
  font-weight: 570;
}

/* 用共同边框包裹布局开关。 */
.layouts {
  display: flex;
  padding: 3px;
  border: 1px solid #333136;
  border-radius: 7px;
}

/* 居中显示布局按钮的图标。 */
.layouts button {
  width: 32px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #85808d;
  border-radius: 4px;
}

/* 标记选中的布局。 */
.layouts button[aria-pressed=true] {
  color: #e9e0fc;
  background: #302b39;
}

/* 限定布局图标的大小。 */
.layouts .ic {
  width: 15px;
  height: 15px;
}

/* 排布可换行的分类筛选按钮。 */
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 23px 0 21px;
}

/* 绘制圆角筛选标签。 */
.filter {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .02em;
  padding: 7px 14px;
  border: 1px solid #37353b;
  border-radius: 24px;
  color: #b2aeb9;
  transition: color .2s,background .2s;
}

/* 强调可悬停的分类标签。 */
.filter:hover {
  border-color: #887a99;
  color: #e0d7ec;
}

/* 填充已选分类的背景。 */
.filter[aria-pressed=true] {
  color: #18131f;
  background: #c2a7ff;
  border-color: #c2a7ff;
}

/* 建立三列作品卡片网格。 */
.cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 34px 20px;
}

/* 允许卡片收缩并应用入场动画。 */
.work-card {
  display: block;
  min-width: 0;
  animation: arrive .32s both;
}

/* 分类封面固定为横幅卡片，独立裁切边缘。 */
.card-image {
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffff0e;
  border-radius: 9px;
  background: #212127;
  aspect-ratio: 1020 / 630;
}

/* 封面图片铺满分类卡片。 */
.card-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 将数量标注放在标题下，完整露出作品。 */
.card-count {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font: 11px/1.5 var(--sans);
}

/* 分置卡片标题与打开箭头。 */
.card-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 1px 0;
  gap: 12px;
}

/* 设置作品分类标题的字号与行高。 */
.card-info h3 {
  font-size: clamp(16px,1.4vw,24px);
  line-height: 1.45;
  font-weight: 550;
  letter-spacing: -.02em;
}

/* 绘制卡片的圆形打开按钮。 */
.card-arrow {
  display: grid;
  place-items: center;
  border: 1px solid #3b3740;
  border-radius: 50%;
  width: 31px;
  height: 31px;
  flex: none;
  color: #bdb7c7;
  transition: transform .2s,background .2s;
}

/* 限定打开箭头的大小。 */
.card-arrow .ic {
  width: 13px;
  height: 13px;
}

/* 悬停卡片时着色并旋转箭头。 */
.work-card:hover .card-arrow {
  background: var(--accent);
  color: #181220;
  transform: rotate(45deg);
  border-color: transparent;
}

/* 将卡片网格切换为单列列表。 */
.cards.list-mode {
  grid-template-columns: 1fr;
  gap: 0;
}

/* 横向排列列表封面与说明。 */
.list-mode .work-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

/* 固定列表缩略图宽度。 */
.list-mode .card-image {
  width: 125px;
  flex: none;
}

/* 让标题区占用列表剩余宽度。 */
.list-mode .card-info {
  flex: 1;
  padding: 0;
}

/* 用与作品档案相同的页宽承载整段设计履历。 */
.about {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 80px);
}

/* 将通勤照放在左侧，右侧依次显示栏目名与设计理念。 */
.about-header {
  display: grid;
  grid-template-columns: 28% 1fr;
  grid-template-areas: "portrait title" "portrait statement";
  gap: 12px 2%;
}

/* 按竖幅原比例显示整张通勤照，并限制在左栏以内。 */
.about-portrait {
  grid-area: portrait;
  align-self: center;
  display: block;
  width: min(100%, clamp(140px, 15vw, 218px));
  height: auto;
  border-radius: 6px;
}

/* 柔和的青色小标题沿用全站的环境光色。 */
#about-title {
  grid-area: title;
  align-self: end;
  color: #9cdbd6;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
}

/* 以大字和自然的中文行距强调设计理念。 */
.about-statement {
  grid-area: statement;
  align-self: start;
  font-size: clamp(32px, 3.7vw, 64px);
  font-weight: 620;
  letter-spacing: -.045em;
  line-height: 1.3;
}

/* 并列排布介绍和资料，让长段落保持易读的行宽。 */
.about-overview {
  display: grid;
  grid-template-columns: 1.16fr 1fr;
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
  margin-block: clamp(30px, 4.3vw, 68px);
}

/* 简介以略大于正文的字号承接设计理念。 */
.about-intro {
  font-size: clamp(17px, 1.65vw, 25px);
  line-height: 1.85;
}

/* 去除资料清单默认外边距，对齐两栏顶部。 */
.about-facts {
  margin: 0;
}

/* 用分隔线连接同一组个人资料。 */
.about-facts > div {
  display: grid;
  grid-template-columns: 5.8em minmax(0, 1fr);
  align-items: baseline;
  column-gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-block: .8em;
  font-size: clamp(14px, 1.12vw, 17px);
  line-height: 1.5;
}

/* 让首项资料与左侧简介首行对齐。 */
.about-facts > div:first-child {
  padding-top: .3em;
}

/* 保持资料名、时间和职责说明清晰且弱于主标题。 */
.about-facts dt, .about-period, .about-duties {
  color: #b2bec5;
}

/* 清除定义内容默认的段首缩进。 */
.about-facts dd {
  margin: 0;
}

/* 依时间、公司、岗位横排，同一经历的职责放在公司名下方。 */
.about-job {
  display: grid;
  grid-template-columns: minmax(135px, .8fr) minmax(0, 3fr) minmax(max-content, .65fr);
  grid-template-areas: "dates company role" ". duties .";
  align-items: baseline;
  gap: 10px clamp(14px, 2.4vw, 36px);
  padding-block: clamp(23px, 2.6vw, 40px);
  border-top: 1px solid var(--line);
}

/* 用连续的等宽数字标注每段经历的时间。 */
.about-period {
  grid-area: dates;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 公司名称作为每段经历的主标题。 */
.about-job h3 {
  grid-area: company;
  font-size: clamp(19px, 1.6vw, 26px);
  font-weight: 550;
  line-height: 1.5;
}

/* 岗位靠边对齐，便于纵向扫读。 */
.about-role {
  grid-area: role;
  justify-self: end;
  font-size: 14px;
}

/* 为岗位说明提供稳定的阅读行距。 */
.about-duties {
  grid-area: duties;
  font-size: clamp(14px, 1.18vw, 18px);
  line-height: 1.85;
}

/* 统一履历弹窗段落的阅读行高。 */
.profile p {
  color: #b5b0bd;
  font-size: 14px;
  line-height: 1.9;
}

/* 绘制带下划线的履历文字入口。 */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 6px;
  margin-top: 22px;
  color: #c4acf5;
  border-bottom: 1px solid #71637f;
  font-size: 13px;
}

/* 限定文字入口箭头的大小。 */
.text-link .ic {
  width: 15px;
  height: 15px;
}

/* 在页脚上方绘制分界线。 */
footer {
  border-top: 1px solid var(--line);
}

/* 分置版权信息与返回顶部链接。 */
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  font: 11px var(--sans);
  color: #99939e;
}

/* 限定原生弹窗的尺寸与背景。 */
dialog {
  color: inherit;
  background: #18171c;
  border: 1px solid #45404c;
  border-radius: 14px;
  padding: 0;
  max-width: calc(100vw - 36px);
  max-height: 90dvh;
  box-shadow: 0 30px 120px #0009;
  overscroll-behavior: contain;
}

/* 打开弹窗时播放入场动画。 */
dialog[open] {
  animation: arrive .22s ease-out;
}

/* 暗化并模糊弹窗背后的页面。 */
dialog::backdrop {
  background: #07070ac9;
  backdrop-filter: blur(8px);
}

/* 将弹窗标题栏固定在滚动区域顶部。 */
.dialog-head {
  padding: 15px 26px;
  min-height: 63px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #18171cf2;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

/* 固定关闭按钮的尺寸。 */
.round {
  flex: none;
  width: 33px;
  height: 33px;
}

/* 限定关闭图标的大小。 */
.round .ic {
  width: 15px;
  height: 15px;
}

/* 用完整视口承载作品目录和媒体查看，并消除原生弹窗的尺寸上限。 */
dialog:is(.collection,.viewer)[open] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: none;
}

/* 在标题栏中明确提供父级入口、当前位置和关闭控件。 */
:is(.collection,.viewer) .dialog-head {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  padding-inline: max(18px, calc((100% - 1450px) / 2));
  padding-top: max(12px, env(safe-area-inset-top));
}

/* 让文字返回控件在各级页面始终可见。 */
.parent-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border: 1px solid #48404f;
  border-radius: 6px;
  color: #d7c6ee;
  white-space: nowrap;
  font-size: 12px;
}

/* 用紧凑箭头提示返回方向。 */
.parent-link .ic {
  width: 13px;
  height: 13px;
}

/* 在交互时强调上一级入口。 */
.parent-link:is(:hover,:focus-visible) {
  background: #2b2533;
  border-color: #a28abc;
}

/* 设置分类内容区内边距。 */
.collection-body {
  width: min(100%, 1504px);
  margin-inline: auto;
  padding: 27px;
}

/* 让弹窗标题与关闭按钮稳定对齐。 */
.collection-heading h2,
#profile-heading {
  font-size: clamp(20px, 2vw, 28px);
}

/* 在分类标题下显示作品数量。 */
#collection-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* 在作品档案标题下方预留全站搜索入口。 */
.archive-search {
  margin-block: 20px 0;
}

/* 设置搜索框的边界并保留全角输入所需宽度。 */
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 14px;
  border-radius: 7px;
  border: 1px solid #45404c;
  background: #1d1b22;
  width: min(100%, 520px);
}

/* 标出全局搜索结果数量或无结果的原因。 */
#search-summary {
  margin: 19px 0 12px;
  font-size: 13px;
  color: var(--muted);
}

/* 将搜索结果与来源路径分列呈现。 */
.search-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 0 24px;
}

/* 统一作品与项目搜索结果的点击区域。 */
.search-result {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 66px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
}

/* 使用文字标记分类、项目和单件作品。 */
.result-type {
  flex: none;
  padding: 3px 7px;
  border-radius: 4px;
  background: #27222e;
  color: #cbb8e2;
  font: 11px/1.4 var(--sans);
}

/* 允许长标题和原文件夹路径在窄屏内换行。 */
.result-label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* 设置结果名称和所在目录的阅读层级。 */
.result-label strong, .result-label small {
  display: block;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
}

/* 用较小字号显示结果的实际位置。 */
.result-label small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

/* 为搜索结果的打开操作提供视觉提示。 */
.search-result > .ic {
  width: 14px;
  color: var(--muted);
}

/* 用统一主题色反馈结果的鼠标或键盘定位。 */
.search-result:is(:hover, :focus-visible) {
  color: var(--accent);
}

/* 将继续加载的操作与最后一条结果分隔。 */
#more-results {
  margin-top: 18px;
}

/* 设置搜索图标的大小和颜色。 */
.search .ic {
  width: 15px;
  color: #a69cac;
}

/* 让搜索输入框填满可用宽度。 */
.search input {
  width: 100%;
  min-width: 0;
  line-height: 38px;
  font-size: 13px;
  border: none;
  background: transparent;
  color: white;
  outline: none;
}

/* 聚焦输入时强调搜索框边框。 */
.search:focus-within {
  border-color: var(--accent);
}

/* 设置子文件夹选择器的外观。 */
select {
  padding: 9px 10px;
  max-width: 45%;
  color: #d5cddd;
  border: 1px solid #45404c;
  border-radius: 6px;
  background: #211e27;
  font-size: 13px;
}

/* 让较长的目录名在关闭按钮左侧正常收缩。 */
.collection-heading {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* 通过紧凑的面包屑呈现当前目录在项目中的位置。 */
.collection-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 7px;
  margin-bottom: 6px;
  color: #a9a1b3;
  font-size: 12px;
  line-height: 1.6;
}

/* 提供足够的祖先目录链接辨识度。 */
.collection-crumbs a {
  color: #c3acdf;
  text-underline-offset: 3px;
}

/* 在鼠标或键盘定位路径时突出可跳转的目录。 */
.collection-crumbs a:is(:hover, :focus-visible) {
  color: #e1cfff;
  text-decoration: underline;
}

/* 降低路径分隔符的视觉比重。 */
.collection-crumbs span {
  color: #756d7f;
}

/* 突出面包屑中当前所在的文件夹。 */
.collection-crumbs strong {
  font-weight: 500;
  color: #d0cbd4;
}

/* 在分类内优先展示可进一步浏览的项目。 */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 16px;
}

/* 为混合目录中的下一个非空内容区保留间距。 */
:is(.project-grid, .directory-grid):not([hidden]):not(:empty) ~ :is(.directory-grid, .item-grid):not([hidden]):not(:empty) {
  margin-block-start: 22px;
}

/* 空目录和空路径不占据内容区空间。 */
.project-grid:empty,
.directory-grid:empty,
.collection-crumbs:empty {
  display: none;
}

/* 将封面和说明组成一个完整可点击的文件夹。 */
.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #3d3943;
  border-radius: 9px;
  background: #211e26;
  transition: transform .22s ease, border-color .22s ease;
}

/* 独立的横版封面盒不参与原图的固有高度计算。 */
.project-cover {
  position: relative;
  display: block;
  flex: none;
  width: 100%;
  aspect-ratio: 960 / 582;
  overflow: hidden;
  background: #211e26;
  border-bottom: 1px solid #ffffff0a;
}

/* 项目封面使用预先选取的高清画面，统一铺满固定画幅。 */
.project-cover img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 非文档项目以统一比例展示整张样稿封面，窄屏同样保留四边。 */
#collection:not([data-category="bid"]):not([data-category="manual"]) .project-cover img {
  object-fit: contain;
}

/* 在文字栏标识项目文件夹。 */
.project-tab {
  display: inline-flex;
  color: #c9b7e9;
}

/* 统一文件夹标记的线条比例。 */
.project-tab svg,
.directory-link svg {
  flex: none;
  width: 16px;
  height: 16px;
}

/* 让项目名称与收录页数在卡片底部对齐。 */
.project-caption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 13px;
}

/* 保持完整项目名可见并兼容无空格的英文名称。 */
.project-caption strong {
  min-width: 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 550;
  overflow-wrap: anywhere;
}

/* 以次要字号呈现项目与子目录的收录数量。 */
.project-caption small,
.directory-link small {
  margin-inline-start: auto;
  color: #b6adbf;
  white-space: nowrap;
  font: 11px/1.55 var(--sans);
  font-variant-numeric: tabular-nums;
}

/* 将深层文件夹整理为可换行的紧凑目录。 */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  gap: 8px;
}

/* 用整行链接呈现文件夹图标、名称与数量。 */
.directory-link {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #3e3946;
  border-radius: 6px;
  background: #211e26;
  color: #ded9e3;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  transition: background .2s, border-color .2s;
}

/* 使用主题紫标记可进入的子目录。 */
.directory-link svg {
  color: #bca5da;
}

/* 为支持悬停的设备提供项目和目录入口反馈。 */
@media (hover: hover) {
  /* 轻微抬升整张项目卡并强调其边框。 */
  .project-card:hover {
    transform: translateY(-2px);
    border-color: #9a82bd;
  }

  /* 通过背景和边框反馈目录链接的可点击状态。 */
  .directory-link:hover {
    background: #2c2634;
    border-color: #786789;
  }
}

/* 建立分类详情的四列作品网格。 */
.item-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 19px 14px;
}

/* 允许作品入口收缩并左对齐。 */
.item {
  min-width: 0;
  text-align: left;
  padding: 0;
}

/* 在缩略图框内居中展示完整原图。 */
.item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.5;
  object-fit: contain;
  padding: 4px;
  border-radius: 6px;
  background: #242129;
  transition: filter .2s;
}

/* 联通手机界面按截图原比例排列，让列表也能看清完整页面。 */
.collection[data-project="unicom-app-13"] .item img {
  aspect-ratio: auto;
  padding: 0;
}

/* 给多联屏和横幅作品整行宽度，使界面的两端同时可见。 */
.item-panorama {
  grid-column: 1 / -1;
}

/* 多联屏缩略图按自身画幅确定高度。 */
.item-panorama img {
  aspect-ratio: auto;
}

/* 悬停时提亮作品缩略图。 */
.item:hover img {
  filter: brightness(1.14);
}

/* 允许较长的作品标题换行。 */
.item > strong {
  display: block;
  font-weight: 500;
  font-size: 13px;
  overflow-wrap: anywhere;
  line-height: 1.5;
  margin: 7px 0 2px;
}

/* 弱化作品格式与搜索提示。 */
.item > small,
.empty {
  font-size: 11px;
  color: #aaa3b4;
}

/* 将空结果提示横跨作品网格。 */
.empty {
  grid-column: 1/-1;
  padding-block: 30px;
  font-size: 14px;
}

/* 在底部居中排列分页按钮。 */
.pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
  color: #b7b0c2;
  font-size: 12px;
}

/* 设置作品查看器尺寸与底色。 */
.viewer {
  width: 1300px;
  background: #131217;
}

/* 使媒体区域占用展开弹窗的剩余高度。 */
.viewer[open] {
  display: flex;
  flex-direction: column;
  height: 89dvh;
}

/* 允许查看器标题栏内容收缩。 */
.viewer-title-wrap {
  min-width: 0;
}

/* 控制作品标题字号并允许断行。 */
.viewer h2 {
  font-size: 18px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* 显示可换行的作品原始路径。 */
#viewer-path {
  font-size: 11px;
  color: #aaa2b3;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

/* 居中显示媒体并允许查看细节。 */
.viewer-media {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  background: #0e0e10;
}

/* 保持图片与视频在窗口内等比显示。 */
.viewer-media img,
.viewer-media video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 提示图片可以放大。 */
.viewer-media img {
  cursor: zoom-in;
}

/* 切换为允许滚动的放大区域。 */
.viewer-media.zoomed {
  display: block;
  text-align: center;
}

/* 展开图片原有尺寸并提供缩小指针。 */
.viewer-media.zoomed img {
  width: auto;
  min-width: 100%;
  max-width: none;
  max-height: none;
  vertical-align: top;
  cursor: zoom-out;
}

/* 排列查看器底部的操作控件。 */
.viewer-controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #b7aebe;
}

/* 让作品说明与操作按钮分开。 */
#viewer-note {
  margin-right: auto;
  line-height: 1.6;
}

/* 保持查看器按钮文字单行。 */
.viewer-controls button {
  white-space: nowrap;
}

/* 设置个人履历弹窗宽度。 */
dialog.profile {
  width: 720px;
}

/* 为履历内容设置统一内边距。 */
#profile-content {
  padding: 28px;
}

/* 在姓名与专业说明间留白。 */
.profile-intro h3 {
  font-size: 24px;
  margin-bottom: 7px;
}

/* 分隔相邻的自我介绍段落。 */
.profile-intro p+p {
  margin-top: 10px;
}

/* 用上边框区分履历章节。 */
.profile-section {
  margin-top: 22px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

/* 设置履历章节标题的层次。 */
.profile-section h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

/* 分隔相邻的工作经历。 */
.profile-job+.profile-job {
  margin-top: 18px;
}

/* 设置任职单位标题的字号。 */
.profile-job h4 {
  font-size: 16px;
  margin: 3px 0;
}

/* 使用等宽字体排印经历起止时间。 */
.profile p.profile-period {
  font: 11px/1.6 var(--mono);
  color: #b59fd4;
}

/* 弱化工作职位并与描述分隔。 */
.profile p.profile-role {
  font-size: 12px;
  color: #ccb8ea;
  margin-bottom: 6px;
}

/* 并排显示工具与教育信息。 */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* 调整平板视口的内容密度。 */
@media (max-width: 900px) {
  /* 扩大平板内容区占比。 */
  .shell {
    width: 90%;
  }

  /* 调整首屏高度和双栏比例。 */
  .hero-inner {
    min-height: 416px;
    grid-template-columns: .91fr 1.09fr;
  }

  /* 降低平板导航栏高度。 */
  .header-inner {
    height: 64px;
  }

  /* 收紧首屏大标题字号。 */
  h1 {
    font-size: 83px;
  }

  /* 保留精选作品展示高度。 */
  .hero-stage {
    min-height: 290px;
  }

  /* 收紧画面切换控件间距。 */
  .showcase-control {
    gap: 10px;
  }

  /* 收紧作品分类卡片间距。 */
  .cards {
    gap: 26px 14px;
  }

  /* 在平板和手机上用双列陈列项目。 */
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 将分类内作品改为三列。 */
  .item-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

/* 为手机视口重新排布内容。 */
@media (max-width: 650px) {
  /* 适配移动导航栏的锚点偏移。 */
  html {
    scroll-padding-top: 66px;
  }

  /* 收紧顶部布局并保留导航空间。 */
  .header-inner {
    height: 56px;
    grid-template-columns: auto 1fr auto;
  }

  /* 缩小品牌文字与标志间距。 */
  .brand {
    font-size: 17px;
    gap: 5px;
  }

  /* 缩小移动品牌标志。 */
  .brand svg {
    width: 27px;
    height: 25px;
  }

  /* 居中排列紧凑的主导航。 */
  .header-inner nav {
    gap: 17px;
    justify-content: center;
  }

  /* 缩小手机导航文字。 */
  .nav-link {
    font-size: 11px;
  }

  /* 缩小当前导航项指示点。 */
  .nav-link.active:before {
    width: 3px;
    height: 3px;
    left: -6px;
    top: calc(50% - 1px);
  }

  /* 收紧履历按钮的内边距。 */
  .resume {
    padding: 7px 9px;
    font-size: 10px;
    gap: 5px;
  }

  /* 缩小履历入口箭头。 */
  .resume .ic {
    width: 11px;
    height: 11px;
  }

  /* 将首屏切换为上下排布。 */
  .hero-inner {
    display: block;
    padding: 35px 0 20px;
  }

  /* 让首屏简介占满单列宽度。 */
  .hero-copy {
    width: 100%;
  }

  /* 按手机屏宽缩放主标题。 */
  h1 {
    font-size: clamp(75px,18vw,100px);
    margin: 0 0 18px;
  }

  /* 调整身份栏字号。 */
  .identity-line {
    font-size: 16px;
  }

  /* 收紧主按钮与简介间距。 */
  .primary {
    margin-top: 17px;
    padding: 10px 15px;
  }

  /* 为移动端作品图保留合适高度。 */
  .hero-stage {
    min-height: 0;
    height: clamp(220px,58vw,320px);
    margin: 4px -1% 0 4%;
  }

  /* 在窄屏内为轮播的完整透明画布留出水平边距。 */
  .art-board {
    inset: -6% 0 9% -5%;
  }

  /* 调整移动端画面切换控件的位置。 */
  .showcase-control {
    bottom: -3px;
    right: 0;
    font-size: 9px;
    gap: 10px;
  }

  /* 统一移动端切换按钮尺寸。 */
  .step-pair button {
    height: 30px;
    width: 30px;
  }

  /* 缩小作品档案区上下留白。 */
  .archive {
    padding: 33px 0 43px;
  }

  /* 将分类卡片切换为双列。 */
  .cards {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 24px 12px;
  }

  /* 减小移动端封面圆角。 */
  .card-image {
    border-radius: 7px;
  }

  /* 允许横向滚动浏览全部分类。 */
  .filter-row {
    gap: 6px;
    margin: 18px 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0;
  }

  /* 保持滚动标签的固有宽度。 */
  .filter {
    flex: none;
  }

  /* 收紧分类标签内边距与字号。 */
  .filter {
    padding: 6px 10px;
    font-size: 11px;
  }

  /* 缩小封面与标题间的距离。 */
  .card-info {
    padding-top: 9px;
    gap: 5px;
  }

  /* 设置手机端卡片标题字号。 */
  .card-info h3 {
    font-size: 15px;
  }

  /* 缩小卡片上的圆形打开按钮。 */
  .card-arrow {
    width: 22px;
    height: 22px;
  }

  /* 缩小卡片打开箭头。 */
  .card-arrow .ic {
    width: 10px;
    height: 10px;
  }

  /* 在手机上缩小照片栏，给两行设计理念留出完整宽度。 */
  .about-header {
    grid-template-columns: clamp(72px, 19.5vw, 124px) minmax(0, 1fr);
    gap: 6px clamp(10px, 3.6vw, 22px);
  }

  /* 在简介下方接续展示个人资料。 */
  .about-overview {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  /* 在小屏保留设计理念的两行完整短句。 */
  .about-statement {
    font-size: clamp(19px, 5.8vw, 35px);
  }

  /* 将时间与岗位并置，公司与职责各占一整行。 */
  .about-job {
    grid-template-columns: 1fr auto;
    grid-template-areas: "dates role" "company company" "duties duties";
    row-gap: 9px;
  }

  /* 缩小手机页脚文字。 */
  .footer-inner {
    font-size: 10px;
  }

  /* 适配手机弹窗的宽度与高度。 */
  dialog {
    max-width: calc(100vw - 14px);
    max-height: 95dvh;
    border-radius: 9px;
  }

  /* 收紧手机弹窗标题栏。 */
  .dialog-head {
    padding: 11px 14px;
    min-height: 52px;
  }

  /* 调整分类与履历内容区的内边距。 */
  .collection-body,
  #profile-content {
    padding: 18px 14px;
  }

  /* 收紧手机上的项目卡间距。 */
  .project-grid {
    gap: 13px 9px;
  }

  /* 收紧手机卡片标题区内边距。 */
  .project-caption {
    padding: 9px;
    gap: 3px 6px;
  }

  /* 调整窄屏项目名的阅读字号。 */
  .project-caption strong {
    font-size: 13px;
  }

  /* 调整标记图标在紧凑容器内的尺寸。 */
  .project-tab svg {
    width: 13px;
    height: 13px;
  }

  /* 在移动分类弹窗中显示双列缩略图。 */
  .item-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 13px 10px;
  }

  /* 紧凑排列手机全屏标题栏，保证长名称与按钮不冲突。 */
  :is(.collection,.viewer) .dialog-head {
    padding-inline: 12px;
    gap: 8px;
  }

  /* 调整手机档案搜索框与标题的间距。 */
  .archive-search {
    margin-top: 14px;
  }

  /* 增加移动作品查看器的可用高度。 */
  .viewer[open] {
    height: 94dvh;
  }

  /* 缩小查看器中的作品标题。 */
  .viewer h2 {
    font-size: 15px;
  }

  /* 允许查看器按钮按需换行。 */
  .viewer-controls {
    gap: 8px;
    padding: 8px 10px;
    flex-wrap: wrap;
  }

  /* 让查看器说明适应手机宽度。 */
  .viewer-controls #viewer-note {
    font-size: 10px;
    flex: 1;
  }

  /* 减少图片周围空白。 */
  .viewer-media {
    padding: 4px;
  }

  /* 收紧移动小型按钮的尺寸。 */
  .small-button {
    padding: 6px 9px;
    font-size: 11px;
  }

  /* 将履历附加信息改为上下排列。 */
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* 尊重系统的减少动态效果偏好。 */
@media (prefers-reduced-motion: reduce) {
  /* 关闭平滑锚点滚动。 */
  html {
    scroll-behavior: auto;
  }

  /* 关闭元素和伪元素的动画与过渡。 */
  *,
  *:before,
  *:after {
    animation: none!important;
    transition: none!important;
  }

  /* 移除首屏的指针倾斜效果。 */
  .art-board {
    transform: none;
  }
}

/* 完整呈现横幅与竖幅的原始构图。 */
.album-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 焦点描边置于照片内侧，避免被滚动边缘裁掉。 */
.album-thumb:focus-visible {
  outline-offset: -3px;
  outline: 3px solid var(--accent);
}

/* 相册占满当前视口，始终保留标题和退出入口。 */
#photo-album[open] {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg);
}

/* 让大图和网格共用顶部的相册信息。 */
.album-head {
  flex: none;
  padding-inline: max(16px, calc((100% - min(88%, 1480px)) / 2));
  gap: 12px;
}

/* 标题随剩余宽度调整，并可容纳照片说明。 */
.album-heading {
  flex: 1;
  min-width: 0;
}

/* 将长照片说明控制在两行之内。 */
#album-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: clamp(16px, 1.6vw, 24px);
}

/* 在标题下标注照片总数或当前浏览位置。 */
#album-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* 总览页仅显示与总览相关的操作。 */
#photo-album:not([data-view="detail"]) .album-steps {
  display: none;
}

/* 以等宽缩略图呈现全部照片，窄屏自动缩为两列。 */
#album-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(210px, 44%), 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: clamp(6px, 1vw, 16px);
  padding: clamp(14px, 2.5vw, 36px) max(16px, calc((100% - min(88%, 1480px)) / 2));
}

/* 用深色留边容纳竖幅缩略图。 */
.album-thumb {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0;
  aspect-ratio: 3 / 2;
  background: var(--panel);
  overflow: hidden;
  border-radius: 5px;
  cursor: zoom-in;
}

/* 由画框比例决定行高，缩略图在框内独立适配。 */
.album-thumb img {
  position: absolute;
  inset: 0;
}

/* 单张浏览时将整块剩余空间留给当前照片。 */
#album-detail {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.6vw, 42px);
  touch-action: pan-y pinch-zoom;
}

/* 全幅照片完整显示且不会被拉伸。 */
#album-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

/* 在手机图录上保留足够大的操作控件。 */
@media (max-width: 650px) {
  /* 扩大方向按钮的触控区域。 */
  .album-steps button { width: 35px; height: 35px; }
  /* 为窄屏标题保留可阅读的空间。 */
  .album-head { gap: 7px; padding-inline: 12px; }
}

/* 在小屏上为四个导航项和履历入口保留清晰的点击位置。 */
@media (max-width: 430px) {
  /* 收紧四个主导航项的间隔。 */
  .header-inner nav { gap: 12px; }
  /* 避免主导航和履历文字断行。 */
  .header-inner .nav-link, .header-inner .resume { white-space: nowrap; }
}

/* 最窄机型以品牌图标作为已有首页入口。 */
@media (max-width: 380px) {
  /* 使用现有图形标识保留品牌入口。 */
  .header-inner .brand > span { display: none; }
}

/* 让联系邀请和个人资料在同一条内容网格上左右对齐。 */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
  padding-block: clamp(54px, 7.2vw, 102px);
  border-top: 1px solid var(--line);
}

/* 以与其他分区标题接近的字号呈现两行联系邀请。 */
.contact-copy h2 {
  margin: 0 0 14px;
  color: #eff7f6;
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 570;
  line-height: 1.3;
  letter-spacing: -.045em;
}

/* 用次级色标明岗位与所在城市。 */
.contact-subtitle {
  color: #acbabc;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.6;
}

/* 让四行资料共用细分隔线和规则的留白。 */
.contact-details {
  display: grid;
  min-width: 0;
  margin: 0;
  font-style: normal;
}

/* 将同一行的图标和文字对齐，并保持邮件与电话的有效点击高度。 */
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 12px 0;
  border-bottom: 1px solid #92b5b728;
  color: #e0e9ea;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* 给联系方式图标和链接箭头使用相同的品牌紫色。 */
.contact-row .ic {
  width: 19px;
  height: 19px;
  color: var(--accent);
  stroke-width: 1.6;
}

/* 将邮箱与电话保持在适合小屏阅读的正文字号。 */
a.contact-row {
  font-size: clamp(16px, 1.35vw, 20px);
}

/* 将可操作提示与邮箱和电话号码分置两端。 */
.contact-row .contact-arrow {
  margin-inline-start: auto;
  width: 15px;
  height: 15px;
}

/* 使用颜色和下划线反馈可操作的邮件与电话。 */
a.contact-row:is(:hover, :focus-visible) > span {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .23em;
}

/* 让补充的求职信息与主要联系方式形成字号层次。 */
.contact-bio {
  border-bottom: 0;
  color: #a5b4b8;
  font-size: 13px;
}

/* 以完整的字段单位换行，窄屏仍可逐项阅读。 */
.contact-bio p {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 15px;
}

/* 在窄屏上将联系方式接到邀请语下方。 */
@media (max-width: 720px) {
  /* 将联系区设为单列以保证标题和邮件完整可读。 */
  .contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 27px;
    padding-block: 46px;
  }
}

/* 在手机上给主导航项单独一行，保证触控空间和完整名称。 */
@media (max-width: 530px) {
  /* 为两行固定导航预留锚点空间。 */
  html { scroll-padding-top: 95px; }
  /* 将品牌与履历置于首行，导航置于次行。 */
  .header-inner {
    height: auto;
    grid-template: "brand resume" 45px "links links" 40px / 1fr auto;
  }
  /* 在独立品牌行上恢复完整姓名。 */
  .header-inner .brand { grid-area: brand; }
  /* 显示最窄屏幕上原本收起的品牌文字。 */
  .header-inner .brand > span { display: inline; }
  /* 履历入口保留在首行右端。 */
  .header-inner .resume { grid-area: resume; }
  /* 将主导航均匀铺满第二行。 */
  .header-inner nav {
    grid-area: links;
    justify-content: space-between;
    gap: 0;
  }
  /* 加大导航项可点击高度并保持文字在一行。 */
  .header-inner .nav-link {
    display: inline-flex;
    align-items: center;
    height: 100%;
    font-size: 12px;
    white-space: nowrap;
  }

  /* 每行三个筛选项，让设计规范紧邻项目文档且无需横滑。 */
  .filter-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
}

/* 在摄影墙与履历之间以双列宽幅画面展示代码动效。 */
.vibe-works { border-top: 1px solid var(--line); padding-block: clamp(32px, 4vw, 64px); }
.vibe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 38px); margin-top: 22px; }
.vibe-card { min-width: 0; }
.vibe-link { display: block; border-radius: 9px; }
.vibe-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* 用实际运行画面作为封面，播放标志始终清晰可见。 */
.vibe-poster { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 9px; background: #10151c; box-shadow: inset 0 0 0 1px var(--line); }
.vibe-poster img, .vibe-poster canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.vibe-play { position: absolute; bottom: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #ffffff80; background: #111621c9; color: white; font-size: 13px; padding-left: 2px; }
.vibe-link:is(:hover, :focus-visible) .vibe-play { background: var(--accent); color: #171225; }
/* 将片名、片长和一句话介绍排成易于扫读的片目。 */
.vibe-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 13px; }
.vibe-caption h3 { font-size: clamp(18px, 1.63vw, 25px); line-height: 1.35; }
.vibe-duration { color: var(--muted); font: 12px/1.5 var(--mono); }
.vibe-card > p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.65; }
/* 展开原生详情即可阅读各段动作的实现思路。 */
.vibe-notes { margin-top: 12px; font-size: 13px; line-height: 1.75; }
.vibe-notes summary { width: fit-content; color: var(--accent); padding-block: 3px; cursor: pointer; }
.vibe-notes ol { margin: 9px 0 0; padding-left: 1.45em; color: var(--muted); }
.vibe-notes li + li { margin-top: 6px; }
.vibe-notes strong { color: #f2f0f5; margin-inline-end: .55em; }
/* 将实践方法与参考资料放在片卡展开区。 */
.vibe-notes p { margin: 9px 0 4px; max-width: 48ch; color: var(--muted); }
.vibe-notes a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
/* 保持短片原始画幅，在手机横屏时为标题与播放控制留出空间。 */
#film-screen { width: min(1120px, calc(100vw - 20px)); max-width: 100%; max-height: 96dvh; margin: auto; background: #0b1017; }
#film-screen .dialog-head { min-height: 0; padding: 10px clamp(12px, 2vw, 24px); }
#film-title { font-size: clamp(16px, 2vw, 24px); }
#film-screen video { display: block; width: 100%; max-height: calc(96dvh - 110px); aspect-ratio: 16/9; object-fit: contain; background: #030507; }
/* 在窄屏为原生播放键和进度条留一行，暂停或拖动时也能看清纸签字幕。 */
@media (max-width: 600px) and (orientation: portrait) {
  #film-screen video[src*="/miss-you-papercut.mp4"]:not(:fullscreen) {
    aspect-ratio: 16 / 11.5;
    object-position: center top;
  }
}

.film-credit { margin: 0; padding: 9px clamp(12px, 2vw, 24px); font-size: 12px; color: var(--muted); }
/* 中等屏宽为较长的英文导航项让出空间。 */
@media (min-width: 531px) and (max-width: 960px) {
  .header-inner nav { gap: clamp(9px, 2vw, 20px); }
  .header-inner .nav-link, .header-inner .resume { white-space: nowrap; }
}
/* 窄屏上顺序展示两件作品。 */
@media (max-width: 620px) {
  .vibe-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* 在生日工坊封面提供明确的编辑入口。 */
.vibe-edit-action { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 20px; background: #fff1dc; color: #37221c; font-size: 13px; font-weight: 650; }
.vibe-edit-action .ic { width: 15px; height: 15px; }
.vibe-link:is(:hover, :focus-visible) .vibe-edit-action { background: #fffaf2; }
/* 在卡片上也以宋体呈现星空作品的片名。 */
.life-card h3 { font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif; font-weight: 600; letter-spacing: .06em; }
