*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f0eef9;
  --bg-soft: #e8e4f6;
  --lilac: #c4b5fd;
  --lilac-glow: rgba(196, 181, 253, 0.55);
  --lilac-deep: #a78bfa;
  --light-blue: #93c5fd;
  --light-blue-glow: rgba(147, 197, 253, 0.5);
  --light-blue-deep: #7eb8f7;
  --surface: rgba(255, 255, 255, 0.65);
  --lavender: #b8b4e8;
  --blue: #9eb8e8;
  --blue-deep: #7a9fd4;
  --text: #3d3a55;
  --text-muted: #6b6785;
  --border: rgba(167, 180, 230, 0.4);
  --shadow: 0 8px 32px rgba(147, 197, 253, 0.15);
  --radius: 16px;
  --font: "Outfit", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  text-transform: lowercase;
  position: relative;
  isolation: isolate;
}

html[lang="zh"] body {
  font-family: "Noto Sans SC", var(--font), system-ui, sans-serif;
  text-transform: none;
}

html[lang="zh"] .card h2,
html[lang="zh"] .card-title,
html[lang="zh"] .skating-subheading {
  text-transform: none;
}

.lang-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 20;
  pointer-events: auto;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--blue-deep);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(122, 159, 212, 0.15);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.lang-toggle:hover {
  color: var(--lilac-deep);
  background: rgba(196, 181, 253, 0.25);
}

.lang-toggle:active {
  transform: scale(0.97);
}

/* —— aura background (lava-lamp blobs) —— */

.aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: auto;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(196, 181, 253, 0.22), transparent 60%),
    radial-gradient(ellipse 70% 55% at 80% 90%, rgba(167, 139, 250, 0.12), transparent 55%),
    linear-gradient(180deg, #f7f5fd 0%, var(--bg) 45%, #f0eef9 100%);
}

.aura-blob {
  position: absolute;
  filter: blur(56px);
  opacity: 0.9;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  animation-play-state: paused;
  backface-visibility: hidden;
}

.site-shell {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.site-shell .profile-photo-block,
.site-shell .hero,
.site-shell .footer,
.site-shell .card,
.site-shell .social-link,
.site-shell .carousel-arrow,
.site-shell .video-card,
.site-shell a {
  pointer-events: auto;
}

.aura-blob--1 {
  width: min(420px, 78vw);
  height: min(380px, 68vw);
  top: -10%;
  left: 12%;
  border-radius: 58% 42% 52% 48% / 48% 52% 44% 56%;
  background: radial-gradient(
    ellipse at 40% 35%,
    rgba(196, 181, 253, 0.95) 0%,
    rgba(167, 139, 250, 0.55) 42%,
    transparent 68%
  );
  animation: lava-float-1 18s ease-in-out infinite;
}

.aura-blob--2 {
  width: min(340px, 62vw);
  height: min(380px, 68vw);
  bottom: 0%;
  left: -10%;
  border-radius: 45% 55% 50% 50% / 52% 48% 55% 45%;
  background: radial-gradient(
    ellipse at 55% 50%,
    rgba(167, 139, 250, 0.9) 0%,
    rgba(139, 92, 246, 0.45) 48%,
    transparent 68%
  );
  animation: lava-float-2 22s ease-in-out infinite;
  animation-delay: -6s;
}

.aura-blob--3 {
  width: min(380px, 70vw);
  height: min(340px, 62vw);
  top: 32%;
  right: -12%;
  border-radius: 52% 48% 44% 56% / 46% 54% 50% 50%;
  background: radial-gradient(
    ellipse at 50% 45%,
    rgba(186, 170, 253, 0.88) 0%,
    rgba(147, 197, 253, 0.4) 45%,
    transparent 66%
  );
  animation: lava-float-3 20s ease-in-out infinite;
  animation-delay: -3s;
}

.aura-blob--4 {
  width: min(260px, 48vw);
  height: min(300px, 52vw);
  top: 10%;
  right: 18%;
  border-radius: 50% 50% 42% 58% / 58% 42% 52% 48%;
  background: radial-gradient(
    ellipse at 45% 40%,
    rgba(147, 197, 253, 0.85) 0%,
    rgba(196, 181, 253, 0.4) 52%,
    transparent 68%
  );
  animation: lava-float-4 16s ease-in-out infinite;
  animation-delay: -9s;
}

.aura-blob--5 {
  width: min(300px, 55vw);
  height: min(280px, 50vw);
  bottom: 22%;
  left: 38%;
  border-radius: 48% 52% 55% 45% / 50% 50% 46% 54%;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(180, 162, 252, 0.82) 0%,
    rgba(167, 139, 250, 0.38) 48%,
    transparent 65%
  );
  filter: blur(60px);
  opacity: 0.82;
  animation: lava-float-5 24s ease-in-out infinite;
  animation-delay: -14s;
}

