/*!
Theme Name: Zhongfu Scholar
Theme URI: https://zhongfuma-gis.com/
Author: Zhongfu Ma
Description: A polished personal academic WordPress theme for a GIScience and spatial data science scholar.
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.1.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zhongfu-scholar
Tags: portfolio, education, one-column, custom-menu, featured-images, responsive-layout
*/

:root {
  --zsf-navy-950: #061722;
  --zsf-navy-900: #082234;
  --zsf-navy-800: #0a3041;
  --zsf-teal-700: #0e7983;
  --zsf-teal-600: #168b94;
  --zsf-teal-100: #e4f2f4;
  --zsf-gold-600: #c89a3e;
  --zsf-gold-100: #f5ead5;
  --zsf-ink: #14202d;
  --zsf-muted: #607083;
  --zsf-soft: #f5f8f9;
  --zsf-soft-2: #edf3f5;
  --zsf-white: #ffffff;
  --zsf-border: #dbe5e9;
  --zsf-shadow: 0 18px 50px rgba(6, 23, 34, 0.08);
  --zsf-max: 1180px;
  --zsf-radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.zhongfu-scholar {
  margin: 0;
  overflow-y: auto;
  background: var(--zsf-soft);
  color: var(--zsf-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.zhongfu-scholar a {
  color: inherit;
}

.zsf-skip-link {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--zsf-white);
  color: var(--zsf-navy-950);
  padding: 10px 14px;
  border-radius: 6px;
}

.zsf-skip-link:focus {
  transform: translateY(0);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.zsf-hero {
  position: relative;
  overflow: hidden;
  color: var(--zsf-white);
  background:
    linear-gradient(110deg, rgba(6, 23, 34, 0.98), rgba(8, 47, 63, 0.96)),
    linear-gradient(90deg, rgba(200, 154, 62, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(22, 139, 148, 0.08) 1px, transparent 1px);
  background-size: auto, 54px 54px, 54px 54px;
}

.zsf-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    repeating-linear-gradient(168deg, transparent 0 27px, rgba(118, 198, 205, 0.14) 28px, transparent 30px),
    repeating-linear-gradient(12deg, transparent 0 76px, rgba(200, 154, 62, 0.12) 78px, transparent 82px);
  mask-image: linear-gradient(90deg, transparent 0, #000 35%, #000 100%);
}

.zsf-nav-shell,
.zsf-hero-inner,
.zsf-section,
.zsf-footer-inner {
  width: min(var(--zsf-max), calc(100% - 48px));
  margin: 0 auto;
}

.zsf-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 24px 0 8px;
}

.zsf-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 26px;
  border: 1px solid rgba(220, 232, 238, 0.76);
  border-radius: 999px;
  background: rgba(6, 23, 34, 0.76);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

.zsf-brand {
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.zsf-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(220, 232, 238, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--zsf-white);
  cursor: pointer;
}

.zsf-menu-toggle span,
.zsf-menu-toggle::before,
.zsf-menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
}

.zsf-menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.3vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.zsf-menu a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}

.zsf-menu a:hover,
.zsf-menu a:focus,
.zsf-menu a[aria-current="page"] {
  color: var(--zsf-gold-600);
}

.zsf-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.7fr);
  gap: 48px;
  min-height: 520px;
  padding: 82px 0 96px;
  align-items: end;
}

.zsf-hero-copy {
  max-width: 760px;
}

.zsf-hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--zsf-white);
  font-size: 6rem;
  line-height: 1.04;
  font-weight: 820;
}

.zsf-hero-subtitle {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(237, 246, 248, 0.88);
  font-size: 1.34rem;
  line-height: 1.45;
}

.zsf-divider {
  width: 138px;
  height: 4px;
  margin: 42px 0 20px;
  background: var(--zsf-gold-600);
}

.zsf-identity {
  color: rgba(237, 246, 248, 0.9);
  font-size: 1.05rem;
  font-weight: 650;
}

.zsf-hero-statement {
  margin: 24px 0 0;
  max-width: 760px;
  color: rgba(237, 246, 248, 0.88);
  font-size: 1.08rem;
  line-height: 1.58;
  font-weight: 450;
}

.zsf-hero-intro {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(237, 246, 248, 0.82);
}

