@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Serif+SC:wght@600;700&display=swap');

:root {
  --ink: #0b1c2c;
  --ink-soft: #1a3348;
  --teal: #0e7c86;
  --cyan: #7dd3fc;
  --cyan-deep: #38bdf8;
  --sand: #eef4f7;
  --paper: #f7fbfc;
  --muted: #5b7380;
  --line: rgba(11, 28, 44, 0.12);
  --radius: 18px;
  --max: 1180px;
  --font-sans: "DM Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* —— Nav —— */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.is-solid {
  background: rgba(7, 20, 31, 0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(125, 211, 252, 0.12);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f4fbff;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  padding: 8px 12px;
  color: rgba(232, 246, 248, 0.82);
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
  background: rgba(125, 211, 252, 0.12);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, #0e7c86, #0a4d63);
  color: #fff !important;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: #e8f6f8;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #e8f6f8;
  background:
    radial-gradient(900px 520px at 75% 20%, rgba(56, 189, 248, 0.28), transparent 60%),
    radial-gradient(700px 480px at 15% 80%, rgba(14, 124, 134, 0.35), transparent 55%),
    linear-gradient(165deg, #040b14 0%, #0b1c2c 45%, #0a2f38 100%);
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 11, 20, 0.35) 0%, rgba(4, 11, 20, 0.55) 45%, rgba(4, 11, 20, 0.92) 100%),
    var(--hero-image, url('../assets/campus.jpg')) center / cover no-repeat;
  opacity: 0.55;
  transform: scale(1.04);
  animation: slowZoom 18s ease-in-out infinite alternate;
}
.hero-staff {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.35), transparent);
  box-shadow: 0 16px 0 rgba(125, 211, 252, 0.14), 0 32px 0 rgba(125, 211, 252, 0.08), 0 48px 0 rgba(125, 211, 252, 0.05);
  transform: rotate(-3deg);
  animation: staffGlow 6s ease-in-out infinite;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 140px 0 72px;
}
.hero-brand {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 0.95;
  color: #f7fcff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  animation: riseIn 0.9s ease both;
}
.hero-title {
  margin: 0;
  max-width: 14em;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  animation: riseIn 0.9s ease 0.12s both;
}
.hero-lead {
  margin: 16px 0 0;
  max-width: 28em;
  font-size: 16px;
  color: rgba(232, 246, 248, 0.78);
  animation: riseIn 0.9s ease 0.22s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  animation: riseIn 0.9s ease 0.32s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(120deg, #0e7c86, #0a4d63);
  color: #fff;
  box-shadow: 0 12px 30px rgba(14, 124, 134, 0.35);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  border-color: rgba(125, 211, 252, 0.35);
  color: #e8f6f8;
}

/* —— Sections —— */
.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
}
.band {
  padding: 64px 0;
}
.band > .section {
  padding: 0;
}
.band-sand { background: var(--sand); }
.section-head {
  max-width: 40em;
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.section-dark {
  background: linear-gradient(180deg, #07141f, #0b1c2c);
  color: #e8f6f8;
}
.section-dark .section-head p { color: rgba(232, 246, 248, 0.68); }
.section-sand { background: var(--sand); }

.mission {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.mission-visual {
  position: relative;
  min-height: 360px;
  border-radius: 28px;
  overflow: hidden;
  background: #0b1c2c;
}
.mission-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}
.mission-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 20, 31, 0.72));
}
.mission-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 1;
  color: #e8f6f8;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.paths {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 24px;
  overflow: hidden;
}
.path-link {
  display: block;
  padding: 28px 24px 32px;
  background: rgba(255,255,255,0.03);
  transition: background 0.25s ease;
}
.path-link:hover { background: rgba(56, 189, 248, 0.08); }
.path-link strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 8px;
}
.path-link span {
  color: rgba(232, 246, 248, 0.65);
  font-size: 14px;
}

/* —— Data strips —— */
.strip-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}
.strip-head .strip-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.strip-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.strip-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 36em;
}
.strip-more {
  flex-shrink: 0;
  color: var(--teal);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.strip-more:hover { text-decoration: underline; }

/* 自适应铺满：少量条目也会拉满可用宽度，避免左侧一小块、右侧大空白 */
.home-grid,
.grid-cards,
.rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 22px;
}

.media-item {
  display: block;
  border: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  color: inherit;
  width: 100%;
  transition: transform 0.2s ease;
}
.media-item:hover { transform: translateY(-2px); }
.media-item .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(145deg, #d7e3ea, #eef4f7);
}
.media-item .thumb img,
.media-item .thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-item .thumb .play {
  position: absolute;
  inset: auto 14px 14px auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(7, 20, 31, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.media-item .meta {
  margin-top: 14px;
}
.media-item .meta strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
}
.media-item .meta em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.media-item .meta em:empty { display: none; }

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 22px;
}
.member {
  display: block;
  text-align: left;
  color: inherit;
  transition: transform 0.2s ease;
}
.member:hover { transform: translateY(-2px); }
.member .avatar {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #d7e3ea, #eef4f7);
}
.member .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member h3 {
  margin: 14px 0 0;
  font-size: 17px;
  font-family: var(--font-serif);
}
.member p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status-line {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.85;
}
.status-line:empty { display: none; }
.status-line.is-error { color: #b42318; opacity: 1; }
.status-line.is-ok { color: var(--teal); }

.empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  grid-column: 1 / -1;
}