@media (hover: hover) {
  .aura:hover .aura-blob {
    animation-play-state: running;
  }
}

@keyframes lava-float-1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(12vw, 18vh) scale(1.12);
  }
  50% {
    transform: translate(-8vw, 28vh) scale(0.94);
  }
  75% {
    transform: translate(6vw, 10vh) scale(1.08);
  }
}

@keyframes lava-float-2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(14vw, -20vh) scale(1.1);
  }
  50% {
    transform: translate(8vw, 22vh) scale(0.92);
  }
  75% {
    transform: translate(-10vw, 8vh) scale(1.06);
  }
}

@keyframes lava-float-3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-14vw, -16vh) scale(1.08);
  }
  50% {
    transform: translate(-6vw, 24vh) scale(1.14);
  }
  75% {
    transform: translate(10vw, 6vh) scale(0.96);
  }
}

@keyframes lava-float-4 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-10vw, 22vh) scale(1.15);
  }
  50% {
    transform: translate(12vw, -12vh) scale(0.9);
  }
  75% {
    transform: translate(6vw, 18vh) scale(1.1);
  }
}

@keyframes lava-float-5 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.82;
  }
  25% {
    transform: translate(-12vw, -22vh) scale(1.12);
    opacity: 0.95;
  }
  50% {
    transform: translate(10vw, 16vh) scale(0.88);
    opacity: 0.75;
  }
  75% {
    transform: translate(-6vw, -8vh) scale(1.08);
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aura-blob {
    animation: none;
  }
}

.hero,
.content,
.footer {
  position: relative;
}

/* —— hero —— */

.hero {
  padding: 3.5rem 1.5rem 2rem;
  text-align: center;
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.name-block {
  margin-bottom: 2.5rem;
}

.name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.name-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.name-pinyin {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: none;
  line-height: 1.2;
}

.name-pinyin:empty {
  display: none;
}

html[lang="zh"] .name-pinyin {
  font-family: var(--font), system-ui, sans-serif;
}

.name {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.bio {
  max-width: 32rem;
  margin: 1rem auto 0;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 300;
}

.contact {
  margin-top: 0.75rem;
  font-size: 1.15rem;
}

.contact a {
  color: var(--blue-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact a.contact-email {
  color: var(--lilac-deep);
}

.contact a.contact-email:hover {
  color: #7c3aed;
}

.contact a:hover {
  color: var(--lilac-deep);
}

.contact-sep {
  margin: 0 0.35rem;
  color: var(--text-muted);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: var(--blue-deep);
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  color: var(--lavender);
  transform: translateY(-2px);
}

.social-link svg {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
}

.social-link--left {
  width: 4rem;
  height: 4rem;
}

.social-link--left svg {
  width: 2.65rem;
  height: 2.65rem;
}

/* —— profile photo —— */

.profile-photo-block {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 10;
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.profile-photo {
  margin: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-soft);
  box-shadow:
    var(--shadow),
    0 0 40px var(--lilac-glow),
    0 0 56px var(--light-blue-glow);
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.profile-photo:hover {
  border-color: rgba(196, 181, 253, 0.75);
  box-shadow:
    var(--shadow),
    0 0 24px rgba(196, 181, 253, 0.7),
    0 0 48px rgba(167, 139, 250, 0.65),
    0 0 72px rgba(139, 92, 246, 0.4);
}

.profile-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}

.profile-name-cn {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: none;
}

.profile-name-pinyin {
  margin: 0;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: none;
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.4);
}

/* —— main content —— */

.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.35rem 1.1rem;
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.card-wide {
  grid-column: 1 / -1;
}

.content .card {
  text-transform: none;
}

.card h2,
.card-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--blue-deep);
  margin-bottom: 0.65rem;
  text-transform: lowercase;
}

.card-icon {
  display: inline-flex;
  flex-shrink: 0;
  order: -1;
  width: 0.72em;
  height: 0.72em;
  color: var(--lilac-deep);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card ul {
  list-style: none;
}

.card li + li {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}

.education-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.school-logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 2px 10px rgba(122, 159, 212, 0.2);
}

.education-body {
  flex: 1;
  min-width: 0;
}

.experience-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.experience-logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 2px 10px rgba(122, 159, 212, 0.2);
}

