:root {
  --bar-height: 32px;
  --dock-height: 90px;
  --glass-bg: rgba(245, 245, 245, 0.35);
  --glass-border: rgba(255, 255, 255, 0.45);
  --text-light: #f7f7f7;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  position: relative;
  color: var(--text-light);
}

.desktop-bg {
  position: fixed;
  inset: 0;
  background: url("./assets/109759d806d04dc8f595e7c025ef65e4.png") center center / cover no-repeat;
  filter: saturate(1.03) brightness(0.95);
  transform: scale(1.02);
  z-index: -2;
}

.desktop-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.24) 0%,
    rgba(0, 0, 0, 0.1) 25%,
    rgba(0, 0, 0, 0.12) 100%
  );
}

.landing-title {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.26);
  z-index: 14;
}

.landing-title h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 7vw, 72px);
  letter-spacing: 0.02em;
  font-weight: 700;
}

.landing-title p {
  margin: 6px 0 0;
  font-size: clamp(12px, 1.8vw, 18px);
  font-weight: 500;
}

.desktop-main {
  position: relative;
  width: 100%;
  height: 100%;
}

@keyframes toastIn {
  from {
    transform: translateY(-6px) scale(0.985);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes ctaFloat {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.92;
  }
  50% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.folders-layer {
  position: absolute;
  inset: 0;
  z-index: 12;
}

.folder-btn {
  position: absolute;
  border: none;
  background: transparent;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, filter 160ms ease;
}

.folder-icon {
  width: 96px;
  height: 66px;
  border-radius: 9px;
  position: relative;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.2));
}

.folder-icon::before {
  content: "";
  position: absolute;
  width: 26px;
  height: 9px;
  border-radius: 6px 6px 0 0;
  top: -5px;
  left: 12px;
  background: inherit;
  filter: brightness(1.05);
}

.folder-about {
  left: 12%;
  top: 42%;
}

.folder-rigor {
  left: 10%;
  top: 64%;
}

.folder-universe {
  right: 18%;
  top: 33%;
}

.folder-work {
  right: 14%;
  top: 52%;
}

.folder-responsibility {
  right: 19%;
  top: 72%;
}

.folder-about .folder-icon,
.folder-rigor .folder-icon {
  background: linear-gradient(180deg, #e7c9a8 0%, #dbba96 100%);
}

.folder-universe .folder-icon {
  background: linear-gradient(180deg, #cfdae2 0%, #c2ced7 100%);
}

.folder-work .folder-icon {
  background: linear-gradient(180deg, #dce5eb 0%, #c9d4dd 100%);
}

.folder-responsibility .folder-icon {
  background: linear-gradient(180deg, #e7c7bf 0%, #dab2a8 100%);
}

.folder-label {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  max-width: 220px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.42);
}

.folder-btn:hover {
  transform: scale(1.08) translateY(-2px);
  opacity: 0.96;
  filter: brightness(1.08);
}

.folder-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
  border-radius: 10px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 14, 0.5);
  backdrop-filter: blur(6px);
  z-index: 50;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-window {
  position: relative;
  width: min(860px, 92vw);
  min-height: 440px;
  border-radius: 18px;
  padding: 28px 30px;
  color: #f0f4ff;
  background: rgba(28, 33, 52, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}

.modal-window.cv-theme {
  width: min(1120px, 96vw);
  min-height: 0;
  max-height: 92vh;
  padding: 20px;
  background: rgba(249, 249, 247, 0.9);
  color: #2c2c2c;
}

.modal-window.editorial-theme {
  width: min(1120px, 96vw);
  min-height: 0;
  max-height: 92vh;
  padding: 20px;
  background: rgba(249, 249, 247, 0.92);
  color: #2c2c2c;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  font-size: 24px;
  color: #25304d;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.modal-window.cv-theme .modal-close {
  color: #1b3022;
  background: rgba(226, 235, 228, 0.9);
  border: 1px solid rgba(27, 48, 34, 0.2);
}

.modal-window.editorial-theme .modal-close {
  color: #1b3022;
  background: rgba(243, 247, 243, 0.92);
  border: 1px solid rgba(27, 48, 34, 0.2);
}

.modal-body {
  margin-top: 20px;
  line-height: 1.6;
  color: rgba(241, 244, 255, 0.95);
}

.modal-window.cv-theme .modal-body {
  margin-top: 0;
  color: #2c2c2c;
}

.modal-window.editorial-theme .modal-body {
  margin-top: 0;
  color: #2c2c2c;
}

.cv-download-btn {
  background: linear-gradient(to right, #1b3022 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: right bottom;
}

.cv-download-btn:hover {
  background-position: left bottom;
  color: #f9f9f7;
}

.cv-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.cv-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rigor-item {
  position: relative;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.75);
}

.rigor-item:nth-child(odd) {
  border-right: 0.5px solid rgba(0, 0, 0, 0.75);
}

.rigor-card {
  margin-left: 10px;
  padding: 16px 16px 18px;
  background: rgba(249, 249, 247, 0.72);
}

.rigor-phase-divider {
  border-top: 0.5px solid rgba(0, 0, 0, 0.75);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.75);
  background: rgba(249, 249, 247, 0.88);
}

.rigor-phase-divider--section-start {
  border-top: none;
}

.rigor-phase-card {
  margin-left: 10px;
  padding: 18px 16px 20px;
  background: transparent;
}

.rigor-phase-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(27, 48, 34, 0.72);
}

.rigor-phase-title {
  margin: 8px 0 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.35;
  font-weight: 600;
  color: #1b3022;
}

.rigor-node {
  position: absolute;
  left: -26px;
  top: 26px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #1b3022;
  border: 1.5px solid #f9f9f7;
  box-shadow: 0 0 0 0 rgba(27, 48, 34, 0.35);
  transition: transform 180ms ease, box-shadow 200ms ease;
}

.rigor-item:hover .rigor-node {
  transform: scale(1.25);
  box-shadow: 0 0 0 8px rgba(27, 48, 34, 0.14);
}

.rigor-date {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  line-height: 1.3;
  color: #1c1c1c;
}

.rigor-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border: 0.5px solid rgba(27, 48, 34, 0.65);
  border-radius: 999px;
  font-size: 12px;
  color: #1b3022;
  background: rgba(27, 48, 34, 0.06);
}

