/* 技术栈分组卡片样式 */
.skills-marquee {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin: 12px auto 0;
}

.skill-group {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e8e8e8);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s ease;
}

.skill-group:hover {
  box-shadow: 0 3px 14px rgba(73,177,245,0.1);
}

[data-theme="dark"] .skill-group {
  background: var(--card-bg, #1a1a1a);
  border-color: #333;
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.skill-group-name {
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(135deg, #49B1F5 0%, #00c4b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skill-group-subtitle {
  font-size: 0.72rem;
  color: #aaa;
  padding: 2px 8px;
  background: rgba(73,177,245,0.06);
  border-radius: 8px;
  font-weight: 500;
}

[data-theme="dark"] .skill-group-subtitle {
  color: #777;
  background: rgba(73,177,245,0.1);
}

.skill-group-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(73,177,245,0.04);
  border: 1px solid rgba(73,177,245,0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: rgba(73,177,245,0.08);
  border-color: rgba(73,177,245,0.25);
  transform: translateY(-1px);
}

[data-theme="dark"] .skill-tag {
  background: rgba(73,177,245,0.06);
  border-color: rgba(73,177,245,0.12);
}

.skill-tag-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-color, #333);
}

[data-theme="dark"] .skill-tag-name {
  color: #e0e0e0;
}

.skill-tag-desc {
  font-size: 0.72rem;
  color: #aaa;
}

[data-theme="dark"] .skill-tag-desc {
  color: #777;
}

/* 关于页面卡片样式 */
.about-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 24px 28px;
  margin-bottom: 0;
  min-height: auto;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 12px;
  position: relative;
  gap: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

[data-theme="dark"] .about-hero {
  background: var(--card-bg, #1a1a1a);
  border-color: var(--border-color, #333);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.about-hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 0;
  margin: 0;
}

.about-hero-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
  transition: height 0.3s ease;
}

.about-hero-personality-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
}

.about-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 14px;
  box-shadow: 0 6px 24px rgba(73,177,245,0.25), 0 0 0 3px rgba(255,255,255,0.8);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
}

.about-avatar:hover {
  transform: scale(1.05) rotate(3deg);
  box-shadow: 0 10px 32px rgba(73,177,245,0.32), 0 0 0 5px rgba(255,255,255,0.9);
}

.about-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #49B1F5 0%, #00c4b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
  position: relative;
  z-index: 1;
}

