:root {
  --primary: #9f8c76;
  /* 温暖木色 */
  --secondary: #6b9080;
  /* 自然绿 */
  --accent: #a5a5af;
  /* 沉思灰 */
  --light: #f4f1e8;
  /* 羊皮纸白 */
}

/* 新增关键帧动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes leafFall {
  0% {
    transform: translateY(-100%) rotate(0deg);
  }

  100% {
    transform: translateY(100vh) rotate(360deg);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", "微软雅黑", sans-serif;
}

body {
  background: linear-gradient(45deg, var(--light) 60%, #ffffff);
  line-height: 1.6;
  color: #4a4a48;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* 头部样式 */
header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.profile-icon {
  width: 150px;
  height: 150px;
  background: var(--secondary);
  border-radius: 50%;
  margin: 2rem auto;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-in-out backwards;
  transition: transform 0.3s;
}

.profile-icon:hover {
  transform: rotate(15deg) scale(1.1);
}

.profile-icon::after {
  content: "🕊️";
  position: absolute;
  font-size: 3rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 主要内容区 */
.intro-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.quote-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--secondary);
  animation-play-state: paused;
}

.quote-card.scroll-reveal {
  /* 增加选择器特异性 */
  animation-play-state: running; /* 启用动画播放 */
  animation: fadeInUp 1s ease-in-out; /* 明确声明动画 */
}

