:root {
  --ink: #111418;
  --muted: #66707a;
  --paper: #f7f3ea;
  --panel: #fffdf7;
  --line: rgba(17, 20, 24, 0.14);
  --green: #007c3b;
  --gold: #ffc000;
  --coral: #ef5538;
  --blue: #2f65a7;
  --plum: #7f4a8b;
  --teal: #12807a;
  --shadow: 0 28px 80px rgba(17, 20, 24, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(17, 20, 24, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 20, 24, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 46px 46px, 46px 46px, auto;
  color: var(--ink);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.map-header {
  position: fixed;
  z-index: 30;
  top: 18px;
  left: clamp(16px, 4vw, 48px);
  right: clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.brand-dot,
.map-nav {
  pointer-events: auto;
  border: 1px solid rgba(17, 20, 24, 0.12);
  background: rgba(255, 253, 247, 0.82);
  box-shadow: 0 12px 32px rgba(17, 20, 24, 0.08);
  backdrop-filter: blur(18px);
}

.brand-dot {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  font-weight: 950;
  text-decoration: none;
}

.map-nav {
  display: flex;
  gap: 4px;
  border-radius: 999px;
  padding: 5px;
}

.map-nav a {
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.map-nav a:hover {
  background: rgba(0, 124, 59, 0.1);
}

.map-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.62fr);
  gap: clamp(22px, 3.5vw, 56px);
  padding: 94px clamp(18px, 4vw, 56px) 32px;
}

.map-stage {
  display: grid;
  grid-template-rows: auto minmax(520px, 1fr);
  min-height: calc(100vh - 126px);
  gap: 20px;
}

.map-intro {
  max-width: 900px;
}

.map-intro p,
.panel-head p {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.map-intro h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
}

.map-intro span {
  display: block;
  max-width: 700px;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 22px);
}

.mindmap {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid rgba(17, 20, 24, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(115deg, rgba(0, 124, 59, 0.12), transparent 44%),
    linear-gradient(240deg, rgba(255, 192, 0, 0.2), transparent 36%),
    rgba(255, 253, 247, 0.58);
  box-shadow: var(--shadow);
}

.mindmap::after {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(0, 124, 59, 0.12);
  border-radius: 999px;
  content: "";
  filter: blur(0.2px);
  pointer-events: none;
  transform-origin: center;
  animation: orbit-breathe 12s ease-in-out infinite;
}

.mindmap::before {
  position: absolute;
  inset: 24px;
  border: 1px dashed rgba(17, 20, 24, 0.13);
  border-radius: 24px;
  content: "";
  pointer-events: none;
}

.map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-lines line {
  stroke: rgba(17, 20, 24, 0.2);
  stroke-width: 1.5;
  stroke-dasharray: 7 8;
  animation: line-drift 8s ease-in-out infinite;
}

.map-lines line.active {
  stroke: var(--green);
  stroke-width: 3;
  stroke-dasharray: none;
  animation: line-pulse 3.8s ease-in-out infinite;
}

.core-node,
.theme-node {
  position: absolute;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  text-align: left;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.core-node {
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(210px, 24vw, 280px);
  min-height: 180px;
  transform: translate(-50%, -50%);
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(17, 20, 24, 0.18);
  text-align: center;
  animation: core-float 7s ease-in-out infinite;
}

.core-node span,
.theme-node span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.core-node strong {
  display: block;
  max-width: 190px;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 0.95;
}

.core-node small {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.theme-node {
  width: clamp(144px, 15vw, 188px);
  min-height: 104px;
  padding: 15px;
  border: 1px solid rgba(17, 20, 24, 0.14);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.88);
  box-shadow: 0 14px 42px rgba(17, 20, 24, 0.1);
  transform: translate(-50%, -50%) translate3d(0, 0, 0);
  animation: node-float 8s ease-in-out infinite;
  animation-delay: var(--float-delay, 0ms);
}

.theme-node strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.05;
}

.theme-node small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.theme-node:hover,
.theme-node.active {
  transform: translate(-50%, -50%) translateY(-5px) translate3d(0, 0, 0);
  border-color: var(--theme-color);
  box-shadow: 0 22px 56px rgba(17, 20, 24, 0.17);
  animation-play-state: paused;
}

.theme-node.active {
  background: color-mix(in srgb, var(--theme-color) 14%, var(--panel));
}

.theme-node::after {
  position: absolute;
  right: 13px;
  bottom: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--theme-color);
  content: "";
  animation: dot-pulse 4s ease-in-out infinite;
}

@keyframes core-float {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0) rotate(0deg);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-8px) rotate(-0.35deg);
  }
}

@keyframes node-float {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-10px);
  }
}

@keyframes dot-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.86;
  }

  50% {
    transform: scale(1.22);
    opacity: 1;
  }
}

@keyframes line-drift {
  0%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0.62;
  }

  50% {
    stroke-dashoffset: -18;
    opacity: 0.9;
  }
}