.rigor-copy {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: #343434;
}

.rigor-image-slot {
  margin-top: 14px;
  height: 118px;
  border: 0.5px dashed rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(30, 30, 30, 0.58);
  background: rgba(255, 255, 255, 0.55);
}

.rigor-image {
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 0.5px solid rgba(0, 0, 0, 0.4);
}

.rigor-image-original {
  height: auto;
  max-height: 520px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.86);
}

.rigor-download-btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 0.5px solid rgba(27, 48, 34, 0.7);
  color: #1b3022;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(27, 48, 34, 0.06);
  transition: all 180ms ease;
}

.rigor-download-btn:hover {
  background: #1b3022;
  color: #f9f9f7;
}

.rigor-file-note {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(44, 44, 44, 0.72);
}

.modal-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

@media (max-width: 900px) {
  .folder-icon {
    width: 78px;
    height: 54px;
  }

  .folder-label {
    font-size: 12px;
    max-width: 176px;
  }

  .folder-about {
    left: 10%;
    top: 40%;
  }

  .folder-rigor {
    left: 8%;
    top: 64%;
  }

  .folder-universe {
    right: 10%;
    top: 35%;
  }

  .folder-work {
    right: 8%;
    top: 54%;
  }

  .folder-responsibility {
    right: 12%;
    top: 73%;
  }

  .rigor-item:nth-child(odd) {
    border-right: none;
  }

  .rigor-date {
    font-size: 19px;
  }
}
/* ========== My Little Universe 专用样式 ========== */
.little-universe-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  background-color: #ffffff;
  border-radius: 28px;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1f1c2c 0%, #2a2a3a 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.section-header p {
  font-size: 1.1rem;
  color: #5b5b6b;
  border-top: 1px solid #e2e2e6;
  padding-top: 1rem;
}

.universe-block {
  margin-bottom: 5rem;
}

.block-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;        /* 加粗 */
  border-left: 6px solid #d4af7a;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
  color: #1B3022;          /* 深森林绿，与你的 CV 主题色一致 */
  /* 或者用 #2C3E2F / #3A2C1F 等 */
}
.block-desc {
  color: #3a3a44;
  margin-bottom: 1.5rem;
}

