/* ----------------------------------------
   Base
   页面基础排版与全局链接
   ---------------------------------------- */
html {
  scroll-behavior: smooth;
  overflow-y: auto;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  font-family: "Lato", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15.5px;
  color: #2b2b2b;
  background-color: #fff;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overflow-x: hidden;
}

body.is-loaded {
  overflow: visible;
}

body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.scroll-indicator {
  position: fixed;
  top: 0;
  right: 10px;
  width: 5px;
  height: 0;
  border-radius: 999px;
  background: rgba(43, 43, 43, 0.26);
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.18s ease;
  pointer-events: none;
  z-index: 9998;
}

.scroll-indicator.is-visible {
  opacity: 1;
}

a {
  color: #111;
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.2);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease-in-out, text-decoration-color 0.2s ease-in-out;
}

a:hover {
  color: #8c1515;
  text-decoration-color: #8c1515;
}

p {
  margin-top: 0;
  margin-bottom: 15px;
}

strong {
  font-weight: 700;
  color: #000;
}

ul {
  padding-left: 20px;
  margin-top: 5px;
}

li {
  margin-bottom: 12px;
}

/* ----------------------------------------
   Preloader
   首屏加载动画
   ---------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

#preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px 10px;
  isolation: isolate;
  opacity: 0;
  animation: preloaderLogoFade 0.24s ease forwards;
}

.preloader-logo-shell::after {
  content: "";
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: 0;
  width: 18%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.98) 45%,
    rgba(255, 255, 255, 0.9) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translate3d(-240%, 0, 0) skewX(-24deg);
  transform-origin: center;
  opacity: 0.95;
  filter: blur(5px);
  mix-blend-mode: screen;
  animation: preloaderShimmer 1.15s ease-out infinite;
  animation-delay: 0.12s;
  pointer-events: none;
  z-index: 2;
}

.preloader-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(320px, 74vw);
  height: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: opacity;
}

.preloader-progress {
  width: min(180px, 42vw);
  height: 1px;
  background: rgba(17, 17, 17, 0.14);
  overflow: hidden;
}

.preloader-progress-fill {
  width: 0;
  height: 100%;
  background: #2b2b2b;
  transition: width 0.06s linear;
}

.page-shell {
  opacity: 0;
  transition: opacity 0.22s ease;
}

body.is-loaded .page-shell {
  opacity: 1;
}

/* ----------------------------------------
   Typography
   页面内自定义标签与文字组件
   ---------------------------------------- */
heading {
  font-family: "Lato", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 1.5px solid #000;
  padding-bottom: 6px;
  margin-bottom: 10px;
  display: inline-block;
}

name {
  font-family: "Lato", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(23px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: 1px;
  color: #000;
  display: block;
  white-space: nowrap;
  line-height: 1.2;
  margin-bottom: 2px;
}

.subtitle {
  font-size: 15px;
  color: #666;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

papertitle {
  font-family: "Lato", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  color: #111;
  display: inline-block;
  margin-bottom: 4px;
}

.text-muted {
  color: #666;
  font-size: 14.5px;
}

/* ----------------------------------------
   Navigation
   头部链接与文内链接样式
   ---------------------------------------- */
.nav-links a {
  text-decoration: none;
  color: #0066cc;
  font-size: 14.5px;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: #0066cc;
  text-decoration: underline;
  text-decoration-color: rgba(0, 102, 204, 0.72);
  text-decoration-thickness: 1.5px;
}

/* ----------------------------------------
   Intro
   首屏介绍区的布局与节奏
   ---------------------------------------- */
.intro-section {
  margin-top: 118px;
  margin-bottom: 56px;
}

.intro-shell {
  --intro-side-padding: 20px;
  --intro-copy-width: 560px;
  --intro-avatar-width: 210px;
  --intro-column-gap: 34px;
  --intro-text-gap: 12px;
  display: grid;
  grid-template-columns: minmax(0, var(--intro-copy-width)) var(--intro-avatar-width);
  grid-template-areas: "text avatar";
  column-gap: var(--intro-column-gap);
  justify-content: center;
  align-items: center;
  padding: 0 var(--intro-side-padding);
}

.intro-text-column {
  grid-area: text;
  display: flex;
  flex-direction: column;
  gap: var(--intro-text-gap);
  min-width: 0;
  width: 100%;
  justify-self: center;
}

.intro-copy-cell {
  min-width: 0;
  width: 100%;
}

.intro-name-row {
  width: 100%;
  text-align: center;
  margin: 12px 0 0;
}

.intro-bio {
  margin: 0;
  width: 100%;
  max-width: var(--intro-copy-width);
  text-align: justify;
}


.intro-links-contact {
  color: #666;
  text-align: center;
  margin-top: 8px;
}

.intro-links-separator {
  display: inline-block;
  margin: 0 10px;
  color: rgba(0, 0, 0, 0.24);
}

.intro-copy-link {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: #0066cc;
  font: inherit;
  font-size: 14.5px;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.intro-copy-link:hover {
  text-decoration: underline;
  text-decoration-color: rgba(0, 102, 204, 0.72);
}

.intro-copy-link::after {
  content: "已复制";
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 10;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.82);
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -4px, 0);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.intro-copy-link.is-copied::after {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

.intro-mobile-label {
  display: none;
}

body.resume-viewer-open {
  overflow: hidden;
}

.resume-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
  opacity: 0;
  overscroll-behavior: contain;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.resume-viewer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.resume-viewer-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(920px, 100%);
  height: min(82vh, 760px);
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.18), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  overscroll-behavior: contain;
  transform: translate3d(0, 10px, 0) scale(0.985);
  transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1);
}