.zsf-hero-actions,
.zsf-card-actions,
.zsf-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.zsf-button,
.zsf-publication-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.zsf-button:hover,
.zsf-button:focus,
.zsf-publication-button:hover,
.zsf-publication-button:focus {
  transform: translateY(-1px);
}

.zsf-button-primary,
.zsf-publication-button {
  background: var(--zsf-teal-600);
  color: var(--zsf-white);
}

.zsf-button-secondary {
  background: var(--zsf-gold-600);
  color: var(--zsf-white);
}

.zsf-button-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--zsf-white);
}

.zsf-hero-panel {
  align-self: center;
  padding: 22px;
  border: 1px solid rgba(220, 232, 238, 0.18);
  border-radius: var(--zsf-radius);
  background: rgba(6, 23, 34, 0.42);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.zsf-hero-panel svg {
  display: block;
  width: 100%;
  min-height: 250px;
}

.zsf-hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 6 / 5;
  min-height: 250px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
}

.zsf-main {
  padding: 54px 0 0;
}

.zsf-section {
  padding: 36px 0;
  scroll-margin-top: 112px;
}

.zsf-section:first-child {
  padding-top: 0;
}

.zsf-section-title {
  margin: 0 0 24px;
  color: var(--zsf-ink);
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 850;
}

.zsf-card,
.zsf-about-card,
.zsf-quote-panel,
.zsf-dark-panel,
.zsf-award-card,
.zsf-gallery-card,
.zsf-contact-card,
.zsf-publication-card {
  border: 1px solid var(--zsf-border);
  border-radius: var(--zsf-radius);
  background: var(--zsf-white);
  box-shadow: var(--zsf-shadow);
}

.zsf-about-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: clamp(24px, 5vw, 42px);
}

.zsf-profile-frame {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--zsf-teal-100);
  border: 1px solid #cadce2;
}

.zsf-profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zsf-profile-initials {
  display: grid;
  place-items: center;
  height: 100%;
  color: #0c6a73;
  font-size: 3rem;
  font-weight: 850;
}

.zsf-about-card h2 {
  margin: 0 0 14px;
  font-size: 2.7rem;
  line-height: 1.1;
}

.zsf-about-card p {
  margin: 0;
  color: var(--zsf-muted);
  font-size: 1.12rem;
}

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

.zsf-card {
  position: relative;
  min-height: 270px;
  padding: 28px;
}

.zsf-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.zsf-card-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--zsf-teal-100);
  color: var(--zsf-teal-700);
}

.zsf-card-icon svg {
  width: 56px;
  height: 56px;
}

.zsf-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--zsf-gold-100);
  color: #926b22;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.zsf-card h3,
.zsf-project-card h3,
.zsf-gallery-card h3,
.zsf-contact-card h3 {
  margin: 0 0 10px;
  color: var(--zsf-ink);
  font-size: 1.35rem;
  line-height: 1.18;
}

.zsf-card p,
.zsf-project-card p,
.zsf-gallery-card p,
.zsf-contact-card p {
  margin: 0;
  color: var(--zsf-muted);
}

.zsf-dark-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.42fr);
  gap: 34px;
  padding: clamp(26px, 5vw, 44px);
  background: var(--zsf-navy-900);
  color: var(--zsf-white);
  border-color: rgba(220, 232, 238, 0.1);
  box-shadow: none;
}

.zsf-dark-panel h2,
.zsf-dark-panel h3 {
  margin: 0 0 10px;
  color: var(--zsf-white);
}

.zsf-dark-panel p {
  margin: 0;
  color: rgba(237, 246, 248, 0.84);
}

.zsf-facts {
  display: grid;
  gap: 14px;
  padding-left: 28px;
  border-left: 1px solid rgba(237, 246, 248, 0.6);
}

.zsf-fact-label {
  display: block;
  color: var(--zsf-gold-600);
  font-size: 0.74rem;
  font-weight: 820;
  text-transform: uppercase;
}

.zsf-fact-value {
  color: var(--zsf-white);
  font-weight: 700;
}

.zsf-quote-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  gap: 28px;
  padding: clamp(24px, 5vw, 38px);
}

.zsf-quote {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--zsf-ink);
  font-size: 2rem;
  line-height: 1.18;
  font-style: italic;
  font-weight: 760;
}