.experience-body {
  flex: 1;
  min-width: 0;
}

.item-title {
  display: block;
  font-weight: 400;
  color: var(--text);
}

.item-meta {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.item-detail {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.45;
}

#education .item-title {
  font-weight: 500;
}

#education .item-detail {
  font-weight: 400;
}

.degree-abbr {
  font-weight: inherit;
  color: inherit;
}

.role-list > li + li {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
}

.leadership-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.leadership-logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(122, 159, 212, 0.2);
}

.leadership-logo--tj {
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 0.15rem;
}

.leadership-logo--quantum {
  border-radius: 10px;
  object-fit: contain;
  background: #1b2640;
  padding: 0.2rem;
}

.leadership-logo--cern {
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  padding: 0.2rem;
}

.leadership-body {
  flex: 1;
  min-width: 0;
}

.leadership-body .bullet-list a {
  color: var(--blue-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

.leadership-body .bullet-list a:hover {
  color: var(--lilac-deep);
}

.bullet-list {
  list-style: none;
  margin-top: 0.35rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.bullet-list li + li {
  margin-top: 0.35rem;
  border-top: none;
  padding-top: 0;
}

.bullet-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--blue-deep);
}

.skills-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--blue-deep);
  margin-bottom: 0.5rem;
  text-transform: none;
}

/* —— education + stats row —— */

.education-stats-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: start;
  width: 100%;
}

.education-stats-row #education,
.education-stats-row #stats.info-panel {
  min-width: 0;
  width: 100%;
}

.education-stats-row #stats.info-panel {
  max-width: none;
  justify-self: stretch;
}

#education > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

#education > ul > li + li {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

@media (max-width: 900px) {
  #education > ul {
    grid-template-columns: 1fr;
  }
}

.classes-experience-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
  width: 100%;
}

.classes-experience-row #coursework,
.classes-experience-row #experience {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.classes-experience-row #coursework {
  justify-self: stretch;
  max-width: 100%;
}

.classes-experience-row #experience .card-title {
  flex-shrink: 0;
}

.classes-experience-row #experience > ul {
  flex: 1;
}

@media (max-width: 820px) {
  .education-stats-row,
  .classes-experience-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .content {
    grid-template-columns: 1fr;
  }
}

/* —— stats / google-style info panel —— */

#stats.info-panel {
  padding: 1rem 1.25rem 1.05rem;
}

.info-panel-table {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    rgba(220, 230, 245, 0.55) 0%,
    rgba(196, 181, 253, 0.28) 50%,
    rgba(232, 228, 246, 0.5) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.info-row {
  display: grid;
  grid-template-columns: 6.25rem 1fr;
  align-items: start;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.info-value {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.45;
}

.info-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dotted var(--blue-deep);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.info-link:hover {
  color: var(--lilac-deep);
  border-bottom-color: var(--lilac-deep);
}

/* —— coursework carousel —— */

#coursework {
  width: 100%;
  padding: 1rem 1.35rem 1.2rem;
}

.coursework-carousel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  flex: 1;
  min-height: 0;
}

.coursework-carousel-viewport {
  display: flex;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.coursework-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 0.75rem;
}

.coursework-carousel-controls .carousel-arrow {
  margin-top: 0;
}

.coursework-carousel .carousel-count {
  margin: 0;
  min-width: 2.75rem;
  text-align: center;
  font-family: inherit;
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1;
}

.video-carousel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.video-carousel .carousel-count {
  flex-basis: 100%;
  margin: 0.15rem 0 0;
}

.video-carousel-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
}

.coursework-carousel-track,
.video-carousel-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.coursework-slide {
  flex: 0 0 auto;
  min-width: 0;
  padding: 0 0.2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
}

.coursework-carousel .carousel-arrow {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 1rem;
}

.coursework-slide .course-slide-title {
  width: 100%;
  margin: 0 0 0.65rem;
  justify-content: flex-start;
}

.tags--stacked {
  flex-direction: column;
  align-items: center;
}

.tags--courses {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 0.5rem;
  width: 100%;
}

.tags--courses .tag {
  font-family: var(--font);
  font-weight: 500;
  flex: 0 1 auto;
  width: max-content;
  max-width: 100%;
  text-align: center;
  font-size: 1rem;
  padding: 0.35rem 0.6rem;
  line-height: 1.45;
  color: var(--text);
}