/* 专属引文动画 */
blockquote {
  display: inline-block;
  transform-origin: left center;
  animation: textReveal 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translateX(-20px) skewY(2deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.values-grid a {
  /* 移除下划线 */
  text-decoration: none;
  /* 继承父级文字颜色 */
  color: inherit;
}

.values-grid a:hover {
  color: #7aa7e5;
  border-bottom-color: currentColor;
}

.value-card {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(107, 144, 128, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.5s;
  opacity: 0;
}

.value-card:hover::before {
  opacity: 1;
  top: 0;
  left: 0;
}

.value-card:hover {
  transform: translateY(-5px);
}

/* INFJ特色元素 */
.infj-symbol {
  font-size: 1.2rem;
  color: var(--secondary);
  margin: 1rem 0;
}

/* 新增落叶动效 */
.leaf-particle {
  position: fixed;
  pointer-events: none;
  animation: leafFall 8s linear infinite;
  font-size: 24px;
  opacity: 0.3;
}

/* 滚动动画 */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
  }

  .mbti-watermark {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    opacity: 0.1;
    font-size: 8rem;
    font-weight: bold;
    color: var(--accent);
    pointer-events: none;
    animation: rotate 30s linear infinite;
  }

  @keyframes rotate {
    from {
      transform: rotate(0deg);
    }

    to {
      transform: rotate(360deg);
    }
  }

  /* 响应式设计 */
  @media (max-width: 768px) {
    .intro-section {
      grid-template-columns: 1fr;
    }
  }
}

/* 时间线样式 */
.timeline {
  border-left: 2px solid #e0e0e0;
  margin: 2rem 0;
  padding-left: 2rem;
}

.timeline-node {
  position: relative;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.timeline-node:hover {
  transform: translateY(-5px);
}

.node-icon {
  position: absolute;
  left: -3.8rem;
  top: 1rem;
  font-size: 2rem;
  background: white;
  padding: 0.5rem;
  border-radius: 50%;
}

.node-content a {
  text-decoration: none;
  color: inherit;
}

.node-content a:hover {
  color: #7aa7e5;
}

/* 创作卡片 */
.creation-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.creation-card {
  position: relative;
  padding: 2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.creation-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-hover {
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.3s;
}

/* 思想碎片样式 */
.thought-bubble-sx {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  cursor: pointer;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* 浮动语录样式 */
.floating-quote {
  position: fixed;
  top: -50px;
  background: rgba(140, 163, 139, 0.9);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9em;
  animation: float linear forwards;
  white-space: nowrap;
  z-index: 999;
}

@keyframes float {
  to {
    transform: translateY(calc(100vh + 20px));
    opacity: 0;
  }
}

/* 极简光晕背景 */
.halo-overlay {
  position: fixed;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
}

.halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.1;
}

.halo-1 {
  width: 400px;
  height: 400px;
  background: #a5d6a7;
  top: 20%;
  left: 10%;
}

.halo-2 {
  width: 300px;
  height: 300px;
  background: #90caf9;
  bottom: 15%;
  right: 10%;
}

/* MBTI徽章设计 */
.mbti-emblem {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1000;
  /* 入场动画 */
  animation: emblem-enter 1s ease-out forwards;
}
.emblem-image {
  width: 60px;
  height: 60px;
  /* max-width: 100%; */
  border-radius: 50%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
@keyframes emblem-enter {
  from {
    opacity: 0;
    transform: translateY(-20px) rotate(-15deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

/* 悬停动效 */
.mbti-emblem:hover {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 深色模式适配 */
.dark-mode .mbti-emblem {
  background: rgba(40, 40, 40, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 徽章内部重构 */
.emblem-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  perspective: 200px;
}

.emblem-inner span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #37474f;
  text-align: center;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  /* 字母悬停动画 */
  animation: letter-float 4s ease-in-out infinite;
}

/* 字母独立动画 */
.emblem-inner span:nth-child(1) {
  animation-delay: 0.1s;
}
.emblem-inner span:nth-child(2) {
  animation-delay: 0.3s;
}
.emblem-inner span:nth-child(3) {
  animation-delay: 0.5s;
}
.emblem-inner span:nth-child(4) {
  animation-delay: 0.7s;
}

@keyframes letter-float {
  0%,
  100% {
    transform: translateY(0) rotateX(0);
  }
  50% {
    transform: translateY(-3px) rotateX(10deg);
  }
}

/* 点击涟漪效果 */
.mbti-emblem::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(107, 144, 128, 0.3);
  animation: ripple 2s infinite;
  opacity: 0;
}

@keyframes ripple {
  from {
    transform: scale(0.8);
    opacity: 0.6;
  }
  to {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* 动态光晕 */
.mbti-emblem::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(107, 144, 128, 0.1) 0%,
    transparent 60%
  );
  animation: halo-rotate 15s linear infinite;
}

@keyframes halo-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 适配深色模式文字 */
.dark-mode .emblem-inner span {
  color: #e6e6e6;
  text-shadow: 0 0 8px rgba(107, 144, 128, 0.3);
}

/* 认知体系模块 */
.mind-map {
  position: relative;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  -webkit-backdrop-filter: blur(5px); /* 添加 WebKit 前缀 */
  backdrop-filter: blur(5px); /* 标准属性 */
}

.node-branch {
  position: relative;
  padding-left: 2rem;
  margin: 2rem 0;
}

.branch-line {
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 10%,
    #b0bec5 10% 90%,
    transparent 90%
  );
}

.mind-cluster li {
  position: relative;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
  background: rgba(236, 239, 241, 0.5);
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.mind-cluster li:hover {
  transform: translateX(10px);
}
.mind-cluster a {
  /* 移除下划线 */
  text-decoration: none;
  /* 继承父级文字颜色 */
  color: inherit;
}

.dark-mode .mind-cluster li {
  background: rgba(236, 239, 241, 0.2);
}

.mind-cluster a:hover {
  color: #7aa7e5;
  border-bottom-color: currentColor;
}

/* 文章摘录卡片 */
.excerpt-card {
  margin-top: 30px;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.excerpt-card a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.excerpt-card a:hover {
  color: #7aa7e5;
  border-bottom-color: currentColor;
}

.dot-matrix {
  width: 100%;
  height: 4px;
  background-image: radial-gradient(#b0bec5 1px, transparent 1px);
  background-size: 6px 6px;
  margin-bottom: 1rem;
}

.excerpt-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.9em;
  color: #607d8b;
}

/* 对话式引导 */
.dialogue-prompt {
  max-width: 500px;
  margin: 4rem auto;
  text-align: center;
}

.prompt-bubble {
  position: relative;
  background: #fff3e0;
  border-radius: 12px;
  padding: 2rem;
  margin-left: 30px;
  margin-right: 30px;
}

.bubble-tail {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff3e0;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.mind-stimulus {
  position: relative;
  background: none;
  border: 1px solid #ffab91;
  color: #bf360c;
  padding: 0.8rem 2rem;
  margin-top: 1rem;
  transition: all 0.3s ease;
}
.mind-stimulus a {
  color: #8db7ed;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.mind-stimulus a:hover {
  color: #6097e4;
  border-bottom-color: currentColor;
}

.neural-spark {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(#ffab91 10%, transparent 60%);
}
.mind-stimulus.pulse {
  animation: neural-pulse 0.6s;
}

@keyframes neural-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.mind-stimulus:active {
  transform: translateY(2px);
}

/* 心理观察室 */
.psychology-section {
  margin-top: 10px;
  margin-bottom: 30px;
  margin-left: 30px;
  margin-right: 30px;
  padding: 2rem;
  background: #f0f4f8;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.psychology-section h2 {
  margin-bottom: 10px;
}

.mind-map2 {
  position: relative;
  padding: 2rem;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mind-node2 {
  position: relative;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.node-circle {
  width: 80px;
  height: 80px;
  border: 2px solid #8ca38b;
  border-radius: 50%; /* 圆形容器 */
  overflow: hidden; /* 隐藏溢出部分 */
  position: relative; /* 为子元素定位提供基准 */
  margin: 0 auto 1rem;
  animation: pulse 3s infinite;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.node-circle img {
  width: 100%; /* 充满容器宽度 */
  height: auto;
  object-fit: cover; /* 保持比例填充容器 */
  object-position: center; /* 图片中心对齐 */
  display: block; /* 消除图片底部间隙 */
  border-radius: inherit; /* 继承父元素圆角 */
}

.mind-branch {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-content: center;
}

.branch-node {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* 优化移动端显示 */
@media (max-width: 640px) {
  .mind-branch {
    /* grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); */
    gap: 1rem;
    padding: 0 0.5rem;
    justify-content: center;
  }

  .branch-node {
    padding: 0.8rem;
  }

  .branch-label {
    font-size: 0.85rem;
    white-space: nowrap; /* 防止文字换行 */
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.branch-node a {
  text-decoration: none;
}

.branch-node a:hover {
  color: #7aa7e5;
  border-bottom-color: currentColor;
}

.node-progress {
  height: 4px;
  background: linear-gradient(90deg, #8ca38b, #c4d1c2);
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.branch-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
  100% {
    transform: scale(0.95);
    opacity: 1;
  }
}
.mind-node:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.branch-node:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* 意识之河 */
/* 意识之河 */
.mind-river2 {
  margin: 4rem 0;
  padding: 2rem;
  border-radius: 12px;
  background: linear-gradient(45deg, #fff3e0, #ffecb3);
  position: relative;
  max-height: 500px;
  overflow: hidden;
  animation: background-animation 10s ease-in-out infinite; /* 背景渐变动画 */
}

.yszh {
  margin-bottom: 30px;
}

.dark-mode .yszh {
  color: #373737;
}

@keyframes background-animation {
  0% {
    background: linear-gradient(45deg, #fff3e0, #ffecb3);
  }
  50% {
    background: linear-gradient(45deg, #ffecb3, #fff3e0);
  }
  100% {
    background: linear-gradient(45deg, #fff3e0, #ffecb3);
  }
}

.thought-stream2 {
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  animation: fade-in 2s forwards; /* 整体内容渐显 */
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.thought-bubble2 {
  position: relative;
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  animation: bubble-float 3s ease-in-out infinite; /* 思维气泡浮动动画 */
}

.thought-bubble2 a {
  text-decoration: none;
  color: inherit;
}

.thought-bubble2 a:hover {
  color: #7aa7e5;
}

@keyframes bubble-float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.bubble-ripple2 {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  animation: ripple 3s linear infinite;
}

@keyframes ripple {
  0% {
    box-shadow: 0 0 0 0px #ffab9144;
  }
  100% {
    box-shadow: 0 0 0 20px #ffab9100;
  }
}

.bubble-meta {
  font-size: 0.9rem;
  color: #757575;
  margin-top: 1rem;
  text-align: right;
  opacity: 0;
  animation: meta-fade-in 2s forwards;
}

@keyframes meta-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* 交互模型 */
.archetype-model {
  position: relative;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
}

.neural-axons {
  position: absolute;
  width: 100%;
  height: 100%;
}

.axon {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 10%,
    #ffab91 50%,
    transparent 90%
  );
  left: 50%;
  transform: rotate(var(--angle));
  animation: axon-pulse 3s infinite;
  animation-delay: calc(var(--angle) * 0.1s);
}

@keyframes axon-pulse {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.2;
  }
}

.archetype-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.3s ease;
}

.archetype-node:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.archetype-node a {
  text-decoration: none;
}

.archetype-node a:hover {
  color: #7aa7e5;
  /* border-bottom-color: currentColor; */
}

.node-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(#ffab9133 20%, transparent 60%);
  animation: glow-pulse 2s ease-in-out infinite;
}

/* 优化除备案信息外的所有a标签 */
/* a:not(.beian a):not(.icp):not(.ga):not(.values-grid a) {
  color: #5d93d8;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
} */

/* a:not(.beian a):not(.icp):not(.ga):hover {
  color: #7aa7e5;
  border-bottom-color: currentColor;
} */

/* a:not(.beian a):not(.icp):not(.ga):active {
  color: #4a7bb5;
  transform: translateY(1px);
} */

/* 深夜模式变量 */
:root {
  --bg-light: #f5f5f5;
  --text-light: #333;
  --card-bg-light: rgba(255, 255, 255, 0.9);
  --border-light: #e0e0e0;

  --bg-dark: #1a1a1a;
  --text-dark: #e6e6e6;
  --card-bg-dark: rgba(40, 40, 40, 0.9);
  --border-dark: #404040;

  --primary: #9f8c76; /* 质感棕 */
  --secondary: #6b9080; /* 自然绿 */
  --light: #f4f1e8; /* 象牙白 */
}

/* 基础样式 */
body {
  background: var(--bg-light);
  color: var(--text-light);
  transition: background 0.3s ease, color 0.3s ease;
}

.dark-mode {
  background: var(--bg-dark);
  color: var(--text-dark);
}

/* 卡片样式适配 */
.quote-card,
.value-card,
.excerpt-card {
  background: var(--card-bg-light);
  -webkit-backdrop-filter: blur(10px); /* 调整顺序 */
  backdrop-filter: blur(10px); /* 标准属性在后 */
}

.dark-mode .quote-card,
.dark-mode .value-card,
.dark-mode .excerpt-card {
  background: var(--card-bg-dark);
}

/* 卡片组件适配： */
.quote-card,
.value-card,
.excerpt-card,
.timeline-node {
  background: var(--card-bg-light);
  /* border: 1px solid var(--border-light); */
}

.dark-mode .quote-card,
.dark-mode .value-card,
.dark-mode .excerpt-card,
.dark-mode .timeline-node {
  background: var(--card-bg-dark);
  border-color: var(--border-dark);
}

/* 特殊元素适配： */
/* 思维气泡 */
.thought-bubble-sx {
  background: var(--card-bg-light);
  color: var(--text-light);
}

.dark-mode .thought-bubble-sx {
  background: var(--card-bg-dark);
  color: var(--text-dark);
}

/* 落叶粒子 */
.dark-mode .leaf-particle {
  opacity: 0.2;
  filter: brightness(0.8);
}

/* 进度条 */
.progress-bar {
  background: var(--border-light);
}

.dark-mode .progress-bar {
  background: var(--border-dark);
}

.progress {
  background: var(--secondary);
}

/* 图表类元素适配： */
.mind-map,
.archetype-model {
  background: var(--card-bg-light);
  border: 1px solid var(--border-light);
}

.dark-mode .mind-map,
.dark-mode .archetype-model {
  background: var(--card-bg-dark);
  border-color: var(--border-dark);
}

/* 神经元连接线 */
.axon {
  background: linear-gradient(
    to bottom,
    transparent 10%,
    var(--secondary) 50%,
    transparent 90%
  );
}

/* 按钮状态适配： */
button,
.mind-stimulus {
  color: var(--text-light);
  border-color: var(--border-light);
}

.dark-mode button,
.dark-mode .mind-stimulus {
  color: var(--text-dark);
  border-color: var(--border-dark);
}

/* 补充过渡效果： */
/* * {
  transition: background-color 0.1s ease, border-color 0.1s ease,
    color 0.1s ease;
} */

/* 意识之河 - 深色适配 */
.dark-mode .mind-river2 {
  background: linear-gradient(45deg, var(--bg-dark), rgba(40, 40, 40, 0.9));
}

.dark-mode .thought-bubble2 {
  background: var(--card-bg-dark);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode .bubble-ripple2::after {
  border-color: var(--secondary);
}

/* 多维创作空间 - 深色适配 */
.dark-mode .neuro-creations {
  background: var(--bg-dark);
}

.dark-mode .neuron-card,
.dark-mode .mirror-card,
.dark-mode .tree-card {
  background: var(--card-bg-dark);
  border: 1px solid var(--border-dark);
}

.dark-mode .card-title {
  color: var(--text-dark);
}

.dark-mode .tech-tags span {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dark);
}

/* 心理观察室 - 深色适配 */
.dark-mode .psychology-section {
  background: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .mind-map2 {
  background: var(--card-bg-dark);
}

.dark-mode .node-circle {
  border-color: var(--secondary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.dark-mode .branch-node {
  background: rgba(255, 255, 255, 0.05);
}

/* 对话式引导 - 深色适配 */
.dark-mode .dialogue-prompt .prompt-bubble {
  background: rgba(40, 40, 40, 0.9);
  border: 1px solid var(--border-dark);
}

.dark-mode .mind-stimulus {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dark);
}

.dark-mode .mind-stimulus:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 通用增强 */
.dark-mode {
  .bubble-meta,
  .branch-label,
  .card-desc {
    color: rgba(255, 255, 255, 0.7);
  }

  .spectrum-fill {
    filter: brightness(0.8);
  }

  .hologram-effect {
    background: radial-gradient(rgba(107, 144, 128, 0.2), transparent 60%);
  }
}

/* 主题切换按钮 */
/* 浮动按钮容器 */
.float-btns {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

/* 主题切换按钮 */
.theme-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  -webkit-backdrop-filter: blur(5px); /* 已带前缀 */
  backdrop-filter: blur(5px);
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.theme-btn:hover {
  /* background: #cfcfd0; */
  transform: translateY(-2px) scale(1.05);
  /* box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5); */
}

/* 返回顶部按钮 */
/* 返回顶部按钮新样式 */
.back-top-btn {
  width: 45px;
  height: 45px;
  border: none;
  outline: none;
  background: rgba(0, 0, 0, 0.1);
  color: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s,
    opacity 0.3s;
  opacity: 0;
  transform: translateY(20px);
  /* 阴影调整 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  font-family: "LXGW WenKai", sans-serif;
  font-weight: 500;
  /* 过渡效果 */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s,
    box-shadow 0.3s;
}

/* 显示状态 */
.back-top-btn.show {
  opacity: 1;
  transform: translateY(0);
}

/* 悬停效果 */
.back-top-btn:hover {
  background: #cfcfd0;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
/* 添加焦点状态 */
/* .back-top-btn:focus {
  box-shadow: 0 0 0 3px rgba(107, 124, 144, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
} */
/* 点击效果 */
.back-top-btn:active {
  transform: scale(0.95);
}

/* 流动光效 */
.back-top-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 25%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 75%
  );
  animation: flow 3s infinite linear;
  opacity: 0.6;
}

@keyframes flow {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* 深色模式适配 */
.dark-mode .back-top-btn {
  background: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* .dark-mode .back-top-btn:hover {
  background: #ffffff;
} */

/* 移动端优化 */
@media (max-width: 768px) {
  .back-top-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 0.95em;
  }
}