.about-intro {
  font-size: 0.9rem;
  color: var(--text-color, #555);
  max-width: 480px;
  margin-bottom: 8px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .about-intro {
  color: #e0e0e0;
}

[data-theme="dark"] .about-name {
  background: linear-gradient(135deg, #49B1F5 0%, #00c4b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.about-tag {
  padding: 4px 14px;
  background: transparent;
  color: #49B1F5;
  border: 1.5px solid rgba(73,177,245,0.35);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.about-tag:hover {
  background: rgba(73,177,245,0.08);
  border-color: rgba(73,177,245,0.6);
  transform: translateY(-1px);
}

/* 头部区域信息展示 */
.about-hero-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.about-hero-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.6);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-color, #555);
  border: 1px solid rgba(73,177,245,0.1);
  transition: all 0.2s ease;
}

[data-theme="dark"] .about-hero-item {
  background: rgba(255,255,255,0.08);
  color: #e0e0e0;
}

.about-hero-item:hover {
  background: rgba(73,177,245,0.12);
  border-color: rgba(73,177,245,0.3);
}

.about-hero-icon {
  font-size: 16px;
  color: #49B1F5;
  display: flex;
  align-items: center;
}

.about-hero-links {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.about-hero-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(73,177,245,0.12);
  color: #666;
  font-size: 14px;
  transition: all 0.25s ease;
}

[data-theme="dark"] .about-hero-link {
  background: rgba(255,255,255,0.08);
  color: #aaa;
}

.about-hero-link:hover {
  background: rgba(73,177,245,0.15);
  border-color: rgba(73,177,245,0.35);
  color: #49B1F5;
  transform: translateY(-2px);
}

/* ISTJ 性格图片样式 */
.about-hero-personality {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(73,177,245,0.2);
  border: 2px solid rgba(73,177,245,0.15);
  transition: all 0.3s ease;
}

.about-hero-personality:hover {
  transform: scale(1.04) rotate(1deg);
  box-shadow: 0 12px 32px rgba(73,177,245,0.3);
  border-color: rgba(73,177,245,0.35);
}

.about-hero-personality img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero-personality .personality-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(73,177,245,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.about-hero-personality:hover .personality-overlay {
  opacity: 1;
}

.personality-overlay span {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 10px 24px;
  border: 2px solid #fff;
  border-radius: 26px;
}

/* 性格介绍样式 */
.about-personality-intro {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  margin-top: 4px;
}

.personality-type {
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #49B1F5 0%, #00c4b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.personality-desc {
  font-size: 0.75rem;
  color: #999;
  line-height: 1.5;
  max-width: 140px;
}

[data-theme="dark"] .personality-desc {
  color: #aaa;
}

/* 座右铭样式 */
.about-quote {
  text-align: center;
  padding: 20px 28px;
  margin: 16px 0;
  background: linear-gradient(135deg, rgba(73,177,245,0.05) 0%, rgba(0,196,182,0.05) 100%);
  border-radius: 14px;
  border-left: 4px solid #49B1F5;
  position: relative;
  overflow: hidden;
}

.about-quote::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 15px;
  font-size: 50px;
  color: rgba(73,177,245,0.08);
  font-family: Georgia, serif;
  line-height: 1;
}

.about-quote-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-color, #555);
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .about-quote-text {
  color: #e0e0e0;
}

/* 联系卡片样式 */
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--card-bg, #fff);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-decoration: none;
  color: var(--text-color, #333);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1.5px solid transparent;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .contact-card {
  background: var(--card-bg, #1a1a1a);
  color: #e0e0e0;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.4s ease;
}

.contact-card:hover::before {
  left: 100%;
}

.contact-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 25px rgba(73,177,245,0.18);
  border-color: rgba(73,177,245,0.25);
}

.contact-icon {
  font-size: 1.3rem;
  transition: transform 0.25s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.15);
}

/* 博客信息样式 */
.about-blog-info {
  text-align: center;
  padding: 20px;
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(73,177,245,0.04) 0%, rgba(0,196,182,0.04) 100%);
  border-radius: 14px;
  border: 1px solid rgba(73,177,245,0.08);
}

