:root {
  --ink: #172033;
  --muted: #65738a;
  --line: rgba(105, 89, 190, 0.16);
  --paper: #f8fbff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --accent: #7c4dff;
  --accent-dark: #243ee7;
  --signal: #ff4fad;
  --gold: #d6b87a;
  --soft-blue: rgba(124, 77, 255, 0.1);
  --radius: 18px;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 0%, rgba(151, 214, 255, 0.52), transparent 34vw),
    radial-gradient(circle at 56% 10%, rgba(255, 198, 229, 0.48), transparent 28vw),
    radial-gradient(circle at 78% 4%, rgba(225, 210, 255, 0.54), transparent 32vw),
    linear-gradient(180deg, #f8fcff 0%, #f7f8ff 46%, #fbf8ff 100%);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(105, 89, 190, 0.1);
  background: rgba(248, 251, 255, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2878ff, #8f4dff);
  color: #fff;
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #40506a;
  font-size: 14px;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 650;
  transition: transform 180ms ease, background 180ms ease;
}

.nav-cta:hover,
.button:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.button.secondary {
  border: 1px solid rgba(105, 89, 190, 0.16);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.lift-on-hover {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, filter 180ms ease;
  will-change: transform;
}

.lift-on-hover:hover {
  transform: translateY(-6px);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 8px 12px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 56px;
  align-items: center;
  min-height: calc(100dvh - 72px);
  padding: 70px 0 52px;
}

.hero h1,
.page-hero h1,
.detail-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.96;
  font-weight: 780;
  letter-spacing: 0;
  text-wrap: balance;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  background: linear-gradient(100deg, #2185ff 8%, #7c4dff 54%, #5b38d7 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p,
.page-hero p,
.detail-hero p {
  max-width: 620px;
  color: #34445b;
  font-size: 19px;
  line-height: 1.7;
}

.page-hero h1,
.page-hero p {
  max-width: none;
}

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

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(105, 89, 190, 0.15);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(20px);
}

.hero-panel::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.14), transparent 44%, rgba(255, 79, 173, 0.12));
  opacity: 0.72;
}

.hero-panel img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  opacity: 1;
  mix-blend-mode: normal;
  filter: none;
}

.hero-panel__caption {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(105, 89, 190, 0.12);
  padding: 22px;
}

.hero-panel__caption strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.hero-panel__caption span {
  color: var(--muted);
  line-height: 1.6;
}

.home-hero {
  padding: 68px 0 30px;
}

.home-hero h1 {
  max-width: none;
  margin: 48px 0 36px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.15;
  font-weight: 780;
  letter-spacing: 0;
  text-wrap: balance;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  background: linear-gradient(100deg, #2185ff 8%, #7c4dff 54%, #5b38d7 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero p {
  max-width: none;
  margin: 0 0 12px;
  color: #34445b;
  font-size: 19px;
  line-height: 1.7;
}

.home-info-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-bottom: 52px;
}

.home-info-item {
  min-height: 118px;
  padding: 24px 28px;
  border: 1px solid rgba(105, 89, 190, 0.13);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76)),
    rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
}

.home-info-item span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.home-info-item strong {
  color: #111827;
  font-size: 24px;
  line-height: 1.25;
}

.teaching-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.teaching-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(105, 89, 190, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76)),
    rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
}

.teaching-card:nth-child(1) {
  border-top: 3px solid rgba(33, 150, 255, 0.55);
}

.teaching-card:nth-child(2) {
  border-top: 3px solid rgba(124, 77, 255, 0.55);
}

.teaching-card:nth-child(3) {
  border-top: 3px solid rgba(255, 79, 173, 0.55);
}

.teaching-card:nth-child(4) {
  border-top: 3px solid rgba(0, 201, 167, 0.55);
}

.teaching-card span[aria-hidden="true"] {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.teaching-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  color: #111827;
}

.teaching-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.section {
  position: relative;
  isolation: isolate;
  padding: 92px 0;
}

.section.container::after {
  position: absolute;
  z-index: -1;
  inset: 22px auto 22px 50%;
  width: 100vw;
  margin-left: -50vw;
  content: "";
  background: transparent;
  border-block: 1px solid transparent;
  pointer-events: none;
}

#teaching::after {
  background: linear-gradient(180deg, rgba(241, 248, 255, 0.72), rgba(248, 252, 255, 0.42));
  border-color: rgba(94, 168, 255, 0.08);
}

