/* About Page Styles - Steam 3D 完美贴合版 (v18) */

.about-page {
  min-height: calc(100vh - 60px);
  background: var(--background-color, #fff);
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}

.about-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 154, 158, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(161, 196, 253, 0.05) 0%, transparent 20%);
  z-index: 0;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Header */
.about-header {
  text-align: center;
  margin-bottom: 50px;
}

.about-avatar {
  width: 160px;
  height: 160px;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.about-avatar:hover {
  transform: translateY(-5px);
}

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

.about-name {
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: #2c3e50;
}

.about-bio {
  font-size: 1.3rem;
  color: #5d6d7e;
  max-width: 700px;
  margin: 0 auto;
}

/* Interests Cards */
.interests-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 50px 0;
  
  /* 3D 空间 */
  perspective: 1000px; 
}

.interest-card {
  display: block; 
  text-decoration: none;
  color: inherit;
  
  position: relative;
  border-radius: 20px;
  
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  
  /* 针对 JS 变换使用快速响应 */
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
  
  cursor: pointer;
  z-index: 1;

  /* 开启 3D，但内容不分层 */
  transform-style: preserve-3d;
  /* 确保中心旋转 */
  transform-origin: center center;
}

/* 防抖动补丁 */
.interest-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -40px; 
  height: 40px;
  background: transparent;
  z-index: -1;
}

/* 悬停时的基础样式 (位移和旋转交由 JS 控制) */
.interest-card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); 
  z-index: 100;
}

/* 尺寸定义 */
.card-landscape { width: 380px; height: 240px; }
.card-landscape.card-large { width: 460px; height: 280px; }
.card-landscape.card-medium { width: 380px; height: 240px; }
.card-landscape.card-small { width: 300px; height: 200px; }

.card-portrait { width: 280px; height: 360px; }
.card-portrait.card-large { width: 320px; height: 400px; }
.card-portrait.card-medium { width: 280px; height: 340px; }
.card-portrait.card-small { width: 240px; height: 300px; }

/* 背景图片样式 */
.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: all 0.3s ease;
  z-index: -1;
  border-radius: 20px;
  
  /* 【修正】移除 Z 轴位移，确保严丝合缝 */
  transform: translateZ(0); 
}

.interest-card:hover .card-bg {
  filter: blur(8px);
  /* 仅放大，不位移 */
  transform: scale(1.1); 
}

/* 内容层 */
.card-content {
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  position: relative;
  z-index: 2;
  border-radius: 20px;
  overflow: hidden;
  
  /* 完美渐变 */
  background: linear-gradient(
    to bottom, 
    rgba(0, 0, 0, 0) 0%, 
    rgba(0, 0, 0, 0.6) 50%, 
    #000000 100%
  );
  
  
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: background 0.3s ease;
  
  /* 【修正】移除 Z 轴位移，确保严丝合缝 */
  transform: translateZ(0);
}

.interest-card:hover .card-content {
  background: linear-gradient(
    to bottom, 
    rgba(0, 0, 0, 0.2) 0%, 
    rgba(0, 0, 0, 0.7) 50%, 
    #000000 100%
  );
}

.card-title {
  font-size: 2.2rem;
  margin: 0 0 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  /* 文字可以稍微突起一点点，不会影响蒙版对齐 */
  transform: translateZ(20px);
}

.card-description p {
  font-size: 1.1rem;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  transform: translateZ(10px);
}

.card-icon {
  font-size: 2rem;
  align-self: flex-end;
  transform: translateZ(10px);
}

/* 黑条 */
.card-hover-content {
  position: absolute;
  width: 102%;
  left: -1%;
  bottom: -1px;
  padding: 20px 30px;
  
  background: rgba(0, 0, 0, 0.8);
  
  /* 【修正】移除 Z 轴大位移，只保留 1px 防止穿模 */
  transform: translateY(100%) translateZ(1px);
  transition: transform 0.3s ease;
  
  box-sizing: border-box; 
  border-radius: 0 0 20px 20px;
  z-index: 3;
}

.interest-card:hover .card-hover-content {
  transform: translateY(0) translateZ(1px);
}

.card-hover-content p {
  margin: 0;
  color: #fff;
}

/* 个人信息区 (保持不变) */
.about-details { max-width: 900px; margin: 40px auto; padding: 0 20px; }
.about-section { background: rgba(255, 255, 255, 0.8); border-radius: 15px; padding: 30px; margin-bottom: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.about-section h2 { border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 20px; color: #333; }
.profile-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.profile-item { background: #f9f9f9; padding: 15px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: all 0.3s ease; cursor: default; }
.profile-item:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); background: #fff; }
.contact-info { display: flex; flex-wrap: wrap; gap: 15px; }
.contact-item { flex: 1; min-width: 200px; display: flex; align-items: center; background: #f9f9f9; padding: 15px; border-radius: 8px; text-decoration: none; color: #333; transition: all 0.3s ease; }
.contact-item:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); background: #fff; }
.contact-item i { margin-right: 15px; font-size: 1.5rem; }
@media (max-width: 768px) { .interest-card { width: 100% !important; max-width: 350px; height: 300px !important; } }
.skill-tag { display: inline-block; background: #f0f2f5; padding: 4px 12px; margin: 5px; border-radius: 20px; font-size: 0.9rem; color: #4a4a4a; border: 1px solid #e1e4e8; transition: all 0.3s ease; }
.skill-tag:hover { background: #e1e4e8; transform: translateY(-2px); }