/* 页面容器 */
.self-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #1a202c;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

/* 欢迎卡片 */
.self-welcome-card {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 25px;
  padding: 40px 30px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 15px 50px rgba(31,38,135,0.2);
  transition: all 0.4s ease;
  animation: slideDown 0.8s ease-out;
}


.self-welcome-card .self-title {
  font-size: 2.6em;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #2c5282;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
  animation: fadeIn 1s ease-out 0.3s both;
}

.self-welcome-card .self-subtitle {
  font-size: 1.25em;
  margin: 0;
  opacity: 0.95;
  color: #4a5568;
  animation: fadeIn 1s ease-out 0.6s both;
}

/* 卡片网格 */
.self-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

/* 通用卡片 */
.self-card {
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 12px 40px rgba(31,38,135,0.15);
  color: #1a202c;
  transition: all 0.35s ease;
  line-height: 1.35;
  cursor: default;
}


/* 头像卡片 */
.profile-card {
  background: linear-gradient(135deg, #ffbba5, #86eb2e);
  text-align: center;
}

.profile-card .self-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.profile-card .self-subtitle {
  margin-top: 30px;
  font-size: 1.5em;
  opacity: 0.9;
  color: #1a1c20;
}

/* 生日卡片 */
.birthday-card {
  display: flex;                  /* 使用 flex 布局 */
  flex-direction: column;         /* 竖直排列 */
  justify-content: center;        /* 垂直居中 */
  align-items: center;            /* 水平居中 */
  text-align: center;
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 35px rgba(31,38,135,0.15);
  transition: all 0.3s ease;
}

.birthday-card .self-icon {
  font-size: 3em;
  margin-bottom: 10px;
}

.birthday-card .self-info-title {
  font-size: 1.3em;
  margin: 0 0 5px 0;
  font-weight: 600;
  color: #d53f8c;
}

.birthday-card .self-value {
  font-size: 2.35em;
  margin: 2px 0;
  font-weight: 500;
  color: #2c5282;
}


/* 现居卡片（左文字右图片） */
.where-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  gap: 15px;
  background: linear-gradient(135deg, #e0fffc, #6db6fe);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transition: all 0.35s ease;
}

.where-card .where-content .self-info-title {
  font-size: 1.5em;
  margin: 0 0 6px 0;
  font-weight: 600;
  color: #276749;
}

.where-card .where-content .self-value {
  font-size: 2.35em;
  margin: 0;
  font-weight: 500;
  color: #1a202c;
}

.where-card .self-image {
  width: 240px;
  height: auto;
  border-radius: 12px;
  transition: transform 0.35s ease;
}




/* 星座卡片 */
.self-card.feature-card.constellation-card{
  display: flex;
  align-items: center;
  padding: 18px;
  gap: 15px;
  background: linear-gradient(135deg, #f6d365, #fda085);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(31,38,135,0.15);
  transition: all 0.3s ease;
  height: 200px;
}

.self-card.feature-card.constellation-card .feature-content {
  flex: 1;
  text-align: left;
}

.self-card.feature-card.constellation-card .self-icon {
  font-size: 3em;
  margin-bottom: 6px;
}

.self-card.feature-card.constellation-card .self-feature-title {
  font-size: 1.35em;
  margin: 0 0 6px 0;
  font-weight: 600;
  color: #2c5282;
}

.self-card.feature-card.constellation-card .self-value {
  font-size: 1.5em;
  margin: 2px 0;
  font-weight: bold;
  color: #1a202c;
}
.self-card.feature-card.constellation-card .self-desc{
    font-size: 1.2em;
    margin: 4px 0;
}
.self-card.feature-card.constellation-card .self-image {
  width: 200px;
  height: auto;
  border-radius: 15px;
  transition: transform 0.3s ease;
  margin-right: 40px;
}



/* MBTI卡片 */
.self-card.feature-card.mbti-card{
  display: flex;
  align-items: center;
  padding: 18px;
  gap: 15px;
  background: linear-gradient(135deg, #2ebe26, #ceffa1);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(31,38,135,0.15);
  transition: all 0.3s ease;
  height: 200px;
}

.self-card.feature-card.mbti-card .feature-content {
  flex: 1;
  text-align: left;
}


.self-card.feature-card.mbti-card .self-feature-title {
  font-size: 1.35em;
  margin: 0 0 6px 0;
  font-weight: 600;
  color: #2c5282;
}

.self-card.feature-card.mbti-card .self-value {
  font-size: 2.5em;
  margin: 2px 0;
  font-weight: 500;
  color: #1a202c;
}

.self-card.feature-card.mbti-card .self-image {
  width: 280px;
  height: auto;
  border-radius: 15px;
  transition: transform 0.3s ease;
  margin-right: 30px;
}

/* 响应式：保持图片和文字在同一行，等比缩小 */
@media (max-width: 768px) {
  /* 现居卡片 */
  .where-card {
    flex-wrap: nowrap;       /* 不换行 */
    justify-content: space-between;
    padding: 15px;
  }
  .where-card .where-content {
    flex: 1 1 auto;          /* 可缩小 */
    min-width: 0;            /* 允许文字缩小 */
  }
  .where-card .self-image {
    flex-shrink: 1;          /* 图片可缩小 */
    width: auto;
    max-width: 40%;          /* 最大占比，等比缩小 */
    height: auto;
    margin-right: 0;
  }

  /* 星座卡片 */
  .self-card.feature-card.constellation-card,
  .self-card.feature-card.mbti-card {
    flex-wrap: nowrap;
    height: auto;
  }
  .self-card.feature-card.constellation-card .feature-content,
  .self-card.feature-card.mbti-card .feature-content {
    flex: 1 1 auto;
    min-width: 0;
  }
  .self-card.feature-card.constellation-card .self-image,
  .self-card.feature-card.mbti-card .self-image {
    flex-shrink: 1;
    width: auto;
    max-width: 35%;   /* 保持在一行内，随屏幕缩小 */
    height: auto;
    margin-right: 0;
  }
}