.zsf-quote cite {
  display: block;
  margin-top: 12px;
  color: var(--zsf-gold-600);
  font-size: 1rem;
  font-style: normal;
  font-weight: 760;
}

.zsf-themes-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
}

.zsf-flow-figure {
  min-height: 520px;
  padding: 20px;
  border-radius: var(--zsf-radius);
  background: var(--zsf-navy-900);
  overflow: hidden;
}

.zsf-flowmap-figure {
  --zsf-flowmap-left-ui: 92px;
  --zsf-flowmap-top-ui: 72px;
  --zsf-flowmap-right-ui: 520px;
  --zsf-flowmap-bottom-ui: 34px;
  position: relative;
  display: block;
  padding: 0;
  background: transparent;
  border-radius: 0;
  min-height: 720px;
}

.zsf-flow-figure svg,
.zsf-flowmap-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
}

.zsf-flowmap-frame {
  border: 0;
  border-radius: 0;
  background: transparent;
  pointer-events: none;
}

.zsf-flowmap-figure.is-map-active .zsf-flowmap-frame {
  pointer-events: auto;
}

.zsf-flowmap-figure::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 70px;
  height: 16px;
  background: #f7f9fa;
  pointer-events: none;
}

.zsf-flowmap-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  pointer-events: auto;
  touch-action: pan-y;
}

.zsf-flowmap-figure.is-map-active::after {
  pointer-events: none;
}

.zsf-flowmap-figure .zsf-flowmap-frame {
  width: calc(100% + var(--zsf-flowmap-left-ui) + var(--zsf-flowmap-right-ui));
  height: calc(100% + var(--zsf-flowmap-top-ui) + var(--zsf-flowmap-bottom-ui));
  transform: translate(
    calc(var(--zsf-flowmap-left-ui) * -1),
    calc(var(--zsf-flowmap-top-ui) * -1)
  );
}

.zsf-question-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.zsf-question {
  display: grid;
  gap: 12px;
  min-height: 152px;
  padding: 28px;
}

.zsf-question-head {
  display: grid;
  gap: 12px;
}

.zsf-question-head .zsf-label {
  order: -1;
  justify-self: start;
}

.zsf-question h3 {
  margin: 0;
  font-size: 1.48rem;
  line-height: 1.18;
}

.zsf-question p {
  margin: 0;
  color: var(--zsf-muted);
  font-size: 1.04rem;
}

.zsf-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.zsf-project-card {
  position: relative;
  min-height: 220px;
  padding: 30px;
  border-top: 4px solid var(--zsf-teal-600);
}

.zsf-project-card::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: 82px;
  height: 42px;
  opacity: 0.34;
  background:
    linear-gradient(150deg, transparent 0 43%, var(--zsf-gold-600) 45% 48%, transparent 50% 100%),
    linear-gradient(25deg, transparent 0 48%, var(--zsf-teal-600) 50% 53%, transparent 55% 100%);
}

.zsf-publication-list {
  display: grid;
  gap: 28px;
  margin-top: 26px;
}

.zsf-publication-card {
  padding: clamp(24px, 4vw, 36px);
}

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

.zsf-publication-type {
  background: var(--zsf-teal-100);
  color: #126b74;
}

.zsf-publication-type.is-gold {
  background: var(--zsf-gold-100);
  color: #8a651d;
}

.zsf-publication-authors {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 830;
}

.zsf-publication-title {
  margin: 0 0 4px;
  font-size: 1.44rem;
  line-height: 1.34;
  font-weight: 690;
}

.zsf-publication-venue {
  margin: 0;
  color: var(--zsf-muted);
  font-weight: 610;
}

.zsf-publication-footer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 20px;
  margin-top: 24px;
}

.zsf-publication-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.zsf-publication-button {
  min-height: 38px;
  padding-inline: 16px;
  border: 0;
}

.zsf-note-list {
  display: grid;
  gap: 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.zsf-note-list li {
  position: relative;
  padding-left: 34px;
  color: rgba(237, 246, 248, 0.9);
}

.zsf-note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--zsf-gold-600);
}

.zsf-award-list {
  display: grid;
  gap: 18px;
  margin: 10px 0 0;
}

.zsf-award-year {
  color: #0b6f78;
  font-size: 2rem;
  font-weight: 850;
  line-height: 1;
}