.resume-viewer-overlay.is-open .resume-viewer-dialog {
  transform: translate3d(0, 0, 0) scale(1);
}

.jump-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.jump-confirm-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.jump-confirm-dialog {
  width: min(360px, 100%);
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transform: translate3d(0, 8px, 0) scale(0.985);
  transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1);
}

.jump-confirm-overlay.is-open .jump-confirm-dialog {
  transform: translate3d(0, 0, 0) scale(1);
}

.jump-confirm-eyebrow {
  margin: 0 0 8px;
  color: #1772d0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.jump-confirm-title {
  margin: 0;
  color: #111;
  font-size: 20px;
  line-height: 1.28;
  text-wrap: balance;
}

.jump-confirm-desc {
  margin: 10px 0 0;
  color: #666;
  font-size: 13px;
  line-height: 1.7;
  text-wrap: pretty;
}

.jump-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.jump-confirm-button {
  min-width: 78px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.jump-confirm-button:active {
  transform: scale(0.96);
}

.jump-confirm-cancel {
  background: #f2f2f2;
  color: #555;
}

.jump-confirm-cancel:hover {
  background: #e8e8e8;
  color: #111;
}

.jump-confirm-submit {
  background: #1772d0;
  color: #fff;
}

.jump-confirm-submit:hover {
  background: #0f66bd;
}

.resume-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 14px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.resume-viewer-eyebrow {
  margin-bottom: 2px;
  color: #1772d0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resume-viewer-title {
  margin: 0;
  color: #111;
  font-size: 18px;
  line-height: 1.25;
}

.resume-viewer-title span {
  color: #1772d0;
}

.resource-viewer-overlay .resume-viewer-dialog {
  width: min(1180px, 96vw);
  height: min(88vh, 860px);
}

.resource-viewer-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.resource-viewer-overlay .resume-viewer-title {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 16px;
}

.resource-viewer-tabs {
  display: none;
  flex: 1;
  flex-wrap: nowrap;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.resource-viewer-tabs::-webkit-scrollbar {
  display: none;
}

.resource-viewer-tabs.has-tabs {
  display: flex;
}

.resource-viewer-tab {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(23, 114, 208, 0.16);
  border-radius: 9px;
  background: #fff;
  color: #243044;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.resource-viewer-tab:hover {
  color: #1772d0;
  border-color: rgba(23, 114, 208, 0.32);
}

.resource-viewer-tab.is-active {
  background: #1772d0;
  border-color: #1772d0;
  color: #fff;
}

.resource-viewer-tab:active {
  transform: scale(0.96);
}

.resume-viewer-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #f2f2f2;
  color: #555;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.resume-viewer-close:hover {
  background: #e9f2fc;
  color: #1772d0;
}

.resume-viewer-close:active {
  transform: scale(0.96);
}

.resume-viewer-loading {
  position: absolute;
  inset: 65px 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.resume-viewer-overlay.is-loading .resume-viewer-loading {
  opacity: 1;
  pointer-events: auto;
}

.resume-viewer-logo-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px 8px;
  isolation: isolate;
}

.resume-viewer-logo-shell::after {
  content: "";
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: 0;
  width: 18%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.98) 45%,
    rgba(255, 255, 255, 0.9) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translate3d(-240%, 0, 0) skewX(-24deg);
  opacity: 0.95;
  filter: blur(5px);
  mix-blend-mode: screen;
  animation: preloaderShimmer 1.15s ease-out infinite;
  pointer-events: none;
  z-index: 2;
}

