/* F:\myblog\source\about\card.css */

/* --- 容器 --- */
.about-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 40px 20px;
  font-family: -apple-system, sans-serif;
  perspective: 1000px; /* 开启 3D 空间，这一句很重要 */
}

/* --- 核心卡片 --- */
.id-card {
  position: relative;
  width: 380px;
  height: 240px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #6e45e2 100%);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  
  /* 这里的 transition 改成 ease-out 配合 JS 更加丝滑 */
  transition: transform 0.1s ease-out, box-shadow 0.3s; 
  transform-style: preserve-3d; /* 让子元素也能 3D */
}

/* --- 卡片纹理 --- */
.id-card::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
  transform: translateZ(20px); /* 纹理层悬浮 */
}

/* --- 布局通用 --- */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 25px;
  transform: translateZ(30px); /* 标题层悬浮 */
}

.school-logo {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.9;
  border-bottom: 2px solid rgba(255,255,255,0.5);
  padding-bottom: 4px;
}

.card-chip {
  width: 40px; height: 30px;
  background: linear-gradient(135deg, #d4af37 0%, #f9d976 100%);
  border-radius: 6px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

.card-body {
  padding: 0 25px;
  display: flex;
  gap: 20px;
  align-items: center;
  transform: translateZ(50px); /* 内容层悬浮最高，制造层次感 */
}

.avatar-box img {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.8);
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.info-box { display: flex; flex-direction: column; }

.name {
  font-size: 26px; font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.role {
  font-size: 13px;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
  backdrop-filter: blur(5px);
  margin-bottom: 8px;
}

.card-footer {
  position: absolute; bottom: 0; width: 100%;
  padding: 15px 25px;
  background: rgba(0, 0, 0, 0.2);
  display: flex; justify-content: space-between;
  font-size: 12px; font-family: monospace; opacity: 0.8;
  transform: translateZ(30px);
}

/* --- 介绍文本区 --- */
.intro-text {
  margin-top: 50px;
  max-width: 600px;
  text-align: center;
  line-height: 1.8;
  color: var(--font-color);
  animation: fadeInUp 1s ease;
}
.tech-stack {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px;
}
.tech-tag {
  background: var(--btn-bg); padding: 5px 12px;
  border-radius: 8px; font-size: 12px; font-weight: bold;
  color: var(--btn-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}
.tech-tag:hover { transform: translateY(-3px); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 480px) {
  .id-card { width: 100%; height: auto; padding-bottom: 20px; }
  .card-footer { position: relative; margin-top: 20px; padding: 0 25px; }
}