/* ============================================================
   Presentations Page — ShuoAn Personal Showcase
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=LXGW+WenKai:wght@300;400;700&family=Noto+Sans+SC:wght@300;400;500&display=swap');

html:has(.page-presentations) {
  height: auto !important;
}

body.page-presentations {
  display: block !important;
  width: 100% !important;
  min-height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-wrap: normal !important;

  --shuoan-bg: #F4F1EC;
  --shuoan-bg-dark: #1E1E1E;
  --shuoan-bg-warm: #EAE3D9;
  --shuoan-text: #2C2C2C;
  --shuoan-text-secondary: #6B6B6B;
  --shuoan-accent: #C06C4D;
  --shuoan-border: rgba(44, 44, 44, 0.1);

  background-color: var(--shuoan-bg) !important;
  color: var(--shuoan-text) !important;
  font-family: 'Noto Sans SC', 'Inter', sans-serif !important;
  font-size: 15px !important;
  line-height: 1.85 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-presentations * {
  box-sizing: border-box;
}

.page-presentations::selection {
  background-color: var(--shuoan-accent);
  color: white;
}

.page-presentations h1,
.page-presentations h2,
.page-presentations h3,
.page-presentations h4 {
  font-family: 'LXGW WenKai', 'Noto Sans SC', sans-serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  word-break: keep-all;
  color: inherit;
  margin: 0;
  padding: 0;
  border: none;
}

/* ========== NAV ========== */
.shuoan-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease;
}

.shuoan-nav.scrolled {
  background-color: rgba(244, 241, 236, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.shuoan-nav__brand {
  font-family: 'LXGW WenKai', 'Noto Sans SC', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--shuoan-text);
  text-decoration: none;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--shuoan-text);
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.shuoan-nav__brand:hover {
  color: var(--shuoan-accent);
  border-color: var(--shuoan-accent);
}

.shuoan-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid rgba(44, 44, 44, 0.08);
}

.shuoan-nav__links a {
  position: relative;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--shuoan-text);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  display: block;
}

.shuoan-nav__links a:hover {
  color: var(--shuoan-accent);
  background: rgba(192, 108, 77, 0.08);
}

.shuoan-nav__links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--shuoan-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.shuoan-nav__links a:hover::after {
  opacity: 1;
}

.shuoan-nav__menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60;
}

.shuoan-nav__menu span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--shuoan-text);
  transition: all 0.3s ease;
  transform-origin: center;
}

.shuoan-nav__menu.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.shuoan-nav__menu.active span:nth-child(2) {
  opacity: 0;
}

.shuoan-nav__menu.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.shuoan-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--shuoan-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.shuoan-mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.shuoan-mobile-overlay a {
  font-family: 'LXGW WenKai', 'Noto Sans SC', sans-serif;
  font-size: 28px;
  color: var(--shuoan-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.shuoan-mobile-overlay a:hover {
  color: var(--shuoan-accent);
}

@media (max-width: 636px) {
  .shuoan-nav {
    padding: 0 20px;
    height: 64px;
  }
  .shuoan-nav__links {
    display: none;
  }
  .shuoan-nav__menu {
    display: flex;
  }
}

/* ========== HERO ========== */
.shuoan-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.shuoan-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.shuoan-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shuoan-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(244, 241, 236, 0.95) 0%,
    rgba(244, 241, 236, 0.5) 35%,
    transparent 60%
  );
}

.shuoan-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 48px 80px;
}

.shuoan-hero__caption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--shuoan-text-secondary);
  margin-bottom: 24px;
}

.shuoan-hero__title {
  font-size: 64px;
  line-height: 1.1;
  color: #3a3630;
  margin-bottom: 32px;
}

.shuoan-hero__title .line {
  display: block;
  overflow: hidden;
}

.shuoan-hero__title .line span {
  display: block;
  transform: translateY(100%);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.shuoan-hero__title.visible .line span {
  transform: translateY(0);
}

.shuoan-hero__title .line:nth-child(2) span {
  transition-delay: 0.08s;
}

.shuoan-hero__desc {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--shuoan-text-secondary);
  max-width: 560px;
  margin-bottom: 32px;
}

.shuoan-hero__avatars {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shuoan-avatars {
  display: flex;
}

.shuoan-avatars__item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--shuoan-bg);
  margin-left: -8px;
}

.shuoan-avatars__item:first-child {
  margin-left: 0;
}