.resume-viewer-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(220px, 56vw);
  height: auto;
}

.resume-viewer-loading-line {
  width: min(148px, 36vw);
  height: 1px;
  overflow: hidden;
  background: rgba(17, 17, 17, 0.14);
}

.resume-viewer-loading-line span {
  display: block;
  width: 42%;
  height: 100%;
  background: #2b2b2b;
  animation: resumeViewerLine 1.05s cubic-bezier(0.2, 0, 0, 1) infinite;
}

.resume-viewer-loading-text {
  color: #666;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.resume-viewer-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  opacity: 1;
  overscroll-behavior: contain;
  transition: opacity 0.18s ease;
}

.resume-viewer-overlay.is-loading .resume-viewer-frame {
  opacity: 0;
}

.portfolio-viewer-overlay .resume-viewer-dialog {
  width: min(1120px, calc(100vw - 48px));
  height: min(86vh, calc(100vh - 48px));
}

.portfolio-viewer-body {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
}

.portfolio-viewer-video-stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 14px;
  background: #111;
  box-sizing: border-box;
}

.portfolio-viewer-video-shell {
  display: block;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: var(--portfolio-video-ratio, 16 / 9);
  overflow: hidden;
  border-radius: 0;
  background: #000;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
  box-sizing: border-box;
}

.portfolio-viewer-video,
.portfolio-viewer-video-shell .plyr {
  display: block;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  border-radius: 0 !important;
  background: #000;
  box-sizing: border-box;
}

.portfolio-viewer-video-shell .plyr__video-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  padding-bottom: 0 !important;
  aspect-ratio: var(--portfolio-video-ratio, 16 / 9) !important;
  background: #000;
}

.portfolio-viewer-video-shell .plyr__video-wrapper::after {
  display: none !important;
  padding-bottom: 0 !important;
}

.portfolio-viewer-video-shell .plyr__poster {
  background-size: contain;
}

.portfolio-viewer-video-shell video,
.portfolio-viewer-video-shell .plyr video {
  position: absolute !important;
  inset: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  transform: none !important;
}

.portfolio-viewer-image-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  padding: 18px;
  overflow: hidden;
  background: #f7f7f7;
  box-sizing: border-box;
}

