/* ============================================
   Luka Growth Homepage
   Warm personal journal theme
   ============================================ */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

body.theme-luka,
body.theme-luka *,
body.theme-luka *::before,
body.theme-luka *::after {
  box-sizing: border-box;
}

:root {
  --luka-bg: #faf9f7;
  --luka-surface: #fffdf9;
  --luka-text: #3d3929;
  --luka-accent: #c2714f;
  --luka-fresh: #557f7a;
  --luka-soft: #f2ebe4;
  --luka-secondary: #82796e;
  --luka-border: rgba(194, 113, 79, 0.2);
  --luka-shadow: rgba(124, 88, 65, 0.14);
  --luka-social-bg: #ffffff;
  --luka-social-text: #7f6b57;
  --luka-footer-border: rgba(194, 113, 79, 0.15);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --luka-bg: #1a1917;
    --luka-surface: #22211e;
    --luka-text: #d9d4ca;
    --luka-accent: #e28a67;
    --luka-fresh: #8fb8ae;
    --luka-soft: #2a2925;
    --luka-secondary: #a49b8d;
    --luka-border: rgba(226, 138, 103, 0.22);
    --luka-shadow: rgba(0, 0, 0, 0.35);
    --luka-social-bg: #272520;
    --luka-social-text: #d1cec7;
    --luka-footer-border: rgba(226, 138, 103, 0.15);
  }
}

[data-theme="dark"] {
  --luka-bg: #1a1917;
  --luka-surface: #22211e;
  --luka-text: #d9d4ca;
  --luka-accent: #e28a67;
  --luka-fresh: #8fb8ae;
  --luka-soft: #2a2925;
  --luka-secondary: #a49b8d;
  --luka-border: rgba(226, 138, 103, 0.22);
  --luka-shadow: rgba(0, 0, 0, 0.35);
  --luka-social-bg: #272520;
  --luka-social-text: #d1cec7;
  --luka-footer-border: rgba(226, 138, 103, 0.15);
}

[data-theme="light"] {
  --luka-bg: #faf9f7;
  --luka-surface: #fffdf9;
  --luka-text: #3d3929;
  --luka-accent: #c2714f;
  --luka-fresh: #557f7a;
  --luka-soft: #f2ebe4;
  --luka-secondary: #82796e;
  --luka-border: rgba(194, 113, 79, 0.2);
  --luka-shadow: rgba(124, 88, 65, 0.14);
  --luka-social-bg: #ffffff;
  --luka-social-text: #7f6b57;
  --luka-footer-border: rgba(194, 113, 79, 0.15);
}

