@font-face {
  font-family: "Liberation Serif Local";
  src: url("./LiberationSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Liberation Serif Local";
  src: url("./LiberationSerif-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #224b8d;
  --blue-light: #527bbd;
  --ink: #202020;
  --muted: #5d6772;
  --line: #d5d5d5;
  --page: #ffffff;
  --canvas: #eeeeee;
  --notice: #fffbea;
  --max-width: 980px;
}

* { box-sizing: border-box; }

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  max-width: var(--max-width);
  min-height: 100vh;
  margin: 0 auto;
  color: var(--ink);
  background: var(--page);
  font-family: "Liberation Serif Local", Georgia, "Songti SC", "SimSun", serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: none;
}

body.lang-zh [data-lang="en"],
body.lang-en [data-lang="zh"] {
  display: none !important;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-light);
  text-decoration: underline;
}

img { max-width: 100%; }

.container {
  width: 100%;
  margin: 0 auto;
  padding-right: 34px;
  padding-left: 34px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 6px 10px;
  color: white;
  background: var(--blue);
}

.site-header {
  background: #f7f7f7;
  border-bottom: 1px solid #cccccc;
}

.nav-shell {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  flex: 0 0 auto;
  color: #111111;
  font-size: 19px;
  font-weight: 700;
}

.brand:hover {
  color: var(--blue);
  text-decoration: none;
}

.brand-mark { display: none; }

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.site-nav a {
  padding: 4px 7px;
  color: #333333;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a + a::before {
  margin-right: 7px;
  color: #aaaaaa;
  content: "|";
  font-weight: 400;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
  text-decoration: none;
}

.nav-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

.language-switch::after {
  position: absolute;
  content: "";
}

.language-switch button {
  padding: 3px 7px;
  color: #666666;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.language-switch button + button {
  border-left: 1px solid #bbbbbb;
}

.language-switch button.is-active {
  color: var(--blue);
  font-weight: 700;
}

.menu-toggle { display: none; }

main { display: block; }

.hero {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--line);
}

.hero::before { display: none; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: start;
  gap: 32px;
}

.eyebrow,
.mini-label {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 9px;
  color: #111111;
  font-size: 31px;
  line-height: 1.2;
}