.portfolio-viewer-image {
  display: block;
  max-width: 100%;
  max-height: calc(100% - 48px);
  border-radius: 12px;
  object-fit: contain;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

.portfolio-viewer-original {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: #1772d0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.portfolio-viewer-original:hover {
  background: #0f66bd;
  text-decoration: none;
}

.portfolio-viewer-original:active {
  transform: scale(0.96);
}

.portfolio-viewer-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.portfolio-viewer-notice {
  display: grid;
  gap: 10px;
  width: min(520px, 100%);
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  color: #333;
  text-align: left;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.portfolio-viewer-notice strong {
  color: #111;
  font-size: 16px;
  line-height: 1.5;
  text-wrap: balance;
}

.portfolio-viewer-notice p {
  margin: 0;
  color: #666;
  font-size: 13px;
  line-height: 1.7;
}

.portfolio-viewer-notice code {
  display: block;
  padding: 9px 11px;
  overflow: auto;
  border-radius: 9px;
  background: #f3f5f7;
  color: #111;
  font-size: 12px;
}

@keyframes resumeViewerLine {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(260%);
  }
}

.intro-media-cell {
  grid-area: avatar;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.intro-avatar-placeholder {
  width: var(--intro-avatar-width);
  max-width: var(--intro-avatar-width);
  margin-top: 0;
  margin-left: auto;
  margin-right: 0;
}

.intro-avatar-frame {
  position: relative;
  width: var(--intro-avatar-width);
  max-width: 100%;
  aspect-ratio: 500 / 698;
  margin-top: 0;
  margin-left: auto;
  margin-right: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #d9d9d9;
  background: linear-gradient(180deg, #fafafa 0%, #f1f1f1 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.intro-avatar-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------------------------------------
   Utility Blocks
   占位图与表格布局
   ---------------------------------------- */
.placeholder-square {
  width: 100%;
  max-width: 190px;
  aspect-ratio: 1 / 1;
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #888;
  font-size: 13px;
  margin: 0 auto;
  letter-spacing: 1px;
}

.placeholder-box {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 16 / 9;
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #888;
  font-size: 12px;
  margin: 0 auto;
  letter-spacing: 1px;
}

.section-table {
  width: 100%;
  border: 0;
  border-spacing: 0;
  border-collapse: separate;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 20px;
}

.research-heading-section {
  margin-top: 64px;
}

.resume-list {
  list-style-type: square;
  color: #444;
  margin: 0;
  padding-left: 20px;
}

.resume-list.compact {
  list-style: none;
  padding-left: 0;
}

.resume-list.compact li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.resume-list.compact li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-top: 0.78em;
  border-radius: 999px;
  background: rgba(23, 114, 208, 0.72);
}

.resume-list.compact li .text-muted {
  display: block;
  line-height: 1.75;
  text-wrap: pretty;
}

.resume-list.compact li.conceal-toggle-list-item {
  display: block;
}

.resume-list.compact li.conceal-toggle-list-item::before {
  display: none;
}

.resume-list.compact.honor-list li {
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 9px;
  align-items: start;
  margin-bottom: 10px;
}

.resume-list.compact.honor-list li::before {
  display: none;
}

.resume-list.compact.honor-list li.conceal-toggle-list-item {
  display: block;
}

.honor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 1.75em;
  font-size: 16px;
  line-height: 1;
  transform: translateY(1px);
}

.resume-list.compact.honor-list li .text-muted {
  display: block;
  line-height: 1.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resume-rail-list {
  margin: 0;
}

.resume-rail-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 18px;
  align-items: first baseline;
  grid-template-rows: auto;
}

.resume-rail-entry + .resume-rail-entry {
  margin-top: 22px;
}

.resume-rail-entry::before {
  content: "";
  position: absolute;
  right: 66px;
  top: 0.45em;
  bottom: 0.35em;
  width: 1px;
  background: linear-gradient(180deg, rgba(23, 114, 208, 0.32), rgba(23, 114, 208, 0.08));
}

.resume-rail-entry-dashed::before {
  display: none;
}

.resume-rail-date {
  position: relative;
  padding-left: 16px;
  color: #1772d0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: #fff;
  z-index: 1;
  text-align: left;
  margin-top: 0;
  padding-top: 0;
}

.resume-rail-body {
  min-width: 0;
}

.resume-rail-entry-brief .resume-rail-body {
  display: flex;
  align-items: center;
  min-width: 0;
}

.resume-rail-entry-brief .resume-entry-heading {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 0;
}

.resume-rail-entry-brief .resume-entry-heading::after {
  content: "";
  flex: 1;
  min-width: 18px;
  margin: 0 -14px 0 12px;
  border-bottom: 1px dashed rgba(23, 114, 208, 0.35);
  transform: translateY(1px);
}

.resume-rail-entry-dashed .resume-entry-heading {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 4px;
}

.resume-rail-entry-dashed .resume-entry-heading::after {
  content: "";
  flex: 1;
  min-width: 18px;
  margin: 0 -14px 0 12px;
  border-bottom: 1px dashed rgba(23, 114, 208, 0.35);
  transform: translateY(1px);
}

.resume-entry-heading {
  display: block;
  margin-bottom: 4px;
  line-height: 1.35;
  padding-top: 0;
  margin-top: 0;
  height: auto;
}

.resume-entry-heading strong {
  display: block;
  min-width: 0;
  line-height: 1.35;
  padding-top: 0;
  margin-top: 0;
}

.resume-resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 8px;
}

.resume-resource-link {
  display: inline-flex;
  align-items: stretch;
  min-height: 24px;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
  color: #243044;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    inset 0 0 0 1px rgba(23, 114, 208, 0.16),
    0 1px 2px rgba(23, 114, 208, 0.05);
  transition: color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.resume-resource-link:hover {
  background: #f7fbff;
  color: #1772d0;
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px rgba(23, 114, 208, 0.3),
    0 2px 6px rgba(23, 114, 208, 0.08);
}

.resume-resource-link:active {
  transform: scale(0.96);
}

.resume-resource-link > span:not(.resume-resource-type) {
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
}

.resume-resource-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 0 7px;
  background: #1772d0;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.resume-title-separator {
  color: inherit;
}

.resume-entry-desc {
  margin-top: 10px;
}

.resume-entry-desc p {
  margin: 0;
}

.resume-entry-desc p + p {
  margin-top: 4px;
}

.campus-competition-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.campus-competition-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 44%);
  gap: 12px;
  align-items: baseline;
  min-height: 28px;
  padding: 7px 10px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  box-shadow: inset 0 0 0 1px rgba(23, 114, 208, 0.09);
  box-sizing: border-box;
}

