﻿:root {
  --sky: #3ba1e5;
  --sky-deep: #2f94da;
  --leaf-dark: #123d2f;
  --leaf-mid: #27714d;
  --leaf-light: #76c953;
  --grass: #8ee85b;
  --paper: #f8f8f6;
  --paper-2: #ffffff;
  --line: #deded9;
  --ink: #343434;
  --muted: #777777;
  --soft: #eeeeeb;
  --button: #3c3c3f;
  --shadow: 0 30px 80px rgba(10, 62, 100, 0.28);
  --radius: 16px;
}
@font-face {
  font-family: "Fusion Pixel";
  src: url("assets/fonts/fusion-pixel-zh-hans.woff2") format("woff2");
  font-display: swap;
}

/* Internship page: transparent retro-TV interaction. */
body:has(.internship-page.is-active) .browser-window {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body:has(.internship-page.is-active) .topbar {
  background: rgba(255, 255, 255, 0.96);
}
.internship-page,
.internship-page.is-active {
  position: relative;
  min-height: calc(100vh - 92px);
  padding: 0;
  overflow: hidden;
  background: transparent;
}
.internship-stage {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 92px);
  overflow: hidden;
}
.internship-tv {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: min(38vw, 560px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: left 620ms cubic-bezier(.2,.8,.2,1), opacity 320ms ease, transform 260ms ease, filter 260ms ease;
}
.internship-tv-left { left: 25%; }
.internship-tv-right { left: 75%; }
.internship-tv img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 24px rgba(12, 57, 75, 0.24));
  pointer-events: none;
}
.internship-tv::after {
  content: "";
  position: absolute;
  left: 17.5%;
  top: 19%;
  width: 65%;
  height: 49%;
  border-radius: 19% / 14%;
  background: rgba(102, 220, 255, 0.04);
  box-shadow: inset 0 0 35px rgba(150, 235, 255, 0.12), 0 0 16px rgba(91, 205, 243, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, background 220ms ease, box-shadow 220ms ease;
}
.internship-screen-title {
  position: absolute;
  left: 20%;
  top: 29%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 60%;
  min-height: 26%;
  color: #d8f6ff;
  font-family: "Fusion Pixel", "Microsoft YaHei", sans-serif;
  font-size: clamp(17px, 1.55vw, 24px);
  line-height: 1.45;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 0 7px rgba(128, 228, 255, 0.7), 2px 2px 0 rgba(5, 35, 49, 0.7);
  pointer-events: none;
  transition: color 220ms ease, text-shadow 220ms ease;
}
.internship-photo-link {
  position: absolute;
  left: 20%;
  top: 51%;
  z-index: 3;
  display: none;
  width: 60%;
  color: #9ee8f5;
  font-family: "Fusion Pixel", "Microsoft YaHei", sans-serif;
  font-size: clamp(10px, 0.82vw, 13px);
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
  text-shadow: 1px 1px 0 rgba(5, 35, 49, 0.82), 0 0 7px rgba(141, 231, 249, 0.68);
  cursor: pointer;
}
.internship-tv.is-active .internship-photo-link {
  display: block;
  animation: internshipPhotoLinkIn 320ms ease 280ms both;
}
.internship-photo-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.internship-tv:hover,
.internship-tv:focus-visible {
  z-index: 4;
  transform: translate(-50%, -50%) scale(1.08);
  filter: brightness(1.06);
}
.internship-tv:hover::after,
.internship-tv:focus-visible::after,
.internship-tv.is-active::after {
  opacity: 1;
  background: rgba(95, 224, 255, 0.18);
  box-shadow: inset 0 0 48px rgba(166, 241, 255, 0.32), 0 0 28px rgba(75, 202, 240, 0.3);
}
.internship-tv:hover .internship-screen-title,
.internship-tv:focus-visible .internship-screen-title,
.internship-tv.is-active .internship-screen-title {
  color: #f3fdff;
  text-shadow: 0 0 11px rgba(151, 237, 255, 0.95), 2px 2px 0 rgba(5, 35, 49, 0.75);
}
.internship-stage.is-focused .internship-tv.is-active {
  left: 20%;
  transform: translate(-50%, -50%) scale(0.94);
}
.internship-stage.is-focused .internship-tv.is-active:hover,
.internship-stage.is-focused .internship-tv.is-active:focus-visible {
  transform: translate(-50%, -50%) scale(1);
}
.internship-stage.is-focused .internship-tv.is-inactive {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  pointer-events: none;
}
.internship-details {
  position: absolute;
  top: 50%;
  left: 42%;
  z-index: 5;
  width: min(54%, 920px);
  max-height: calc(100% - 72px);
  overflow: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-46%);
  transition: opacity 180ms ease, transform 320ms ease;
  scrollbar-width: none;
}
.internship-details::-webkit-scrollbar { display: none; }
.internship-stage.is-focused .internship-details {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%);
}
.internship-detail { display: none; }
.internship-detail.is-active { display: block; }
.internship-detail h2 {
  max-width: calc(100% - 56px);
  margin: 0 0 10px;
  color: #164d67;
  background: linear-gradient(90deg, #0b4863 0%, #0b4863 28%, #b7edf7 36%, #f5fdff 46%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
  font-size: clamp(25px, 2.35vw, 38px);
  line-height: 1.24;
  font-weight: 800;
  filter: drop-shadow(2px 2px 0 rgba(5, 45, 62, 0.42));
}
.internship-detail-time {
  display: inline-block;
  margin: 0 0 18px;
  padding: 7px 12px;
  border: 1px solid rgba(20, 96, 126, 0.28);
  background: rgba(96, 193, 220, 0.2);
  color: #164d67;
  font-weight: 800;
}
.internship-detail ol {
  display: grid;
  gap: 9px;
  padding-left: 0;
  list-style: none;
  counter-reset: internship-item;
}
.internship-detail li {
  counter-increment: internship-item;
  position: relative;
  margin: 0;
  padding: 12px 16px 12px 52px;
  border-left: 4px solid #58c5d7;
  background: rgba(17, 69, 91, 0.86);
  color: #f4fcff;
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.48;
  box-shadow: 0 7px 18px rgba(11, 54, 72, 0.12);
}
.internship-detail li::before {
  content: counter(internship-item, decimal-leading-zero);
  position: absolute;
  left: 15px;
  top: 12px;
  color: #91e5ed;
  font-family: "Fusion Pixel", monospace;
  font-size: 13px;
}
.internship-detail.is-active .internship-detail-line {
  animation: internshipDetailPop 380ms cubic-bezier(.18,.9,.22,1.15) both;
  animation-delay: calc(var(--detail-order) * 70ms);
}
.internship-reset {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(20, 96, 126, 0.34);
  border-radius: 5px;
  background: rgba(239, 251, 253, 0.92);
  color: #164d67;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
@keyframes internshipDetailPop {
  from { opacity: 0; transform: translateX(70px) scale(.97); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes internshipPhotoLinkIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 900px) {
  body:has(.internship-page.is-active) .browser-window { overflow: visible; }
  .internship-page,
  .internship-page.is-active,
  .internship-stage { min-height: 1160px; overflow: visible; }
  .internship-tv { left: 50%; width: min(82vw, 430px); }
  .internship-tv-left { top: 27%; }
  .internship-tv-right { top: 70%; }
  .internship-stage.is-focused .internship-tv.is-active { left: 50%; top: 22%; transform: translate(-50%, -50%) scale(.86); }
  .internship-details { top: 45%; left: 6%; width: 88%; max-height: none; transform: none; }
  .internship-stage.is-focused .internship-details { transform: none; }
  .internship-detail h2 { font-size: 25px; }
  .internship-detail li { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .internship-tv,
  .internship-details,
  .internship-detail.is-active .internship-detail-line { transition: none; animation: none; }
}

.course-evidence-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}
.course-modal-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding-right: 48px;
}
.course-modal-title small {
  color: #7a7a7a;
  font-size: 13px;
  font-weight: 500;
}
.course-gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6f6f6f;
  font: inherit;
  line-height: 1.7;
  text-align: left;
  cursor: pointer;
}
.course-gallery-trigger:hover,
.course-gallery-trigger:focus-visible {
  color: #2f718e;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.image-gallery-panel {
  overflow: visible;
}
.image-gallery-item[hidden] {
  display: none;
}
.image-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 40px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-50%);
}
.image-gallery-prev {
  left: 22px;
}
.image-gallery-next {
  right: 22px;
}
.course-evidence-link:hover,
.course-evidence-link:focus-visible {
  color: #2f718e;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
}
.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(5px);
}
.image-lightbox-panel {
  position: relative;
  width: fit-content;
  max-width: 94vw;
  max-height: none;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
.image-lightbox-panel img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(94vw - 24px);
  max-height: calc(92vh - 24px);
  object-fit: contain;
}
.image-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
}
.image-missing {
  min-width: 320px;
  margin: 0;
  padding: 80px 28px;
  color: #666;
  text-align: center;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: #39a9ec url('assets/pixel-background.webp') center / cover fixed no-repeat;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.pixel-world { display: none; }
.browser-window {
  position: relative;
  z-index: 1;
  width: min(86vw, 1460px);
  min-height: min(78vh, 930px);
  margin: 15vh auto 13vh;
  background: rgba(248, 248, 246, 0.94);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--radius);
  box-shadow: 0 34px 90px rgba(10, 62, 100, 0.32);
  overflow: hidden;
}
.browser-window::after { content: none; }
.topbar {
  height: 152px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 clamp(28px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(250,250,249,0.9);
}
.brand { display: none; }
.top-note {
  flex: 1 1 auto;
  margin: 0;
  color: #26789f;
  font-family: SimSun, "宋体", monospace;
  font-size: clamp(13px, 1.15vw, 16px);
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #d9f3ff, 2px 2px 0 rgba(47,148,218,0.16);
  white-space: nowrap;
}
.topbar > .top-note { display: none; }
.pixel-greeting {
  position: relative;
  flex: 0 1 590px;
  min-width: 540px;
  height: 138px;
}
.pixel-greeting .top-note {
  position: absolute;
  left: 0;
  top: 3px;
  z-index: 3;
  display: block;
  width: max-content;
  margin: 0;
  padding: 12px 19px 13px;
  border: 4px solid #18728f;
  background: rgba(246, 253, 250, 0.96);
  font-family: SimSun, "宋体", monospace;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: 5px 5px 0 rgba(31, 120, 150, 0.18);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px, 100% 4px, 100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) 100%, 8px 100%, 8px calc(100% - 4px), 0 calc(100% - 4px), 0 8px, 4px 8px, 4px 4px, 8px 4px);
}
.pixel-greeting .top-note span {
  display: block;
  background-image: linear-gradient(97deg, #147d9b 0 12%, #2f94da 12% 26%, #58afd0 26% 39%, #24768d 39% 52%, #63b78c 52% 65%, #318fc3 65% 82%, #24755e 82% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.35px rgba(16, 91, 113, 0.45);
  text-shadow: 2px 2px 0 rgba(105, 190, 216, 0.14);
}
.pixel-greeting .top-note::after {
  content: "";
  position: absolute;
  left: 54px;
  bottom: -19px;
  width: 19px;
  height: 19px;
  border-right: 4px solid #18728f;
  border-bottom: 4px solid #18728f;
  background: #f6fdfa;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 48% 100%, 48% 72%, 24% 72%, 24% 48%, 0 48%);
}
.header-cat {
  position: absolute;
  left: 29px;
  bottom: -1px;
  width: 108px;
  height: 85px;
}
.header-cat-body {
  position: absolute;
  left: 25px;
  bottom: 0;
  z-index: 2;
  width: 70px;
  height: 93px;
  background: url("assets/pixel-cats.webp") 0 0 / 400% 100% no-repeat;
  image-rendering: pixelated;
  clip-path: inset(0 20% 0 0);
  transform: scaleX(-1);
  transform-origin: center;
}
.header-cat-tail {
  position: absolute;
  left: 2px;
  bottom: 17px;
  z-index: 1;
  width: 42px;
  height: 43px;
  border: 7px solid #111;
  border-right: 0;
  border-bottom: 0;
  border-radius: 17px 0 0 0;
  transform-origin: right bottom;
  animation: pixelTailWag 1.15s steps(4, end) infinite alternate;
}
.header-cat-tail::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 26px;
  height: 29px;
  border: 7px solid #aaa;
  border-right: 0;
  border-bottom: 0;
  border-radius: 9px 0 0 0;
}
@keyframes pixelTailWag {
  from { transform: rotate(-10deg) translateY(1px); }
  to { transform: rotate(13deg) translateY(-2px); }
}
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.nav a { padding: 7px 12px; border-radius: 5px; color: #5a5a5a; font-size: 15px; font-weight: 700; }
.nav a.is-active, .nav a:hover { background: #ececea; color: #2f2f2f; }

.page { display: none; min-height: calc(min(78vh, 930px) - 152px); padding: clamp(58px, 8vh, 96px) clamp(32px, 9vw, 210px) 92px; }
.page.is-active { display: block; animation: fadeIn 220ms ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.page-home { display: none; grid-template-columns: minmax(0, 1fr) 450px; align-items: center; gap: clamp(44px, 7vw, 120px); }
.page-home.is-active { display: grid; }
h1, h2, h3, p { margin-top: 0; letter-spacing: 0; }
h2 { margin-bottom: 10px; font-size: clamp(38px, 4.4vw, 62px); line-height: 1.08; font-weight: 500; color: #3b3b3b; }
h3 { margin-bottom: 12px; font-size: 20px; line-height: 1.38; font-weight: 700; color: #4b4b4b; }
.opening { max-width: 780px; color: #666; font-size: clamp(22px, 2.6vw, 38px); line-height: 1.28; font-weight: 500; }
.dark-button { min-height: 46px; padding: 0 18px; border: 0; border-radius: 7px; background: var(--button); color: white; font-weight: 800; cursor: pointer; box-shadow: 0 5px 12px rgba(0,0,0,0.24); }
.dark-button:hover { transform: translateY(-1px); }
.poster-card { position: relative; width: 450px; min-height: 600px; padding: 12px; border-radius: 12px; background: #ffffff; box-shadow: 0 9px 24px rgba(0,0,0,0.13); }
.poster-sky { position: relative; height: 576px; overflow: hidden; border-radius: 9px; background: linear-gradient(180deg, #48a9e8 0%, #8ed5ff 58%, #86d85d 59%, #5bab43 100%); image-rendering: pixelated; }
.poster-cloud { position: absolute; top: 70px; right: 18px; width: 84px; height: 24px; background: #effbff; box-shadow: -34px 20px 0 #d8f0ff, 26px 26px 0 #f8fdff, -78px 8px 0 #f8fdff; }
.poster-grass { position: absolute; left: 0; right: 0; bottom: 0; height: 86px; background: repeating-linear-gradient(90deg, #2a783d 0 10px, #6bc244 10px 20px, #a6ee62 20px 30px); clip-path: polygon(0 26%, 10% 12%, 24% 34%, 36% 10%, 50% 32%, 64% 14%, 80% 36%, 100% 18%, 100% 100%, 0 100%); }
.sunflower { position: absolute; left: 40px; top: 32px; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle, #50351e 0 25%, #8a5a27 26% 34%, #f3c22d 35% 100%); box-shadow: 86px 184px 0 -24px #f3c22d, 182px 162px 0 -30px #f3c22d; z-index: 2; }
.sunflower::after { content: ""; position: absolute; left: 42px; top: 88px; width: 7px; height: 170px; background: #347c37; box-shadow: 86px 76px 0 #347c37, 182px 82px 0 #347c37; }
.poster-glass { position: absolute; left: 26px; right: 26px; bottom: 26px; min-height: 142px; padding: 22px; border-radius: 0 0 9px 9px; background: linear-gradient(180deg, rgba(89,138,66,0.70), rgba(56,105,53,0.84)); color: white; }
.poster-glass strong { display: block; font-size: 26px; line-height: 1.05; margin-bottom: 8px; }
.poster-glass span { color: rgba(255,255,255,0.74); font-size: 19px; line-height: 1.2; }
.page-heading { text-align: center; margin: 0 auto 56px; max-width: 900px; }
.page-heading p { color: #777; }
.plain-grid, .course-grid, .case-grid, .proof-board { display: grid; gap: 18px; }
.plain-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plain-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.soft-card, .course-card, .proof-item { background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.07); }
.soft-card { padding: 28px; color: #676767; }
.soft-card.long-card { min-height: 430px; }
.soft-card p, .soft-card li, .course-card p, .case-card p { color: #747474; }
.time, .case-meta { color: #888; font-weight: 700; }
ol, ul { margin: 0; padding-left: 22px; }
li { margin-bottom: 9px; }
.text-button { border: 0; padding: 0; background: transparent; color: #4c4c4c; font-weight: 800; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.section-row { margin: 50px 0 18px; display: flex; justify-content: space-between; gap: 20px; }
.section-row p { margin-bottom: 0; color: #888; }
.course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.course-card { min-height: 172px; padding: 22px; text-align: left; cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease; }
.course-card:hover, .proof-item:hover { transform: translateY(-3px); box-shadow: 0 9px 22px rgba(0,0,0,0.12); }
.course-card strong { color: #4f4f4f; }
.showcase-row { display: grid; grid-template-columns: 360px 1fr; gap: 18px; }
.certificate-frame { min-height: 280px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, #fdfdfc, #eeeeeb); color: #aaa; font-size: 24px; font-weight: 700; box-shadow: 0 2px 10px rgba(0,0,0,0.07); }
.honor-tags { display: flex; flex-wrap: wrap; align-content: start; gap: 12px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.07); }
.honor-tags span { padding: 9px 12px; border-radius: 6px; background: #f1f1ef; color: #666; font-weight: 800; }
.case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-card { min-height: 390px; display: flex; flex-direction: column; gap: 12px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.07); }
.case-role { width: fit-content; padding: 6px 10px; border-radius: 5px; background: #efefed; color: #555; font-weight: 800; }
.case-card button { margin-top: auto; align-self: flex-start; }
.proof-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proof-item { min-height: 210px; padding: 26px; text-align: left; cursor: pointer; border: 0; }
.proof-item strong, .proof-item span { display: block; }
.proof-item strong { margin-bottom: 12px; font-size: 26px; color: #4a4a4a; }
.proof-item span { color: #888; font-weight: 700; }
.modal { position: fixed; inset: 0; z-index: 40; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.34); backdrop-filter: blur(6px); }
.modal-panel { position: relative; width: min(900px, 100%); max-height: min(82vh, 780px); overflow: auto; padding: 34px; border-radius: 16px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,0.25); }
.close { position: absolute; right: 16px; top: 14px; width: 38px; height: 38px; border: 1px solid var(--line);
border-radius: 8px; background: #f4f4f2; font-size: 24px; cursor: pointer; }
.placeholder-box { min-height: 220px; display: grid; place-items: center; padding: 22px; border-radius: 10px; background: linear-gradient(180deg, #eef8ff, #f7f7f5); color: #777; font-size: 22px; font-weight: 800; text-align: center; }
@media (max-width: 1100px) {
  .browser-window { width: calc(100vw - 32px); margin-top: 110px; }
  .topbar { gap: 16px; padding-left: 18px; padding-right: 18px; }
  .pixel-greeting { flex-basis: 465px; min-width: 465px; }
  .pixel-greeting .top-note { padding: 11px 14px 12px; font-size: 18px; }
  .nav a { padding: 6px 8px; font-size: 13px; }
  .page, .page-home { padding-left: 34px; padding-right: 34px; }
  .page-home.is-active, .plain-grid.two, .plain-grid.three, .showcase-row, .case-grid, .proof-board { grid-template-columns: 1fr; }
  .poster-card { position: relative; width: 450px; min-height: 600px; padding: 12px; border-radius: 12px; background: #ffffff; box-shadow: 0 9px 24px rgba(0,0,0,0.13); }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .browser-window { margin: 20px auto 110px; width: calc(100vw - 18px); border-radius: 12px; }
  .pixel-greeting { flex: 0 0 124px; width: 100%; min-width: 0; height: 124px; }
  .pixel-greeting .top-note { top: 0; padding: 9px 8px 10px; border-width: 3px; font-size: 13px; }
  .pixel-greeting .top-note::after { left: 39px; bottom: -16px; width: 16px; height: 16px; border-width: 3px; }
  .header-cat { left: 18px; bottom: -2px; transform: scale(.82); transform-origin: left bottom; }
  .topbar { height: auto; min-height: 82px; align-items: flex-start; flex-direction: column; padding: 18px; }
  .nav { justify-content: flex-start; }
  .page, .page-home { padding: 34px 18px 78px; }
    h2 { font-size: 36px; }
  .opening { max-width: 780px; color: #666; font-size: clamp(22px, 2.6vw, 38px); line-height: 1.28; font-weight: 500; }
  .course-grid { grid-template-columns: 1fr; }
}


.hello-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; white-space: nowrap; }
.hello-line { color: #3b3b3b; font-size: clamp(38px, 5.1vw, 74px); line-height: 1; font-weight: 600; }
.emoji-slot { display: inline-block; flex: 0 0 auto; width: clamp(62px, 5.4vw, 84px); height: clamp(62px, 5.4vw, 84px); background: transparent; border: 0; box-shadow: none; overflow: visible; }
.emoji-slot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.focus-line { width: max-content; max-width: none; margin: 0 0 16px; color: #4a4a4a; font-size: clamp(24px, 2.8vw, 42px); line-height: 1.16; font-weight: 900; white-space: nowrap; }
.sensing-line { max-width: 850px; margin: 0 0 34px; color: #666; font-size: clamp(19px, 2vw, 30px); line-height: 1.36; font-weight: 600; }
.sensing-line-first { margin-bottom: 8px; }
.envelope-trigger { min-width: 168px; }
.stamp-collection { display: grid; justify-items: center; gap: 16px; }
.stamp-stage { position: relative; width: min(520px, 88vw); aspect-ratio: 0.82; padding: 0; border: 0; border-radius: 22px; background: linear-gradient(90deg, #06372f, #073f36 52%, #05342d); box-shadow: 0 28px 70px rgba(0,0,0,0.30), inset 0 0 0 1px rgba(255,255,255,0.08); overflow: hidden; cursor: pointer; }
.stamp-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 16% 16%, rgba(255,255,255,0.08), transparent 24%), linear-gradient(90deg, transparent 49.5%, rgba(0,0,0,0.13) 50%, transparent 50.5%); }
.stamp-stage::after { content: "✣"; position: absolute; left: 24px; top: 20px; color: #f4fbef; font-size: 42px; line-height: 1; }
.stamp-stack { position: absolute; width: 270px; height: 390px; background: #f7efd7; filter: drop-shadow(0 10px 0 rgba(0,0,0,0.14)); }
.stamp-stack::before, .paper-postcard::before { content: ""; position: absolute; inset: -8px; background: radial-gradient(circle, transparent 0 6px, #f7efd7 6.5px) 0 0 / 22px 22px; z-index: -1; }
.stamp-stack-a { right: 55px; top: 76px; transform: rotate(13deg); background: linear-gradient(180deg, #f7efd7, #e7f5eb); }
.stamp-stack-b { left: 50px; top: 112px; transform: rotate(-9deg); background: linear-gradient(180deg, #f7efd7, #f2e9d0); }
.paper-envelope { position: absolute; left: 50%; bottom: 72px; width: 340px; height: 230px; transform: translateX(-50%); perspective: 900px; }
.envelope-back { position: absolute; inset: 52px 0 0; background: #efe2c6; border: 2px solid rgba(48,39,29,0.18); box-shadow: 0 16px 24px rgba(0,0,0,0.18); }
.envelope-back::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 49%, rgba(120,90,55,0.20) 50%, transparent 51%), linear-gradient(225deg, transparent 49%, rgba(120,90,55,0.16) 50%, transparent 51%); }
.envelope-front { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(180deg, #f4e8cf, #dfcba7); border: 2px solid rgba(48,39,29,0.20); clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%); z-index: 5; }
.envelope-flap { position: absolute; left: 0; right: 0; top: 52px; height: 126px; background: linear-gradient(180deg, #f1e4c9, #d9c096); border: 2px solid rgba(48,39,29,0.20); clip-path: polygon(0 0, 50% 100%, 100% 0); transform-origin: 50% 0; animation: paperFlap 900ms cubic-bezier(.2,.8,.2,1) forwards; z-index: 7; }
.paper-postcard { position: absolute; left: 50%; bottom: 78px; width: 260px; min-height: 360px; padding: 52px 30px 28px; transform: translateX(-50%) translateY(86px); background: #f8f1dc; color: #273052; border: 0; box-shadow: 0 18px 28px rgba(0,0,0,0.22); z-index: 4; animation: postcardRise 900ms cubic-bezier(.2,.8,.2,1) 240ms forwards; }
.paper-postcard::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 18% 24%, rgba(90,70,40,0.09), transparent 3px), radial-gradient(circle at 72% 14%, rgba(90,70,40,0.10), transparent 2px), linear-gradient(90deg, rgba(255,255,255,0.18), transparent 30%, rgba(90,70,40,0.05)); mix-blend-mode: multiply; }
.paper-postcard.pop-again { animation: postcardSwap 420ms ease; }
.stamp-flower { position: absolute; left: 22px; top: 18px; color: #073f36; font-size: 26px; }
.vertical-note { position: absolute; right: 26px; top: 42px; width: 1.2em; margin: 0; color: #30365f; font-size: 25px; line-height: 1.16; font-weight: 500; writing-mode: vertical-rl; letter-spacing: 0; }
.tiny-bird { position: absolute; left: 66px; top: 150px; width: 70px; height: 42px; border-radius: 48% 52% 48% 52%; background: #d7d5cc; border: 2px solid #6d7281; transform: rotate(-8deg); }
.tiny-bird::before { content: ""; position: absolute; right: -10px; top: 13px; border-left: 12px solid #da7b54; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.tiny-bird::after { content: ""; position: absolute; left: 16px; top: 18px; width: 48px; height: 36px; border-left: 2px solid #7c8293; border-bottom: 2px solid #7c8293; border-radius: 50%; transform: rotate(-18deg); }
.paper-postcard strong { position: relative; z-index: 1; display: block; margin-top: 190px; color: #30365f; font-size: 18px; }
.paper-postcard > p:not(.vertical-note) { position: relative; z-index: 1; margin: 8px 0 0; color: #30365f; font-size: 21px; line-height: 1.45; font-weight: 900; text-align: left; }
.collection-meta { position: absolute; left: 28px; bottom: 26px; display: grid; gap: 3px; color: rgba(255,255,255,0.76); font-size: 16px; font-weight: 700; text-align: left; }
.postcard-controls { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.postcard-dot { width: 38px; height: 38px; border: 2px solid rgba(255,255,255,0.72); border-radius: 999px; background: #06372f; color: #fff8df; cursor: pointer; font-weight: 900; }
.postcard-dot.is-active { background: #f8f1dc; color: #073f36; }
@keyframes paperFlap { 0% { transform: rotateX(0deg); z-index: 7; } 100% { transform: rotateX(176deg); z-index: 2; } }
@keyframes postcardRise { 0% { transform: translateX(-50%) translateY(86px) rotate(0deg); } 100% { transform: translateX(-50%) translateY(-170px) rotate(-2deg); } }
@keyframes postcardSwap { 0% { transform: translateX(-50%) translateY(-150px) rotate(2deg); opacity: 0.45; } 100% { transform: translateX(-50%) translateY(-170px) rotate(-2deg); opacity: 1; } }
@media (max-width: 720px) {
  .hello-line { font-size: 38px; }
  .focus-line { font-size: 19px; }
  .stamp-stage { width: min(390px, 88vw); }
  .paper-envelope { transform: translateX(-50%) scale(0.78); bottom: 54px; }
}



.modal.postcard-only .modal-panel {
  width: min(620px, 94vw);
  max-height: none;
  overflow: visible;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

/* Vertical paper-envelope postcard */
.modal.postcard-only .stamp-stage {
  width: min(580px, 92vw);
  height: min(700px, 84vh);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(27, 56, 44, 0.55);
  border-radius: 14px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(93deg, rgba(201,220,196,0.025) 0 1px, transparent 1px 9px),
    #164f3d;
  box-shadow: 0 28px 70px rgba(0,0,0,0.30), inset 0 0 28px rgba(0,0,0,0.12);
  perspective: 1300px;
}
.modal.postcard-only .stamp-stage::before,
.modal.postcard-only .stamp-stage::after {
  display: none;
}
.envelope-interior {
  position: absolute;
  inset: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(224, 235, 213, 0.25);
  background:
    repeating-linear-gradient(5deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 8px),
    #0b3c30;
  box-shadow: inset 0 10px 28px rgba(0,0,0,0.24);
}
.modal.postcard-only .paper-postcard {
  position: relative;
  left: auto;
  bottom: auto;
  width: min(430px, calc(100% - 36px));
  min-height: 560px;
  padding: 72px 42px 36px;
  transform: none;
  z-index: 2;
  animation: paperSettle 900ms cubic-bezier(.18,.78,.24,1) 520ms both;
}
.modal.postcard-only .paper-postcard.pop-again {
  animation: postcardSwapPaper 430ms ease both;
}
.postcard-copy,
.modal.postcard-only .paper-postcard > .postcard-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  justify-items: center;
  min-height: 220px;
  margin: 0;
  color: #263850;
  font-size: 22px;
  line-height: 1.65;
  font-weight: 900;
  text-align: center;
}
.education-line {
  display: block;
  width: max-content;
  max-width: none;
  white-space: nowrap;
}
.vertical-arrow {
  display: block;
  margin: 9px 0 7px;
  color: #1c6a50;
  font-size: 32px;
  line-height: 1;
}
.cat-corner {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 3;
  width: 150px;
  height: 250px;
}
.speech-bubble {
  left: 5px;
  bottom: 182px;
  min-width: 140px;
  padding: 10px 12px;
  border: 5px solid #101010;
  background: #fff;
  color: #101010;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
  image-rendering: pixelated;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.12);
}
.speech-bubble::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: -24px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-right: 5px solid #101010;
  border-bottom: 5px solid #101010;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.pixel-cat {
  --cat: #9a9a9a;
  --stripe: rgba(0,0,0,0.23);
  position: absolute;
  left: 30px;
  bottom: 28px;
  width: 104px;
  height: 86px;
  background: var(--cat);
  border: 6px solid #111;
  border-radius: 38% 40% 30% 30%;
  image-rendering: pixelated;
  box-shadow: inset 18px 0 0 rgba(255,255,255,0.08);
}
.cat-ear {
  position: absolute;
  top: -34px;
  width: 28px;
  height: 34px;
  background: var(--cat);
  border: 6px solid #111;
  border-bottom: 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.cat-ear.left { left: 8px; }
.cat-ear.right { right: 8px; }
.cat-eye {
  position: absolute;
  top: 30px;
  width: 9px;
  height: 9px;
  background: #111;
}
.cat-eye.left { left: 34px; }
.cat-eye.right { right: 34px; }
.cat-nose {
  position: absolute;
  left: 50%;
  top: 44px;
  width: 14px;
  height: 10px;
  transform: translateX(-50%);
  background: #111;
  box-shadow: -34px -8px 0 -2px #ffb3c7, 34px -8px 0 -2px #ffb3c7;
}
.cat-tail {
  position: absolute;
  right: -48px;
  bottom: 14px;
  width: 48px;
  height: 48px;
  border: 8px solid #111;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 28px 0 0;
}
.cat-tail::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 6px;
  width: 22px;
  height: 22px;
  border: 7px solid var(--cat);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 18px 0 0;
}
.stamp-stage[data-card="0"] .pixel-cat { --cat: #9b9b9b; }
.stamp-stage[data-card="1"] .pixel-cat { --cat: #f2a11f; }
.stamp-stage[data-card="2"] .pixel-cat { --cat: #f8f8f4; }
.stamp-stage[data-card="3"] .pixel-cat { --cat: #d98621; }
@keyframes postcardRiseClean {
  0% { transform: translateX(-50%) translateY(92px) rotate(0deg); z-index: 3; }
  55% { z-index: 5; }
  100% { transform: translateX(-50%) translateY(-250px) rotate(-1.5deg); z-index: 8; }
}
@keyframes postcardSwapClean {
  0% { transform: translateX(-50%) translateY(-218px) rotate(2deg); opacity: 0.4; }
  100% { transform: translateX(-50%) translateY(-250px) rotate(-1.5deg); opacity: 1; }
}
@media (max-width: 720px) {
  .modal.postcard-only .stamp-stage {
    min-height: 560px;
    height: 76vh;
  }
  .modal.postcard-only .paper-envelope {
    transform: translateX(-50%) scale(0.82);
    bottom: 50px;
  }
  .modal.postcard-only .paper-postcard > p {
    font-size: 18px;
  }
}

/* Final cascade for the vertical envelope */
.modal.postcard-only .stamp-stage {
  overflow: hidden;
  border: 1px solid rgba(27, 56, 44, 0.55);
  border-radius: 14px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(93deg, rgba(201,220,196,0.025) 0 1px, transparent 1px 9px),
    #164f3d;
  box-shadow: 0 28px 70px rgba(0,0,0,0.30), inset 0 0 28px rgba(0,0,0,0.12);
  perspective: 1300px;
}
.modal.postcard-only .paper-postcard {
  position: relative;
  left: auto;
  bottom: auto;
  width: min(430px, calc(100% - 36px));
  min-height: 560px;
  padding: 72px 42px 36px;
  transform: none;
  z-index: 2;
  animation: paperSettle 900ms cubic-bezier(.18,.78,.24,1) 520ms both;
}
.modal.postcard-only .paper-postcard.pop-again {
  animation: postcardSwapPaper 430ms ease both;
}
.cat-corner .speech-bubble {
  left: 5px;
  bottom: 182px;
  min-width: 140px;
  padding: 10px 12px;
  font-family: "Courier New", monospace;
  font-size: 20px;
  letter-spacing: 0;
}
.cat-corner .pixel-cat {
  left: 4px;
  bottom: 0;
  width: 140px;
  height: 187px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url("assets/pixel-cat-1.webp");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  box-shadow: none;
}
.stamp-stage[data-card="0"] .cat-corner .pixel-cat { background-image: url("assets/pixel-cat-1.webp"); }
.stamp-stage[data-card="1"] .cat-corner .pixel-cat { background-image: url("assets/pixel-cat-2.webp"); }
.stamp-stage[data-card="2"] .cat-corner .pixel-cat { background-image: url("assets/pixel-cat-3.webp"); }
.stamp-stage[data-card="3"] .cat-corner .pixel-cat { background-image: url("assets/pixel-cat-4.webp"); }
.stamp-stage[data-card] .cat-corner .pixel-cat { background-position: center bottom; }
.postcard-click-hint {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 2px solid rgba(20, 77, 60, .55);
  background: rgba(255, 252, 236, .82);
  color: #155b48;
  font-family: "Fusion Pixel", SimSun, "宋体", monospace;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 3px 3px 0 rgba(20, 77, 60, .14);
  pointer-events: none;
  animation: postcardHintPulse 1.6s steps(2, end) infinite;
}

.postcard-click-hint::after {
  content: "›";
  font-size: 18px;
  line-height: 1;
}

@keyframes postcardHintPulse {
  0%, 100% { opacity: .78; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}
@media (max-width: 720px) {
  .modal.postcard-only .stamp-stage {
    width: min(420px, 92vw);
    height: min(650px, 82vh);
    min-height: 540px;
  }
  .modal.postcard-only .paper-postcard {
    width: calc(100% - 26px);
    min-height: 500px;
    padding: 60px 18px 30px;
  }
}

/* Header pixel message and original animated cat tail */
.topbar {
  position: relative;
  height: 92px;
  overflow: visible;
}
.page {
  min-height: calc(min(78vh, 930px) - 92px);
}
.pixel-greeting {
  position: static;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: auto;
}
.pixel-greeting .top-note {
  position: static;
  display: block;
  width: max-content;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  clip-path: none;
  box-shadow: none;
  font-family: "Fusion Pixel", SimSun, "宋体", monospace;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  image-rendering: pixelated;
}
.pixel-greeting .top-note span {
  background-image: linear-gradient(96deg, #157791 0 14%, #2687a7 14% 31%, #3ba1d5 31% 43%, #16788c 43% 58%, #49a991 58% 69%, #2389b4 69% 84%, #236f60 84% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0;
  text-shadow: none;
}
.pixel-greeting .top-note::after {
  display: none;
}
.header-cat {
  position: absolute;
  left: 8px;
  top: calc(100% + 1px);
  bottom: auto;
  z-index: 8;
  width: 108px;
  height: 144px;
  pointer-events: none;
}
.header-cat-body,
.header-cat-tail {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  box-shadow: none;
}
.header-cat-body {
  z-index: 2;
  background-image: url("assets/header-cat-body.webp");
  clip-path: none;
  transform: none;
}
.header-cat-tail {
  z-index: 1;
  background-image: url("assets/header-cat-tail.webp");
  transform-origin: 21% 72%;
  animation: originalPixelTailWag 1.1s steps(5, end) infinite alternate;
  backface-visibility: hidden;
  will-change: transform;
}
.header-cat-tail::after {
  display: none;
}
@keyframes originalPixelTailWag {
  from { transform: rotate(-7deg); }
  to { transform: rotate(9deg); }
}
@media (max-width: 1100px) {
  .pixel-greeting .top-note { padding: 13px 16px 24px; }
}
@media (max-width: 720px) {
  .pixel-greeting .top-note {
    padding: 10px 8px 20px;
    font-size: 14px;
    transform: translateY(1px);
  }
  .header-cat { left: 22px; }
}

/* Pixel speech bubble and corrected original-tail motion */
.pixel-greeting .top-note {
  position: relative;
  padding: 14px 20px 25px;
  background: #f9fefb;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px, 100% calc(100% - 25px), calc(100% - 4px) calc(100% - 25px), calc(100% - 4px) calc(100% - 21px), 60% calc(100% - 21px), 60% calc(100% - 13px), 57% calc(100% - 13px), 57% 100%, 53% 100%, 53% calc(100% - 13px), 50% calc(100% - 13px), 50% calc(100% - 21px), 8px calc(100% - 21px), 8px calc(100% - 25px), 4px calc(100% - 25px), 4px calc(100% - 29px), 0 calc(100% - 29px), 0 8px, 4px 8px, 4px 4px, 8px 4px);
  filter:
    drop-shadow(3px 0 0 #308ac5)
    drop-shadow(-3px 0 0 #308ac5)
    drop-shadow(0 3px 0 #308ac5)
    drop-shadow(0 -3px 0 #308ac5)
    drop-shadow(4px -4px 0 rgba(239, 139, 156, 0.72));
  transform: translateY(3px);
}
.header-cat {
  left: 30px;
}
.header-cat-tail {
  transform-origin: 26% 76%;
  animation: originalPixelTailWag 1.15s steps(5, end) infinite alternate;
  backface-visibility: hidden;
  will-change: transform;
}
@keyframes originalPixelTailWag {
  from { transform: rotate(-4deg); }
  to { transform: rotate(5deg); }
}
@media (max-width: 1100px) {
  .pixel-greeting .top-note { padding: 13px 16px 24px; }
}
@media (max-width: 720px) {
  .pixel-greeting .top-note {
    padding: 10px 8px 20px;
    font-size: 14px;
    transform: translateY(1px);
  }
  .header-cat { left: 22px; }
}

/* Education layout and horizontal awards gallery */
.education-date {
  margin: 0;
  color: #72808a;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
}
.education-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}
.education-type {
  color: #72808a;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.education-degree {
  margin: 0 0 16px;
  color: #3f474c;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
}
.education-detail {
  margin-bottom: 16px;
}
.education-transcript {
  display: block;
}
.course-card {
  display: flex;
  flex-direction: column;
}
.course-view {
  display: block;
  margin-top: auto;
  padding-top: 18px;
  color: #3f7895;
  font-size: 14px;
  font-weight: 800;
}
.award-gallery-shell {
  width: calc(100% + 120px);
  margin-left: -60px;
}
.award-gallery {
  display: flex;
  gap: 28px;
  width: 100%;
  padding: 34px 14px 32px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}
.award-gallery::-webkit-scrollbar {
  display: none;
}
.award-card {
  position: relative;
  flex: 0 0 340px;
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  cursor: pointer;
  scroll-snap-align: start;
}
.award-image {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid #cfd9d8;
  border-radius: 6px;
  background:
    repeating-linear-gradient(0deg, rgba(54,104,110,0.025) 0 1px, transparent 1px 6px),
    linear-gradient(145deg, #fbfdf9, #edf4ef);
  color: #8a9996;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(38,83,91,0.10);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.award-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.award-image::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 3px double rgba(55,119,125,0.22);
  pointer-events: none;
}
.award-card:hover .award-image,
.award-card:focus-visible .award-image {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 18px 34px rgba(38,83,91,0.22);
}
.award-card:hover,
.award-card:focus-visible {
  z-index: 3;
}
.award-caption {
  display: block;
  overflow: hidden;
  color: #59676b;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.award-preview {
  display: grid;
  justify-items: center;
  gap: 18px;
}
.award-image-large {
  width: min(680px, 100%);
  font-size: 22px;
}
.award-preview > p {
  margin: 0;
  color: #4f5d62;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}
@media (max-width: 720px) {
  .education-date { font-size: 14px; }
  .education-degree { font-size: 17px; }
  .award-gallery-shell { width: 100%; margin-left: 0; }
  .award-gallery { gap: 16px; padding: 24px 8px; }
  .award-card { flex-basis: 260px; }
}

/* Keep the original top-bar message without the speech bubble. */
.topbar > .plain-top-note {
  display: block;
  flex: 1 1 auto;
  width: max-content;
  margin: 0;
  padding: 0;
  color: #26789f;
  font-family: "Fusion Pixel", SimSun, "宋体", monospace;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: none;
}
@media (max-width: 1100px) {
  .topbar > .plain-top-note { font-size: 18px; }
}
@media (max-width: 720px) {
  .topbar > .plain-top-note { font-size: 14px; }
}

/* Three-clickable life-photo stack with a pixel border */
.photo-stack-area {
  position: relative;
  width: 450px;
  height: 610px;
}
.life-photo-stack {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.life-photo-stack:focus-visible {
  outline: 3px solid #2e8eb9;
  outline-offset: 6px;
}
.life-photo {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 356px;
  height: 500px;
  transform-origin: center;
  transition: transform 420ms cubic-bezier(.2,.78,.2,1), opacity 300ms ease, filter 300ms ease;
  will-change: transform;
}
.life-photo[data-position="0"] {
  z-index: 3;
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%) translate(0, 22px) rotate(-1deg);
}
.life-photo[data-position="1"] {
  z-index: 2;
  opacity: .94;
  filter: saturate(.94) brightness(.98);
  transform: translate(-50%, -50%) translate(32px, -12px) rotate(4deg) scale(.97);
}
.life-photo[data-position="2"] {
  z-index: 1;
  opacity: .88;
  filter: saturate(.88) brightness(.96);
  transform: translate(-50%, -50%) translate(-34px, -34px) rotate(-5deg) scale(.94);
}
.life-photo-stack:active .life-photo[data-position="0"] {
  transform: translate(-50%, -50%) translate(0, 22px) rotate(-1deg) scale(.985);
}
.life-photo-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 22px;
  background: #f8fcf9;
  box-shadow: 8px 10px 0 rgba(24,75,61,0.13), 0 16px 30px rgba(25,78,96,0.16);
  image-rendering: pixelated;
}
.life-photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(#71c5e6, #71c5e6) left top / 26px 26px no-repeat,
    linear-gradient(#effbf8, #effbf8) right top / 26px 26px no-repeat,
    linear-gradient(#75c85d, #75c85d) left bottom / 26px 26px no-repeat,
    linear-gradient(#69b8dc, #69b8dc) right bottom / 26px 26px no-repeat,
    repeating-linear-gradient(90deg, #164c3d 0 6px, #6dbde0 6px 16px, #164c3d 16px 22px, #f3fbf7 22px 30px, #164c3d 30px 36px, #74c85c 36px 44px) left top / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, #164c3d 0 6px, #74c85c 6px 16px, #164c3d 16px 22px, #f3fbf7 22px 30px, #164c3d 30px 36px, #69b8dc 36px 44px) left bottom / 100% 14px no-repeat,
    repeating-linear-gradient(0deg, #164c3d 0 6px, #69b8dc 6px 16px, #164c3d 16px 22px, #f3fbf7 22px 30px, #164c3d 30px 36px, #74c85c 36px 44px) left top / 14px 100% no-repeat,
    repeating-linear-gradient(0deg, #164c3d 0 6px, #74c85c 6px 16px, #164c3d 16px 22px, #f3fbf7 22px 30px, #164c3d 30px 36px, #69b8dc 36px 44px) right top / 14px 100% no-repeat;
}
.life-photo-placeholder,
.life-photo-frame > img {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 2px solid #286953;
  background: #edf7f8;
  color: #5f8b99;
  font-size: 22px;
  font-weight: 800;
  object-fit: cover;
}
@media (max-width: 1100px) {
  .photo-stack-area { margin-top: 12px; }
}
@media (max-width: 720px) {
  .photo-stack-area { width: 100%; height: 480px; }
  .life-photo { width: 280px; height: 390px; }
  .life-photo[data-position="0"] { transform: translate(-50%, -50%) translate(0, 18px) rotate(-1deg); }
  .life-photo[data-position="1"] { transform: translate(-50%, -50%) translate(22px, -8px) rotate(4deg) scale(.97); }
  .life-photo[data-position="2"] { transform: translate(-50%, -50%) translate(-22px, -25px) rotate(-5deg) scale(.94); }
  .life-photo-frame { padding: 18px; }
  .life-photo-placeholder { font-size: 18px; }
}

/* Use the extracted cat frame at its native 3:4 aspect ratio. */
@media (min-width: 1101px) {
  .page-home { grid-template-columns: minmax(0, 1fr) 520px; }
}
.photo-stack-area {
  width: 520px;
  height: 700px;
}
.life-photo {
  width: 420px;
  height: 560px;
}
.life-photo[data-position="0"] {
  transform: translate(-50%, -50%) translate(0, 25px) rotate(-1deg);
}
.life-photo[data-position="1"] {
  transform: translate(-50%, -50%) translate(40px, -14px) rotate(4deg) scale(.97);
}
.life-photo[data-position="2"] {
  transform: translate(-50%, -50%) translate(-42px, -40px) rotate(-5deg) scale(.94);
}
.life-photo-stack:active .life-photo[data-position="0"] {
  transform: translate(-50%, -50%) translate(0, 25px) rotate(-1deg) scale(.985);
}
.life-photo-frame {
  padding: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(8px 12px 0 rgba(24,75,61,0.11)) drop-shadow(0 18px 24px rgba(25,78,96,0.14));
}
.life-photo-frame::before {
  inset: 0;
  z-index: 2;
  background: url("assets/simple-cat-frame-transparent.webp") center / 100% 100% no-repeat;
}
.life-photo-placeholder,
.life-photo-frame > img {
  position: absolute;
  inset: 10% 11% 9%;
  z-index: 1;
  width: auto;
  height: auto;
  border: 0;
  background: #edf7f8;
}
.life-photo-frame > img {
  right: auto;
  bottom: auto;
  width: 78%;
  height: 81%;
  display: block;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 1100px) {
  .photo-stack-area { width: 520px; max-width: 100%; height: 700px; }
}
@media (max-width: 720px) {
  .photo-stack-area { width: 100%; height: 535px; }
  .life-photo { width: 320px; height: 426.667px; }
  .life-photo[data-position="0"] { transform: translate(-50%, -50%) translate(0, 20px) rotate(-1deg); }
  .life-photo[data-position="1"] { transform: translate(-50%, -50%) translate(24px, -10px) rotate(4deg) scale(.97); }
  .life-photo[data-position="2"] { transform: translate(-50%, -50%) translate(-24px, -28px) rotate(-5deg) scale(.94); }
  .life-photo-stack:active .life-photo[data-position="0"] { transform: translate(-50%, -50%) translate(0, 20px) rotate(-1deg) scale(.985); }
}

/* Keep the desktop home page fully visible without vertical scrolling. */
@media (min-width: 1101px) {
  body:has(.page-home.is-active) {
    overflow-y: hidden;
  }
  body:has(.page-home.is-active) .browser-window {
    height: calc(100vh - 32px);
    min-height: 0;
    margin-top: 16px;
    margin-bottom: 16px;
  }
  body:has(.page-home.is-active) .page-home {
    height: calc(100vh - 124px);
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 540px;
    gap: clamp(24px, 3vw, 48px);
    padding-top: 20px;
    padding-right: clamp(32px, 6vw, 120px);
    padding-bottom: 20px;
    padding-left: clamp(32px, 6vw, 120px);
  }
  body:has(.page-home.is-active) .photo-stack-area {
    width: 540px;
    height: min(650px, calc(100vh - 170px));
    justify-self: end;
    transform: translateX(16px);
  }
  body:has(.page-home.is-active) .life-photo {
    width: min(440px, calc((100vh - 220px) * .75));
    height: auto;
    aspect-ratio: 3 / 4;
  }
}
@media (min-width: 1101px) and (max-width: 1500px) {
  body:has(.page-home.is-active) .page-home {
    grid-template-columns: minmax(0, 1fr) 450px;
    gap: 20px;
    padding-right: 48px;
    padding-left: 48px;
  }
  body:has(.page-home.is-active) .photo-stack-area {
    width: 450px;
    height: min(575px, calc(100vh - 170px));
    transform: translateX(12px);
  }
  body:has(.page-home.is-active) .life-photo {
    width: min(380px, calc((100vh - 220px) * .75));
  }
}

/* A4 transcript viewer: scrolling stays inside the PDF window. */
.modal.transcript-only .modal-panel {
  width: min(840px, 96vw);
  max-height: 94vh;
  overflow: hidden;
  padding: 24px;
}
.modal.transcript-only .modal-panel > .eyebrow {
  margin-bottom: 4px;
}
.modal.transcript-only .modal-panel > h2 {
  margin: 0 48px 8px 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}
.transcript-viewer {
  width: min(680px, calc((78vh - 50px) * 210 / 297), calc(96vw - 48px));
  aspect-ratio: 210 / 297;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--line);
  background: #ececea;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.transcript-viewer img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}
.transcript-carousel {
  display: grid;
  grid-template-columns: 36px auto 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 12px;
}
.transcript-carousel .transcript-viewer {
  justify-self: center;
  overflow: hidden;
}
.transcript-carousel .transcript-viewer[data-format="landscape"] {
  width: min(680px, calc(62vh * 1171 / 814), calc(96vw - 160px));
  aspect-ratio: 1171 / 814;
}
.transcript-carousel .transcript-viewer[data-format="portrait"] {
  width: min(680px, calc(72vh * 210 / 297), calc(96vw - 160px));
  aspect-ratio: 210 / 297;
}
.transcript-slide {
  height: 100%;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.transcript-slide.is-active {
  display: flex;
}
.transcript-carousel .transcript-slide img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
}
.transcript-slide[hidden] {
  display: none;
}
.transcript-arrow {
  width: 36px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.transcript-arrow:hover {
  background: #fff;
  transform: translateY(-1px);
}
@media (max-width: 720px) {
  .modal.transcript-only {
    padding: 10px;
  }
  .modal.transcript-only .modal-panel {
    width: 100%;
    max-height: 96vh;
    padding: 16px;
  }
  .modal.transcript-only .modal-panel > h2 {
    margin-bottom: 10px;
    font-size: 19px;
  }
  .transcript-viewer {
    width: min(calc(100vw - 52px), calc((78vh - 36px) * 210 / 297));
  }
  .transcript-carousel {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 2px;
    margin-top: 8px;
    margin-bottom: 8px;
  }
  .transcript-arrow {
    width: 30px;
    height: 46px;
    font-size: 28px;
  }
}

/* Final generated sleeping-cat wish-bottle frame overrides. */
.research-expanded-photo,
.research-expanded-photo:has(.research-photo-image) {
  width: min(68%, 560px);
  max-width: 68%;
  aspect-ratio: 1;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}
.research-expanded-photo:nth-child(1) { top: -3%; left: 0; }
.research-expanded-photo:nth-child(2) { top: 26%; right: 0; }
.research-expanded-photo:nth-child(3) { left: 2%; bottom: -3%; }
.research-expanded-photo:hover {
  box-shadow: none;
  filter: drop-shadow(12px 14px 0 color-mix(in srgb, var(--frame-dark) 30%, transparent));
}
.research-expanded-photo::after { content: none; }
.research-photo-window {
  position: absolute;
  left: 22.5%;
  top: 33%;
  z-index: 1;
  display: block;
  width: 54.5%;
  height: 52%;
  overflow: hidden;
  border: 0;
  background: #fff;
  box-shadow: none;
}
.research-expanded-photo .research-photo-image {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
}
.research-expanded-photo:nth-child(1) .research-photo-image {
  object-fit: contain;
  background: #fff;
}
.research-expanded-photo.is-placeholder {
  display: block;
  background: transparent;
}
.research-expanded-photo.is-placeholder .research-photo-window {
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--frame-accent) 10%, white) 0 2px, white 2px 22px),
    #fff;
  color: var(--frame-dark);
}
.research-generated-frame {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(8px 10px 0 color-mix(in srgb, var(--frame-dark) 28%, transparent));
  pointer-events: none;
}
.research-expanded-content {
  position: relative;
  display: block;
  align-self: center;
  justify-self: center;
  width: min(43vw, 710px);
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}
.research-content-window {
  position: absolute;
  left: 22.5%;
  top: 32.8%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 54.5%;
  height: 53.5%;
  padding: clamp(14px, 1.3vw, 22px);
  overflow: hidden;
  background: rgba(255,255,255,.96);
}
.research-content-window .research-expanded-award {
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 6px 9px;
  font-size: clamp(13px, .92vw, 17px);
  line-height: 1.3;
}
.research-content-window h2 {
  margin: 0 0 12px;
  font-size: clamp(19px, 1.65vw, 29px);
  line-height: 1.35;
  word-break: break-word;
}
.research-content-window .research-expanded-copy {
  gap: 11px;
  padding: 0 10px 10px 0;
  font-size: clamp(13px, .98vw, 17px);
  line-height: 1.7;
}
.research-content-window .research-expanded-copy p {
  padding-left: 11px;
  border-left-width: 3px;
}

/* ===== Final design polish: roomier wish-bottle layout & larger type ===== */
.research-expanded-layout {
  grid-template-columns: minmax(0, 1fr) minmax(440px, 1.04fr);
  gap: clamp(28px, 2.8vw, 54px);
}
/* Left bottles: shrink slightly and spread to the three corners so they no
   longer pile up on each other. */
.research-expanded-photo,
.research-expanded-photo:has(.research-photo-image) {
  width: min(50%, 420px);
  max-width: 50%;
}
.research-expanded-photo:nth-child(1) { top: 0; left: 0; }
.research-expanded-photo:nth-child(2) { top: 26%; right: 0; }
.research-expanded-photo:nth-child(3) { left: 1%; bottom: 0; }
/* Make every photo fill the frame opening exactly (no letterboxing). */
.research-expanded-photo .research-photo-image,
.research-expanded-photo:nth-child(1) .research-photo-image {
  object-fit: cover;
  background: transparent;
}
/* Right bottle: bigger. */
.research-expanded-content {
  width: min(48vw, 820px);
}
/* Content window: slightly taller, looser padding, larger type. */
.research-content-window {
  left: 22.5%;
  top: 32.8%;
  width: 54.5%;
  height: 53.5%;
  padding: clamp(14px, 1.3vw, 22px);
}
.research-content-window .research-expanded-award {
  margin: 0 0 8px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--frame-soft);
  color: var(--frame-dark);
  font-size: clamp(14.5px, 1.15vw, 20px);
  line-height: 1.3;
}
.research-content-window h2 {
  margin: 0 0 8px;
  font-size: clamp(21px, 1.85vw, 31px);
  line-height: 1.28;
  word-break: break-word;
}
.research-content-window .research-expanded-copy {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  gap: 8px;
  padding: 0 10px 6px 0;
  font-size: clamp(15.5px, 1.2vw, 20px);
  line-height: 1.55;
  color: var(--ink);
}
.research-content-window .research-expanded-copy p {
  margin: 0;
  padding-left: 11px;
  border-left: 3px solid var(--frame-accent);
}
@media (max-width: 900px) {
  .research-expanded-gallery { height: 910px; }
  .research-expanded-photo,
  .research-expanded-photo:has(.research-photo-image) {
    width: min(94%, 430px);
    max-width: 94%;
  }
  .research-expanded-photo:nth-child(1) { top: 0; left: 0; }
  .research-expanded-photo:nth-child(2) { top: 30%; right: 0; }
  .research-expanded-photo:nth-child(3) { left: 1%; bottom: 0; }
  .research-expanded-content {
    width: min(94vw, 620px);
    min-height: 0;
    padding: 0;
  }
  .research-content-window { padding: 10px; }
  .research-content-window h2 { font-size: clamp(15px, 4.5vw, 20px); }
  .research-content-window .research-expanded-copy { font-size: 11px; }
}

/* ============================================================
   重建展开视图基础主样式（此前基础样式块缺失导致布局错乱）
   桌面端：左侧三瓶松散三角散布 · 右侧大瓶 · 大字号 · 图片铺满
   ============================================================ */
body:has(.research-card-viewer) {
  overflow: hidden;
}

.research-card-viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2.2vh, 30px);
  background: rgba(12, 26, 40, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.research-viewer-backdrop {
  position: absolute;
  inset: 0;
}
.research-viewer-close {
  position: absolute;
  top: clamp(10px, 1.8vh, 22px);
  right: clamp(10px, 1.8vw, 22px);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(18, 38, 54, 0.55);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}
.research-viewer-close:hover {
  background: rgba(18, 38, 54, 0.85);
  transform: rotate(90deg);
}

@media (min-width: 901px) {
  .research-expanded-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 2.6vw, 48px);
    width: min(97vw, 1440px);
    height: min(calc(100vh - 48px), 720px);
    padding: clamp(18px, 2.6vh, 34px);
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(170deg, #ffffff 0%, var(--paper) 100%);
    box-shadow: 0 30px 90px rgba(8, 30, 48, 0.45);
  }

  /* 左侧画廊：三瓶松散三角散布，互不重叠 */
  .research-expanded-gallery {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
  }
  .research-expanded-photo,
  .research-expanded-photo:has(.research-photo-image) {
    position: absolute;
    width: min(43%, 380px);
    max-width: 43%;
    aspect-ratio: 1;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    clip-path: none;
  }
  .research-expanded-photo:nth-child(1) { top: 0; left: 0; }
  .research-expanded-photo:nth-child(2) { top: 20%; right: 0; }
  .research-expanded-photo:nth-child(3) { left: 15%; bottom: 0; }
  .research-expanded-photo:hover {
    box-shadow: none;
    filter: drop-shadow(12px 14px 0 color-mix(in srgb, var(--frame-dark) 30%, transparent));
  }
  .research-expanded-photo::after { content: none; }

  /* 图片铺满相框开口（不裁边留白） */
  .research-expanded-photo .research-photo-image,
  .research-expanded-photo:nth-child(1) .research-photo-image {
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: cover;
    background: transparent;
  }

  /* 右侧大瓶：更宽、更大字号 */
  .research-expanded-content {
    position: relative;
    flex: 0 0 auto;
    width: min(52vw, 716px);
    max-width: 52vw;
    aspect-ratio: 1;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    clip-path: none;
  }
  .research-content-window {
    left: 21.5%;
    top: 30%;
    width: 63%;
    height: 63%;
    padding: clamp(14px, 1.3vw, 22px);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
  }
  .research-content-window .research-expanded-award {
    margin: 0 0 8px;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--frame-soft);
    color: var(--frame-dark);
    font-size: clamp(14.5px, 1.15vw, 20px);
    line-height: 1.3;
  }
  .research-content-window h2 {
    margin: 0 0 8px;
    font-size: clamp(21px, 1.85vw, 31px);
    line-height: 1.28;
    word-break: break-word;
  }
  .research-content-window .research-expanded-copy {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    gap: 8px;
    padding: 0 10px 6px 0;
    font-size: clamp(15.5px, 1.2vw, 20px);
    line-height: 1.55;
    color: var(--ink);
  }
  .research-content-window .research-expanded-copy p {
    margin: 0;
    padding-left: 11px;
    border-left: 3px solid var(--frame-accent);
  }
}

/* 移动端：纵向堆叠，可滚动 */
@media (max-width: 900px) {
  .research-card-viewer {
    padding: 10px;
    align-items: start;
    overflow-y: auto;
  }
  .research-expanded-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(96vw, 620px);
    height: auto;
    padding: 18px 14px 30px;
    gap: 16px;
    border-radius: 16px;
    background: linear-gradient(170deg, #ffffff 0%, var(--paper) 100%);
  }
  .research-expanded-gallery {
    position: relative;
    width: 100%;
    height: 910px;
  }
  .research-expanded-photo,
  .research-expanded-photo:has(.research-photo-image) {
    position: absolute;
    width: min(94%, 430px);
    max-width: 94%;
  }
  .research-expanded-photo:nth-child(1) { top: 0; left: 0; }
  .research-expanded-photo:nth-child(2) { top: 30%; right: 0; }
  .research-expanded-photo:nth-child(3) { left: 1%; bottom: 0; }
  .research-expanded-content {
    position: relative;
    width: min(94vw, 620px);
    max-width: 94vw;
    aspect-ratio: 1;
  }
  .research-content-window { padding: 10px; }
  .research-content-window h2 { font-size: clamp(15px, 4.5vw, 20px); }
  .research-content-window .research-expanded-copy { font-size: 11px; }
}

/* ===== 科研首页 · 拼贴卡片列表（重建，避免重叠大块） ===== */
.research-page {
  position: relative;
  min-height: 100%;
  padding: clamp(14px, 3vw, 40px);
}
.case-grid {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  height: min(calc(100vh - 168px), 820px);
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(160deg, #f4f7fa 0%, #e9eef4 100%);
  box-shadow: inset 0 0 0 1px rgba(20, 60, 90, 0.06);
}
.case-card.research-collage-card {
  position: absolute;
  top: var(--card-y);
  left: var(--card-x);
  z-index: var(--card-z, 1);
  display: block;
  width: min(calc((100vh - 178px) / 3.45), 300px);
  aspect-ratio: 1;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transform: rotate(var(--card-r, 0deg));
  transition: transform 200ms cubic-bezier(.2,.8,.2,1), filter 200ms ease;
}
.case-card.research-collage-card:hover {
  transform: rotate(0deg) scale(1.06);
  filter: drop-shadow(8px 10px 0 rgba(20, 60, 90, 0.16));
  z-index: 9;
}
.research-card-face {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 22px rgba(20, 60, 90, 0.16);
}
.research-card-face > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.research-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(16, 38, 56, 0.72) 100%);
}
.research-card-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px 13px;
  text-align: left;
  color: #fff;
}
.research-card-copy strong {
  display: block;
  margin: 0 0 5px;
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.research-card-copy em {
  display: inline-block;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(10px, 0.8vw, 13px);
  font-style: normal;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.research-placeholder-card {
  pointer-events: none;
}
@media (max-width: 900px) {
  .case-grid { min-height: 520px; }
  .case-card.research-collage-card { width: min(56vw, 210px); }
}

/* ===== 展开视图 · 放大对话框与字号（覆盖旧重复块） ===== */
@media (min-width: 901px) {
  /* 右侧大瓶：更宽 */
  .research-expanded-content {
    width: min(45vw, 660px);
    max-width: 45vw;
  }
  /* 对话框：更大开口、更大内边距 */
  .research-content-window {
    left: 20%;
    top: 28%;
    width: 66%;
    height: 66%;
    padding: clamp(18px, 1.6vw, 28px);
    border-radius: 12px;
  }
  .research-content-window .research-expanded-award {
    font-size: clamp(16px, 1.35vw, 22px);
  }
  .research-content-window h2 {
    font-size: clamp(23px, 2vw, 34px);
  }
  .research-content-window .research-expanded-copy {
    gap: 10px;
    padding: 0 12px 8px 0;
    font-size: clamp(17px, 1.4vw, 22px);
    line-height: 1.6;
  }
  /* 左侧三瓶：放大到占满左半边，错落散布，允许轻微重叠 */
  .research-expanded-photo,
  .research-expanded-photo:has(.research-photo-image) {
    width: min(54%, 500px);
    max-width: 54%;
  }
  .research-expanded-photo:nth-child(1) { top: 3%; left: 0; }
  .research-expanded-photo:nth-child(2) { top: 34%; right: 0; }
  .research-expanded-photo:nth-child(3) { left: 12%; bottom: 3%; }
}

/* ===== 2026-08 visual tidy pass ===== */
:root {
  --radius: 12px;
  --line: #d9e1df;
  --ink: #2f3839;
  --muted: #657270;
  --paper: #f7faf6;
  --paper-2: rgba(255, 255, 255, 0.96);
  --button: #2f4f48;
}

body {
  background-position: center bottom;
}

.browser-window {
  width: min(92vw, 1480px);
  min-height: calc(100vh - 72px);
  margin: 36px auto;
  overflow: hidden;
  background: rgba(250, 252, 248, 0.94);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 70px rgba(10, 62, 100, 0.24);
}

.topbar {
  height: 84px;
  padding: 0 clamp(24px, 4vw, 56px);
  gap: 24px;
  background: rgba(252, 253, 250, 0.9);
  backdrop-filter: blur(10px);
}

.topbar > .plain-top-note {
  flex: 0 1 auto;
  max-width: 420px;
  margin: 0;
  color: #2f718e;
  font-size: clamp(14px, 1.12vw, 18px);
  line-height: 1.35;
  font-weight: 800;
  white-space: normal;
}

.nav {
  flex: 1 1 auto;
  gap: 8px;
}

.nav a {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #4d5a59;
  font-size: 14px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav a.is-active,
.nav a:hover {
  background: #edf7f8;
  border-color: #c7dddf;
  color: #1f667d;
}

.page {
  min-height: calc(100vh - 156px);
  padding: clamp(34px, 5vh, 56px) clamp(30px, 6vw, 120px) 52px;
}

.page-heading {
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 700;
}

h3 {
  color: #334143;
}

.page-home {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(32px, 5vw, 80px);
}

.hello-row {
  gap: 14px;
  margin-bottom: 16px;
}

.hello-line {
  font-size: clamp(42px, 4.6vw, 66px);
  color: #263d40;
}

.focus-line {
  font-size: clamp(24px, 2.5vw, 36px);
  color: #295b63;
}

.sensing-line {
  max-width: 740px;
  margin-bottom: 22px;
  color: #596765;
  font-size: clamp(18px, 1.7vw, 25px);
}

.dark-button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  background: #2f4f48;
}

body:has(.page-home.is-active) .browser-window {
  min-height: calc(100vh - 72px);
}

body:has(.page-home.is-active) .page-home {
  padding-top: clamp(32px, 5vh, 56px);
  padding-bottom: 42px;
}

body:has(.page-home.is-active) .photo-stack-area,
.photo-stack-area {
  width: min(420px, 31vw);
  height: min(560px, calc(100vh - 180px));
  min-height: 420px;
  justify-self: end;
  transform: none;
}

body:has(.page-home.is-active) .life-photo,
.life-photo {
  width: min(340px, 26vw);
  height: min(454px, calc((100vh - 230px) * 0.96));
  min-width: 260px;
  min-height: 346px;
}

.plain-grid,
.course-grid,
.proof-board {
  gap: 16px;
}

.soft-card,
.course-card,
.proof-item {
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(32, 73, 83, 0.08);
}

.soft-card {
  padding: 22px;
}

.education-degree {
  font-size: clamp(19px, 1.65vw, 24px);
  white-space: normal;
}

.section-row {
  margin: 34px 0 14px;
}

.course-card {
  min-height: 138px;
  padding: 18px;
}

.course-card h3 {
  font-size: 18px;
}

.award-gallery-shell {
  width: 100%;
  margin-left: 0;
}

.award-gallery {
  gap: 18px;
  padding: 20px 4px 24px;
  scrollbar-width: thin;
}

.award-gallery::-webkit-scrollbar {
  display: block;
  height: 8px;
}

.award-card {
  flex-basis: 260px;
}

.modal-panel {
  border-radius: 12px;
}

.research-page {
  padding: clamp(20px, 3vw, 34px);
}

.case-grid {
  height: calc(100vh - 190px);
  min-height: 480px;
  border-radius: 12px;
  background: rgba(247, 250, 246, 0.92);
}

.case-card.research-collage-card {
  width: clamp(172px, calc((100vh - 210px) / 3.2), 260px);
  border-radius: 10px;
}

.research-card-face {
  border-radius: 10px;
}

.research-card-copy {
  padding: 10px 12px 12px;
}

.research-card-copy strong {
  font-size: clamp(13px, 1vw, 16px);
}

@media (min-width: 901px) {
  .research-card-viewer {
    padding: 18px;
  }

  .research-expanded-layout {
    width: min(94vw, 1320px);
    height: min(calc(100vh - 54px), 690px);
    gap: clamp(18px, 2vw, 34px);
    padding: clamp(16px, 2vh, 24px);
    overflow: visible;
  }

  .research-expanded-gallery {
    flex: 0 1 48%;
    height: 100%;
  }

  .research-expanded-photo,
  .research-expanded-photo:has(.research-photo-image) {
    width: min(45%, 330px);
    max-width: 45%;
  }

  .research-expanded-photo:nth-child(1) { top: 1%; left: 2%; }
  .research-expanded-photo:nth-child(2) { top: 27%; right: 4%; }
  .research-expanded-photo:nth-child(3) { left: 12%; bottom: 1%; }

  .research-expanded-content {
    width: min(43vw, 600px);
    max-width: 43vw;
  }

  .research-content-window {
    left: 21%;
    top: 30%;
    width: 62%;
    height: 62%;
    padding: clamp(12px, 1.1vw, 18px);
  }

  .research-content-window .research-expanded-award {
    font-size: clamp(12px, 0.95vw, 16px);
  }

  .research-content-window h2 {
    font-size: clamp(17px, 1.45vw, 24px);
    line-height: 1.32;
  }

  .research-content-window .research-expanded-copy {
    font-size: clamp(13px, 1.02vw, 16px);
    line-height: 1.58;
  }
}

@media (max-width: 1100px) {
  .browser-window {
    width: calc(100vw - 28px);
    margin: 18px auto;
  }

  .topbar {
    height: auto;
    min-height: 82px;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 18px;
  }

  .topbar > .plain-top-note {
    max-width: none;
  }

  .nav {
    justify-content: flex-start;
  }

  .page-home.is-active,
  .plain-grid.two,
  .plain-grid.three,
  .proof-board {
    grid-template-columns: 1fr;
  }

  body:has(.page-home.is-active) .photo-stack-area,
  .photo-stack-area {
    width: min(420px, 100%);
    height: 520px;
    justify-self: center;
  }

  body:has(.page-home.is-active) .life-photo,
  .life-photo {
    width: 320px;
    height: 426px;
  }
}

@media (max-width: 720px) {
  .browser-window {
    width: calc(100vw - 16px);
    margin: 8px auto 80px;
  }

  .page,
  .page-home {
    padding: 28px 16px 54px;
  }

  .hello-row {
    align-items: flex-start;
    white-space: normal;
  }

  .hello-line {
    font-size: 34px;
  }

  .focus-line {
    width: auto;
    max-width: 100%;
    white-space: normal;
    font-size: 20px;
  }

  .sensing-line {
    font-size: 17px;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .education-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .award-card {
    flex-basis: 230px;
  }

  .case-grid {
    height: auto;
    min-height: 860px;
    overflow: visible;
  }

  .case-card.research-collage-card {
    width: min(44vw, 180px);
  }
}

/* ===== Research and student-work redesign ===== */
body:has(.research-page.is-active) .browser-window,
body:has(.student-work-page.is-active) .browser-window {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:has(.research-page.is-active) .topbar,
body:has(.student-work-page.is-active) .topbar {
  background: rgba(252, 253, 250, 0.9);
}

.research-page,
.student-work-page {
  min-height: calc(100vh - 84px);
  padding: clamp(18px, 3vh, 32px) clamp(22px, 4vw, 56px);
  background: transparent;
}

.research-page .case-grid {
  width: min(100%, 1480px);
  height: calc(100vh - 132px);
  min-height: 610px;
  margin: 0 auto;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.research-page .case-card.research-collage-card {
  width: clamp(230px, 19vw, 330px);
  border-radius: 0;
  filter: drop-shadow(8px 10px 0 rgba(13, 55, 72, 0.12));
}

.research-page .case-card.research-collage-card:hover {
  transform: rotate(0deg) scale(1.055);
  filter: drop-shadow(12px 14px 0 rgba(13, 55, 72, 0.18));
}

.research-card-face {
  display: grid;
  place-items: center;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.research-card-bottle {
  position: absolute;
  left: 22%;
  top: 28%;
  width: 56%;
  height: 56%;
  border-radius: 12px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.1) 0 2px, transparent 2px 18px),
    color-mix(in srgb, var(--frame-background) 72%, white);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--frame-dark) 18%, transparent);
}

.research-card-title {
  position: absolute;
  left: 25%;
  top: 34%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 50%;
  height: 42%;
  color: var(--frame-dark);
  font-family: "Fusion Pixel", "Microsoft YaHei", sans-serif;
  font-size: clamp(18px, 1.45vw, 26px);
  line-height: 1.32;
  font-weight: 900;
  text-align: center;
  text-wrap: balance;
}

.research-card-face .research-generated-frame {
  inset: 3%;
  width: 94%;
  height: 94%;
  object-fit: contain;
  opacity: 0.92;
  pointer-events: none;
}

.research-card-face .research-card-shade,
.research-card-face > img,
.research-card-copy {
  display: none;
}

.research-card-viewer {
  background: transparent;
  backdrop-filter: none;
}

.research-viewer-backdrop {
  background: rgba(19, 91, 132, 0.08);
  backdrop-filter: blur(3px);
}

@media (min-width: 901px) {
  .research-card-viewer {
    align-items: stretch;
    padding: 0;
  }

  .research-expanded-layout {
    width: 100vw;
    height: 100vh;
    padding: 94px clamp(32px, 5vw, 72px) 34px;
    gap: clamp(28px, 4vw, 72px);
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
  }

  .research-expanded-gallery {
    flex: 0 1 46%;
    height: calc(100vh - 142px);
    padding: 6px 12px 6px 0;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-width: thin;
  }

  .research-expanded-photo,
  .research-expanded-photo:has(.research-photo-image) {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(100%, 560px);
    max-width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0 auto 24px;
    overflow: hidden;
    border: 4px solid rgba(25, 53, 69, 0.86);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 8px 10px 0 rgba(25, 53, 69, 0.13);
    scroll-snap-align: start;
  }

  .research-expanded-photo .research-photo-image,
  .research-expanded-photo:nth-child(1) .research-photo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.84);
  }

  .research-expanded-photo.is-placeholder {
    display: grid;
    place-items: center;
    color: var(--frame-dark);
    font-family: "Fusion Pixel", "Microsoft YaHei", sans-serif;
  }

  .research-expanded-content {
    position: relative;
    flex: 0 0 min(40vw, 560px);
    display: grid;
    grid-template-rows: minmax(280px, 44vh) minmax(0, 1fr);
    gap: 16px;
    width: min(40vw, 560px);
    max-width: 560px;
    aspect-ratio: auto;
    animation: researchBottleDock 420ms cubic-bezier(.2,.82,.22,1) both;
  }

  .research-expanded-bottle {
    position: relative;
    width: min(100%, 430px);
    aspect-ratio: 1;
    justify-self: end;
    transform: scale(1.06);
    filter: drop-shadow(10px 12px 0 rgba(13, 55, 72, 0.14));
  }

  .research-expanded-bottle::before {
    content: "";
    position: absolute;
    left: 22%;
    top: 28%;
    width: 56%;
    height: 56%;
    border-radius: 12px;
    background:
      repeating-linear-gradient(0deg, rgba(255,255,255,0.1) 0 2px, transparent 2px 18px),
      color-mix(in srgb, var(--frame-background) 74%, white);
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--frame-dark) 18%, transparent);
  }

  .research-expanded-bottle .research-generated-frame {
    inset: 3%;
    width: 94%;
    height: 94%;
    object-fit: contain;
    opacity: 0.92;
  }

  .research-expanded-bottle .research-expanded-award {
    position: absolute;
    left: 25%;
    top: 35%;
    z-index: 8;
    display: grid;
    place-items: center;
    width: 50%;
    height: 40%;
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--frame-dark);
    font-family: "Fusion Pixel", "Microsoft YaHei", sans-serif;
    font-size: clamp(21px, 1.7vw, 31px);
    line-height: 1.28;
    font-weight: 900;
    text-align: center;
  }

  .research-expanded-content > .research-expanded-copy {
    min-height: 0;
    overflow-y: auto;
    padding: 18px 20px;
    border: 4px solid rgba(25, 53, 69, 0.86);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 8px 10px 0 rgba(25, 53, 69, 0.13);
    color: #26383b;
    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.7;
  }

  .research-expanded-content > .research-expanded-copy p {
    margin: 0 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--frame-accent);
  }
}

@keyframes researchBottleDock {
  from { opacity: 0; transform: translateX(-28px) scale(.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.student-pixel-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  min-height: clamp(280px, 42vh, 430px);
  max-width: 1480px;
  margin: 0 auto;
}

.student-work-tab {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(160px, 24vh, 250px);
  padding: 20px;
  border: 0;
  background: transparent;
  color: #174f65;
  cursor: pointer;
}

.student-work-tab::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 4px solid rgba(25, 53, 69, 0.86);
  background:
    linear-gradient(90deg, transparent 49%, rgba(25, 53, 69, .1) 49% 51%, transparent 51%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.34) 0 2px, transparent 2px 18px),
    rgba(245, 252, 248, 0.72);
  box-shadow: 8px 10px 0 rgba(25, 53, 69, 0.12);
  transform: skew(-2deg);
  transition: transform 180ms ease, background 180ms ease;
}

.student-work-tab:hover::before,
.student-work-tab.is-active::before {
  background:
    linear-gradient(90deg, transparent 49%, rgba(25, 53, 69, .1) 49% 51%, transparent 51%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.38) 0 2px, transparent 2px 18px),
    rgba(237, 247, 248, 0.86);
  transform: skew(0deg) translateY(-4px);
}

.student-work-tab span {
  position: relative;
  z-index: 1;
  font-family: "Fusion Pixel", "Microsoft YaHei", sans-serif;
  font-size: clamp(19px, 1.45vw, 28px);
  line-height: 1.35;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.student-book {
  max-width: 1180px;
  margin: 0 auto;
}

.student-book.is-open {
  margin-top: clamp(12px, 2vh, 24px);
}

.student-book-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(300px, 40vh, 460px);
  border: 5px solid #1b3545;
  border-radius: 10px;
  background:
    linear-gradient(90deg, transparent calc(50% - 2px), rgba(27, 53, 69, 0.42) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)),
    #fffaf0;
  box-shadow: 12px 14px 0 rgba(27, 53, 69, 0.16);
  animation: studentBookOpen 340ms cubic-bezier(.2,.8,.2,1) both;
}

.student-book-page {
  min-width: 0;
  padding: clamp(24px, 3vw, 42px);
}

.student-book-page h3 {
  margin-bottom: 20px;
  color: #1b4c60;
  font-family: "Fusion Pixel", "Microsoft YaHei", sans-serif;
  font-size: clamp(22px, 1.8vw, 32px);
  line-height: 1.28;
}

.student-book-page li {
  color: #314143;
  font-size: clamp(15px, 1.08vw, 18px);
  line-height: 1.72;
}

.student-media-strip {
  display: flex;
  gap: 18px;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}

.student-media-strip figure {
  flex: 0 0 min(78%, 330px);
  margin: 0;
  border: 4px solid #1b3545;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 6px 8px 0 rgba(27, 53, 69, 0.13);
  scroll-snap-align: center;
}

.student-media-strip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.student-public-link {
  display: inline-block;
  margin-top: 14px;
  color: #1b4c60;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.student-book-close {
  position: absolute;
  right: 12px;
  top: 10px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 3px solid #1b3545;
  border-radius: 6px;
  background: #fff;
  color: #1b3545;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

@keyframes studentBookOpen {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 980px) {
  .student-pixel-board {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .student-work-tab {
    min-height: 112px;
  }

  .student-work-tab span {
    white-space: normal;
  }

  .student-book-inner {
    grid-template-columns: 1fr;
    background: #fffaf0;
  }
}

/* ===== Research bottle fit and scale refinement ===== */
.research-page .case-grid {
  width: min(100%, 1560px);
  height: calc(100vh - 112px);
  padding: 0 clamp(18px, 2vw, 34px) 12px;
}

.research-page .case-card.research-collage-card {
  width: clamp(245px, 19vw, 330px);
}

.research-card-bottle {
  left: 9.5%;
  top: 13.5%;
  width: 81%;
  height: 81%;
  border-radius: 22px;
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb, var(--frame-dark) 18%, transparent),
    inset 0 0 18px rgba(255,255,255,.18);
}

.research-card-face .research-generated-frame {
  inset: -1.5% !important;
  width: 103% !important;
  height: 103% !important;
  filter: drop-shadow(8px 10px 0 rgba(17, 56, 72, 0.15));
}

.research-card-face::after {
  content: none;
}

.research-card-title {
  left: 17%;
  top: 28%;
  width: 66%;
  height: 49%;
  font-size: clamp(19px, 1.42vw, 27px);
  line-height: 1.26;
}

@media (max-height: 760px) and (min-width: 901px) {
  .research-page .case-card.research-collage-card {
    width: clamp(220px, 17.5vw, 295px);
  }

  .researchCard-title,
  .research-card-title {
    font-size: clamp(17px, 1.25vw, 23px);
  }
}

/* ===== Current correction: keep student bar on its own page, enlarge fitted research bottles ===== */
.student-work-page:not(.is-active) {
  display: none !important;
}

.student-work-page.is-active {
  display: grid !important;
}

.research-page:not(.is-active) {
  display: none !important;
}

.research-page.is-active {
  display: block !important;
}

.research-page .case-grid {
  width: min(100%, 1640px);
  height: calc(100vh - 104px);
  padding: 0 clamp(8px, 1vw, 18px) 8px;
}

.research-page .case-card.research-collage-card {
  width: clamp(275px, 21vw, 365px);
}

.research-card-bottle {
  left: 6%;
  top: 9%;
  width: 88%;
  height: 86%;
  border-radius: 24px;
}

.research-card-face .research-generated-frame {
  inset: -3% !important;
  width: 106% !important;
  height: 106% !important;
}

.research-card-title {
  left: 15%;
  top: 27%;
  width: 70%;
  height: 50%;
  font-size: clamp(20px, 1.55vw, 30px);
}

@media (min-width: 901px) {
  .research-page .case-card.research-collage-card:nth-child(6),
  .research-page .case-card.research-collage-card:nth-child(7) {
    transform: translateY(-3%) rotate(var(--card-r, 0deg));
  }

  .research-page .case-card.research-collage-card:nth-child(6):hover,
  .research-page .case-card.research-collage-card:nth-child(7):hover {
    transform: translateY(-3%) rotate(0deg) scale(1.045);
  }
}

/* ===== Research bottle final proportion pass ===== */
.research-page .case-grid {
  width: min(100%, 1700px);
  height: calc(100vh - 104px);
  padding: 0 clamp(4px, .8vw, 14px) 4px;
}

.research-page .case-card.research-collage-card {
  width: clamp(310px, 23vw, 420px);
}

.research-card-bottle {
  left: 12.5%;
  top: 23%;
  width: 75%;
  height: 58%;
  border-radius: 18px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.1) 0 2px, transparent 2px 18px),
    color-mix(in srgb, var(--frame-background) 76%, white);
}

.research-card-face .research-generated-frame {
  inset: -1% !important;
  width: 102% !important;
  height: 102% !important;
}

.research-card-title {
  left: 18%;
  top: 30%;
  width: 64%;
  height: 43%;
  font-size: clamp(21px, 1.62vw, 31px);
}

@media (max-height: 820px) and (min-width: 901px) {
  .research-page .case-card.research-collage-card {
    width: clamp(320px, 23vw, 430px);
  }

  .research-card-title {
    font-size: clamp(21px, 1.58vw, 30px);
  }
}

/* ===== Research bottle real fix: remove leaking center plate and scale safely ===== */
.research-page .case-grid {
  width: min(100%, 1720px);
  height: calc(100vh - 104px);
  padding: 0 clamp(12px, 1.5vw, 28px) 18px;
}

.research-page .case-card.research-collage-card {
  width: clamp(320px, 23vw, 430px);
}

.research-card-bottle {
  display: none !important;
}

.research-card-face .research-generated-frame {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.research-card-title {
  left: 17.5%;
  top: 31%;
  width: 65%;
  height: 39%;
  z-index: 14;
  padding: 6px 10px;
  box-sizing: border-box;
  border-radius: 10px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.14) 0 2px, transparent 2px 18px),
    color-mix(in srgb, var(--frame-background) 82%, white);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--frame-dark) 14%, transparent);
  overflow: hidden;
}

@media (min-width: 901px) {
  .research-page .case-card.research-collage-card:nth-child(1) { transform: rotate(var(--card-r, 0deg)) scale(1.04); }
  .research-page .case-card.research-collage-card:nth-child(2) { transform: rotate(var(--card-r, 0deg)) scale(1.04); }
  .research-page .case-card.research-collage-card:nth-child(3) { transform: rotate(var(--card-r, 0deg)) scale(1.04); }
  .research-page .case-card.research-collage-card:nth-child(4) { transform: rotate(var(--card-r, 0deg)) scale(1.04); }
  .research-page .case-card.research-collage-card:nth-child(5) { transform: rotate(var(--card-r, 0deg)) scale(1.04); }
  .research-page .case-card.research-collage-card:nth-child(6) { transform: translateY(-8%) rotate(var(--card-r, 0deg)) scale(1.04); }
  .research-page .case-card.research-collage-card:nth-child(7) { transform: translateY(-8%) rotate(var(--card-r, 0deg)) scale(1.04); }

  .research-page .case-card.research-collage-card:hover {
    transform: rotate(0deg) scale(1.09);
  }

  .research-page .case-card.research-collage-card:nth-child(6):hover,
  .research-page .case-card.research-collage-card:nth-child(7):hover {
    transform: translateY(-8%) rotate(0deg) scale(1.09);
  }
}

/* ===== Research bottle layering fix: plate below frame, text above frame ===== */
.research-page .case-card.research-collage-card {
  width: clamp(340px, 24.5vw, 470px);
}

.research-card-face::before {
  content: "";
  position: absolute;
  left: 13.5%;
  top: 25.5%;
  z-index: 10;
  width: 73%;
  height: 57%;
  border-radius: 14px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.14) 0 2px, transparent 2px 18px),
    color-mix(in srgb, var(--frame-background) 84%, white);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--frame-dark) 12%, transparent);
}

.research-card-face .research-generated-frame {
  z-index: 12 !important;
}

.research-card-title {
  left: 17%;
  top: 31%;
  z-index: 13;
  width: 66%;
  height: 43%;
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
  font-size: clamp(22px, 1.7vw, 33px);
}

@media (max-height: 820px) and (min-width: 901px) {
  .research-page .case-card.research-collage-card {
    width: clamp(315px, 22.5vw, 430px);
  }
}

/* ===== Final plate fill and gallery motion ===== */
.research-card-face::before {
  left: 13%;
  top: 24%;
  width: 74%;
  height: 64%;
  border-radius: 15px;
}

.research-card-title {
  top: 31%;
  height: 46%;
}

@media (min-width: 901px) {
  .research-loop-strip {
    gap: 0;
    animation-duration: 13s;
  }

  .research-expanded-photo,
  .research-expanded-photo:has(.research-photo-image) {
    width: min(92%, 650px);
    margin: 0 auto;
    border-radius: 6px;
    box-shadow: none;
  }

  .research-expanded-photo + .research-expanded-photo {
    margin-top: 0;
  }

  .research-expanded-gallery {
    padding: 0;
  }
}

/* ===== Seamless image strips for research and internship galleries ===== */
@media (min-width: 901px) {
  .research-card-viewer .research-expanded-gallery {
    padding: 0 !important;
  }

  .research-card-viewer .research-loop-strip {
    gap: 0 !important;
    line-height: 0;
    animation-duration: 11s;
  }

  .research-card-viewer .research-expanded-photo,
  .research-card-viewer .research-expanded-photo:has(.research-photo-image) {
    width: min(88%, 620px);
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    line-height: 0;
  }

  .research-card-viewer .research-expanded-photo .research-photo-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

.work-gallery-panel.image-lightbox-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0;
  width: min(94vw, 1280px);
  max-height: 92vh;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.work-gallery-panel .image-gallery-item {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
}

.work-gallery-panel .image-lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
}

@media (max-width: 800px) {
  .work-gallery-panel.image-lightbox-panel {
    grid-template-columns: 1fr;
  }
}

/* ===== Seamless two-column mosaic photo wall ===== */
@media (min-width: 901px) {
  .research-card-viewer .research-expanded-gallery {
    width: min(46vw, 720px);
    overflow: hidden;
  }

  .research-card-viewer .research-loop-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: 82px;
    gap: 0 !important;
    align-items: stretch;
    animation-duration: 12s;
  }

  .research-card-viewer .research-expanded-photo,
  .research-card-viewer .research-expanded-photo:has(.research-photo-image) {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    overflow: hidden;
  }

  .research-card-viewer .research-expanded-photo .research-photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .research-card-viewer .mosaic-tile-0 { grid-row: span 3; }
  .research-card-viewer .mosaic-tile-1 { grid-row: span 2; }
  .research-card-viewer .mosaic-tile-2 { grid-row: span 4; }
  .research-card-viewer .mosaic-tile-3 { grid-row: span 2; }
  .research-card-viewer .mosaic-tile-4 { grid-row: span 3; }
  .research-card-viewer .mosaic-tile-5 { grid-row: span 2; }
}

.work-gallery-panel.image-lightbox-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 130px;
  gap: 0 !important;
  width: min(92vw, 1040px);
  padding: 0 !important;
}

.work-gallery-panel .image-gallery-item {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.work-gallery-panel .image-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.work-gallery-panel .mosaic-tile-0 { grid-row: span 3; }
.work-gallery-panel .mosaic-tile-1 { grid-row: span 2; }
.work-gallery-panel .mosaic-tile-2 { grid-row: span 4; }
.work-gallery-panel .mosaic-tile-3 { grid-row: span 2; }
.work-gallery-panel .mosaic-tile-4 { grid-row: span 3; }
.work-gallery-panel .mosaic-tile-5 { grid-row: span 2; }

/* ===== Follow-up polish: cleaner frames, larger photos, qzone layout ===== */
.emoji-slot {
  overflow: visible;
}

.emoji-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  clip-path: inset(8% 8% 12% 8%);
  filter: drop-shadow(0 4px 0 rgba(23, 72, 78, 0.12));
}

@media (min-width: 1101px) {
  body:has(.page-home.is-active) .photo-stack-area,
  .photo-stack-area {
    width: 520px;
    height: min(700px, calc(100vh - 132px));
  }

  body:has(.page-home.is-active) .life-photo,
  .life-photo {
    width: min(420px, calc((100vh - 170px) * .75));
    height: min(560px, calc(100vh - 170px));
  }
}

.research-page .case-card.research-collage-card {
  width: clamp(250px, 21vw, 360px);
}

.research-card-face {
  overflow: visible !important;
}

.research-card-bottle {
  left: 19%;
  top: 24%;
  width: 62%;
  height: 62%;
  border: 2px solid color-mix(in srgb, var(--frame-dark) 24%, transparent);
  border-radius: 16px;
}

.research-card-title {
  left: 22%;
  top: 31%;
  width: 56%;
  height: 48%;
  font-size: clamp(20px, 1.62vw, 29px);
}

.research-card-face .research-generated-frame {
  inset: -8% !important;
  z-index: 7 !important;
  width: 116% !important;
  height: 116% !important;
  opacity: 1 !important;
  object-fit: contain;
  filter: drop-shadow(6px 8px 0 rgba(19, 57, 72, 0.12));
}

.research-card-face::after {
  content: "";
  position: absolute;
  inset: 7%;
  z-index: 8;
  border: 3px solid color-mix(in srgb, var(--frame-dark) 34%, transparent);
  border-radius: 18px;
  pointer-events: none;
  opacity: .45;
}

@media (min-width: 901px) {
  .research-expanded-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(500px, 50vw);
    width: 100vw;
    height: 100vh;
    padding: 94px clamp(28px, 4vw, 62px) 34px;
    gap: clamp(24px, 3vw, 52px);
  }

  .research-expanded-gallery {
    position: relative;
    flex: none;
    width: 100%;
    height: calc(100vh - 128px);
    padding: 0;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  }

  .research-expanded-gallery::-webkit-scrollbar {
    display: none;
  }

  .research-loop-strip {
    display: grid;
    gap: 22px;
    animation: researchAutoScroll 22s linear infinite;
  }

  .research-expanded-gallery:hover .research-loop-strip {
    animation-play-state: paused;
  }

  .research-expanded-photo,
  .research-expanded-photo:has(.research-photo-image) {
    width: min(100%, 760px);
    aspect-ratio: 4 / 3;
    margin: 0 auto;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 10px 24px rgba(18, 62, 79, 0.16);
  }

  .research-expanded-photo .research-photo-image,
  .research-expanded-photo:nth-child(1) .research-photo-image {
    object-fit: contain;
    background: transparent;
  }

  .research-expanded-content {
    position: relative;
    flex: none;
    display: block;
    width: 100%;
    max-width: none;
    height: calc(100vh - 128px);
    aspect-ratio: auto;
    animation: researchBottleDock 360ms cubic-bezier(.2,.82,.22,1) both;
  }

  .research-expanded-bottle {
    display: none !important;
  }

  .research-expanded-content > .research-expanded-copy {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    padding: clamp(28px, 3vw, 48px);
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0);
    box-shadow: none;
    color: #20383d;
    font-size: clamp(21px, 1.55vw, 30px);
    line-height: 1.72;
  }

  .research-expanded-content > .research-expanded-copy p {
    margin: 0 0 24px;
    padding: 20px 0 20px 24px;
    border-left: 6px solid var(--frame-accent);
    background: rgba(255, 255, 255, 0.54);
    backdrop-filter: blur(3px);
  }
}

@keyframes researchAutoScroll {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-50% - 11px)); }
}

.student-work-page {
  display: grid;
  align-content: end;
  gap: 22px;
  padding-bottom: clamp(34px, 6vh, 70px);
}

.student-pixel-board {
  align-self: end;
  min-height: 0;
  width: min(94vw, 1560px);
  padding: 22px;
  background: rgba(255, 255, 255, 0);
}

.student-work-tab {
  min-height: clamp(92px, 15vh, 138px);
  padding: 12px;
}

.student-work-tab::before {
  inset: 0;
  border-width: 4px;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(2px);
}

.student-work-tab span {
  font-size: clamp(18px, 1.35vw, 25px);
}

.student-book {
  width: min(92vw, 1380px);
  max-width: none;
}

.student-book.is-open {
  margin-top: 0;
}

.student-qzone {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: calc(100vh - 160px);
  padding: 22px;
  background: rgba(12, 24, 28, 0.76);
  color: #dfecef;
  box-shadow: 0 20px 54px rgba(0, 0, 0, .22);
  animation: studentBookOpen 320ms cubic-bezier(.2,.8,.2,1) both;
}

.student-qzone-head {
  display: flex;
  align-items: end;
  gap: 18px;
  min-height: 150px;
  padding: 24px 28px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.12), transparent 62%),
    url("assets/pixel-background.webp") center 36% / cover;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.student-avatar {
  width: 116px;
  height: 116px;
  border: 4px solid #fff;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,.88);
  box-shadow: 6px 7px 0 rgba(0,0,0,.22);
}

.student-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(8% 8% 12% 8%);
}

.student-qzone-head h3 {
  margin: 0 0 8px;
  color: #fff;
  font-family: "Fusion Pixel", "Microsoft YaHei", sans-serif;
  font-size: clamp(28px, 2.2vw, 42px);
}

.student-qzone-head p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(15px, 1.1vw, 19px);
}

.student-qzone-layout {
  display: grid;
  grid-template-columns: minmax(280px, 34%) minmax(0, 1fr);
  gap: 28px;
}

.student-qzone-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.student-qzone-side section,
.student-qzone-feed {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
}

.student-qzone-side section {
  padding: 18px 20px;
}

.student-qzone-side strong {
  display: block;
  margin-bottom: 12px;
  color: #d8eef4;
  font-family: "Fusion Pixel", "Microsoft YaHei", sans-serif;
  font-size: 22px;
}

.student-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.student-profile-tags span {
  padding: 6px 9px;
  background: rgba(255,255,255,.12);
  color: #edf8fa;
}

.student-qzone-side li {
  color: rgba(244,250,251,.86);
  line-height: 1.68;
}

.student-qzone-feed {
  padding: 22px;
}

.student-mood {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(18px, 1.3vw, 24px);
}

.student-qzone .student-media-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  height: auto;
  overflow: visible;
}

.student-qzone .student-media-strip figure {
  min-height: 240px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  box-shadow: none;
}

.student-qzone .student-media-strip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(255,255,255,.08);
}

.student-qzone .student-media-strip .is-placeholder {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.72);
  font-family: "Fusion Pixel", "Microsoft YaHei", sans-serif;
}

.student-qzone .student-book-close {
  border-color: rgba(255,255,255,.5);
  background: rgba(0,0,0,.34);
  color: #fff;
}

@media (max-width: 980px) {
  .student-work-page {
    align-content: start;
  }

  .student-qzone-layout {
    grid-template-columns: 1fr;
  }

  .student-qzone .student-media-strip {
    grid-template-columns: 1fr;
  }
}

/* ===== Final correction pass: visible bottle frames, separate pages, solid panels ===== */
body:has(.research-page.is-active),
body:has(.student-work-page.is-active) {
  overflow: hidden;
}

body:has(.research-page.is-active) .browser-window,
body:has(.student-work-page.is-active) .browser-window {
  height: 100vh;
  overflow: hidden;
}

.research-page,
.research-page.is-active,
.student-work-page,
.student-work-page.is-active {
  height: calc(100vh - 84px);
  min-height: 0;
  overflow: hidden;
}

.research-page .case-grid {
  height: calc(100vh - 116px);
  min-height: 0;
  overflow: hidden;
}

.research-card-face .research-generated-frame,
.research-expanded-bottle .research-generated-frame {
  display: block !important;
  visibility: visible !important;
}

.research-card-face > img.research-generated-frame {
  display: block !important;
}

.research-card-face .research-generated-frame {
  inset: -18% !important;
  width: 136% !important;
  height: 136% !important;
  opacity: 1 !important;
  z-index: 12 !important;
  filter: drop-shadow(8px 10px 0 rgba(17, 56, 72, 0.16));
}

.research-card-face::after {
  z-index: 11;
}

.research-card-title {
  z-index: 14;
}

.research-card-bottle {
  z-index: 10;
}

@media (min-width: 901px) {
  .research-expanded-content > .research-expanded-copy p {
    background: color-mix(in srgb, var(--frame-soft) 84%, white);
    color: var(--frame-dark);
    border-left-color: var(--frame-accent);
    backdrop-filter: none;
  }
}

.student-work-page {
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  padding: 0 clamp(22px, 4vw, 56px) 34px;
}

.student-pixel-board {
  grid-template-columns: 1fr;
  width: min(92vw, 1580px);
  min-height: clamp(118px, 16vh, 172px);
  margin-top: clamp(22px, 4vh, 42px);
  padding: 0;
}

.student-work-tab {
  width: 100%;
  min-height: clamp(112px, 15vh, 160px);
}

.student-work-tab:not(:first-child) {
  display: none;
}

.student-work-tab::before {
  border-color: #174f65;
  background: #dff4fa;
  box-shadow: 10px 12px 0 rgba(23, 79, 101, .22);
  transform: none;
}

.student-work-tab:hover::before,
.student-work-tab.is-active::before {
  background: #d3eef5;
  transform: translateY(-2px);
}

.student-work-tab span {
  color: #174f65;
  font-size: clamp(26px, 2.2vw, 42px);
}

.student-book {
  align-self: start;
}

.student-qzone {
  min-height: calc(100vh - 310px);
  max-height: calc(100vh - 230px);
  overflow: auto;
}

.student-qzone-head {
  min-height: 132px;
  background:
    linear-gradient(90deg, rgba(223,244,250,.94), rgba(211,238,245,.72)),
    url("assets/pixel-background.webp") center 36% / cover;
}

.student-qzone-head h3 {
  color: #174f65;
  text-shadow: none;
}

.student-qzone-head p {
  color: #2f697b;
  font-weight: 800;
}

/* ===== Final layout fit: research bottles and student secondary nav ===== */
.research-page .case-grid {
  width: min(100%, 1440px);
  height: calc(100vh - 120px);
  padding: 0 clamp(24px, 3vw, 54px) 28px;
  box-sizing: border-box;
}

.research-page .case-card.research-collage-card {
  width: clamp(200px, 16vw, 270px);
}

.research-card-bottle {
  left: 14%;
  top: 18%;
  width: 72%;
  height: 72%;
  border-radius: 18px;
}

.research-card-face .research-generated-frame {
  inset: -4% !important;
  width: 108% !important;
  height: 108% !important;
  object-fit: contain;
}

.research-card-face::after {
  inset: 12%;
  border-width: 2px;
  opacity: .28;
}

.research-card-title {
  left: 21%;
  top: 30%;
  width: 58%;
  height: 46%;
  font-size: clamp(16px, 1.22vw, 22px);
}

@media (min-width: 901px) {
  .research-expanded-layout {
    grid-template-columns: minmax(0, 49%) minmax(500px, 48%);
    gap: clamp(26px, 3vw, 58px);
  }

  .research-expanded-content > .research-expanded-copy {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: clamp(28px, 3vw, 46px);
  }

  .research-expanded-content > .research-expanded-copy p {
    margin: 0;
    padding: clamp(18px, 2vw, 30px) clamp(22px, 2.6vw, 38px);
    border-left: 0;
    border-top: 8px solid var(--frame-accent);
    border-radius: 12px;
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--frame-soft) 74%, white), color-mix(in srgb, var(--frame-soft) 90%, white));
    color: color-mix(in srgb, var(--frame-dark) 86%, #17363d);
    box-shadow: 8px 10px 0 color-mix(in srgb, var(--frame-dark) 16%, transparent);
    font-size: clamp(20px, 1.45vw, 28px);
    line-height: 1.65;
  }
}

.student-work-page {
  grid-template-rows: auto minmax(0, 1fr);
  padding: 0 clamp(26px, 4vw, 64px) 34px;
}

.student-subnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(92vw, 1480px);
  height: 78px;
  margin: 18px auto 0;
  padding: 0 14px;
  box-sizing: border-box;
  background: #dff4fa;
  border: 1px solid #c6dfe6;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(23, 79, 101, .12);
}

.student-subnav .student-work-tab {
  display: grid !important;
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  height: 48px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #174f65;
}

.student-subnav .student-work-tab::before {
  content: none;
}

.student-subnav .student-work-tab:hover,
.student-subnav .student-work-tab.is-active {
  background: #edf8fb;
  box-shadow: inset 0 0 0 1px #bfdde5;
}

.student-subnav .student-work-tab span {
  color: #174f65;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: clamp(13px, .95vw, 16px);
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-book {
  width: min(92vw, 1480px);
}

.student-qzone {
  max-height: calc(100vh - 198px);
  min-height: calc(100vh - 220px);
}

@media (max-width: 980px) {
  .student-subnav {
    height: auto;
    min-height: 78px;
    flex-direction: column;
    padding: 12px;
  }

  .student-subnav .student-work-tab {
    width: 100%;
  }
}

/* ===== Research detail page: masonry gallery + numbered report cards ===== */
.research-card-viewer .research-expanded-layout {
  isolation: isolate;
}

@media (min-width: 901px) {
  .research-card-viewer {
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(13, 40, 55, .34);
  }

  .research-card-viewer .research-expanded-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 45%) minmax(0, 55%) !important;
    gap: clamp(24px, 3vw, 46px) !important;
    width: min(94vw, 1500px) !important;
    height: min(calc(100vh - 64px), 820px) !important;
    margin: 0 !important;
    padding: clamp(22px, 2.2vw, 34px) !important;
    box-sizing: border-box;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 18px;
    background:
      linear-gradient(135deg, rgba(255,255,255,.88), rgba(236,248,244,.76)),
      color-mix(in srgb, var(--frame-soft) 30%, transparent);
    box-shadow: 0 30px 90px rgba(7, 31, 46, .34);
    backdrop-filter: blur(8px);
  }

  .research-card-viewer .research-expanded-gallery {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 4px 8px 4px 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-radius: 12px;
    mask-image: none !important;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--frame-accent) 42%, #9fb8bf) transparent;
  }

  .research-card-viewer .research-expanded-gallery::-webkit-scrollbar {
    width: 7px;
  }

  .research-card-viewer .research-expanded-gallery::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: color-mix(in srgb, var(--frame-accent) 42%, #9fb8bf);
  }

  .research-card-viewer .research-loop-strip,
  .research-card-viewer .research-loop-strip.research-masonry {
    display: block !important;
    columns: 3 130px;
    column-gap: 12px !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    transform: none !important;
    animation: none !important;
    line-height: 0;
  }

  .research-card-viewer .research-expanded-gallery:hover .research-loop-strip {
    animation-play-state: initial !important;
  }

  .research-card-viewer .research-expanded-photo,
  .research-card-viewer .research-expanded-photo:has(.research-photo-image) {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    break-inside: avoid;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, .82) !important;
    box-shadow: 0 8px 22px rgba(18, 64, 79, .14) !important;
    transform: translateZ(0) !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  }

  .research-card-viewer .research-expanded-photo:hover {
    transform: scale(1.018) translateZ(0) !important;
    box-shadow: 0 14px 30px rgba(18, 64, 79, .20) !important;
    filter: saturate(1.03);
    z-index: 3;
  }

  .research-card-viewer .research-expanded-photo::before,
  .research-card-viewer .research-expanded-photo::after {
    content: none !important;
  }

  .research-card-viewer .research-expanded-photo .research-photo-image,
  .research-card-viewer .research-expanded-photo:nth-child(1) .research-photo-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 10px !important;
    background: #fff;
  }

  .research-card-viewer .research-expanded-content {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .research-card-viewer .research-expanded-content::before,
  .research-card-viewer .research-expanded-content::after,
  .research-card-viewer .research-expanded-bottle {
    content: none !important;
    display: none !important;
  }

  .research-card-viewer .research-expanded-content > .research-expanded-copy.research-info-list {
    position: relative !important;
    display: grid !important;
    align-content: start !important;
    gap: 14px !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 4px 8px 4px 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--frame-accent) 42%, #9fb8bf) transparent;
  }

  .research-card-viewer .research-info-card {
    display: grid;
    grid-template-columns: clamp(58px, 5vw, 78px) minmax(0, 1fr);
    gap: clamp(14px, 1.6vw, 20px);
    align-items: start;
    padding: clamp(16px, 1.8vw, 22px) clamp(18px, 2vw, 26px);
    border: 1px solid color-mix(in srgb, var(--frame-accent) 18%, #fff);
    border-left: 8px solid var(--frame-accent);
    border-radius: 14px;
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--frame-soft) 78%, #fff), color-mix(in srgb, var(--frame-soft) 92%, #fff));
    box-shadow: 0 10px 24px rgba(17, 59, 74, .13);
  }

  .research-card-viewer .research-info-number {
    display: block;
    color: var(--frame-accent);
    font-family: "Fusion Pixel", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: clamp(28px, 2.4vw, 40px);
    font-weight: 900;
    line-height: .95;
    letter-spacing: 0;
  }

  .research-card-viewer .research-info-text h3 {
    margin: 0 0 8px;
    color: var(--frame-dark);
    font-size: clamp(18px, 1.35vw, 23px);
    font-weight: 900;
    line-height: 1.25;
  }

  .research-card-viewer .research-info-text p,
  .research-card-viewer .research-expanded-content > .research-expanded-copy p {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #253d40 !important;
    font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: clamp(15px, 1vw, 17px) !important;
    font-weight: 600;
    line-height: 1.72 !important;
  }
}

@media (max-width: 900px) {
  .research-card-viewer .research-expanded-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: min(94vw, 760px) !important;
    height: min(88vh, 900px) !important;
    gap: 18px !important;
    padding: 18px !important;
    overflow-y: auto !important;
    border-radius: 16px;
    background: rgba(250, 253, 252, .9);
  }

  .research-card-viewer .research-loop-strip,
  .research-card-viewer .research-loop-strip.research-masonry {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
    animation: none !important;
    transform: none !important;
  }

  .research-card-viewer .research-expanded-photo,
  .research-card-viewer .research-expanded-photo:has(.research-photo-image) {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  .research-card-viewer .research-expanded-photo .research-photo-image {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .research-card-viewer .research-info-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border-left: 6px solid var(--frame-accent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--frame-soft) 86%, white);
    box-shadow: 0 8px 18px rgba(17, 59, 74, .12);
  }

  .research-card-viewer .research-info-number {
    color: var(--frame-accent);
    font-family: "Fusion Pixel", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
  }

  .research-card-viewer .research-info-text h3 {
    margin: 0 0 6px;
    color: var(--frame-dark);
    font-size: 18px;
  }

  .research-card-viewer .research-info-text p {
    margin: 0 !important;
    color: #253d40 !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
  }
}

/* ===== Research case-study redesign: portfolio-style masonry + editorial notes ===== */
@media (min-width: 901px) {
  .research-card-viewer {
    background: rgba(11, 30, 38, .22);
  }

  .research-card-viewer .research-expanded-layout {
    grid-template-columns: minmax(0, 45%) minmax(0, 55%) !important;
    gap: clamp(40px, 4.8vw, 76px) !important;
    width: min(92vw, 1480px) !important;
    height: min(calc(100vh - 76px), 840px) !important;
    padding: clamp(30px, 3.4vw, 54px) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(250, 253, 248, .78) !important;
    box-shadow: none !important;
    backdrop-filter: blur(5px);
  }

  .research-card-viewer .research-expanded-gallery {
    padding: 0 8px 0 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .research-gallery-head,
  .research-detail-head {
    margin: 0 0 clamp(18px, 2vw, 28px);
  }

  .research-gallery-head h2,
  .research-detail-head h2 {
    margin: 0;
    color: #173b40;
    font-family: "Fusion Pixel", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: clamp(25px, 2vw, 36px);
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: 0;
  }

  .research-gallery-head span,
  .research-detail-head p {
    display: block;
    margin: 4px 0 0;
    color: rgba(23, 59, 64, .58);
    font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: clamp(12px, .82vw, 14px);
    font-weight: 700;
    letter-spacing: 0;
  }

  .research-card-viewer .research-loop-strip,
  .research-card-viewer .research-loop-strip.research-masonry {
    columns: 3 122px;
    column-gap: clamp(12px, 1.2vw, 18px) !important;
    padding-right: clamp(8px, 1vw, 16px) !important;
    line-height: 0;
  }

  .research-card-viewer .research-expanded-photo,
  .research-card-viewer .research-expanded-photo:has(.research-photo-image) {
    margin: 0 0 clamp(12px, 1.2vw, 18px) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, .54) !important;
    box-shadow: 0 8px 22px rgba(18, 55, 62, .10) !important;
    transform: translateZ(0) !important;
  }

  .research-card-viewer .research-expanded-photo:hover {
    transform: translateY(-3px) scale(1.018) translateZ(0) !important;
    box-shadow: 0 15px 30px rgba(18, 55, 62, .13) !important;
  }

  .research-card-viewer .research-expanded-photo .research-photo-image,
  .research-card-viewer .research-expanded-photo:nth-child(1) .research-photo-image {
    border-radius: 14px !important;
    object-fit: cover !important;
    transition: transform .7s ease;
  }

  .research-card-viewer .research-expanded-photo:hover .research-photo-image {
    transform: scale(1.045);
  }

  .research-card-viewer .research-expanded-content {
    padding: clamp(4px, .7vw, 10px) 0 0 !important;
  }

  .research-card-viewer .research-expanded-content > .research-expanded-copy.research-info-list {
    display: block !important;
    height: calc(100% - 88px) !important;
    padding: 0 10px 0 0 !important;
    overflow-y: auto !important;
  }

  .research-card-viewer .research-info-card {
    position: relative;
    display: grid !important;
    grid-template-columns: clamp(72px, 6vw, 104px) minmax(0, 1fr);
    gap: clamp(20px, 2.2vw, 34px);
    padding: clamp(18px, 2vw, 28px) 0 clamp(18px, 2vw, 28px);
    border: 0 !important;
    border-radius: 0 !important;
    border-top: 1px solid rgba(23, 59, 64, .18) !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .research-card-viewer .research-info-card:first-child {
    border-top-color: rgba(23, 59, 64, .28) !important;
  }

  .research-card-viewer .research-info-number {
    color: color-mix(in srgb, var(--frame-accent) 26%, #e4ece9);
    font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: clamp(42px, 4.6vw, 76px);
    font-weight: 800;
    line-height: .82;
  }

  .research-card-viewer .research-info-text h3 {
    margin: 0 0 10px;
    color: #173b40;
    font-family: "Fusion Pixel", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: clamp(20px, 1.55vw, 28px);
    font-weight: 900;
    line-height: 1.24;
  }

  .research-card-viewer .research-info-text p,
  .research-card-viewer .research-expanded-content > .research-expanded-copy p {
    max-width: 34em;
    color: rgba(24, 49, 51, .78) !important;
    font-size: clamp(15px, 1.02vw, 17px) !important;
    font-weight: 500;
    line-height: 1.72 !important;
  }
}

@media (max-width: 900px) {
  .research-card-viewer .research-gallery-head,
  .research-card-viewer .research-detail-head {
    margin: 0 0 14px;
  }

  .research-card-viewer .research-gallery-head h2,
  .research-card-viewer .research-detail-head h2 {
    margin: 0;
    color: #173b40;
    font-size: 22px;
  }

  .research-card-viewer .research-gallery-head span,
  .research-card-viewer .research-detail-head p {
    margin: 4px 0 0;
    color: rgba(23, 59, 64, .58);
    font-size: 12px;
  }

  .research-card-viewer .research-loop-strip,
  .research-card-viewer .research-loop-strip.research-masonry {
    display: block !important;
    columns: 2 140px;
    column-gap: 10px !important;
  }

  .research-card-viewer .research-expanded-photo,
  .research-card-viewer .research-expanded-photo:has(.research-photo-image) {
    display: block !important;
    break-inside: avoid;
    margin: 0 0 10px !important;
    overflow: hidden !important;
    border-radius: 12px !important;
  }

  .research-card-viewer .research-info-card {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 16px 0;
    border: 0 !important;
    border-top: 1px solid rgba(23, 59, 64, .18) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

/* ===== Algorithmic masonry: shortest-column layout like the reference video ===== */
.research-card-viewer .research-loop-strip.research-masonry {
  columns: auto !important;
  column-gap: 0 !important;
}

.research-card-viewer .research-masonry {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 18px) !important;
  align-items: start;
}

.research-card-viewer .research-masonry-column {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.2vw, 18px);
  min-width: 0;
}

.research-card-viewer .research-masonry-column .research-expanded-photo,
.research-card-viewer .research-masonry-column .research-expanded-photo:has(.research-photo-image) {
  margin: 0 !important;
  break-inside: avoid;
}

.research-card-viewer .research-masonry-column .research-photo-image {
  display: block;
  width: 100%;
  height: auto !important;
}

@media (max-width: 900px) {
  .research-card-viewer .research-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
  }

  .research-card-viewer .research-masonry-column {
    gap: 10px;
  }
}

/* ===== Requested precision fixes: speech bubble, research archive grid, internship gallery ===== */
.cat-corner .speech-bubble,
.speech-bubble {
  position: absolute;
  border: 4px solid #101010;
  border-radius: 0;
  background: #fff;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .16);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), 62% calc(100% - 18px), 62% 100%, 48% calc(100% - 18px), 0 calc(100% - 18px));
  padding: 12px 16px 28px;
}

.cat-corner .speech-bubble::after,
.speech-bubble::after {
  content: none !important;
}

.cat-corner .pixel-cat {
  clip-path: inset(0 0 13px 0);
  transform: translateY(13px);
}

.internship-photo-link {
  font-size: clamp(14px, 1.12vw, 18px) !important;
}

.internship-detail li::before {
  top: 13px;
  font-size: clamp(17px, 1.02vw, 22px);
}

.work-gallery-panel.image-lightbox-panel {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  gap: 14px !important;
  width: min(92vw, 1180px);
  padding: 18px !important;
  overflow: auto;
  background: rgba(246, 239, 224, .96);
}

.work-gallery-panel .image-gallery-item {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(25, 52, 58, .14);
}

.work-gallery-panel .image-gallery-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 12px;
}

body:has(.research-page.is-active),
body:has(.research-page.is-active) .browser-window,
body:has(.research-page.is-active) .page-shell,
.research-page,
.research-page.is-active {
  background: #f6efe0 !important;
  background-image: none !important;
}

body:has(.research-page.is-active) .topbar {
  background: rgba(246, 239, 224, .96) !important;
}

.research-page .case-grid {
  background: #f6efe0 !important;
  background-image: none !important;
}

.research-card-face::before,
.research-card-face::after {
  opacity: 0 !important;
  content: none !important;
}

.research-card-bottle {
  left: 12% !important;
  top: 13% !important;
  width: 76% !important;
  height: 77% !important;
  border-radius: 18px !important;
  background: var(--frame-background) !important;
  box-shadow: none !important;
}

.research-card-face .research-generated-frame {
  z-index: 14 !important;
}

.research-card-title {
  z-index: 13 !important;
}

@media (min-width: 901px) {
  .research-card-viewer {
    background: rgba(246, 239, 224, .92) !important;
  }

  .research-card-viewer .research-expanded-layout {
    background: rgba(246, 239, 224, .90) !important;
    backdrop-filter: none !important;
  }

  .research-card-viewer .research-expanded-gallery {
    padding: 0 !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
  }

  .research-card-viewer .research-expanded-gallery::-webkit-scrollbar {
    display: none !important;
  }

  .research-card-viewer .research-loop-strip,
  .research-card-viewer .research-grid-gallery,
  .research-card-viewer .research-loop-strip.research-grid-gallery {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 14px !important;
    columns: auto !important;
    column-gap: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    align-items: start !important;
    animation: none !important;
    transform: none !important;
  }

  .research-card-viewer .research-expanded-photo,
  .research-card-viewer .research-expanded-photo:has(.research-photo-image) {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: 0 10px 24px rgba(25, 52, 58, .14) !important;
  }

  .research-card-viewer .research-expanded-photo .research-photo-image,
  .research-card-viewer .research-expanded-photo:nth-child(1) .research-photo-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 12px !important;
    background: transparent !important;
  }

  .research-card-viewer .research-expanded-photo:hover,
  .research-card-viewer .research-expanded-photo:hover .research-photo-image {
    transform: none !important;
  }

  .research-card-viewer .research-info-number {
    color: color-mix(in srgb, var(--frame-accent) 58%, #9ea9a5) !important;
  }

  .research-card-viewer .research-detail-head h2 {
    white-space: nowrap;
  }

  .research-card-viewer .research-detail-head strong {
    display: block;
    max-width: 100%;
    margin-top: 10px;
    overflow: hidden;
    color: rgba(24, 49, 51, .82);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: clamp(13px, .86vw, 16px);
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .research-card-viewer .research-expanded-content > .research-expanded-copy.research-info-list {
    height: calc(100% - 124px) !important;
  }
}

@media (max-width: 900px) {
  .research-card-viewer .research-loop-strip,
  .research-card-viewer .research-grid-gallery,
  .research-card-viewer .research-loop-strip.research-grid-gallery {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    columns: auto !important;
  }

  .research-card-viewer .research-expanded-photo,
  .research-card-viewer .research-expanded-photo:has(.research-photo-image) {
    aspect-ratio: 4 / 3;
  }

  .research-card-viewer .research-expanded-photo .research-photo-image {
    height: 100% !important;
    object-fit: cover !important;
  }
}

/* ===== Latest requested corrections: softer education panels, horizontal internship photos, fitted research grid ===== */
.education-card,
.course-card {
  background: rgba(255, 255, 255, .68) !important;
}

.education-page .section-title,
.education-page .section-block {
  background-color: transparent !important;
}

.work-gallery-panel.image-lightbox-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  gap: 0 !important;
  width: min(96vw, 1560px) !important;
  padding: 0 !important;
  background: rgba(246, 239, 224, .94) !important;
}

.work-gallery-panel .image-gallery-item {
  aspect-ratio: 4 / 3 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.work-gallery-panel .image-gallery-item img {
  border-radius: 0 !important;
}

.research-card-bottle {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--frame-background) 92%, white), var(--frame-background)) !important;
  opacity: 1 !important;
}

.research-card-title {
  background: color-mix(in srgb, var(--frame-background) 86%, white) !important;
  border-radius: 12px;
}

.research-card-face .research-card-title {
  top: 27% !important;
  height: 54% !important;
  padding-bottom: 8% !important;
  align-content: center;
}

/* ===== Final seam removal and adaptive student-work media ===== */
.research-card-face .research-card-title {
  position: absolute !important;
  left: 18% !important;
  top: 24% !important;
  width: 64% !important;
  height: 63% !important;
  padding: 8% 7% 15% !important;
  box-sizing: border-box;
  border-radius: 14px !important;
  background: color-mix(in srgb, var(--frame-background) 92%, white) !important;
}

.research-card-face .research-card-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10%;
  height: 18%;
  background: inherit;
  border-radius: 0 0 14px 14px;
  z-index: 0;
  pointer-events: none;
}

.research-card-face .research-card-title {
  isolation: isolate;
}

.research-card-face .research-card-title > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 901px) {
  .research-card-viewer .research-expanded-gallery {
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    will-change: scroll-position;
  }

  .research-card-viewer .research-detail-head strong {
    display: block;
    white-space: nowrap;
  }

  .research-card-viewer .research-detail-head strong br {
    display: none;
  }

  .research-card-viewer .research-detail-head strong:has(br) {
    white-space: normal;
  }

  .research-card-viewer .research-detail-head strong:has(br) br {
    display: block;
  }
}

.student-media-strip {
  columns: 2 220px;
  column-gap: 0;
  display: block !important;
}

.student-media-strip figure {
  display: block;
  break-inside: avoid;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: hidden;
  background: transparent !important;
}

.student-media-strip figure img {
  display: block;
  width: 100%;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}

@media (max-width: 760px) {
  .student-media-strip {
    columns: 1;
  }
}

.student-duty-plain p {
  margin: 0;
  color: #c8d5dd;
  line-height: 1.7;
}

.student-link-list {
  display: grid;
  gap: 8px;
}

.student-link-list .student-public-link {
  display: block;
  overflow: hidden;
  color: #d9fbff !important;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(0, 24, 32, .9), 0 0 10px rgba(84, 226, 255, .38);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Let more of the education background show through. */
.education-page .education-card,
.education-page .course-card {
  background: rgba(255, 255, 255, .34) !important;
}

.education-page .award-image {
  background: rgba(255, 255, 255, .32) !important;
}

body:has(.education-page.is-active) .browser-window {
  background-color: rgba(255, 255, 255, .44) !important;
}

.student-qzone-head p {
  text-transform: none;
}

@media (min-width: 901px) {
  .research-card-viewer .research-loop-strip,
  .research-card-viewer .research-grid-gallery,
  .research-card-viewer .research-loop-strip.research-grid-gallery {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-rows: auto !important;
    gap: 0 !important;
    align-items: start !important;
    overflow: visible !important;
  }

  .research-card-viewer .research-expanded-photo,
  .research-card-viewer .research-expanded-photo:has(.research-photo-image) {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .research-card-viewer .research-expanded-photo .research-photo-image,
  .research-card-viewer .research-expanded-photo:nth-child(1) .research-photo-image {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 12px !important;
    background: transparent !important;
    transform: none !important;
  }

  .research-card-viewer .research-detail-head strong {
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.36;
  }
}

@media (max-width: 900px) {
  .work-gallery-panel.image-lightbox-panel {
    grid-template-columns: 1fr !important;
  }

  .research-card-viewer .research-loop-strip,
  .research-card-viewer .research-grid-gallery,
  .research-card-viewer .research-loop-strip.research-grid-gallery {
    gap: 0 !important;
  }
}

/* ===== Research gallery final: single vertical archive strip ===== */
@media (min-width: 901px) {
  .research-card-viewer .research-expanded-gallery {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: none !important;
  }

  .research-card-viewer .research-expanded-gallery::-webkit-scrollbar {
    display: none !important;
  }

  .research-card-viewer .research-loop-strip,
  .research-card-viewer .research-grid-gallery,
  .research-card-viewer .research-loop-strip.research-grid-gallery {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: 100% !important;
  }

  .research-card-viewer .research-expanded-photo,
  .research-card-viewer .research-expanded-photo:has(.research-photo-image) {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .research-card-viewer .research-expanded-photo:first-child,
  .research-card-viewer .research-expanded-photo:first-child .research-photo-image {
    border-radius: 12px 12px 0 0 !important;
  }

  .research-card-viewer .research-expanded-photo:last-child,
  .research-card-viewer .research-expanded-photo:last-child .research-photo-image {
    border-radius: 0 0 12px 12px !important;
  }

  .research-card-viewer .research-expanded-photo .research-photo-image,
  .research-card-viewer .research-expanded-photo:nth-child(1) .research-photo-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
}