@keyframes line-pulse {
  0%,
  100% {
    opacity: 0.76;
  }

  50% {
    opacity: 1;
  }
}

@keyframes orbit-breathe {
  0%,
  100% {
    transform: scale(0.98) rotate(0deg);
    opacity: 0.48;
  }

  50% {
    transform: scale(1.04) rotate(1.5deg);
    opacity: 0.82;
  }
}

.detail-panel {
  display: flex;
  max-height: calc(100vh - 126px);
  min-height: 640px;
  flex-direction: column;
  overflow: auto;
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: 28px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow);
}

.panel-head {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 0.95;
  letter-spacing: 0;
}

.panel-head span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
}

.theme-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.theme-stats article {
  min-height: 86px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.theme-stats article:last-child {
  border-right: 0;
}

.theme-stats strong {
  display: block;
  font-size: 27px;
  line-height: 1;
}

.theme-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.detail-section {
  padding: 24px 28px 0;
}

.detail-section:last-child {
  padding-bottom: 28px;
}

.detail-section h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.experience-list {
  display: grid;
  gap: 12px;
}

.experience-item {
  border-left: 4px solid var(--theme-color, var(--green));
  padding: 0 0 0 14px;
}

.experience-item time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.experience-item h4 {
  margin: 3px 0 5px;
  font-size: 17px;
  line-height: 1.2;
}

.experience-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.work-list {
  display: grid;
  gap: 12px;
}

.work-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
}

.work-banner {
  display: flex;
  min-height: 74px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--theme-color) 78%, #fff), transparent),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.36) 0 2px, transparent 2px 8px);
  color: #fff;
}

.work-banner.has-image {
  min-height: 118px;
  background:
    linear-gradient(0deg, rgba(17, 20, 24, 0.58), rgba(17, 20, 24, 0.12)),
    var(--banner-image) center / cover;
}

.work-banner span,
.work-banner strong {
  font-size: 12px;
  font-weight: 950;
}

.work-copy {
  padding: 0 16px 16px;
}

.work-copy h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.22;
}

.work-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.work-tags span {
  border: 1px solid rgba(17, 20, 24, 0.11);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.work-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--green);
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
}

.empty-copy {
  color: var(--muted);
}

.now-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: stretch;
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(115deg, rgba(239, 85, 56, 0.13), transparent 40%),
    linear-gradient(250deg, rgba(47, 101, 167, 0.12), transparent 34%),
    rgba(255, 253, 247, 0.86);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 34px);
}

.now-heading {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
}

.now-heading p {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.now-heading h2 {
  margin: 18px 0 0;
  max-width: 480px;
  font-size: clamp(36px, 5vw, 74px);
  line-height: 0.94;
  letter-spacing: 0;
}

.now-heading span {
  display: block;
  max-width: 360px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

.now-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.now-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.82);
  color: inherit;
  padding: 18px;
  text-decoration: none;
  box-shadow: 0 14px 42px rgba(17, 20, 24, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
  animation: now-float 9s ease-in-out infinite;
}

.now-card:nth-child(2) {
  animation-delay: -1.8s;
}

.now-card:nth-child(3) {
  animation-delay: -3.2s;
}

.now-card:nth-child(4) {
  animation-delay: -4.7s;
}

.now-card::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  content: "";
  opacity: 0.9;
}

.now-card:nth-child(1)::after {
  background: var(--coral);
}

.now-card:nth-child(2)::after {
  background: var(--gold);
}

.now-card:nth-child(3)::after {
  background: var(--blue);
}

.now-card.expect::after {
  background: var(--plum);
}

.now-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 124, 59, 0.42);
  box-shadow: 0 22px 58px rgba(17, 20, 24, 0.15);
  animation-play-state: paused;
}

.now-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.now-card strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
}

.now-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

@keyframes now-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@media (max-width: 1080px) {
  .map-shell {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    max-height: none;
    min-height: auto;
  }

  .now-panel {
    grid-template-columns: 1fr;
  }

  .now-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .map-header {
    position: static;
    padding: 14px;
  }

  .map-shell {
    padding: 12px 14px 22px;
  }

  .map-stage {
    min-height: auto;
    grid-template-rows: auto auto;
  }

  .mindmap {
    display: grid;
    min-height: auto;
    gap: 12px;
    padding: 18px;
  }

  .mindmap::before,
  .mindmap::after,
  .map-lines {
    display: none;
  }

  .core-node,
  .theme-node {
    position: static;
    width: 100%;
    min-height: auto;
    transform: none;
    animation: none;
  }

  .core-node {
    min-height: 158px;
    border-radius: 24px;
  }

  .theme-nodes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .theme-node:hover,
  .theme-node.active {
    transform: translateY(-2px);
  }

  .theme-stats {
    grid-template-columns: 1fr;
  }

  .theme-stats article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .theme-stats article:last-child {
    border-bottom: 0;
  }

  .now-panel {
    border-radius: 22px;
    padding: 18px;
  }

  .now-grid {
    grid-template-columns: 1fr;
  }

  .now-card {
    min-height: 180px;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