.campus-competition-name {
  min-width: 0;
  overflow: hidden;
  color: #222;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campus-competition-meta {
  min-width: 0;
  overflow: hidden;
  color: #666;
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.resume-list-plain-item {
  margin-top: 22px;
}

.resume-list-plain-item .resume-entry-desc {
  max-width: 100%;
}

.resume-entry-time {
  font-size: 14px;
}

.social-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.social-card {
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  padding: 22px 20px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
}

.social-card-platform {
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.04em;
}

.social-card-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 14px;
  margin-bottom: 16px;
}

.social-card-metric {
  min-width: 0;
}

.social-card-metric-highlight {
  padding-left: 14px;
  border-left: 1px solid #f0f0f0;
  text-align: right;
}

.social-card-label {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #8a8a8a;
  letter-spacing: 0.03em;
}

.social-card-value {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #111;
  font-variant-numeric: tabular-nums;
}

.social-card-metric:first-child .social-card-value {
  font-size: 21px;
}

.social-card-metric-highlight .social-card-value {
  color: #1772d0;
}

.social-card-position {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid #f5f5f5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  color: #6f6f6f;
}

.section-subtitle {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.6px;
}

.skill-group + .skill-group {
  margin-top: 16px;
}

.skill-group-title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.skill-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  background: #fafafa;
  color: #444;
  font-size: 12.5px;
  line-height: 1.2;
}

.footnote-ref {
  display: inline-block;
  min-width: 0.8em;
  margin-left: 4px;
  font-size: 0.45em;
  font-weight: 700;
  line-height: 1;
  vertical-align: super;
  color: #6e6e73;
}

.footnote-content {
  display: none;
}

/* ----------------------------------------
   Notes
   独立注释区：位于正文和 footer 之间
   ---------------------------------------- */
.notes-block {
  color: #6e6e73;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

.notes-rule {
  border: 0;
  border-top: 1px solid #d2d2d7;
  margin: 0 0 22px;
}

.notes-logo {
  display: block;
  width: 228px;
  height: auto;
  margin: 0 0 18px;
  opacity: 0.9;
}

.notes-list {
  margin: 0;
  padding-left: 1.6em;
  color: #6e6e73;
}

.notes-item {
  margin-bottom: 8px;
  padding-left: 0.15em;
}

/* ----------------------------------------
   Footer
   苹果风格页脚模块
   ---------------------------------------- */
.site-footer-apple {
  margin-top: 18px;
  color: #6e6e73;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.site-footer-apple a {
  color: #0066cc;
  text-decoration: none;
}

.site-footer-apple a:hover {
  text-decoration: underline;
}

.site-footer-note {
  margin: 0 0 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  color: inherit;
}

.site-footer-note a {
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
}

.site-footer-record {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.site-footer-intro-text {
  margin: 0 0 14px;
  color: #6e6e73;
  max-width: 560px;
}

.site-footer-rule {
  border: 0;
  border-top: 1px solid #d2d2d7;
  margin: 16px 0 12px;
}

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  min-width: 0;
}

.site-footer-copyright {
  white-space: normal;
}

.site-footer-locale {
  white-space: nowrap;
  color: #515154;
  display: flex;
  align-items: center;
  gap: 0;
}

.site-footer-locale a {
  color: #515154;
  text-decoration: none;
}

.site-footer-locale a:hover {
  text-decoration: underline;
}

.site-footer-locale span {
  color: #d2d2d7;
  padding: 0 8px;
}

.site-footer-locale a.is-active {
  color: #0071e3;
  font-weight: 600;
}

/* ----------------------------------------
   Conceal
   内容折叠与展开
   ---------------------------------------- */
.conceal-hidden {
  display: none !important;
}

@keyframes concealFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.conceal-animate-in {
  animation: concealFadeIn 0.3s ease forwards;
}

.conceal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 8px 16px;
  border: 1px solid #d6d6d6;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.conceal-toggle:hover {
  border-color: #1772d0;
  color: #1772d0;
  background: #f0f7ff;
}