.shuoan-hero__cta {
  font-size: 14px;
  color: var(--shuoan-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.shuoan-hero__cta:hover {
  color: var(--shuoan-accent);
}

@media (max-width: 636px) {
  .shuoan-hero__content {
    padding: 0 20px 48px;
  }
  .shuoan-hero__title {
    font-size: 36px;
  }
  .shuoan-hero__desc {
    font-size: 14px;
  }
}

/* ========== ABOUT ========== */
.shuoan-about {
  padding: 120px 48px;
  background-color: var(--shuoan-bg-warm);
}

.shuoan-about__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
}

.shuoan-about__left {
  flex: 0 0 40%;
}

.shuoan-about__right {
  flex: 1;
}

.shuoan-about__image {
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 32px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.shuoan-about__image img {
  width: 100%;
  height: auto;
  display: block;
  object-position: center 40%;
}

.shuoan-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.shuoan-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-family: 'Noto Sans SC', sans-serif;
  letter-spacing: 0.02em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.shuoan-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.shuoan-tag:nth-child(1) { background: #F5E6D3; color: #8B6914; }
.shuoan-tag:nth-child(2) { background: #E8DED0; color: #7A6B5D; }
.shuoan-tag:nth-child(3) { background: #D4E5ED; color: #4A6B7A; }
.shuoan-tag:nth-child(4) { background: #E5DDD4; color: #6B5B4E; }
.shuoan-tag:nth-child(5) { background: #DDE8D8; color: #5A6B4E; }
.shuoan-tag:nth-child(6) { background: #E2DAE5; color: #6B5B7A; }
.shuoan-tag:nth-child(7) { background: #F0E3D8; color: #7A5A3A; }
.shuoan-tag:nth-child(8) { background: #D8E2DC; color: #4A6B5A; }

.shuoan-section-caption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--shuoan-text-secondary);
  margin-bottom: 16px;
}

.shuoan-section-title {
  font-size: 48px;
  color: var(--shuoan-text);
  margin-bottom: 32px;
}

.shuoan-section-title .line {
  display: block;
  overflow: hidden;
}

.shuoan-section-title .line span {
  display: block;
  transform: translateY(100%);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.shuoan-section-title.visible .line span {
  transform: translateY(0);
}

.shuoan-section-title .line:nth-child(2) span {
  transition-delay: 0.08s;
}

.shuoan-about__text {
  color: var(--shuoan-text-secondary);
  margin-bottom: 24px;
}

.shuoan-about__text p {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .shuoan-about {
    padding: 80px 20px;
  }
  .shuoan-about__inner {
    flex-direction: column;
    gap: 40px;
  }
  .shuoan-section-title {
    font-size: 32px;
  }
}

/* ========== SKILLS HEADER ========== */
.shuoan-skills-header {
  padding: 120px 48px 60px;
  text-align: center;
  background-color: var(--shuoan-bg);
}

@media (max-width: 636px) {
  .shuoan-skills-header {
    padding: 80px 20px 40px;
  }
}

/* ========== TIMELINE ========== */
.shuoan-timeline {
  padding: 0 48px 120px;
  background-color: var(--shuoan-bg);
}

.shuoan-timeline__inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.shuoan-timeline__inner::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--shuoan-border) 10%,
    var(--shuoan-border) 90%,
    transparent 100%
  );
  transform: translateX(-50%);
}

.shuoan-timeline__item {
  display: flex;
  margin-bottom: 48px;
  position: relative;
}

.shuoan-timeline__item:last-child {
  margin-bottom: 0;
}

.shuoan-timeline__item:nth-child(odd) {
  flex-direction: row;
}

.shuoan-timeline__item:nth-child(even) {
  flex-direction: row-reverse;
}

.shuoan-timeline__content {
  width: 45%;
  padding: 20px 28px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.shuoan-timeline__content:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.shuoan-timeline__content::before {
  content: '';
  position: absolute;
  top: 28px;
  width: 12px;
  height: 12px;
  background: white;
  transform: rotate(45deg);
}

.shuoan-timeline__item:nth-child(odd) .shuoan-timeline__content::before {
  right: -6px;
}

.shuoan-timeline__item:nth-child(even) .shuoan-timeline__content::before {
  left: -6px;
}

.shuoan-timeline__year {
  width: 45%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--shuoan-text-secondary);
}

.shuoan-timeline__dot {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 10px;
  height: 10px;
  background: var(--shuoan-accent);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--shuoan-bg);
  z-index: 2;
}

.shuoan-timeline__title {
  font-family: 'LXGW WenKai', 'Noto Sans SC', sans-serif;
  font-size: 18px;
  color: var(--shuoan-text);
  margin-bottom: 8px;
  font-weight: 400;
}

.shuoan-timeline__desc {
  font-size: 14px;
  color: var(--shuoan-text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .shuoan-timeline {
    padding: 0 20px 80px;
  }
  .shuoan-timeline__inner::before {
    left: 20px;
  }
  .shuoan-timeline__item,
  .shuoan-timeline__item:nth-child(odd),
  .shuoan-timeline__item:nth-child(even) {
    flex-direction: column;
  }
  .shuoan-timeline__content,
  .shuoan-timeline__year {
    width: 100%;
    padding-left: 48px;
  }
  .shuoan-timeline__content {
    margin-bottom: 8px;
  }
  .shuoan-timeline__content::before {
    display: none;
  }
  .shuoan-timeline__year {
    justify-content: flex-start;
    padding-top: 0;
    padding-bottom: 16px;
  }
  .shuoan-timeline__dot {
    left: 20px;
    transform: translateX(-50%);
  }
}

/* ========== TRANSITION ========== */
.shuoan-transition {
  height: 60px;
  background: linear-gradient(
    to bottom,
    var(--shuoan-bg) 0%,
    #FAF6F0 100%
  );
}

/* ========== MUSIC (replaces Gallery) ========== */
.shuoan-music {
  padding: 120px 48px;
  background-color: #FAF6F0;
}

.shuoan-music__inner {
  max-width: 800px;
  margin: 0 auto;
}

.shuoan-music__header {
  text-align: center;
  margin-bottom: 64px;
}

.shuoan-music__player {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
  text-align: center;
}

.shuoan-music__cover {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

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

.shuoan-music__info h3 {
  font-family: 'LXGW WenKai', 'Noto Sans SC', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--shuoan-text);
  margin: 0 0 4px 0;
}

.shuoan-music__info p {
  font-size: 14px;
  color: var(--shuoan-text-secondary);
  margin: 0 0 28px 0;
}

.shuoan-music__progress {
  max-width: 400px;
  margin: 0 auto 24px;
}

.shuoan-music__progress-bar {
  height: 4px;
  background: #EDE8E0;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.shuoan-music__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--shuoan-accent), #D4846C);
  border-radius: 2px;
  width: 0%;
  transition: width 0.15s linear;
}

.shuoan-music__time {
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--shuoan-text-secondary);
  margin-top: 8px;
  letter-spacing: 0.05em;
}

.shuoan-music__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.shuoan-music__btn {
  background: none;
  border: none;
  color: var(--shuoan-text-secondary);
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.25s ease;
}

.shuoan-music__btn:hover {
  color: var(--shuoan-accent);
  background: rgba(192, 108, 77, 0.08);
}

.shuoan-music__btn:active {
  transform: scale(0.92);
}

.shuoan-music__btn--play {
  width: 56px;
  height: 56px;
  background: var(--shuoan-accent);
  color: white;
  box-shadow: 0 4px 18px rgba(192, 108, 77, 0.35);
}

.shuoan-music__btn--play:hover {
  background: #B05E40;
  color: white;
  transform: scale(1.06);
}

.shuoan-music__btn--play:active {
  transform: scale(0.95);
}

.shuoan-music__playlist {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.shuoan-music__song {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  cursor: pointer;
  border-bottom: 1px solid rgba(44, 44, 44, 0.05);
  transition: background 0.2s ease;
}

.shuoan-music__song:last-child {
  border-bottom: none;
}

.shuoan-music__song:hover {
  background: rgba(192, 108, 77, 0.04);
}

.shuoan-music__song.active {
  background: rgba(192, 108, 77, 0.08);
}

.shuoan-music__song.active .shuoan-music__song-num {
  color: var(--shuoan-accent);
}

.shuoan-music__song.active .shuoan-music__song-name {
  color: var(--shuoan-accent);
}

.shuoan-music__song-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--shuoan-text-secondary);
  min-width: 28px;
  text-align: center;
  transition: color 0.2s ease;
}

.shuoan-music__song-name {
  flex: 1;
  font-size: 15px;
  color: var(--shuoan-text);
  font-family: 'LXGW WenKai', 'Noto Sans SC', sans-serif;
  transition: color 0.2s ease;
}

.shuoan-music__song-artist {
  font-size: 13px;
  color: var(--shuoan-text-secondary);
}

@media (max-width: 636px) {
  .shuoan-music {
    padding: 80px 20px;
  }
  .shuoan-music__player {
    padding: 28px 20px;
  }
  .shuoan-music__cover {
    width: 140px;
    height: 140px;
  }
  .shuoan-music__song {
    padding: 14px 20px;
  }
}

/* ========== PAGE FOOTER ========== */
.shuoan-page-footer {
  background-color: var(--shuoan-bg-dark);
  padding: 24px 48px;
}

.shuoan-page-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shuoan-page-footer__copyright {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.35);
}

.shuoan-page-footer__top {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.35);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.shuoan-page-footer__top:hover {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 636px) {
  .shuoan-page-footer {
    padding: 20px 20px;
  }
  .shuoan-page-footer__inner {
    flex-direction: column;
    gap: 12px;
  }
}