:root {
  --ink: #343b40;
  --muted: #707980;
  --line: #e9ebed;
  --blue: #224b8d;
  --blue-dark: #183968;
  --paper: #ffffff;
  --wash: #f7f8f9;
  --max-width: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Trebuchet MS", "PingFang SC", "Microsoft YaHei", Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.56;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--max-width));
  min-height: 48px;
  margin: 0 auto;
}
.masthead a { color: var(--ink); text-decoration: none; }
.home-link { font-size: 0.94rem; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 0.88rem; }
.nav-links a { border-bottom: 2px solid transparent; }
.nav-links a:hover { border-color: var(--blue); }

.site-main {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 36px;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 30px auto 48px;
}
.profile { position: sticky; top: 76px; align-self: start; text-align: center; }
.profile-avatar {
  width: 164px;
  height: 195px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--wash);
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
}
.profile h2 { margin: 12px 0 3px; font-size: 1.28rem; line-height: 1.3; }
.profile-bio { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.profile-location { margin: 5px 0; color: var(--muted); font-size: 0.82rem; }
.profile-links { display: flex; justify-content: center; gap: 13px; margin-top: 9px; }
.profile-links a { width: 21px; height: 21px; color: #40474d; }
.profile-links svg { width: 100%; height: 100%; fill: currentColor; }

.page-content { min-width: 0; }
.page-content > h1 {
  margin: 30px 0 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  color: #20242a;
  font-size: 1.46rem;
  line-height: 1.28;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 0.42em;
}
.section-icon {
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  color: var(--blue);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.page-content > .anchor:first-child + h1 { margin-top: 0; }
.anchor { display: block; position: relative; top: -78px; visibility: hidden; }
.page-content p { margin: 0 0 10px; }
.page-content li { margin: 4px 0; }
.org-logo { width: 4.4em; margin: 0 0.2em; vertical-align: -0.22em; }
.org-logo-link { display: inline-block; text-decoration: none; }
.org-logo-samsung { width: 8.3em; vertical-align: -0.16em; }
.org-logo-agibot { width: 6.4em; vertical-align: -0.42em; }

.cv-entry {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cv-entry:first-of-type { padding-top: 4px; }
.cv-entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.cv-entry-header h2 {
  margin: 0 0 2px;
  color: #20242a;
  font-size: 1.04rem;
  line-height: 1.35;
}
.cv-entry-header h2 a { text-decoration: none; }
.cv-entry-header h2 span {
  margin-left: 6px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
}
.cv-entry-header p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.cv-entry-header time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 9px;
}
.metric-row span {
  padding: 3px 8px;
  border: 1px solid #d5dee7;
  border-radius: 3px;
  background: #f8fafb;
  font-size: 0.78rem;
}
.cv-detail { margin: 9px 0 0 !important; color: #4a525b; }
.cv-points { margin: 7px 0 0; padding-left: 1.25em; }
.cv-points li { margin: 3px 0; }
.honor-list { margin: 0; padding: 0; list-style: none; }
.honor-list li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.honor-list time { color: var(--blue); font-size: 0.82rem; font-weight: 800; }

.personal-note {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  margin: 13px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  text-align: left;
}
.personal-note blockquote {
  margin: 0;
  padding: 2px 0 2px 10px;
  border-left: 2px solid #c7d2dc;
  color: #3f464c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.52;
  letter-spacing: 0;
}
.personal-note blockquote span {
  display: block;
}
.personal-note blockquote .quote-turn {
  margin-top: 6px;
}
.music-player iframe {
  display: block;
  width: 100%;
  max-width: 330px;
  height: 86px;
  border: 0;
}

.paper-card {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  gap: 21px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.paper-visual {
  position: relative;
  min-height: 110px;
}
.paper-visual img {
  display: block;
  width: 100%;
  height: 110px;
  border: 1px solid #d8dce0;
  object-fit: cover;
  object-position: top;
  box-shadow: 3px 3px 7px rgba(27, 39, 51, 0.2);
}
.paper-visual span {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: -8px;
  padding: 3px 9px;
  color: white;
  background: var(--blue-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.paper-body h3 { margin: 3px 0 4px; font-size: 1.02rem; line-height: 1.32; }
.paper-body h3 a { text-decoration: none; }
.paper-meta { color: var(--blue); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.paper-authors { color: var(--muted); font-size: 0.86rem; }
.paper-body p { margin-bottom: 5px; }
.paper-links { display: flex; gap: 7px; margin-top: 8px; }
.paper-links a {
  padding: 1px 7px;
  border: 1px solid #b9c9d8;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.blog-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.blog-item time { color: var(--muted); font-size: 0.86rem; }
.blog-item h2 { margin: -3px 0 4px; font-size: 1.02rem; }
.blog-item h2 a { text-decoration: none; }
.blog-item p { margin: 0 0 5px; color: #555d66; }
.blog-category { color: var(--blue); font-size: 0.74rem; }
.back-home {
  display: inline-flex;
  align-items: center;
  margin-bottom: 11px;
  padding: 4px 8px;
  border: 1px solid #b9c9d8;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .nav-links { gap: 13px; overflow-x: auto; white-space: nowrap; }
  .site-main { grid-template-columns: 1fr; gap: 22px; margin-top: 22px; }
  .profile { position: static; }
  .profile-avatar { width: 132px; height: 157px; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .masthead-inner { align-items: flex-start; flex-direction: column; padding: 8px 0; }
  .nav-links { width: 100%; padding-top: 5px; }
  .paper-card { grid-template-columns: 1fr; gap: 16px; }
  .paper-visual { min-height: 138px; }
  .paper-visual img { height: 138px; }
  .cv-entry-header { flex-direction: column; gap: 4px; }
  .cv-entry-header time { order: -1; }
  .honor-list li { grid-template-columns: 1fr; gap: 2px; }
  .profile .personal-note { width: min(100%, 330px); margin: 13px auto 0; }
  .blog-item { grid-template-columns: 1fr; gap: 5px; }
}