.zsf-award-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: clamp(24px, 4vw, 34px);
}

.zsf-award-meta {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.zsf-award-card h3 {
  margin: 0 0 6px;
  font-size: 1.86rem;
  line-height: 1.2;
}

.zsf-award-card p {
  margin: 0;
  color: var(--zsf-muted);
  font-size: 1.06rem;
}

.zsf-gallery-section {
  overflow: hidden;
}

.zsf-life-intro {
  min-height: 0;
  padding: clamp(24px, 4vw, 36px);
}

.zsf-life-intro p {
  max-width: 980px;
  margin: 0;
  color: var(--zsf-muted);
  font-size: 1.25rem;
}

.zsf-gallery-carousel {
  position: relative;
  padding: 0 0 46px;
}

.zsf-gallery-viewport {
  overflow: hidden;
  border: 1px solid var(--zsf-border);
  border-radius: var(--zsf-radius);
  background: var(--zsf-white);
  box-shadow: var(--zsf-shadow);
}

.zsf-gallery-track {
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding: 14px 0;
  transition: transform 420ms ease;
  will-change: transform;
}

.zsf-gallery-slide {
  flex: 0 0 min(860px, 78%);
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--zsf-soft-2);
  opacity: 0.42;
  transform: scale(0.97);
  transition: opacity 260ms ease, transform 260ms ease;
}

.zsf-gallery-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.zsf-gallery-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.zsf-gallery-control {
  position: absolute;
  top: calc(50% - 23px);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--zsf-teal-700);
  box-shadow: 0 16px 34px rgba(6, 23, 34, 0.14);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, color 160ms ease;
}

.zsf-gallery-control:hover,
.zsf-gallery-control:focus {
  background: var(--zsf-white);
  color: var(--zsf-navy-900);
  transform: translateY(-1px);
}

.zsf-gallery-prev {
  left: 18px;
}

.zsf-gallery-next {
  right: 18px;
}

.zsf-gallery-control span {
  width: 12px;
  height: 12px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.zsf-gallery-prev span {
  transform: translateX(2px) rotate(-135deg);
}

.zsf-gallery-next span {
  transform: translateX(-2px) rotate(45deg);
}

.zsf-gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.zsf-gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cfe0e6;
  cursor: pointer;
}

.zsf-gallery-dot.is-active {
  background: var(--zsf-teal-600);
}

.zsf-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.zsf-contact-card {
  padding: 30px;
}

.zsf-contact-list {
  display: grid;
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.zsf-contact-list a {
  color: var(--zsf-teal-700);
  font-weight: 780;
  text-decoration: none;
}

.zsf-contact-list a:hover,
.zsf-contact-list a:focus {
  text-decoration: underline;
}

.zsf-footer {
  margin-top: 62px;
  border-top: 1px solid var(--zsf-border);
  color: var(--zsf-muted);
}

.zsf-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
  font-size: 0.92rem;
}

.zsf-footer-links {
  display: flex;
  gap: 18px;
}

.zsf-footer-links a {
  color: var(--zsf-muted);
  font-weight: 720;
  text-decoration: none;
}

.zsf-footer-links a:hover,
.zsf-footer-links a:focus {
  color: var(--zsf-teal-700);
}

@media (max-width: 1040px) {
  .zsf-hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .zsf-hero h1 {
    font-size: 5rem;
  }

  .zsf-hero-panel {
    max-width: 520px;
  }

  .zsf-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zsf-themes-layout {
    grid-template-columns: 1fr;
  }

  .zsf-flow-figure {
    min-height: 420px;
  }

  .zsf-flowmap-figure {
    min-height: 560px;
  }

  .zsf-question-list {
    grid-template-columns: 1fr;
  }

  .zsf-gallery-slide {
    flex-basis: min(720px, 82%);
  }
}