body.theme-luka {
  background:
    radial-gradient(circle at 14% 8%, rgba(85, 127, 122, 0.09), transparent 28%),
    linear-gradient(180deg, var(--luka-bg) 0%, var(--luka-bg) 100%);
  color: var(--luka-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.theme-luka.modal-open {
  overflow: hidden;
}

body.theme-luka a {
  color: var(--luka-accent);
  text-decoration: none;
}

body.theme-luka a:hover {
  filter: brightness(1.1);
}

body.theme-luka img {
  max-width: 100%;
  display: block;
}

body.theme-luka .top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: color-mix(in srgb, var(--luka-bg) 92%, transparent);
  border-bottom: 1px solid var(--luka-footer-border);
  backdrop-filter: blur(14px);
  z-index: 1000;
}

body.theme-luka .nav-container {
  width: 100%;
  max-width: 1120px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

body.theme-luka .nav-left a {
  color: var(--luka-text);
  font-size: 18px;
  font-weight: 700;
}

body.theme-luka .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 600;
}

body.theme-luka .nav-links a {
  color: var(--luka-secondary);
}

body.theme-luka .nav-right {
  display: flex;
  justify-content: flex-end;
}

body.theme-luka .theme-toggle,
body.theme-luka .icon-button {
  border: none;
  background: transparent;
  color: var(--luka-text);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.theme-luka .theme-toggle:hover,
body.theme-luka .icon-button:hover {
  background: var(--luka-border);
  color: var(--luka-accent);
  transform: translateY(-1px);
}

body.theme-luka .wrapper {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: block;
  padding: 0 32px;
  min-height: 100vh;
  box-sizing: border-box;
}

body.theme-luka .sidebar {
  width: 300px;
  flex-shrink: 0;
  position: fixed;
  top: 60px;
  left: max(24px, calc(50% - 720px + 32px));
  height: calc(100vh - 60px);
  overflow-y: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 56px;
  z-index: 100;
}

body.theme-luka .profile-card {
  width: 100%;
  padding: 0 20px;
  text-align: center;
}

body.theme-luka .image.avatar {
  display: block;
  margin: 0 auto 24px;
}

body.theme-luka .image.avatar img {
  width: 208px;
  height: 208px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px var(--luka-shadow);
}

body.theme-luka .profile-kicker,
body.theme-luka .section-eyebrow,
body.theme-luka .panel-kicker {
  margin: 0 0 8px;
  color: var(--luka-fresh);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.theme-luka .site-name {
  margin: 0 0 10px;
  color: var(--luka-text);
  font-size: 30px;
  line-height: 1.2;
}

body.theme-luka .site-bio {
  margin: 0 auto 18px;
  max-width: 245px;
  color: var(--luka-secondary);
  font-size: 14px;
  line-height: 1.75;
}

body.theme-luka .site-email {
  margin: 0 0 22px;
  color: var(--luka-secondary);
  font-size: 13px;
  font-family: "Ubuntu Mono", "SFMono-Regular", monospace;
  word-break: break-all;
}

body.theme-luka .social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

body.theme-luka .social-icons a,
body.theme-luka .social-icons button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--luka-social-bg);
  color: var(--luka-social-text) !important;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(61, 57, 41, 0.08);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

body.theme-luka .social-icons a:hover,
body.theme-luka .social-icons button:hover {
  background: var(--luka-accent);
  color: #fff !important;
  transform: translateY(-2px);
}

body.theme-luka .social-icons button:focus-visible {
  outline: 2px solid var(--luka-accent);
  outline-offset: 3px;
}

body.theme-luka .profile-note {
  margin: 36px auto 0;
  width: 248px;
  padding: 18px 16px;
  border: 1px solid var(--luka-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--luka-surface) 82%, transparent);
  color: var(--luka-secondary);
  text-align: left;
}

body.theme-luka .profile-note-title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--luka-accent);
}

body.theme-luka .profile-note-body {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.theme-luka .profile-note-body span,
body.theme-luka .tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--luka-soft);
  color: var(--luka-secondary);
  font-size: 12px;
  font-weight: 600;
}

body.theme-luka .content {
  min-width: 0;
  margin-left: 340px;
  padding: 118px 0 80px 40px;
}

body.theme-luka .section {
  margin-bottom: 52px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.theme-luka #map {
  width: 100%;
  max-width: none;
}

body.theme-luka .section.visible {
  opacity: 1;
  transform: translateY(0);
}

body.theme-luka .hero-section {
  padding-top: 10px;
}

body.theme-luka .hero-title {
  margin: 0 0 18px;
  color: var(--luka-text);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.14;
}

body.theme-luka .section-title {
  display: inline-block;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--luka-accent);
  color: var(--luka-accent);
  font-size: 20px;
  font-weight: 700;
}

body.theme-luka .section-body p {
  margin: 0 0 14px;
}

body.theme-luka .growth-timeline {
  display: grid;
  gap: 18px;
}

body.theme-luka .growth-item {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 0 0 18px;
}

body.theme-luka .growth-item::before {
  content: "";
  position: absolute;
  left: 88px;
  top: 8px;
  bottom: -12px;
  width: 1px;
  background: linear-gradient(var(--luka-accent), transparent);
}

body.theme-luka .growth-item:last-child::before {
  display: none;
}

body.theme-luka .growth-item time {
  color: var(--luka-accent);
  font-size: 13px;
  font-weight: 700;
}

body.theme-luka .growth-item h3,
body.theme-luka .project-copy h3,
body.theme-luka .place-panel h3,
body.theme-luka .music-copy h3 {
  margin: 0 0 6px;
  color: var(--luka-text);
  font-size: 17px;
  line-height: 1.35;
}

body.theme-luka .growth-item p,
body.theme-luka .place-panel p,
body.theme-luka .project-copy p,
body.theme-luka .music-copy p {
  margin: 0;
  color: var(--luka-secondary);
  font-size: 14px;
}

body.theme-luka .resume-section {
  display: grid;
  gap: 42px;
}