/* Global Citizen 区域 */
.global-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}
.global-text p {
  line-height: 1.6;
  color: #2c2c36;
}
.global-quote {
  font-style: italic;
  border-left: 3px solid #d4af7a;
  padding-left: 1rem;
  color: #6c6c7a;
  margin-top: 1rem;
}
.photo-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.photo-card {
  flex: 0 0 calc(33% - 0.7rem);
  background: #f3f3f5;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 24px -12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}
.photo-card:nth-child(1) { transform: translateY(-8px) rotate(-2deg); }
.photo-card:nth-child(2) { transform: translateY(12px) rotate(3deg); }
.photo-card:nth-child(3) { transform: translateY(0px) rotate(-1deg); }
.photo-card:hover {
  transform: translateY(-12px) scale(1.02) rotate(0deg);
  box-shadow: 0 24px 36px -12px rgba(0,0,0,0.25);
}
.placeholder-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #e0e0e8, #cdcdd6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: #4a4a5a;
  text-align: center;
  padding: 1rem;
}
.photo-card p {
  padding: 0.75rem;
  font-size: 0.8rem;
  background: white;
  border-top: 1px solid #efefef;
}

/* 摄影区域 */
.photography-hero {
  margin-bottom: 1.5rem;
  border-radius: 32px;
  overflow: hidden;
}
.hero-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #c7c7d4, #b1b1c0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2e2e3a;
}
.horizontal-gallery {
  overflow-x: auto;
  display: flex;
  gap: 1rem;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}
.horizontal-gallery::-webkit-scrollbar {
  height: 6px;
}
.gallery-item {
  scroll-snap-align: start;
  flex: 0 0 260px;
  border-radius: 20px;
  background: #fafafc;
  transition: transform 0.2s;
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 18px 28px -12px rgba(0,0,0,0.2);
}
.gallery-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(120deg, #dadce5, #c2c4d0);
  border-radius: 20px 20px 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: #3c3c4a;
}
.gallery-item p {
  padding: 0.7rem;
  text-align: center;
  font-size: 0.75rem;
}

/* 徒步拼贴 */
.collage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.collage-item {
  background: #f5f4f7;
  border-radius: 28px;
  overflow: hidden;
  transition: transform 0.2s;
}
.collage-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 28px -14px rgba(0,0,0,0.2);
}
.collage-item:nth-child(1) {
  grid-column: span 2;
  transform: rotate(-1deg);
}
.collage-item:nth-child(2) {
  transform: rotate(2deg);
}
.collage-item:nth-child(3) {
  transform: rotate(-2deg);
}
.collage-item:nth-child(4) {
  grid-column: span 4;
}
.collage-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #dfe0e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: #3d3d4f;
}
.collage-item p {
  padding: 0.7rem 1rem;
  background: white;
  font-size: 0.8rem;
}

/* 艺术氛围卡片 */
.art-vibes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.vibe-card {
  background: linear-gradient(145deg, #1e1e2a, #14141c);
  border-radius: 32px;
  padding: 1.5rem;
  transition: transform 0.3s;
  border: 1px solid rgba(255,255,240,0.08);
}
.vibe-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, #2a2a38, #1a1a26);
}
.vibe-placeholder {
  aspect-ratio: 1 / 1;
  background: rgba(255,255,245,0.08);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px dashed rgba(212, 175, 122, 0.5);
  color: #d4cfc0;
}
.vibe-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #f2e8d5;
}
.vibe-card p {
  font-size: 0.85rem;
  color: #b9b5c2;
}

/* 响应式 */
@media (max-width: 768px) {
  .global-grid {
      grid-template-columns: 1fr;
  }
  .photo-card {
      flex: 0 0 calc(50% - 0.5rem);
  }
  .collage-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  .collage-item:nth-child(1),
  .collage-item:nth-child(4) {
      grid-column: span 2;
  }
  .art-vibes-grid {
      grid-template-columns: 1fr;
  }
  .horizontal-gallery {
      gap: 0.8rem;
  }
  .gallery-item {
      flex: 0 0 200px;
  }
}
/* Fix scrolling for My Little Universe modal */
.modal-window.universe-theme {
  width: min(1120px, 96vw);
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  background: rgba(249, 249, 247, 0.96);
  color: #2c2c2c;
}

.modal-window.universe-theme .modal-body {
  overflow-y: visible;
  max-height: none;
}

/* 确保内部 section 也能正常滚动 */
.universe-shell {
  overflow-y: visible;
}
.photo-card img,
.gallery-item img,
.collage-item img,
.vibe-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 修正 vibe-placeholder 背景被覆盖的问题 */
.vibe-placeholder {
    padding: 0 !important;
    background: transparent !important;
}