.conceal-toggle:active {
  transform: scale(0.97);
}

.conceal-toggle-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.conceal-toggle-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.conceal-toggle.expanded .conceal-toggle-icon {
  transform: rotate(180deg);
}

.conceal-count {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 400;
}

/* ----------------------------------------
   Motion
   关键帧与无障碍降级
   ---------------------------------------- */
@keyframes preloaderLogoFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes preloaderShimmer {
  0% {
    transform: translate3d(-240%, 0, 0) skewX(-24deg);
  }

  100% {
    transform: translate3d(620%, 0, 0) skewX(-24deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-logo-shell,
  .preloader-logo-shell::after,
  .preloader-progress-fill,
  .page-shell,
  #preloader {
    animation: none;
    transition: none;
  }
}

@media screen and (max-width: 768px) {
  name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: clamp(22px, 6vw, 27px);
    white-space: nowrap;
  }

  .name-en {
    order: 1;
    max-width: 100%;
    font-size: inherit;
    line-height: 1.2;
    transform-origin: center;
  }

  .name-cn {
    order: 2;
    font-size: inherit;
    line-height: 1.2;
  }

  .name-gap {
    display: none;
  }

  heading {
    font-size: 17px;
    letter-spacing: 1.2px;
  }

  .page-shell > table {
    margin-top: 20px !important;
    margin-bottom: 24px !important;
  }

  .section-table {
    margin-bottom: 12px;
  }

  .research-heading-section {
    margin-top: 64px;
  }

  .resume-entry-heading,
  .resume-rail-entry-dashed .resume-entry-heading,
  .resume-rail-entry-brief .resume-entry-heading {
    display: block;
  }

  /* 项目条目标题在移动端保持 flex 布局，确保标题和证书标签在同一行 */
  .project-entry-link .resume-entry-heading {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    padding-right: 0;
  }

  .project-entry-link .project-entry-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-entry-link .project-entry-cert {
    flex: 0 0 auto;
    font-size: 10px;
    padding: 0 5px;
    min-height: 18px;
  }

  .project-entry-link .project-entry-cert svg {
    width: 11px;
    height: 11px;
  }

  .project-entry-link .project-entry-badge {
    height: 16px;
    width: auto;
    max-width: 74px;
    flex: 0 0 auto;
  }

  .resume-rail-entry-dashed .resume-entry-heading::after,
  .resume-rail-entry-brief .resume-entry-heading::after {
    display: none;
  }

  .resume-rail-entry {
    display: block;
    width: 100%;
    max-width: 100%;
    padding-top: 0;
    box-sizing: border-box;
  }

  .resume-rail-entry::before {
    display: none;
  }

  .resume-rail-date {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 0;
    max-width: 96px;
    margin-top: 0;
    padding-left: 0;
    overflow: visible;
    background: transparent;
    text-align: right;
    transform: translateY(0.675em);
  }

  .resume-entry-heading {
    padding-right: 96px;
  }

  .campus-competition-item {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px 10px;
  }

  .campus-competition-name,
  .campus-competition-meta {
    white-space: nowrap;
  }

  .campus-competition-meta {
    text-align: left;
  }

  .resume-resource-links {
    gap: 7px;
    margin-top: 10px;
  }

  .resume-resource-link {
    min-height: 26px;
    max-width: 100%;
  }

  .social-card-grid {
    grid-template-columns: 1fr;
  }

  .social-card {
    padding: 18px 16px 16px;
    border-radius: 16px;
  }

  .section-table > tbody > tr {
    display: block;
  }

  .section-table > tbody > tr > td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .intro-section {
    margin-top: 74px;
    margin-bottom: 40px;
  }

  .intro-shell {
    --intro-side-padding: 0px;
    --intro-copy-width: 100%;
    --intro-avatar-width: 210px;
    --intro-column-gap: 0px;
    --intro-text-gap: 16px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "avatar";
    row-gap: 24px;
  }

  .intro-name-row {
    text-align: center;
    margin-top: 0;
  }

  .intro-bio {
    text-align: justify;
  }

  .intro-links-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .intro-links-separator {
    margin: 0;
  }

  .intro-copy-link {
    min-width: 40px;
    font-size: 15px;
  }

  .intro-copy-prefix,
  .intro-copy-value {
    display: none;
  }

  .intro-copy-link::after {
    top: calc(100% + 7px);
  }

  .intro-mobile-label {
    display: inline;
  }

  .placeholder-box {
    max-width: min(100%, 240px);
  }

  .intro-avatar-placeholder {
    margin: 0 auto;
  }

  .intro-avatar-frame {
    margin: 0 auto;
  }

  .notes-logo {
    width: min(180px, 58vw);
  }

  .notes-list {
    padding-left: 1.3em;
  }

  .site-footer-intro-text {
    max-width: none;
  }

  .site-footer-bottom {
    align-items: flex-start;
  }

  .site-footer-bottom-left {
    gap: 10px;
  }

  .site-footer-locale {
    white-space: normal;
    flex-wrap: wrap;
  }

  .site-footer-record,
  .site-footer-copyright {
    word-break: break-word;
  }

  /* 手机端隐藏标题中的｜和后面的内容 */
  .resume-title-separator,
  .resume-title-separator ~ * {
    display: none;
  }
}