body.theme-luka .resume-block {
  display: grid;
  gap: 14px;
}

body.theme-luka .resume-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

body.theme-luka .resume-logo {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

body.theme-luka .resume-logo img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

body.theme-luka .resume-copy h3 {
  margin: 0 0 7px;
  color: var(--luka-text);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.22;
}

body.theme-luka .resume-role {
  margin: 0 0 4px;
  color: var(--luka-secondary);
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.45;
}

body.theme-luka .resume-date {
  margin: 0;
  color: var(--luka-accent);
  font-size: 16px;
  font-weight: 700;
}

body.theme-luka .experience-list {
  position: relative;
  display: grid;
  gap: 38px;
  padding-left: 28px;
}

body.theme-luka .experience-list::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(var(--luka-accent), color-mix(in srgb, var(--luka-accent) 18%, transparent));
}

body.theme-luka .experience-item {
  position: relative;
}

body.theme-luka .experience-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 34px;
  width: 14px;
  height: 14px;
  border: 4px solid var(--luka-bg);
  border-radius: 50%;
  background: var(--luka-accent);
  box-shadow: 0 0 0 1px var(--luka-border);
}

body.theme-luka .map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0;
  gap: 0;
  align-items: stretch;
  transition: grid-template-columns 0.48s cubic-bezier(0.16, 1, 0.3, 1), gap 0.32s ease;
}

body.theme-luka .map-shell.has-active-place {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
}

body.theme-luka .map-stage,
body.theme-luka .music-player,
body.theme-luka .project-item,
body.theme-luka .gallery-grid figure {
  border: 1px solid var(--luka-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--luka-surface) 88%, transparent);
  box-shadow: 0 12px 32px var(--luka-shadow);
}

body.theme-luka .map-stage {
  position: relative;
  min-height: clamp(700px, 82vh, 920px);
  padding: 24px;
  overflow: hidden;
  perspective: 900px;
  isolation: isolate;
}

body.theme-luka .map-status {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  max-width: calc(100% - 32px);
  padding: 8px 12px;
  border: 1px solid var(--luka-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--luka-surface) 82%, transparent);
  color: var(--luka-secondary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  backdrop-filter: blur(12px);
}

body.theme-luka .map-stage::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 10px;
  background: radial-gradient(circle at var(--focus-x, 64%) var(--focus-y, 78%), color-mix(in srgb, var(--luka-accent) 20%, transparent), transparent 34%);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.45s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 0;
}

body.theme-luka .map-stage.is-focusing::before {
  opacity: 0.55;
  transform: scale(1);
}

body.theme-luka .china-map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: clamp(660px, 78vh, 880px);
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-luka .china-map,
body.theme-luka .china-map * {
  outline: none;
}

