/* 基础样式调整 */
#skills-timeline {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: radial-gradient(circle at center, #0a192f 0%, #021124 100%);
}

/* 3D背景容器 */
#skills-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
}

/* 技能卡片样式优化 */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  perspective: 1000px;
}

.skill-card {
  background: transparent;
  border: none;
  border-radius: 16px;
  padding: 0;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  transform: translateY(20px) rotateX(5deg);
  opacity: 0;
  height: 300px;
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.skill-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-front {
  background: rgba(15, 10, 30, 0.6);
  border: 1px solid rgba(45, 156, 219, 0.3);
}

.card-back {
  background: rgba(10, 25, 47, 0.8);
  border: 1px solid rgba(56, 204, 204, 0.5);
  transform: rotateY(180deg);
}

.card-preview {
  margin-top: 20px;
  color: rgba(129, 230, 217, 0.8);
  font-style: italic;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card-preview:hover {
  color: rgba(56, 204, 204, 1);
  text-decoration: underline;
}

.skill-metrics {
  margin-top: 20px;
  width: 100%;
  padding-top: 15px;
  border-top: 1px dashed rgba(129, 230, 217, 0.3);
}

.metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.progress-container {
  width: 100%;
  height: 8px;
  background: rgba(10, 25, 47, 0.5);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, rgba(45, 156, 219, 0.6), rgba(56, 204, 204, 1));
  border-radius: 4px;
  transition: width 1.5s ease-in-out;
  position: relative;
}

.progress-value {
  position: absolute;
  right: 8px;
  top: -22px;
  font-size: 0.9em;
  font-weight: bold;
  color: rgba(56, 204, 204, 1);
}

.metric-value {
  font-size: 1.2em;
  font-weight: bold;
  color: rgba(56, 204, 204, 1);
}

.metric-label {
  color: rgba(129, 230, 217, 0.7);
}

.skill-card.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.skill-card:hover {
  transform: translateY(-15px) rotateX(0);
  box-shadow: 0 20px 40px rgba(45, 156, 219, 0.3);
  border-color: rgba(56, 204, 204, 0.6);
  animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
  from { box-shadow: 0 0 10px rgba(45, 156, 219, 0.3), 0 0 20px rgba(45, 156, 219, 0.2); }
  to { box-shadow: 0 0 20px rgba(45, 156, 219, 0.5), 0 0 30px rgba(56, 204, 204, 0.4); }
}

/* 时间轴样式优化 */
.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: calc(100% - 40px);
  background: linear-gradient(
    to bottom,
    rgba(45, 156, 219, 0.3),
    rgba(129, 230, 217, 0.6),
    rgba(56, 204, 204, 0.9)
  );
  border-radius: 2px;
}

/* ENTJ性格模块样式 */
.personality-container {
  margin-top: 80px;
  padding: 40px;
  background: rgba(10, 25, 47, 0.6);
  border-radius: 20px;
  border: 1px solid rgba(56, 204, 204, 0.3);
}

/* 时间线容器约束 */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px 0;
  height: auto;
  overflow: hidden;
}

.timeline-item {
  position: relative;
  margin-bottom: 60px !important;
  z-index: 10;
}

.entj-chart {
  width: 100%;
  height: 300px;
  margin-top: 20px;
  position: relative;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .timeline-line {
    left: 30px;
  }
}
