:root {
  --page-width: 1080px;
  --brand-red: #990000;
  --brand-red-hover: #e30303;
  --title-red: #660101;
  --text-strong: #333333;
  --text-main: #808080;
  --text-light: #b3b3b3;
  --line: #e3e3e3;
  --soft-bg: #fafafa;
  --footer-bg: #4d4d4d;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--text-main);
  font-family: "Microsoft YaHei", "SimHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: #ffffff;
}

body.keti-entry {
  animation: pageIn 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.back-home {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  padding: 8px 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  color: #5a6a7a;
  cursor: pointer;
  font: 14px "Microsoft YaHei", "SimHei", Arial, sans-serif;
  transition: all 0.2s ease;
}

.back-home:hover {
  background: #ffffff;
  color: #f59e0b;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}

a:hover {
  color: var(--brand-red-hover);
}

button {
  font: inherit;
}

.site-header {
  width: 100%;
  background: #ffffff;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: min(var(--page-width), calc(100% - 32px));
  height: 120px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 80%;
  margin: 20px 0;
}

.brand-logo {
  flex: 0 0 auto;
  max-width: 100px;
  max-height: 80px;
  object-fit: contain;
}

.brand-mark {
  position: relative;
  flex: 0 0 100px;
  width: 100px;
  height: 80px;
  overflow: hidden;
  border: 1px solid #d7e2dc;
  background:
    radial-gradient(circle at 74% 20%, rgba(255, 255, 255, 0.85) 0 8px, transparent 9px),
    linear-gradient(145deg, #e8f3ed 0%, #73a77e 48%, #1f5e45 100%);
}

.brand-leaf,
.brand-cell {
  position: absolute;
  display: block;
}

.brand-leaf {
  right: 17px;
  bottom: 13px;
  width: 42px;
  height: 24px;
  border-radius: 42px 0 42px 0;
  background: #d6f1a4;
  transform: rotate(-18deg);
}

.brand-cell {
  left: 14px;
  bottom: 15px;
  width: 36px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 3px;
}

.brand-cell::after {
  position: absolute;
  right: -7px;
  top: 4px;
  width: 5px;
  height: 6px;
  content: "";
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1px;
}

.brand-copy {
  min-width: 0;
  margin-left: 20px;
  white-space: nowrap;
}

.brand-copy strong {
  display: block;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.brand-copy span {
  display: block;
  overflow: hidden;
  color: var(--text-main);
  font-size: 16px;
  text-overflow: ellipsis;
}

.quick-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 26px;
  color: var(--text-main);
  font-size: 14px;
  white-space: nowrap;
}

.lang-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  color: #003399;
  background: #ffffff;
  cursor: pointer;
}

.phone-icon {
  position: relative;
  width: 10px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.phone-icon::after {
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 3px;
  height: 3px;
  content: "";
  background: currentColor;
  border-radius: 50%;
  transform: translateX(-50%);
}

.qr-panel {
  position: absolute;
  z-index: 20;
  top: 54px;
  right: 0;
  display: none;
  width: 172px;
  padding: 10px;
  border: 1px solid #dddddd;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.qr-panel.is-visible {
  display: block;
}

.fake-qr {
  width: 150px;
  height: 150px;
  margin: 0 auto 4px;
  background:
    linear-gradient(90deg, #003399 10px, transparent 10px 20px, #003399 20px 30px, transparent 30px 40px, #003399 40px 50px, transparent 50px 60px, #003399 60px 70px, transparent 70px 80px, #003399 80px 90px, transparent 90px 100px, #003399 100px 110px, transparent 110px 120px, #003399 120px 130px, transparent 130px 140px, #003399 140px),
    linear-gradient(#ffffff 10px, transparent 10px 20px, #ffffff 20px 30px, transparent 30px 40px, #ffffff 40px 50px, transparent 50px 60px, #ffffff 60px 70px, transparent 70px 80px, #ffffff 80px 90px, transparent 90px 100px, #ffffff 100px 110px, transparent 110px 120px, #ffffff 120px 130px, transparent 130px 140px, #ffffff 140px);
  background-blend-mode: difference;
  border: 8px solid #ffffff;
  outline: 1px solid #f0f0f0;
}

.main-nav {
  width: 100%;
  height: 40px;
  background: var(--brand-red);
}

.nav-inner {
  width: min(var(--page-width), 100%);
  height: 40px;
  margin: 0 auto;
}

.nav-toggle {
  display: none;
}

.main-nav ul {
  display: flex;
  height: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  flex: 0 0 11.1%;
  min-width: 118px;
  text-align: center;
}

.main-nav a {
  display: block;
  height: 40px;
  color: #ffffff;
  line-height: 40px;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
  background: var(--brand-red-hover);
}

.page-shell {
  flex: 1 0 auto;
  width: 100%;
  padding: 0;
}

.banner {
  width: 100%;
  overflow: hidden;
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
}

.banner-visual {
  position: relative;
  width: 100%;
  min-height: 270px;
  background:
    linear-gradient(90deg, rgba(26, 63, 54, 0.88), rgba(61, 116, 92, 0.34) 48%, rgba(255, 255, 255, 0.12)),
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.68) 0 2px, transparent 3px),
    repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 34px),
    linear-gradient(135deg, #b3d5cc, #5b8c70 42%, #a9c2c5 43%, #edf0ee 100%);
}

.banner-visual::before,
.banner-visual::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.banner-visual::before {
  right: 18%;
  top: 36px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.banner-visual::after {
  right: 12%;
  bottom: -22px;
  width: 220px;
  height: 88px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-left: 0;
  border-right: 0;
  transform: rotate(-16deg);
}

.banner-text {
  position: absolute;
  left: max(28px, calc((100% - var(--page-width)) / 2));
  top: 74px;
  max-width: 520px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.banner-text span {
  display: block;
  font-size: 18px;
}

.banner-text strong {
  display: block;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
}

.profile-section,
.visitor-section {
  width: 100%;
  background: #ffffff;
}

.section-inner {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0;
}

.profile-section .section-inner {
  padding-top: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 0;
  margin-top: 20px;
  padding-bottom: 10px;
}

.portrait-photo,
.portrait-placeholder {
  display: grid;
  width: 280px;
  height: 280px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.38), transparent 36%),
    linear-gradient(140deg, #dee8e2, #7d968a 54%, #34463e);
  color: #ffffff;
  font-size: 54px;
  font-weight: 700;
  letter-spacing: 0;
}

.portrait-photo {
  background: #f4f4f4;
}

.portrait-photo img {
  display: block;
  width: 280px;
  height: 280px;
  object-fit: cover;
}

.portrait-placeholder span {
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.13);
}

.profile-title {
  display: block;
  width: 100%;
  margin: 10px 0 25px;
}

.teacher-name {
  flex: 0 0 auto;
  color: var(--text-strong);
  font-size: 24px;
  font-weight: 700;
}

.teacher-subtitle {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--text-main);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bio-text {
  display: -webkit-box;
  overflow: hidden;
  width: 100%;
  height: 182px;
  color: var(--text-main);
  line-height: 26px;
  text-overflow: ellipsis;
  white-space: pre-wrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}

.research-section {
  width: 100%;
  background: var(--soft-bg);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  border-bottom: 1px solid var(--line);
}

.section-title-row h2 {
  margin: 0;
  color: var(--title-red);
  font-size: 22px;
  font-weight: 700;
}

.section-title-row h1 {
  margin: 0;
  color: var(--title-red);
  font-size: 22px;
  font-weight: 700;
}

.section-title-row a {
  font-size: 16px;
}

.research-copy {
  display: -webkit-box;
  overflow: hidden;
  margin: 20px 0 10px;
  color: var(--text-main);
  line-height: 26px;
  white-space: pre-wrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 9;
}

.visitor-section .section-inner {
  padding-bottom: 10px;
}

.visitor-count {
  height: 50px;
  margin: 0;
  padding-right: 10px;
  background: var(--soft-bg);
  font-size: 14px;
  line-height: 50px;
  text-align: right;
}

.visitor-count strong {
  color: red;
  font-size: 18px;
  font-weight: 400;
}

.site-footer {
  flex-shrink: 0;
  width: 100%;
  min-height: 36px;
  margin-top: 15px;
  background: var(--footer-bg);
  color: var(--text-light);
  font-size: 13px;
  line-height: 36px;
  text-align: center;
}

.site-footer p {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-footer a {
  color: var(--text-light);
}

.site-footer a:hover {
  color: #ffffff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.inner-page .section-inner {
  padding: 30px 0;
}

.breadcrumb {
  width: 100%;
  margin-bottom: 30px;
  color: var(--text-main);
  font-size: 16px;
}

.breadcrumb a {
  color: var(--text-main);
}

.research-article {
  width: 100%;
  margin-top: 20px;
  border-top: 0;
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.7;
}

.plain-article {
  width: 100%;
  margin-top: 20px;
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.7;
}

.plain-article p {
  margin: 0 0 10px;
}

.plain-article a {
  color: #1c87ea;
  word-break: break-word;
}

.publications-article {
  overflow-wrap: anywhere;
}

.publications-article strong {
  color: var(--text-strong);
}

.people-page {
  width: 100%;
  margin-top: 20px;
}

.people-block {
  padding: 0 0 32px;
}

.people-block h2 {
  margin: 0 0 18px;
  color: var(--title-red);
  font-size: 20px;
  font-weight: 700;
}

.mentor-list {
  display: grid;
  gap: 24px;
}

.mentor-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 28px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
}

.member-avatar,
.member-avatar img {
  display: block;
  width: 140px;
  height: 140px;
}

.member-avatar img {
  border: 2px solid #ff6600;
  border-radius: 50%;
  object-fit: cover;
}

.member-avatar.is-mentor img {
  width: 140px;
  height: 140px;
}

.mentor-info h2 {
  margin: 2px 0 10px;
  color: var(--text-strong);
  font-size: 24px;
  line-height: 1.35;
}

.mentor-info h2 span {
  color: var(--text-light);
  font-size: 16px;
  font-weight: 400;
}

.member-intro {
  margin: 0;
  color: var(--text-main);
  white-space: pre-line;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 34px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-grid li {
  min-width: 0;
  text-align: center;
}

.member-grid img {
  display: block;
  width: 140px;
  height: 140px;
  margin: 0 auto 8px;
  border: 2px solid #ff6600;
  border-radius: 50%;
  object-fit: cover;
}

.member-grid strong,
.member-grid span,
.member-grid em {
  display: block;
}

.member-grid strong {
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 400;
}

.member-grid span {
  color: var(--text-main);
  font-size: 14px;
}

.member-grid em {
  color: var(--text-light);
  font-size: 13px;
  font-style: normal;
}

.news-list {
  width: 100%;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  line-height: 2.2;
}

.news-list a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-list span {
  flex: 0 0 auto;
  color: var(--text-light);
  font-size: 14px;
}

.empty-state {
  min-height: 180px;
  margin-top: 20px;
  padding: 36px 20px;
  background: var(--soft-bg);
  color: var(--text-main);
}

.empty-state p {
  margin: 0;
}

.research-article p {
  margin: 0 0 10px;
  color: var(--text-main);
}

.research-article strong {
  color: var(--text-strong);
  font-weight: 700;
}

.research-article .lead-title {
  font-size: 18px;
}

.article-intro {
  font-size: 18px;
}

.research-image {
  margin: 8px auto 24px;
  text-align: center;
}

.research-image img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.research-image.is-wide img {
  width: 714px;
}

.research-image.is-medium img {
  width: 624px;
}

.research-image.is-full img {
  width: 834px;
}

.research-image-pair {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 18px;
  width: min(834px, 100%);
  margin: 8px 0 24px 36px;
}

.research-image-pair img {
  display: block;
  height: 223px;
  object-fit: contain;
}

.research-image-pair img:first-child {
  width: 243px;
}

.research-image-pair img:last-child {
  width: 567px;
}

@media (max-width: 900px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    display: block;
    height: auto;
    padding: 18px 0;
  }

  .brand {
    max-width: 100%;
    margin: 0;
  }

  .brand-logo {
    max-width: 78px;
    max-height: 62px;
  }

  .brand-copy {
    margin-left: 14px;
  }

  .brand-copy strong {
    font-size: 22px;
  }

  .quick-links {
    justify-content: flex-end;
    padding-top: 14px;
  }

  .main-nav {
    height: auto;
  }

  .nav-inner {
    height: auto;
  }

  .nav-toggle {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 16px;
    border: 0;
    color: #ffffff;
    background: var(--brand-red);
    text-align: left;
    cursor: pointer;
  }

  .main-nav ul {
    display: none;
    height: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .main-nav ul.is-open {
    display: block;
  }

  .main-nav li {
    min-width: 0;
    width: 100%;
  }

  .main-nav a {
    padding: 0 16px;
    text-align: left;
  }

  .banner-visual {
    min-height: 210px;
  }

  .banner-text {
    top: 52px;
  }

  .banner-text strong {
    font-size: 28px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .portrait-photo,
  .portrait-placeholder {
    width: min(280px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .portrait-photo img {
    width: 100%;
    height: 100%;
  }

  .profile-title {
    margin-top: 0;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .section-inner,
  .site-footer p {
    width: calc(100% - 24px);
  }

  .brand-copy {
    white-space: normal;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .brand-copy span {
    font-size: 14px;
  }

  .quick-links {
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
  }

  .qr-panel {
    top: 76px;
  }

  .banner-visual {
    min-height: 180px;
  }

  .banner-text {
    left: 18px;
    top: 42px;
    max-width: calc(100% - 36px);
  }

  .banner-text span {
    font-size: 14px;
  }

  .banner-text strong {
    font-size: 23px;
  }

  .section-inner {
    padding: 22px 0;
  }

  .profile-title {
    display: block;
  }

  .teacher-subtitle {
    margin-top: 4px;
  }

  .bio-text {
    height: auto;
    max-height: 260px;
    -webkit-line-clamp: 10;
  }

  .site-footer {
    padding: 8px 0;
    line-height: 1.7;
  }

  .breadcrumb {
    margin-bottom: 22px;
    font-size: 14px;
  }

  .research-article {
    font-size: 15px;
  }

  .article-intro,
  .research-article .lead-title {
    font-size: 16px;
  }

  .research-image {
    margin-bottom: 18px;
  }

  .research-image-pair {
    flex-wrap: wrap;
    gap: 10px;
    margin-left: 0;
  }

  .research-image-pair img {
    width: 100% !important;
    height: auto;
  }

  .mentor-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .member-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 14px;
  }

  .member-grid img {
    width: 118px;
    height: 118px;
  }
}