body.theme-luka .map-viewport {
  transform-box: fill-box;
  transform-origin: var(--map-origin-x, 50%) var(--map-origin-y, 50%);
  transform:
    translate3d(var(--map-shift-x, 0px), var(--map-shift-y, 0px), 0)
    rotateX(var(--map-tilt-x, 0deg))
    rotateY(var(--map-tilt-y, 0deg))
    scale(var(--map-scale, 1));
  transition: transform 0.78s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

body.theme-luka .map-viewport.is-resetting-origin {
  transition: none;
}

body.theme-luka .map-province {
  fill: color-mix(in srgb, var(--luka-soft) 74%, #ffffff);
  stroke: var(--luka-accent);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
  transition: fill 0.25s ease, stroke 0.25s ease;
}

body.theme-luka .map-province.has-places {
  cursor: pointer;
}

body.theme-luka .map-province:hover,
body.theme-luka .map-province.has-places:hover,
body.theme-luka .map-province.is-active-province {
  fill: color-mix(in srgb, var(--luka-soft) 58%, var(--luka-fresh));
  stroke: color-mix(in srgb, var(--luka-accent) 78%, var(--luka-text));
}

body.theme-luka .province-points {
  transition: opacity 0.24s ease;
}

body.theme-luka .province-points.is-hidden {
  opacity: 0;
  pointer-events: none;
}

body.theme-luka .province-point {
  cursor: pointer;
  outline: none;
}

body.theme-luka .province-point-hit {
  fill: transparent;
  pointer-events: all;
}

body.theme-luka .province-point-dot {
  fill: var(--luka-fresh);
  stroke: var(--luka-surface);
  stroke-width: 4;
  filter: drop-shadow(0 4px 8px var(--luka-shadow));
  transition: transform 0.24s ease, fill 0.24s ease;
}

body.theme-luka .province-point-count {
  fill: #fff;
  font-size: 9px;
  font-weight: 800;
  pointer-events: none;
}

body.theme-luka .province-point-label {
  fill: var(--luka-text);
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
  paint-order: stroke;
  stroke: color-mix(in srgb, var(--luka-surface) 90%, transparent);
  stroke-width: 4px;
}

body.theme-luka .province-point:hover .province-point-dot {
  fill: var(--luka-accent);
  transform: scale(1.15);
}

body.theme-luka .province-point:focus-visible .province-point-dot,
body.theme-luka .map-point:focus-visible circle:not(.map-point-hit) {
  fill: var(--luka-accent);
  stroke: var(--luka-text);
}

body.theme-luka .map-point {
  cursor: pointer;
  outline: none;
}

body.theme-luka .map-point-hit {
  fill: transparent;
  pointer-events: all;
}

body.theme-luka .map-point circle:not(.map-point-hit) {
  fill: var(--luka-fresh);
  stroke: var(--luka-surface);
  stroke-width: 1.6;
  filter: drop-shadow(0 4px 8px var(--luka-shadow));
  transition: transform 0.25s ease, fill 0.25s ease;
}

body.theme-luka .map-point text {
  fill: var(--luka-text);
  font-size: 8px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  paint-order: stroke;
  stroke: color-mix(in srgb, var(--luka-surface) 86%, transparent);
  stroke-width: 4px;
  transition: opacity 0.18s ease;
}

body.theme-luka .map-point:hover circle:not(.map-point-hit),
body.theme-luka .map-point.is-active circle:not(.map-point-hit) {
  fill: var(--luka-accent);
  transform: scale(1.1);
}

body.theme-luka .map-point:hover text,
body.theme-luka .map-point.is-active text {
  opacity: 1;
}

body.theme-luka .map-point.is-active circle:not(.map-point-hit) {
  animation: map-point-pulse 1.25s ease-in-out infinite;
}

@keyframes map-point-pulse {
  0%,
  100% {
    stroke-width: 1.6;
  }

  50% {
    stroke-width: 2.6;
  }
}

body.theme-luka .place-panel {
  min-width: 0;
  max-height: clamp(700px, 82vh, 920px);
  padding: 18px;
  overflow-y: auto;
  border: 1px solid var(--luka-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--luka-surface) 90%, transparent);
  box-shadow: 0 18px 42px var(--luka-shadow);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(18px);
  transition: opacity 0.28s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
}

body.theme-luka .map-shell:not(.has-active-place) .place-panel {
  padding-inline: 0;
  border-width: 0;
  box-shadow: none;
}

body.theme-luka .place-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

body.theme-luka .place-tags,
body.theme-luka .project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

body.theme-luka .place-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

body.theme-luka .place-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  background: var(--luka-soft);
}

body.theme-luka .fallback-list {
  display: none;
  margin-top: 14px;
  color: var(--luka-secondary);
  font-size: 14px;
}

body.theme-luka .music-player {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(240px, 0.9fr);
  gap: 34px;
  align-items: center;
  padding: 20px;
  overflow: hidden;
}

body.theme-luka .album-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  perspective: 1100px;
  cursor: default;
  user-select: none;
  overflow: hidden;
}

body.theme-luka .album-deck {
  position: relative;
  width: min(100%, 430px);
  height: 240px;
  transform-style: preserve-3d;
}

body.theme-luka .album-deck::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 86%;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, var(--luka-shadow), transparent 68%);
  transform: translateX(-50%);
  opacity: 0.72;
}

body.theme-luka .album-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  aspect-ratio: 1;
  border: none;
  padding: 0;
  border-radius: 8px;
  background: var(--luka-soft);
  object-fit: cover;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 18px 34px var(--luka-shadow);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  transition:
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.46s ease,
    filter 0.46s ease;
}

body.theme-luka .album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

body.theme-luka .album-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 32%, rgba(0, 0, 0, 0.1));
  opacity: 0.65;
  pointer-events: none;
}

body.theme-luka .album-card.is-active::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.52);
  pointer-events: none;
  z-index: 2;
}