/* 作品一览样式 */
.portfolio-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
}

.portfolio-category {
  padding: 0;
  box-sizing: border-box;
  min-width: 0;
}

.portfolio-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.portfolio-category-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.04em;
}

.portfolio-tabs {
  display: flex;
  gap: 6px;
}

.portfolio-tab {
  width: 24px;
  height: 24px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fff;
  color: #666;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-tab:hover {
  border-color: #1772d0;
  color: #1772d0;
}

.portfolio-tab.active {
  background: #1772d0;
  border-color: #1772d0;
  color: #fff;
}

.portfolio-card-content {
  display: grid;
  gap: 12px;
  min-height: 120px;
  position: relative;
}

.portfolio-item {
  display: block;
}

.portfolio-item + .portfolio-item {
  padding-top: 12px;
  border-top: 1px dashed #e6e6e6;
}

.portfolio-placeholder {
  padding: 16px;
  border: 2px dashed #e6e6e6;
  border-radius: 8px;
  text-align: center;
  color: #8a8a8a;
  font-size: 12px;
  line-height: 1.6;
  width: 100%;
  box-sizing: border-box;
}

.portfolio-placeholder-text {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  color: #666;
}

.portfolio-work-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 0 0 14px;
  border-left: 1px solid #e6e6e6;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

.portfolio-work-card:hover {
  text-decoration: none;
}

.portfolio-random-item:not(.is-random-active) {
  display: none;
}

.portfolio-work-type {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-right: 0;
  padding: 0 6px;
  border: 1px solid rgba(23, 114, 208, 0.14);
  border-radius: 4px;
  background: rgba(23, 114, 208, 0.06);
  color: #1772d0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.portfolio-work-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
}

.portfolio-work-title {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  text-overflow: ellipsis;
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.portfolio-work-tags {
  display: block;
  margin-top: auto;
  padding-top: 8px;
  color: #666;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .resume-viewer-overlay {
    padding: 24px 14px 14px;
    align-items: center;
  }

  .resume-viewer-dialog {
    width: 100%;
    height: min(84vh, 680px);
    border-radius: 20px;
  }

  .resource-viewer-overlay .resume-viewer-dialog {
    width: calc(100% - 28px);
    height: min(84vh, 680px);
  }

  .resume-viewer-header {
    padding: 13px 14px 12px 16px;
  }

  .resume-viewer-title {
    font-size: 16px;
  }

  .resource-viewer-heading {
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  .resource-viewer-overlay .resume-viewer-title {
    max-width: 10em;
    flex: 0 0 auto;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .resource-viewer-overlay .resume-viewer-title span {
    display: none;
  }

  .resource-viewer-tabs {
    gap: 6px;
    flex: 1;
    min-width: 0;
  }

  .resource-viewer-tabs.has-tabs {
    display: flex;
  }

  .resource-viewer-tab {
    min-height: 28px;
    padding: 0 9px;
    font-size: 11px;
  }

  .resume-viewer-close {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
  }

  .portfolio-section {
    grid-template-columns: 1fr;
  }

  .portfolio-work-title {
    -webkit-line-clamp: 1;
  }
}