#mentors::after {
  background: linear-gradient(180deg, rgba(248, 246, 255, 0.78), rgba(255, 255, 255, 0.36));
  border-color: rgba(124, 77, 255, 0.08);
}

#model::after {
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.76), rgba(255, 255, 255, 0.38));
  border-color: rgba(255, 177, 92, 0.1);
}

#contact::after {
  background: linear-gradient(180deg, rgba(241, 252, 249, 0.74), rgba(255, 255, 255, 0.36));
  border-color: rgba(54, 185, 151, 0.09);
}

#projects::after {
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.78), rgba(255, 255, 255, 0.36));
  border-color: rgba(72, 113, 255, 0.08);
}

#demo-day::after {
  background: linear-gradient(180deg, rgba(255, 247, 252, 0.78), rgba(255, 255, 255, 0.36));
  border-color: rgba(255, 79, 173, 0.08);
}

#camp-stats::after {
  background: linear-gradient(180deg, rgba(247, 252, 242, 0.76), rgba(255, 255, 255, 0.36));
  border-color: rgba(127, 190, 91, 0.1);
}

.section:nth-of-type(2n + 4) {
  position: relative;
}

.section:nth-of-type(2n + 4)::before {
  position: absolute;
  top: 34px;
  left: max(20px, calc((100vw - 1180px) / 2));
  width: 72px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--signal), transparent);
}

.section.tight {
  padding-top: 46px;
}

.section h2 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.05;
  font-weight: 760;
  text-wrap: balance;
}

.section-lead {
  max-width: none;
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid rgba(105, 89, 190, 0.12);
  border-radius: 26px;
}

.metric {
  min-height: 148px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.72);
}

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

.metric strong {
  display: block;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  color: #101828;
  font-family: "Cascadia Mono", Consolas, monospace;
}

.metric span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.loop {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(105, 89, 190, 0.12);
}

.loop-step {
  min-height: 170px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.74);
}

.loop-step:hover {
  background: #fff;
  outline: 1px solid rgba(124, 77, 255, 0.22);
  outline-offset: -1px;
  filter: none;
}

.loop-step span {
  color: var(--accent);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
}

.loop-step strong {
  display: block;
  margin-top: 30px;
  font-size: 20px;
}

.model-extra {
  margin-top: 46px;
}

.model-extra h3 {
  margin: 46px 0 22px;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05;
  font-weight: 760;
}

.model-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 36px 0 22px;
}

.model-showcase .model-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.model-poster,
.model-method {
  border: 1px solid rgba(105, 89, 190, 0.13);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76)),
    rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
}

.model-poster {
  display: grid;
  place-items: center;
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  padding: 18px;
}

.model-poster img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
}

.model-panel {
  display: grid;
  gap: 18px;
}

.model-method {
  padding: 28px;
}

.model-method span {
  color: var(--accent);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.model-method h3 {
  margin: 12px 0 12px;
  color: #111827;
  font-size: 26px;
}

.model-method p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.stats-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 34px 0 18px;
}

.stat-kpi,
.stats-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
}

.stat-kpi {
  padding: 22px;
}

.stat-kpi strong {
  display: block;
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.95;
  background: linear-gradient(135deg, #1677ff 10%, #7c3cff 72%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-kpi span,
.stats-source {
  color: var(--muted);
}

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

.stats-card {
  padding: 24px;
}

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

.stats-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.stats-card__head h3 {
  margin: 0;
  font-size: 24px;
}

.stats-card__head span {
  color: var(--accent);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
}

.stat-bars,
.background-cloud {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.stat-bar {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(124, 77, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
}

.stat-bar__label {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink);
}

.stat-bar__label strong {
  white-space: nowrap;
}

.stat-bar__track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(52, 97, 255, 0.08);
}

.stat-bar__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2196ff, #7c4dff);
}

.background-cloud {
  grid-template-columns: repeat(3, 1fr);
}

.background-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
  padding: 18px;
  border: 1px solid rgba(124, 77, 255, 0.14);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(238, 243, 255, 0.7));
}

.background-chip strong {
  color: var(--accent);
  white-space: nowrap;
}

.stats-source {
  margin: 18px 0 0;
  font-size: 14px;
}

.partner-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 18px;
}