body.theme-luka .album-deck.is-shifting-next .album-card.is-active,
body.theme-luka .album-deck.is-shifting-prev .album-card.is-active {
  animation: album-pop 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes album-pop {
  0% {
    filter: saturate(0.9) brightness(0.96);
  }

  46% {
    filter: saturate(1.08) brightness(1.04);
  }

  100% {
    filter: saturate(1) brightness(1);
  }
}

body.theme-luka .album-frame::after {
  content: "";
  position: absolute;
  width: 178px;
  height: 178px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
  transform: translateZ(120px);
}

body.theme-luka .music-copy {
  position: relative;
  z-index: 10;
  align-self: stretch;
  height: 240px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
}

body.theme-luka .track-info {
  min-height: 0;
  height: 166px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}

body.theme-luka .track-info::-webkit-scrollbar {
  width: 6px;
}

body.theme-luka .track-info::-webkit-scrollbar-thumb {
  background: var(--luka-border);
  border-radius: 999px;
}

body.theme-luka .music-copy h3 {
  overflow-wrap: anywhere;
}

body.theme-luka .music-copy p {
  overflow-wrap: anywhere;
}

body.theme-luka .track-album {
  margin-top: 8px !important;
}

body.theme-luka .music-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  min-height: 44px;
}

body.theme-luka .listen-link,
body.theme-luka .project-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--luka-accent);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
}

body.theme-luka .project-list {
  display: grid;
  gap: 16px;
}

body.theme-luka .project-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 16px;
}

body.theme-luka .project-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  background: var(--luka-soft);
}

body.theme-luka .project-period {
  margin-bottom: 6px !important;
  color: var(--luka-fresh) !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.theme-luka .project-growth {
  margin-top: 8px !important;
}

body.theme-luka .gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.theme-luka .gallery-grid figure {
  margin: 0;
  overflow: hidden;
}

body.theme-luka .gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--luka-soft);
}

body.theme-luka .gallery-grid figcaption {
  padding: 12px 14px 15px;
  color: var(--luka-secondary);
  font-size: 13px;
}

body.theme-luka .wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

body.theme-luka .wechat-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.theme-luka .wechat-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 22, 19, 0.58);
  backdrop-filter: blur(10px);
}

body.theme-luka .wechat-dialog {
  position: relative;
  width: min(380px, 100%);
  padding: 28px;
  border: 1px solid var(--luka-border);
  border-radius: 8px;
  background: var(--luka-surface);
  color: var(--luka-text);
  text-align: center;
  box-shadow: 0 24px 70px rgba(35, 29, 24, 0.28);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
}

body.theme-luka .wechat-modal.is-open .wechat-dialog {
  transform: translateY(0) scale(1);
}

body.theme-luka .wechat-dialog h2 {
  margin: 6px 0 18px;
  font-size: clamp(24px, 4vw, 34px);
}

body.theme-luka .wechat-dialog img {
  display: block;
  width: min(280px, 100%);
  margin: 0 auto 18px;
  border-radius: 8px;
  background: #fff;
}

body.theme-luka .wechat-dialog p:last-child {
  margin: 0;
  color: var(--luka-secondary);
  font-size: 14px;
}

body.theme-luka .wechat-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--luka-soft);
  color: var(--luka-secondary);
  cursor: pointer;
}

body.theme-luka .wechat-close:hover {
  background: var(--luka-accent);
  color: #fff;
}

body.theme-luka .site-footer {
  width: 100%;
  flex-basis: 100%;
  padding: 32px 24px 40px 380px;
  text-align: center;
}

body.theme-luka .site-footer p {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--luka-footer-border);
  color: var(--luka-secondary);
  font-size: 13px;
}

body.theme-luka .template-credit {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
}

body.theme-luka h1,
body.theme-luka h2,
body.theme-luka h3,
body.theme-luka h4,
body.theme-luka strong {
  color: var(--luka-text);
}

@media (max-width: 1320px) {
  body.theme-luka .wrapper {
    max-width: none;
    padding: 0 24px;
  }

  body.theme-luka .sidebar {
    left: 24px;
    width: 270px;
  }

  body.theme-luka .content {
    margin-left: 300px;
    padding-left: 28px;
  }

  body.theme-luka .image.avatar img {
    width: 168px;
    height: 168px;
  }

  body.theme-luka .profile-note {
    display: none;
  }

  body.theme-luka .map-shell.has-active-place {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  }
}