.coursework-slide .tags--courses-3row {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  grid-template-rows: repeat(3, auto);
  justify-content: center;
  justify-items: center;
  gap: 0.7rem 0.55rem;
}

.coursework-slide .tags--courses-3row .tag {
  flex: none;
}

.coursework-slide .tags--courses-3row .tag:nth-child(5) {
  grid-column: 1 / -1;
  justify-self: center;
}

.plain-list li + li {
  border-top: none;
  margin-top: 0.35rem;
  padding-top: 0;
}

/* —— skills tags —— */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.8rem;
  padding: 0.28rem 0.7rem;
  background: linear-gradient(
    135deg,
    rgba(196, 181, 253, 0.4),
    rgba(147, 197, 253, 0.35)
  );
  border-radius: 999px;
  color: var(--text);
}

/* —— skating videos carousel —— */

#figure-skating {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 1rem 1.35rem 1.05rem;
  justify-self: stretch;
}

#figure-skating .card-title {
  margin-bottom: 0.55rem;
}

.skating-intro {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.skating-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1.05fr);
  gap: 1.35rem 1.5rem;
  align-items: start;
}

.skating-achievements {
  min-width: 0;
}

.skating-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.skating-videos {
  align-self: stretch;
  min-width: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.skating-sidebar .skating-intro {
  width: 100%;
  margin: 0;
  text-align: center;
}

.skating-sidebar .skating-articles {
  width: 100%;
  margin: 0;
  justify-content: center;
  text-align: center;
}

@media (max-width: 820px) {
  .skating-body {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
}

.skating-achievements-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.skating-org-logo {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
  padding: 0.1rem;
  box-shadow: 0 2px 8px rgba(122, 159, 212, 0.18);
}

.skating-subheading {
  margin: 0;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--blue-deep);
  text-transform: lowercase;
}

.skating-articles {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
  margin: 0.25rem 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.skating-article-entry {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.skating-article-entry .item-meta {
  margin: 0;
  font-size: 1em;
}

.skating-articles a {
  font-weight: 500;
  color: var(--blue-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

.skating-articles a:hover {
  color: var(--lilac-deep);
}

.skating-honors-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skating-honor {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.skating-honor + .skating-honor {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.skating-honor-body {
  flex: 1;
  min-width: 0;
}

.skating-honor .item-title {
  font-size: 0.9rem;
  font-weight: 500;
}

.honor-detail {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

#figure-skating .video-carousel {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

#figure-skating .video-carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

#figure-skating .video-carousel-viewport {
  flex: 1 1 auto;
  min-width: 0;
}

#figure-skating .video-carousel .carousel-count {
  flex-basis: auto;
  margin: 0.45rem 0 0;
  text-align: center;
}

#quantum .quantum-awards {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

#quantum .quantum-awards li + li {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: none;
}

.video-slide {
  flex: 0 0 auto;
  min-width: 0;
  box-sizing: border-box;
}

.carousel-arrow {
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--blue-deep);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 10px rgba(122, 159, 212, 0.12);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.carousel-arrow:hover {
  color: var(--lilac-deep);
  background: rgba(196, 181, 253, 0.25);
}

.carousel-arrow:active {
  transform: scale(0.95);
}

.carousel-count {
  text-align: center;
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  line-height: 1;
  color: var(--text-muted);
}

.video-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px var(--light-blue-glow);
  transition: box-shadow 0.2s ease;
}

.video-card:hover {
  box-shadow: 0 6px 20px var(--lilac-glow);
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-card .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(61, 58, 85, 0.2);
  transition: background 0.2s ease;
}

.video-card:hover .play-icon {
  background: rgba(61, 58, 85, 0.35);
}

/* —— footer —— */

.footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: none;
}

.footer p {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.footer-sep {
  color: var(--text-muted);
}

.footer-email {
  color: var(--lilac-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-email:hover {
  color: #7c3aed;
}

/* —— responsive —— */

@media (max-width: 480px) {
  .name-row {
    gap: 0.65rem 1rem;
  }

  .bio {
    font-size: 1.05rem;
    padding: 0 0.5rem;
  }

  .contact {
    font-size: 1.05rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .lang-toggle {
    top: 1rem;
    right: 1rem;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }

  .profile-photo-block {
    top: 1rem;
    left: 1rem;
    width: 120px;
  }

  .profile-photo {
    width: 120px;
    height: 120px;
  }

  .profile-name-cn {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
  }

  .profile-name-pinyin {
    font-size: 0.72rem;
  }
}