.about-blog-info h3 {
  margin-bottom: 16px;
  color: var(--text-color, #333);
  font-size: 1rem;
  font-weight: 600;
}

[data-theme="dark"] .about-blog-info h3 {
  color: #e0e0e0;
}

[data-theme="dark"] .about-blog-info li {
  background: var(--card-bg, #1a1a1a);
  color: #e0e0e0;
}

.about-blog-info ul {
  list-style: none;
  padding: 0;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.about-blog-info li {
  padding: 8px 16px;
  color: var(--text-color, #555);
  background: var(--card-bg, #fff);
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  font-size: 0.8rem;
  transition: all 0.25s ease;
}

.about-blog-info li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(73,177,245,0.15);
}

.about-blog-info li::before {
  content: "✓ ";
  color: #49B1F5;
  font-weight: bold;
  margin-right: 4px;
}

/* 结尾样式 */
.about-footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 30px;
  border-top: 1px solid var(--border-color, #eee);
  position: relative;
}

.about-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #49B1F5, #00c4b6);
  border-radius: 0 0 2px 2px;
}

.about-footer p {
  font-size: 0.9rem;
  color: var(--text-color, #555);
  font-weight: 500;
}

[data-theme="dark"] .about-footer p {
  color: #e0e0e0;
}

.about-footer .heart {
  color: #ff6b6b;
  animation: heartbeat 1.5s ease-in-out infinite;
  display: inline-block;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* 响应式适配 */
@media (max-width: 768px) {
  .about-hero {
    flex-direction: column;
    padding: 20px 16px;
    gap: 16px;
  }

  .about-hero-left {
    width: 100%;
    align-items: center;
  }

  .about-hero-right {
    width: 100%;
  }

  .about-avatar {
    width: 80px;
    height: 80px;
  }

  .about-name {
    font-size: 1.3rem;
    text-align: center;
  }

  .about-intro {
    font-size: 0.85rem;
    text-align: center;
  }

  .about-tags {
    justify-content: center;
  }

  .about-tag {
    padding: 4px 10px;
    font-size: 0.7rem;
  }

  .about-hero-info {
    justify-content: center;
  }

  .about-hero-links {
    justify-content: center;
  }

  .about-hero-personality-wrapper {
    height: auto;
  }

  .about-hero-personality {
    width: 110px;
    height: 110px;
  }

  .about-personality-intro {
    text-align: center;
  }

  .contact-cards {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    width: 90%;
    justify-content: center;
    padding: 10px 16px;
  }

  .skill-tag {
    padding: 5px 10px;
  }

  .skill-tag-name {
    font-size: 0.78rem;
  }

  .skill-tag-desc {
    font-size: 0.68rem;
  }

  .skill-group {
    padding: 14px 16px;
  }

  .about-map {
    height: 200px;
  }

  .about-hero-info {
    flex-direction: column;
    gap: 16px;
  }

  .about-hero-left {
    width: 100%;
  }

  .about-hero-item {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .about-hero-links {
    justify-content: flex-start;
  }

  .about-hero-link {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .about-hero-personality {
    width: 100px;
    height: 100px;
  }

  .about-career-list {
    flex-direction: column;
    align-items: center;
  }

  .about-career-item {
    width: 90%;
    justify-content: center;
  }

  .about-blog-info ul {
    flex-direction: column;
    align-items: center;
  }

  .about-blog-info li {
    width: 90%;
    text-align: center;
  }
}

/* 地图位置样式 */
.about-map {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 260px;
  margin: 10px auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(73,177,245,0.12);
  border: 1px solid rgba(73,177,245,0.1);
}

.about-map-container {
  width: 100%;
  height: 100%;
}

/* Leaflet 地图样式定制 */
.leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.12);
}

.leaflet-popup-content {
  margin: 10px 14px;
  font-size: 13px;
}

.about-map-content {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255,255,255,0.95);
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border: 1px solid rgba(73,177,245,0.1);
}

[data-theme="dark"] .about-map-content {
  background: rgba(30,30,30,0.92);
}

.about-map-title {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 4px;
}

[data-theme="dark"] .about-map-title {
  color: #999;
}

.about-map-location {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  background: linear-gradient(135deg, #49B1F5 0%, #00c4b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .about-map-location {
  color: #fff;
}

/* 标记跳动动画 */
@keyframes markerBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* 生涯时间线样式 */
.about-career {
  margin: 16px 0;
  padding: 20px;
  background: var(--card-bg, #fff);
  border-radius: 14px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
  border: 1px solid rgba(73,177,245,0.08);
}

.about-career-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-color, #333);
  background: linear-gradient(135deg, #49B1F5 0%, #00c4b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-career-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.about-career-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(73,177,245,0.05) 0%, rgba(0,196,182,0.05) 100%);
  border-radius: 10px;
  transition: all 0.25s ease;
}

.about-career-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(73,177,245,0.12);
}

.about-career-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #49B1F5 0%, #00c4b6 100%);
  box-shadow: 0 2px 8px rgba(73,177,245,0.35);
}

.about-career-text {
  font-size: 0.85rem;
  color: var(--text-color, #333);
  font-weight: 500;
}

[data-theme="dark"] .about-career-text {
  color: #e0e0e0;
}

/* 爱好游戏样式 */
.about-hobby {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.about-hobby-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--card-bg, #fff);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  text-decoration: none;
  color: var(--text-color, #333);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1.5px solid transparent;
}

.about-hobby-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(73,177,245,0.15);
  border-color: rgba(73,177,245,0.15);
}

.about-hobby-icon {
  font-size: 1.6rem;
  transition: transform 0.25s ease;
}

.about-hobby-card:hover .about-hobby-icon {
  transform: scale(1.1) rotate(-3deg);
}

.about-hobby-info {
  display: flex;
  flex-direction: column;
}

.about-hobby-name {
  font-weight: 600;
  font-size: 0.9rem;
}

[data-theme="dark"] .about-hobby-name {
  color: #e0e0e0;
}

.about-hobby-uid {
  font-size: 0.75rem;
  color: #999;
}

/* 关于页面标题间距优化 */
#about-page h2,
.post-content h2 {
  margin-top: 20px !important;
  margin-bottom: 8px !important;
}