@media (max-width: 1180px) {
  body.theme-luka .nav-container {
    padding: 0 20px;
  }

  body.theme-luka .wrapper {
    padding: 0 20px;
  }

  body.theme-luka .sidebar {
    position: static;
    left: auto;
    width: 100%;
    height: auto;
    padding-top: 82px;
    overflow: visible;
  }

  body.theme-luka .profile-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
  }

  body.theme-luka .content {
    margin-left: 0;
    padding: 38px 0 48px;
  }

  body.theme-luka .site-footer {
    padding: 32px 0;
  }

  body.theme-luka .site-footer p {
    padding-top: 0;
    border-top: none;
  }
}

@media (max-width: 980px) {
  body.theme-luka .map-shell.has-active-place {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.theme-luka .place-panel {
    max-height: 420px;
    transform: translateY(16px);
  }

  body.theme-luka .place-panel.is-active {
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  body.theme-luka .nav-container {
    grid-template-columns: 1fr auto;
  }

  body.theme-luka .nav-links {
    display: none;
  }

  body.theme-luka .map-shell,
  body.theme-luka .music-player,
  body.theme-luka .project-item,
  body.theme-luka .gallery-grid {
    grid-template-columns: 1fr;
  }

  body.theme-luka .map-shell.has-active-place {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.theme-luka .map-stage {
    min-height: 520px;
    padding: 10px;
  }

  body.theme-luka .china-map {
    min-height: 500px;
  }

  body.theme-luka .place-panel {
    max-height: 360px;
    padding: 14px;
  }

  body.theme-luka .album-frame {
    min-height: 270px;
  }

  body.theme-luka .album-deck {
    width: min(100%, 340px);
    height: 240px;
  }

  body.theme-luka .album-card {
    width: min(48vw, 172px);
  }
}

@media (max-width: 640px) {
  body.theme-luka .image.avatar img {
    width: 148px;
    height: 148px;
  }

  body.theme-luka .site-name {
    font-size: 25px;
  }

  body.theme-luka .hero-title {
    font-size: 32px;
  }

  body.theme-luka .profile-note {
    width: 100%;
    max-width: 300px;
  }

  body.theme-luka .growth-item {
    grid-template-columns: 64px 1fr;
    gap: 14px;
  }

  body.theme-luka .growth-item::before {
    left: 64px;
  }

  body.theme-luka .resume-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
  }

  body.theme-luka .resume-logo {
    width: 64px;
    height: 64px;
  }

  body.theme-luka .resume-logo img {
    width: 58px;
    height: 58px;
  }

  body.theme-luka .experience-list {
    gap: 30px;
    padding-left: 22px;
  }

  body.theme-luka .experience-list::before {
    left: 5px;
  }

  body.theme-luka .experience-item::before {
    left: -24px;
    top: 25px;
  }
}

@media (max-width: 480px) {
  body.theme-luka .section {
    margin-bottom: 38px;
  }

  body.theme-luka .section-title {
    font-size: 18px;
  }

  body.theme-luka .place-photos {
    grid-template-columns: 1fr;
  }

  body.theme-luka .project-copy p,
  body.theme-luka .growth-item p,
  body.theme-luka .place-panel p,
  body.theme-luka .music-copy p {
    font-size: 13px;
  }
}


body.theme-luka .overseas-section {
  margin-top: 24px;
}

body.theme-luka .overseas-section h3 {
  margin: 0 0 14px;
  color: var(--luka-text);
  font-size: 18px;
}

body.theme-luka .overseas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

body.theme-luka .overseas-card {
  padding: 16px;
  border: 1px solid var(--luka-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--luka-surface) 88%, transparent);
  box-shadow: 0 12px 32px var(--luka-shadow);
}

body.theme-luka .overseas-card h4 {
  margin: 0 0 4px;
  color: var(--luka-text);
  font-size: 17px;
}

body.theme-luka .overseas-card p:last-child {
  margin: 0;
  color: var(--luka-secondary);
  font-size: 14px;
}

body.theme-luka .contact-handle {
  margin: 0 auto 14px;
  padding: 18px 14px;
  border-radius: 8px;
  background: var(--luka-soft);
  color: var(--luka-accent);
  font-size: 20px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