.partner-tile,
.project-card,
.contact-panel,
.detail-grid article {
  border: 1px solid rgba(105, 89, 190, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76)),
    rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
}

.partner-tile {
  min-height: 300px;
  padding: 30px;
}

.partner-tile:first-child {
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 79, 173, 0.22), transparent 40%),
    linear-gradient(135deg, rgba(76, 98, 255, 0.92), rgba(124, 77, 255, 0.9));
  color: #fff;
}

.partner-tile p {
  color: inherit;
  opacity: 0.76;
  line-height: 1.7;
}

.partner-tile ul {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.partner-tile li {
  padding-top: 12px;
  border-top: 1px solid currentColor;
  opacity: 0.86;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.project-section-head .section-lead {
  margin-bottom: 0;
}

.project-controls {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.cohort-tabs,
.carousel-arrows {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cohort-tab,
.arrow-button {
  min-height: 40px;
  border: 1px solid rgba(105, 89, 190, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #40506a;
  cursor: pointer;
  font-weight: 700;
}

.cohort-tab {
  padding: 0 16px;
}

.cohort-tab.is-active {
  border-color: rgba(124, 77, 255, 0.34);
  background: rgba(124, 77, 255, 0.12);
  color: var(--accent);
}

.arrow-button {
  width: 44px;
  font-size: 18px;
}

.arrow-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.featured-carousel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease;
}

.project-card:hover {
  border-color: rgba(124, 77, 255, 0.3);
}

.project-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft-blue);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.02) brightness(1.04);
  transition: transform 500ms ease;
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-card__media span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.88);
  color: #27344a;
  border: 1px solid rgba(105, 89, 190, 0.14);
  font-size: 13px;
  font-weight: 650;
}

.project-card__video-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 79, 79, 0.92);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 79, 79, 0.3);
}

.project-card__body {
  padding: 24px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.meta-row span,
.tag-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.72);
  color: #40506a;
  font-size: 12px;
  font-weight: 650;
}

.project-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  color: #111827;
}

.project-card p {
  min-height: 84px;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.68;
}

.project-card__foot {
  display: flex;
  align-items: center;
  gap: 14px;
}

.project-card__team {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.project-card__github {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.text-link,
.back-link {
  color: var(--accent-dark);
  font-weight: 700;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.resource-list li {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
}

.resource-list span {
  color: var(--accent);
  font-family: "Cascadia Mono", Consolas, monospace;
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 42px;
  border-radius: 28px;
  border: 1px solid rgba(105, 89, 190, 0.16);
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 79, 173, 0.2), transparent 32%),
    linear-gradient(135deg, #2d6cff, #7c4dff 62%, #a55cff);
  color: #fff;
}

.cta-band p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.cta-band .button.secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: #f8fbff;
  color: #172033;
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.stats-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}

.stats-link:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--ink);
}

.page-hero {
  padding: 92px 0 44px;
}

.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #40506a;
  cursor: pointer;
}

.filter-button.is-active {
  border-color: rgba(124, 77, 255, 0.34);
  background: rgba(124, 77, 255, 0.12);
  color: var(--accent);
}

.project-count {
  color: var(--muted);
  white-space: nowrap;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 48px;
  align-items: end;
  padding: 78px 0 54px;
}

.detail-hero figure {
  overflow: hidden;
  margin: 0;
  border-radius: 28px;
}

.detail-hero img {
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
}

.detail-hero--text-only {
  grid-template-columns: 1fr;
  padding-bottom: 30px;
}

.detail-hero--text-only h1,
.detail-hero--text-only p {
  max-width: none;
  text-wrap: wrap;
}

.detail-contact-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  padding-bottom: 54px;
}

.contact-bar-item {
  display: grid;
  gap: 6px;
  padding: 22px 28px;
  border: 1px solid rgba(105, 89, 190, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76)),
    rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
}

.contact-bar-item span {
  color: var(--muted);
  font-size: 13px;
}

.contact-bar-item strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
}

.contact-bar-link strong {
  color: var(--accent-dark);
}

.github-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  margin-top: -2px;
}

.detail-meta {
  margin-top: 28px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 360px;
  gap: 18px;
  padding-bottom: 96px;
}

.detail-grid--with-poster {
  grid-template-columns: 1fr 1fr;
}