/* —— Page shell —— */
.page-hero {
  position: relative;
  padding: 140px 0 48px;
  color: #e8f6f8;
  background:
    radial-gradient(700px 360px at 80% 0%, rgba(56, 189, 248, 0.22), transparent 60%),
    linear-gradient(160deg, #07141f, #0b1c2c 60%, #0e3a44);
}
.page-hero .inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.page-hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: 0.06em;
}
.page-hero p {
  margin: 12px 0 0;
  max-width: 32em;
  color: rgba(232, 246, 248, 0.72);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
}
.chip.is-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
a.chip:hover { border-color: var(--teal); color: var(--teal); }
a.chip.is-on:hover { color: #fff; border-color: var(--ink); }

.grid-cards .media-item .thumb { aspect-ratio: 4 / 3; }

/* —— Detail —— */
.page-hero--detail .crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 13px;
  color: rgba(232, 246, 248, 0.55);
}
.page-hero--detail .crumb a { color: rgba(232, 246, 248, 0.78); }
.page-hero--detail .crumb a:hover { color: var(--cyan); }
.detail-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(125, 211, 252, 0.1);
  color: #cfefff;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.detail-section { padding-top: 40px; }
.detail-player {
  border-radius: 20px;
  overflow: hidden;
  background: #0b1c2c;
  border: 1px solid var(--line);
}
.detail-player video,
.detail-player img {
  width: 100%;
  display: block;
  background: #000;
}
.detail-player--image img {
  max-height: 72vh;
  object-fit: contain;
  background: #07141f;
}
.detail-player--audio {
  display: grid;
  gap: 20px;
  justify-items: center;
  padding: 36px 24px 28px;
  background: linear-gradient(160deg, #07141f, #0b1c2c 60%, #0e3a44);
  color: #e8f6f8;
}
.detail-player--audio img {
  width: min(220px, 56vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  background: #123;
}
.detail-player--audio audio { width: min(520px, 100%); }
.detail-player--avatar {
  width: min(320px, 100%);
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
}
.detail-player--avatar img {
  aspect-ratio: 1;
  object-fit: cover;
}
.detail-player--empty {
  position: relative;
  text-align: center;
  color: #e8f6f8;
}
.detail-player--empty img { opacity: 0.55; max-height: 420px; object-fit: cover; }
.detail-player--empty p {
  position: absolute;
  inset: auto 0 24px;
  margin: 0;
}
.detail-hint { margin: 0; opacity: 0.7; font-size: 14px; }
.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
}
.detail-meta > div {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--sand);
  border: 1px solid var(--line);
}
.detail-meta dt {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.detail-meta dd {
  margin: 6px 0 0;
  font-weight: 600;
}
.detail-body {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.detail-body-title {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 24px;
}
.rich-text {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
}
.rich-text p { margin: 0 0 1em; }
.rich-text img { border-radius: 12px; margin: 12px 0; }
.rich-text a { color: var(--teal); text-decoration: underline; }
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

/* footer */
.site-footer {
  padding: 48px 0 36px;
  background: #07141f;
  color: rgba(232, 246, 248, 0.7);
}
.site-footer .inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.site-footer strong {
  display: block;
  color: #f4fbff;
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.site-footer a { color: var(--cyan); }
.site-footer .beian {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.site-footer .beian a {
  color: rgba(232, 246, 248, 0.55);
}
.site-footer .beian a:hover {
  color: var(--cyan);
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slowZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}
@keyframes staffGlow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}

@media (max-width: 960px) {
  .mission { grid-template-columns: 1fr; }
  .paths { grid-template-columns: 1fr 1fr; }
  .band { padding: 52px 0; }
  .section { padding: 56px 0; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 16px;
    background: rgba(7, 20, 31, 0.96);
    border: 1px solid rgba(125, 211, 252, 0.15);
  }
  .nav-links.is-open { display: flex; }
  .paths { grid-template-columns: 1fr; }
  .hero-content { padding-top: 120px; }
  .strip-head .strip-row { flex-wrap: wrap; }
}


.detail-lead {
  margin: 12px 0 0;
  max-width: 40em;
  color: rgba(232, 246, 248, 0.78);
  font-size: 16px;
  line-height: 1.7;
}
.related-block {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.related-block .strip-head {
  margin-bottom: 20px;
}