@media (max-width: 820px) {
  .zsf-nav-shell,
  .zsf-hero-inner,
  .zsf-section,
  .zsf-footer-inner {
    width: min(100% - 32px, var(--zsf-max));
  }

  .zsf-nav-wrap {
    padding-top: 14px;
  }

  .zsf-nav {
    min-height: 60px;
    padding: 0 16px;
    border-radius: 28px;
  }

  .zsf-menu-toggle {
    display: block;
  }

  .zsf-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(220, 232, 238, 0.25);
    border-radius: 16px;
    background: rgba(6, 23, 34, 0.98);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  }

  .zsf-nav.is-open .zsf-menu {
    display: flex;
  }

  .zsf-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
  }

  .zsf-menu a:hover,
  .zsf-menu a:focus,
  .zsf-menu a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.06);
  }

  .zsf-hero-inner {
    min-height: 0;
    gap: 0;
    padding: 42px 0 48px;
  }

  .zsf-hero h1 {
    font-size: 4.2rem;
  }

  .zsf-hero-subtitle {
    font-size: 1.14rem;
  }

  .zsf-identity {
    font-size: 0.98rem;
  }

  .zsf-section-title {
    font-size: 2.45rem;
  }

  .zsf-about-card h2 {
    font-size: 2.25rem;
  }

  .zsf-quote,
  .zsf-question h3,
  .zsf-award-card h3 {
    font-size: 1.55rem;
  }

  .zsf-hero-panel {
    display: none;
  }

  .zsf-divider {
    margin: 30px 0 16px;
  }

  .zsf-hero-statement {
    margin-top: 22px;
  }

  .zsf-hero-intro {
    margin-top: 14px;
  }

  .zsf-about-card,
  .zsf-quote-panel,
  .zsf-dark-panel,
  .zsf-contact-grid {
    grid-template-columns: 1fr;
  }

  .zsf-profile-frame {
    width: min(230px, 100%);
  }

  .zsf-facts {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(237, 246, 248, 0.35);
    padding-top: 22px;
  }

  .zsf-project-grid,
  .zsf-card-grid {
    grid-template-columns: 1fr;
  }

  .zsf-publication-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .zsf-publication-actions {
    justify-content: flex-start;
  }

  .zsf-award-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .zsf-award-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
  }

  .zsf-award-year {
    line-height: 1;
  }

  .zsf-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 0;
  }

  .zsf-gallery-slide {
    flex-basis: 86%;
  }

  .zsf-gallery-control {
    width: 42px;
    height: 42px;
  }

  .zsf-gallery-prev {
    left: 12px;
  }

  .zsf-gallery-next {
    right: 12px;
  }
}

@media (max-width: 520px) {
  body.zhongfu-scholar {
    font-size: 16px;
  }

  .zsf-hero-inner {
    padding: 28px 0 30px;
  }

  .zsf-hero h1 {
    font-size: 3.05rem;
  }

  .zsf-hero-subtitle {
    margin-top: 14px;
    font-size: 0.98rem;
    line-height: 1.42;
  }

  .zsf-divider {
    margin: 22px 0 12px;
  }

  .zsf-identity {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .zsf-hero-statement {
    margin-top: 18px;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .zsf-hero-intro {
    font-size: 0.94rem;
    line-height: 1.48;
  }

  .zsf-section-title {
    font-size: 2.08rem;
  }

  .zsf-about-card h2 {
    font-size: 2rem;
  }

  .zsf-about-card p,
  .zsf-question p,
  .zsf-publication-venue,
  .zsf-award-card p {
    font-size: 1rem;
  }

  .zsf-card-actions,
  .zsf-inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .zsf-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
  }

  .zsf-button,
  .zsf-publication-button {
    width: 100%;
  }

  .zsf-hero-actions .zsf-button {
    width: auto;
    min-height: 40px;
    padding-inline: 10px;
    font-size: 0.82rem;
  }

  .zsf-hero-actions .zsf-button:last-child {
    grid-column: 1 / -1;
  }

  .zsf-about-card,
  .zsf-card,
  .zsf-question,
  .zsf-publication-card,
  .zsf-award-card,
  .zsf-contact-card {
    padding: 22px;
  }

  .zsf-flow-figure {
    min-height: 320px;
  }

  .zsf-flowmap-figure {
    min-height: 380px;
  }

  .zsf-flow-figure svg,
  .zsf-flowmap-frame {
    min-height: 300px;
  }

  .zsf-gallery-carousel {
    padding-bottom: 40px;
  }

  .zsf-gallery-track {
    gap: 8px;
    padding: 10px 0;
  }

  .zsf-gallery-slide {
    flex-basis: 90%;
  }

  .zsf-gallery-control {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