.hero h1 .cn-name {
  display: inline;
  margin-left: 8px;
  color: #333333;
  font-size: 0.75em;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-role {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.hero-affiliation {
  margin: 2px 0 15px;
}

.hero-summary,
.hero-summary p {
  margin: 0 0 12px;
  color: #333333;
}

.hero-actions,
.social-links,
.link-row,
.paper-links,
.footer-links,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-actions { margin-top: 12px; }

.button {
  display: inline-block;
  padding: 3px 8px;
  color: var(--blue);
  background: #f7f7f7;
  border: 1px solid #cccccc;
  border-radius: 0;
  font-size: 13px;
  font-weight: 400;
}

.button:hover {
  color: #ffffff;
  background: var(--blue);
  text-decoration: none;
}

.button-primary,
.button-ghost {
  color: var(--blue);
  background: #f7f7f7;
  box-shadow: none;
}

.portrait-wrap {
  position: relative;
  width: 180px;
  justify-self: end;
}

.portrait-wrap::before,
.portrait-note { display: none; }

.portrait {
  width: 180px;
  height: 235px;
  display: block;
  object-fit: cover;
  object-position: 50% 20%;
  border: 1px solid #bbbbbb;
  border-radius: 0;
  box-shadow: none;
}

.section,
.section-compact,
.page-main {
  padding: 25px 0;
}

.section + .section,
.content-section + .content-section {
  border-top: 1px solid var(--line);
}

.section-white,
.section-dark {
  color: var(--ink);
  background: white;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.section-heading h2,
.content-section h2,
.section-dark .section-heading h2 {
  margin: 0;
  padding-bottom: 5px;
  color: var(--blue-light);
  border-bottom: 1px solid #aaaaaa;
  font-size: 20px;
  line-height: 1.25;
}

.section-heading > div {
  flex: 1;
}

.section-lead {
  margin: 7px 0 0;
  color: #444444;
}

.text-link {
  font-size: 13px;
  white-space: nowrap;
}

.text-link::after { content: " →"; }

.card-grid {
  display: block;
}

.card {
  padding: 10px 0;
  background: white;
  border: 0;
  border-bottom: 1px dotted #cccccc;
  border-radius: 0;
  box-shadow: none;
}

.card:last-child { border-bottom: 0; }

.card-number {
  display: inline-block;
  width: 28px;
  color: #888888;
  font-size: 12px;
}

.card h3 {
  display: inline;
  margin: 0;
  color: var(--blue);
  font-size: 16px;
}

.card p {
  margin: 3px 0 0 32px;
  color: #444444;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 25px;
}

.timeline,
.topic-list,
.check-list,
.student-list,
.achievement-list {
  margin: 0;
  padding-left: 20px;
}

.timeline li {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr);
  gap: 8px;
  padding: 4px 0;
}

.timeline time {
  color: #666666;
  font-size: 13px;
  font-weight: 700;
}

.timeline p { margin: 0; }

.opening-card,
.recruit-hero-card {
  padding: 13px 15px;
  color: var(--ink);
  background: var(--notice);
  border: 1px solid #ddd5a7;
  border-left: 4px solid #c0a74b;
  border-radius: 0;
  box-shadow: none;
}

.opening-card h3,
.recruit-hero-card h2 {
  margin: 3px 0;
  color: #333333;
  font-size: 16px;
}

.opening-card p,
.recruit-hero-card p {
  margin: 6px 0 10px;
  color: #444444;
  font-size: 14px;
}

.opening-card .mini-label { color: #777056; }

.paper-list,
.publication-list {
  display: block;
}

.paper-card,
.section-white .paper-card,
.publication-list .paper-card {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  background: white;
  border: 0;
  border-bottom: 1px solid #dddddd;
  border-radius: 0;
}

.publication-list .paper-card {
  grid-template-columns: 55px minmax(0, 1fr) 210px;
  align-items: start;
  gap: 14px;
}

.publication-list .paper-card > div:nth-child(2) { min-width: 0; }

.paper-visual {
  display: block;
  width: 210px;
  height: 132px;
  align-self: center;
  overflow: hidden;
  color: var(--blue);
  background: #f5f7f9;
  border: 1px solid #d5dbe1;
  text-decoration: none;
}

.paper-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.18s ease;
}

.paper-visual:hover img { opacity: 0.88; }

.paper-visual--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.paper-visual--placeholder strong { font-size: 16px; }
.paper-visual--placeholder small { color: #777777; font-size: 11px; }

.paper-year,
.section-white .paper-year,
.publication-list .paper-year {
  color: #777777;
  font-size: 14px;
  font-weight: 700;
}

.paper-title,
.section-white .paper-title,
.publication-list .paper-title {
  margin: 0;
  color: #111111;
  font-size: 15px;
  line-height: 1.35;
}

.paper-authors,
.paper-venue,
.section-white .paper-authors,
.section-white .paper-venue,
.publication-list .paper-authors,
.publication-list .paper-venue {
  margin: 2px 0 0;
  color: #444444;
  font-size: 13px;
}

.paper-venue { font-style: italic; }

.paper-rank {
  display: inline-block;
  margin: 4px 0 0;
  color: #c62828;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 9px;
  margin-top: 5px;
}

.paper-links a,
.paper-links span,
.section-white .paper-links a,
.publication-list .paper-links a,
.section-white .paper-links span,
.publication-list .paper-links span {
  padding: 0;
  color: var(--blue);
  background: none;
  border: 0;
  font-size: 12px;
  font-weight: 700;
}

.paper-links a::before,
.paper-links span::before { content: "["; }
.paper-links a::after,
.paper-links span::after { content: "]"; }

.page-hero {
  padding: 25px 0 15px;
  color: var(--ink);
  background: white;
  border-bottom: 1px solid var(--line);
}

.page-hero .eyebrow { color: #777777; }

.page-hero h1 {
  color: #111111;
  font-size: 27px;
}

.page-hero p {
  max-width: none;
  margin: 5px 0 0;
  color: #444444;
  font-size: 14px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 28px;
}

.content-section {
  padding: 0 0 24px;
}

.content-section + .content-section {
  margin-top: 24px;
  padding-top: 24px;
}

.content-section h2 { font-size: 20px; }

.content-section h3,
.track-card h3,
.student-card h3 {
  margin: 16px 0 5px;
  color: var(--blue);
  font-size: 16px;
}

.content-section p { margin: 7px 0; color: #333333; }

.side-nav {
  position: sticky;
  top: 18px;
  padding: 8px 0 8px 12px;
  background: #fafafa;
  border: 0;
  border-left: 2px solid #cccccc;
  border-radius: 0;
}

.side-nav a {
  display: block;
  padding: 3px 0;
  color: var(--blue);
  font-size: 13px;
}

.topic-list,
.check-list {
  display: block;
  margin-top: 8px;
}

.topic-list li,
.check-list li {
  padding: 2px 0;
  color: #333333;
  background: none;
  border: 0;
  font-size: 14px;
}

.topic-list li::before,
.check-list li::before { display: none; }

.stats-strip {
  display: flex;
  gap: 0;
  margin-bottom: 18px;
  background: #f7f7f7;
  border: 1px solid #dddddd;
  border-radius: 0;
}

.stat {
  flex: 1;
  padding: 8px 12px;
  background: #f7f7f7;
  border-right: 1px solid #dddddd;
}

.stat:last-child { border-right: 0; }

.stat strong {
  display: block;
  color: #333333;
  font-size: 15px;
}

.stat span {
  display: block;
  color: #666666;
  font-size: 11px;
}

.filter-row { margin-bottom: 10px; }

.publication-note {
  margin: 0 0 12px;
  padding: 8px 10px;
  color: #555555;
  background: #fafafa;
  border-left: 3px solid #bbbbbb;
  font-size: 12px;
}

.filter-row button {
  padding: 2px 7px;
  color: var(--blue);
  background: white;
  border: 1px solid #bbbbbb;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.filter-row button.is-active,
.filter-row button:hover {
  color: white;
  background: var(--blue);
}

.publication-list .paper-card[hidden] { display: none; }

.project-list { display: block; }

.project-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid #dddddd;
}

.project-thumb {
  display: block;
  width: 170px;
  height: 106px;
  overflow: hidden;
  background: #f5f7f9;
  border: 1px solid #d5dbe1;
}

.project-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-item h2 {
  margin: 2px 0 4px;
  padding: 0;
  border: 0;
  color: #111111;
  font-size: 17px;
  line-height: 1.35;
}

.project-item p { margin: 4px 0; font-size: 13px; }

.project-meta {
  color: #777777;
  font-size: 12px;
  font-weight: 700;
}

.project-links { margin-top: 6px; }

.project-links a {
  margin-right: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.project-links a::before { content: "["; }
.project-links a::after { content: "]"; }

.funding-list { margin-top: 12px; }

.funding-item {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid #dddddd;
}

.funding-role {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.funding-item h3 {
  margin: 0;
  color: #222222;
  font-size: 16px;
  line-height: 1.5;
}

.course-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 12px;
}

.course-list li {
  padding: 9px 0;
  color: #222222;
  border-bottom: 1px solid #dddddd;
  font-size: 15px;
}

.student-groups,
.track-grid,
.process-grid {
  display: block;
}

.student-card,
.track-card,
.process-step {
  padding: 10px 0;
  background: white;
  border: 0;
  border-bottom: 1px solid #dddddd;
  border-radius: 0;
}

.student-card h3,
.track-card h3 { margin-top: 2px; }

.student-list,
.achievement-list { margin-top: 5px; }

.student-list li { padding: 3px 0; }

.student-status { margin-top: 18px; }
.student-status + .student-status { margin-top: 24px; }

.student-status > h3 {
  margin: 0 0 6px;
  color: #333333;
  font-size: 18px;
}

.student-period {
  margin: 2px 0 5px;
  color: #666666;
  font-size: 13px;
}

.publication-priority {
  padding: 8px 12px;
  color: #222222;
  background: #f7f7f7;
  border-left: 3px solid var(--blue);
  font-size: 14px;
}

.group-open {
  color: red;
  font-weight: 700;
}

/* 不同年份之间的分隔线 */
.year-block + .year-block {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 3px solid #9fb3c8;
}

/* 年份标题 */
.year-block > h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 12px;
  color: #174a75;
  background: #eef5fb;
  border-left: 5px solid #2f6f9f;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
}

/* 关闭原来的标题装饰线 */
.year-block > h3::after {
  display: none;
}

/* 第一指导老师标签 */
.year-role {
  display: inline-block;
  margin-left: 2px;
  padding: 3px 9px;
  color: #c0392b;
  background: #fff4f2;
  border: 1px solid #e5a7a0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.achievement-list {
  display: block;
  padding-left: 0;
  list-style: none;
}

.achievement-list li {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
  padding: 11px 0;
  background: white;
  border: 0;
  border-bottom: 1px solid #dddddd;
}

.achievement-list li > strong,
.achievement-list li > span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
}

.achievement-list li > strong { color: #222222; }
.achievement-list li > span { color: #555555; }
.achievement-list li > span::before { display: none; }

.achievement-copy { min-width: 0; }

.achievement-copy > strong,
.achievement-copy > .achievement-detail {
  display: block;
  font-size: 14px;
  line-height: 1.5;
}

.achievement-copy > strong { color: #222222; }

.achievement-copy > .achievement-detail {
  margin-top: 3px;
  color: #555555;
}

.achievement-copy > .achievement-detail::before { display: none; }

.has-certificate,
.achievement-list li.has-certificate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 16px;
  align-items: center;
  padding: 10px 0 !important;
}

.achievement-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  width: 210px;
  min-height: 132px;
  min-width: 0;
}

.achievement-media a {
  display: block;
  width: 100%;
  height: 132px;
  overflow: hidden;
  background: white;
  border: 1px solid #d5dbe1;
}

.achievement-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.achievement-certificate-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 132px;
  padding: 10px;
  color: #777777;
  background: #f7f7f7;
  border: 1px dashed #c8cdd2;
  font-size: 12px;
  text-align: center;
}

.student-congrats {
  display: block;
  margin: 3px 0 0;
  color: #d9534f;
  font-weight: 700;
}

.highlight-red,
.highlight-blue,
.highlight-green { font-weight: 700; }

.highlight-red { color: red !important; }
.highlight-blue { color: blue !important; }
.highlight-green { color: green !important; }

.certificate-showcase {
  margin: 18px 0 24px;
  padding: 14px 0;
  border-top: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;
}

.certificate-heading h3 { margin: 0 0 4px; font-size: 17px; }
.certificate-heading p { margin: 0; color: #555555; font-size: 13px; }

.certificate-year { margin-top: 20px; }

.certificate-year h4 {
  margin: 0 0 10px;
  color: #333333;
  font-size: 18px;
}

.certificate-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 14px;
}

.certificate-card { margin: 0; min-width: 0; }

.certificate-card__image,
.certificate-card__blank {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: white;
  border: 1px solid #d5dbe1;
}

.certificate-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.certificate-card__blank {
  color: #888888;
  border-style: dashed;
  font-size: 13px;
  font-weight: 700;
}

.certificate-card figcaption { margin-top: 6px; line-height: 1.4; }
.certificate-card figcaption strong,
.certificate-card figcaption span { display: block; }
.certificate-card figcaption strong { color: #333333; font-size: 12px; }
.certificate-card figcaption > span { margin-top: 2px; color: #777777; font-size: 11px; }

.recruit-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.recruit-hero-card h2 { border-bottom: 0; }

.check-list { margin-left: 0; }

.process-step {
  display: grid;
  grid-template-columns: 30px 110px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
}

.process-step b {
  color: #777777;
  background: none;
  font-size: 12px;
}

.process-step strong { margin: 0; color: var(--blue); }
.process-step p { margin: 0; }

.quote-card {
  margin-top: 14px;
  padding: 10px 14px;
  color: #333333;
  background: var(--notice);
  border-left: 4px solid #c0a74b;
  border-radius: 0;
  font-size: 16px;
}

.site-footer {
  padding: 18px 0;
  color: #777777;
  background: #f7f7f7;
  border-top: 1px solid #cccccc;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0;
  border: 0;
}

.footer-name {
  margin: 0;
  color: #333333;
  font-size: 14px;
  font-weight: 700;
}

.footer-copy {
  margin: 2px 0 0;
  color: #777777;
  font-size: 12px;
}

.footer-links { justify-content: flex-end; }
.footer-links a { font-size: 12px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #dddddd;
  font-size: 11px;
}

.site-counts {
  margin-top: 10px;
  padding-top: 8px;
  color: #666666;
  border-top: 1px solid #dddddd;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 760px) {
  body { width: 100%; font-size: 14px; }
  .container { padding-right: 18px; padding-left: 18px; }
  .nav-shell { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand { flex: 1; font-size: 19px; }
  .menu-toggle {
    width: 30px;
    height: 28px;
    display: inline-block;
    color: var(--blue);
    background: white;
    border: 1px solid #aaaaaa;
    cursor: pointer;
  }
  .menu-toggle span::before { content: "☰"; font-size: 18px; }
  .site-nav {
    order: 3;
    width: 100%;
    display: none;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid #dddddd;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 3px 7px 3px 0; }
  .site-nav a + a::before { margin-right: 7px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 125px; gap: 18px; }
  .portrait-wrap,
  .portrait { width: 125px; }
  .portrait { height: 165px; }
  .hero h1 { font-size: 25px; }
  .hero h1 .cn-name { display: block; margin: 3px 0 0; }
  .news-layout,
  .content-grid { grid-template-columns: 1fr; }
  .side-nav { display: none; }
  .opening-card { margin-top: 8px; }
  .stats-strip { display: grid; grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid #dddddd; }
  .paper-card,
  .section-white .paper-card,
  .publication-list .paper-card { grid-template-columns: 45px minmax(0, 1fr); }
  .publication-list .paper-card { gap: 10px; }
  .publication-list .paper-visual {
    grid-column: 2;
    width: min(100%, 300px);
    height: auto;
    aspect-ratio: 8 / 5;
    margin-top: 4px;
  }
  .project-item { grid-template-columns: 145px minmax(0, 1fr); }
  .project-thumb { width: 145px; height: 91px; }
  .certificate-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recruit-hero-card { display: block; }
  .process-step { grid-template-columns: 25px 100px minmax(0, 1fr); }
  .footer-grid { display: block; }
  .footer-links { justify-content: flex-start; margin-top: 8px; }
}

@media (max-width: 640px) {
  .achievement-list li { grid-template-columns: 1fr; gap: 4px; }
  .has-certificate,
  .achievement-list li.has-certificate { grid-template-columns: 1fr; }
  .achievement-media { width: min(100%, 320px); }
  .page-hero h1 { font-size: 24px; }
  .paper-title,
  .project-item h2,
  .funding-item h3 { overflow-wrap: anywhere; }
}

@media (max-width: 480px) {
  .hero-grid { display: block; }
  .portrait-wrap { float: right; margin: 0 0 10px 15px; }
  .hero-grid::after { display: block; clear: both; content: ""; }
  .hero-summary { clear: none; }
  .timeline li { grid-template-columns: 55px minmax(0, 1fr); }
  .process-step { display: block; }
  .process-step b,
  .process-step strong { display: inline; margin-right: 5px; }
  .process-step p { margin-top: 3px; }
  .certificate-gallery { grid-template-columns: 1fr; }
  .project-item { display: block; }
  .project-thumb { width: min(100%, 300px); height: auto; aspect-ratio: 8 / 5; margin-bottom: 10px; }
  .course-list { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 3px; }
}

@media print {
  html { background: white; }
  .site-header,
  .language-switch,
  .menu-toggle,
  .side-nav { display: none !important; }
  body { max-width: none; }
}
