/* ==========================================================================
   Home Cover Stylesheet (Sunny Sky Blue, Cyan & Warm Gold Unified Theme)
   ========================================================================== */
:root {
  --ink: #172033;
  --ink-soft: #44506a;
  --muted: #647998;
  --paper: #f8fbff;
  --blue: #2b6cff;
  --blue-deep: #1648b6;
  --cyan: #22c8da;
  --yellow: #ffcc4d;
  --line: rgba(35, 73, 145, 0.12);
  font-family: Inter, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 12%, rgba(77, 213, 232, 0.22), transparent 28rem),
    radial-gradient(circle at 4% 80%, rgba(255, 204, 77, 0.2), transparent 25rem),
    linear-gradient(180deg, #f8fbff, #fffdf7 62%, #f6fbff);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(43, 108, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 108, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 500;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(43, 108, 255, 0.35);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 14px;
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.ambient {
  position: fixed;
  pointer-events: none;
  filter: blur(65px);
  opacity: 0.38;
  z-index: 0;
}

.ambient-one {
  width: 34vw;
  height: 34vw;
  background: #83def0;
  right: -8vw;
  top: 6vh;
  border-radius: 50%;
}

.ambient-two {
  width: 25vw;
  height: 25vw;
  background: #ffdc85;
  left: -10vw;
  bottom: -10vw;
  border-radius: 50%;
}

/* ---------- Unified Sticky Header ---------- */
.home-header {
  width: 100%;
  height: 86px;
  margin: 0;
  padding-inline: max(32px, calc((100% - 1480px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 251, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  justify-self: start;
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  box-shadow: 0 8px 22px rgba(43, 108, 255, 0.24);
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  border-radius: 999px;
}

.home-nav a {
  min-width: 72px;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.home-nav a:hover,
.home-nav a:focus-visible,
.home-nav a[aria-current="page"] {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 7px 16px rgba(43, 108, 255, 0.22);
  outline: none;
}

.lock-dot {
  font-size: 0.72rem;
  line-height: 1;
}

.header-badge {
  justify-self: end;
  color: var(--blue-deep);
  border: 1px solid rgba(43, 108, 255, 0.2);
  background: rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- Hero Cover Card ---------- */
.cover {
  width: min(1480px, calc(100% - 64px));
  min-height: calc(100svh - 236px);
  margin: 26px auto 0;
  padding: 0 clamp(30px, 4.4vw, 72px);
  border-radius: 36px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 3.6vw;
  position: relative;
  z-index: 1;
  color: #fff;
  background: linear-gradient(122deg, #1342ab 0%, #2463f0 56%, #33b6d6 100%);
  box-shadow: 0 26px 80px rgba(38, 80, 150, 0.22);
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.2), transparent 23rem),
    radial-gradient(circle at 18% 92%, rgba(8, 34, 104, 0.52), transparent 28rem),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 58px 58px, 58px 58px;
}

.cover-copy,
.cover-art {
  position: relative;
  z-index: 2;
}

.cover-copy {
  padding: clamp(46px, 5vw, 72px) 0;
}

.overline {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffe896;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  margin: 0 0 20px;
}

.overline-line {
  width: 34px;
  height: 2px;
  background: var(--yellow);
}

.cover h1 {
  font-size: clamp(50px, 5.5vw, 94px);
  line-height: 1.06;
  letter-spacing: -0.055em;
  margin: 0;
  font-weight: 900;
}

.cover h1 span:first-child {
  color: #fff;
}

.name-highlight {
  color: var(--yellow);
}

.title-period {
  color: #fff;
}

/* ---------- Identity Subtitle & Research Tags ---------- */
.identity-block {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.identity-headline {
  margin: 0;
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.identity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.identity-tags span {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(9, 34, 102, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.cover-intro {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(15px, 1.12vw, 17.5px);
  line-height: 1.82;
  margin: 20px 0 28px;
  max-width: 590px;
}

.cover-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px;
  min-height: 50px;
  border-radius: 999px;
  background: var(--yellow);
  color: #161822;
  font-size: 14.5px;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(9, 28, 86, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-link:hover,
.primary-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(9, 28, 86, 0.32);
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  min-height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.secondary-link:hover,
.secondary-link:focus-visible {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  font-size: 14px;
  color: #ffe896;
}

.text-link span {
  margin-left: 5px;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ---------- Academic / Social Contact Strip ---------- */
.contact-strip {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.contact-chip-cover {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(10, 38, 110, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contact-chip-cover:hover,
.contact-chip-cover:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

/* ---------- Vinyl Record Player ---------- */
.cover-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0 54px;
}

.record-stage {
  position: relative;
  width: min(35vw, 460px);
  min-width: 320px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.record-halo {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 120, 0.26), rgba(255, 255, 255, 0.07) 55%, transparent 74%);
  animation: halo 4.2s ease-in-out infinite alternate;
}

@keyframes halo {
  to {
    transform: scale(1.07);
    opacity: 0.65;
  }
}

.record-button {
  border: 0;
  background: none;
  padding: 0;
  position: relative;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  box-shadow:
    0 0 0 3px var(--yellow),
    0 0 0 10px rgba(0, 0, 0, 0.62),
    0 0 35px rgba(255, 204, 77, 0.45),
    0 28px 72px rgba(0, 0, 0, 0.52);
  transition: filter 0.22s ease, transform 0.28s ease;
}

.record-button:hover,
.record-button:focus-visible {
  filter: brightness(1.08);
  transform: scale(1.015);
}

.record-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 14px;
}

.vinyl-record {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background: repeating-radial-gradient(
    circle at center,
    #242327 0 2px,
    #0b0b0e 3px 4px,
    #29262b 5px 6px,
    #0a0a0d 7px 9px
  );
  animation: record-spin 18s linear infinite;
  animation-play-state: paused;
}

.record-button.is-playing .vinyl-record {
  animation-play-state: running;
}

@keyframes record-spin {
  to {
    transform: rotate(360deg);
  }
}

.vinyl-record::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.32), transparent 26%, transparent 68%, rgba(255, 255, 255, 0.14));
  pointer-events: none;
}

.vinyl-label {
  position: absolute;
  inset: 10%;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid #d7ae35;
  background: #2955ad;
}

.vinyl-label img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: left center;
}

.record-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #101018;
  border: 4px solid #f8df90;
  box-shadow: 0 0 0 5px rgba(19, 19, 27, 0.45);
}

.orbit-copy {
  position: absolute;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.15em;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(8, 25, 74, 0.55);
}

.orbit-copy-top {
  top: -3%;
  right: -1%;
}

.orbit-copy-bottom {
  bottom: -4%;
  left: -2%;
  letter-spacing: 0.12em;
}

.music-status {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(10, 40, 118, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.music-icon {
  color: var(--yellow);
  font-size: 17px;
  line-height: 1;
}

/* ---------- Chapter Preview Cards ---------- */
.chapter-preview {
  width: min(1480px, calc(100% - 64px));
  margin: 20px auto 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
  z-index: 2;
}

.chapter-preview a {
  min-width: 0;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(43, 108, 255, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px rgba(38, 80, 150, 0.08);
  color: var(--ink);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.chapter-preview a:hover,
.chapter-preview a:focus-visible {
  background: #eef5ff;
  border-color: rgba(43, 108, 255, 0.32);
  transform: translateY(-2px);
}

.chapter-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.chapter-number {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.lock-pill {
  font-style: normal;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: #e8f0ff;
  letter-spacing: 0.03em;
}

.chapter-preview strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.chapter-meta small {
  color: var(--ink-soft);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chapter-arrow {
  flex: none;
  color: var(--blue);
  font-size: 21px;
  font-weight: 700;
}

/* ---------- Home Footer ---------- */
.home-footer {
  width: min(1480px, calc(100% - 64px));
  margin: 0 auto;
  padding: 20px 0 36px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 24px;
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 12.5px;
}

.footer-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.footer-brand-row > span {
  font-weight: 700;
  color: var(--ink-soft);
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.contact-chip-footer {
  color: var(--blue-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-chip-footer:hover {
  color: var(--blue);
}

.footer-legal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.footer-legal-row a {
  color: #445f8c;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.footer-legal-row a:hover,
.footer-legal-row a:focus-visible {
  color: var(--blue);
}

.home-footer .mps-record {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.home-footer .mps-record img {
  width: 15px;
  height: 15px;
  display: block;
  flex: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cover {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
  }

  .cover-copy {
    padding: 52px 0 12px;
  }

  .cover-art {
    padding: 28px 0 52px;
  }

  .record-stage {
    width: min(60vw, 400px);
    min-width: 0;
  }

  .chapter-preview {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .home-header {
    height: 72px;
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding-inline: 14px;
  }

  .header-badge {
    display: none;
  }

  .home-brand {
    gap: 6px;
    font-size: 0.76rem;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .brand-symbol {
    width: 32px;
    height: 32px;
    font-size: 0.72rem;
  }

  .home-nav {
    justify-self: end;
    gap: 2px;
    padding: 4px;
  }

  .home-nav a {
    min-width: 50px;
    min-height: 40px;
    padding: 6px 9px;
    font-size: 0.74rem;
  }

  .cover,
  .chapter-preview,
  .home-footer {
    width: calc(100% - 28px);
  }

  .cover {
    margin-top: 14px;
    padding: 0 22px;
    border-radius: 26px;
  }

  .cover-copy {
    padding-top: 40px;
  }

  .cover h1 {
    font-size: clamp(36px, 10vw, 56px);
    white-space: normal;
    word-break: break-word;
  }

  .desktop-break {
    display: none;
  }

  .identity-headline {
    font-size: 15.5px;
  }

  .cover-intro {
    font-size: 14.5px;
    margin: 16px 0 22px;
  }

  .cover-actions {
    gap: 10px 14px;
  }

  .primary-link,
  .secondary-link {
    min-height: 46px;
    font-size: 13.5px;
    padding: 0 18px;
  }

  .record-stage {
    width: min(74vw, 320px);
  }

  .orbit-copy {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .orbit-copy-top {
    right: 0;
  }

  .orbit-copy-bottom {
    left: 0;
  }

  .chapter-preview a {
    padding: 18px 18px;
    border-radius: 18px;
  }

  .chapter-preview strong {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient,
  .record-halo {
    animation: none;
  }

  .vinyl-record {
    animation-duration: 60s;
  }

  * {
    scroll-behavior: auto !important;
  }
}