.detail-grid article,
.contact-panel {
  padding: 28px;
}

.detail-grid h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-grid p,
.contact-panel dd {
  color: var(--muted);
  line-height: 1.75;
}

.contact-panel {
  grid-row: span 2;
}

.contact-panel dl {
  display: grid;
  gap: 10px;
}

.contact-panel dt {
  color: var(--ink);
  font-weight: 750;
}

.contact-panel dd {
  margin: 0 0 14px;
}

.wide-card {
  grid-column: span 2;
}

.detail-poster-card,
.detail-video-card {
  grid-column: 1 / -1;
}

.detail-poster-card figure {
  overflow: hidden;
  margin: 0;
  border-radius: 18px;
}

.detail-poster-card img {
  width: 100%;
  height: auto;
  max-height: 900px;
  object-fit: contain;
}

.detail-video-card {
  padding: 28px;
}

.detail-video-card video {
  display: block;
  width: 100%;
  max-height: 720px;
  border-radius: 18px;
  background: #111827;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 980px) {
  .hero,
  .detail-hero,
  .detail-grid,
  .detail-grid--with-poster {
    grid-template-columns: 1fr;
  }

  .detail-contact-bar {
    grid-template-columns: 1fr;
  }

  .metrics,
  .home-info-bar,
  .project-grid,
  .featured-carousel,
  .partner-grid,
  .stats-overview,
  .background-cloud,
  .teaching-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .model-showcase {
    grid-template-columns: 1fr;
  }

  .project-section-head {
    grid-template-columns: 1fr;
  }

  .project-controls {
    justify-items: start;
  }

  .cohort-tabs,
  .carousel-arrows {
    justify-content: flex-start;
  }

  .loop {
    grid-template-columns: repeat(3, 1fr);
  }

  .wide-card,
  .contact-panel,
  .detail-poster-card,
  .detail-video-card {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .hero {
    padding-top: 42px;
  }

  .home-hero {
    padding-top: 48px;
  }

  .hero h1,
  .home-hero h1,
  .page-hero h1,
  .detail-hero h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .metrics,
  .project-grid,
  .featured-carousel,
  .partner-grid,
  .stats-overview,
  .stats-grid,
  .background-cloud,
  .resource-list,
  .loop,
  .teaching-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .library-toolbar,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 28px;
  }

  .model-poster {
    min-height: 300px;
    padding: 12px;
  }

  .model-panel {
    grid-template-columns: 1fr;
  }

  /* Compact mobile sizing — more info per screen */
  .section {
    padding: 48px 0;
  }

  .section h2 {
    font-size: clamp(26px, 7vw, 36px);
    margin-bottom: 14px;
  }

  .section-lead {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .home-hero {
    padding: 28px 0 18px;
  }

  .home-hero h1 {
    font-size: clamp(28px, 9vw, 42px);
    margin: 18px 0 14px;
  }

  .home-hero p {
    font-size: 15px;
    line-height: 1.6;
  }

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

  .button,
  .nav-cta {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
  }

  .home-info-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-bottom: 36px;
  }

  .home-info-item {
    min-height: 72px;
    padding: 14px 18px;
  }

  .home-info-item span {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .home-info-item strong {
    font-size: 20px;
  }

  .teaching-card {
    padding: 18px;
  }

  .teaching-card span[aria-hidden="true"] {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .teaching-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .teaching-card p {
    font-size: 13px;
    line-height: 1.6;
  }

  .loop-step {
    min-height: 90px;
    padding: 14px;
  }

  .loop-step span {
    font-size: 11px;
  }

  .loop-step strong {
    margin-top: 10px;
    font-size: 15px;
  }

  .model-poster {
    min-height: 200px;
    padding: 10px;
  }

  .model-method {
    padding: 18px;
  }

  .model-method h3 {
    font-size: 20px;
  }

  .model-method p {
    font-size: 14px;
    line-height: 1.6;
  }

  .partner-tile {
    min-height: auto;
    padding: 18px;
  }

  .partner-tile h3 {
    font-size: 18px;
  }

  .partner-tile p {
    font-size: 13px;
    line-height: 1.6;
  }

  .partner-tile ul {
    gap: 8px;
    margin-top: 16px;
  }

  .partner-tile li {
    padding-top: 8px;
    font-size: 13px;
  }

  .mentor-card {
    padding: 16px;
    gap: 10px;
  }

  .mentor-avatar-frame {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.78);
  }

  .mentor-avatar {
    width: 54px;
    height: 54px;
  }

  .mentor-name {
    font-size: 15px;
  }

  .mentor-title {
    font-size: 12px;
  }

  .mentor-research {
    font-size: 13px;
  }

  .project-card__body {
    padding: 16px;
  }

  .project-card h3 {
    font-size: 18px;
  }

  .project-card p {
    min-height: auto;
    font-size: 13px;
  }

  .demo-day-card__body {
    padding: 16px;
  }

  .demo-day-card__body h3 {
    font-size: 18px;
  }

  .demo-day-card__body p {
    min-height: auto;
    font-size: 13px;
  }

  .stats-card {
    padding: 16px;
  }

  .stats-card__head h3 {
    font-size: 18px;
  }

  .stat-bar {
    padding: 10px;
  }

  .background-chip {
    min-height: 52px;
    padding: 12px;
  }

  .cta-band {
    padding: 20px;
    gap: 18px;
  }

  .cta-band h2 {
    font-size: 22px;
  }

  .cta-band p {
    font-size: 14px;
  }
}

/* Mentor wall */
.mentor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mentor-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(105, 89, 190, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76)),
    rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.mentor-card[data-mentor-id="shengli-zhang"] {
  background: linear-gradient(180deg, #f3efff, #ebe6ff);
  border-color: rgba(124, 77, 255, 0.22);
}

.mentor-card[data-mentor-id="taotao-wang"] {
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  border-color: rgba(59, 130, 246, 0.22);
}

.mentor-card[data-mentor-id="xiaoxiao-wu"] {
  background: linear-gradient(180deg, #e0f2fe, #bae6fd);
  border-color: rgba(14, 165, 233, 0.22);
}

.mentor-card[data-mentor-id="fang-liu"] {
  background: linear-gradient(180deg, #fff1f2, #ffe4e6);
  border-color: rgba(244, 63, 94, 0.22);
}

.mentor-card[data-mentor-id="jingwen-tong"] {
  background: linear-gradient(180deg, #ecfdf5, #d1fae5);
  border-color: rgba(16, 185, 129, 0.22);
}

.mentor-card__head {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mentor-avatar-frame {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  flex: 0 0 92px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 239, 255, 0.86)),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(105, 89, 190, 0.14);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.mentor-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(105, 89, 190, 0.1);
}

.mentor-avatar--center {
  object-position: center center;
}

.mentor-name {
  display: block;
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.mentor-name:hover {
  color: var(--accent);
}

.mentor-title {
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}

.mentor-research {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.mentor-email {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 650;
  word-break: break-all;
}

/* Demo Day */
.demo-day-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.demo-day-card {
  overflow: hidden;
  border: 1px solid rgba(105, 89, 190, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76)),
    rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, transform 180ms ease;
}

.demo-day-card:hover {
  border-color: rgba(124, 77, 255, 0.3);
}

.demo-day-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft-blue);
}

.demo-day-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.02) brightness(1.04);
  transition: transform 500ms ease;
}

.demo-day-card:hover img {
  transform: scale(1.04);
}

.demo-day-card__body {
  padding: 24px;
}

.demo-day-card__body h3 {
  margin: 0 0 12px;
  font-size: 22px;
  color: #111827;
}

.demo-day-card__body p {
  min-height: 72px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.demo-day-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.demo-day-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 650;
  transition: background 180ms ease, border-color 180ms ease;
}

.demo-day-link:hover {
  border-color: rgba(124, 77, 255, 0.34);
  background: rgba(124, 77, 255, 0.12);
}

.demo-day-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(124, 77, 255, 0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}

.demo-day-team {
  color: var(--muted);
  font-size: 13px;
}

/* Cohort 3 */
.cohort3-ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cohort3-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 22px 28px;
  border: 1px solid rgba(105, 89, 190, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76)),
    rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
}

.cohort3-item:hover {
  border-color: rgba(124, 77, 255, 0.3);
}

.cohort3-item__main h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.cohort3-item__main p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.cohort3-item__team {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .mentor-grid,
  .demo-day-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .mentor-grid,
  .demo-day-grid {
    grid-template-columns: 1fr;
  }

  .cohort3-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cohort3-item__team {
    white-space: normal;
  }
}
