/* =================================
   个人信息卡片样式（紧凑版）
   ================================= */

/* 个人信息卡片容器 */
.personal-info-card {
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 卡片头部 */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.card-header h4 {
  margin: 0;
  color: #2d3748;
  font-size: 14px;
  font-weight: 600;
}

/* 卡片操作按钮区域 */
.card-actions {
  display: flex;
  gap: 6px;
}

/* 保存按钮 */
.save-btn {
  background: #98DBC6;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.save-btn:hover {
  background: #82c5b5;
}

.save-btn:active {
  background: #6cae9f;
}

/* 清空按钮 */
.clear-btn {
  background: #e2e8f0;
  color: #2d3748;
  border: none;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.clear-btn:hover {
  background: #cbd5e0;
}

.clear-btn:active {
  background: #a0aec0;
}

/* 信息输入区域 */
.info-input {
  display: block;
}

/* 信息网格布局 */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* 信息项 */
.info-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* 信息标签 */
.info-label {
  font-size: 12px;
  color: #4a5568;
  font-weight: 500;
  cursor: help;
  user-select: none;
  margin-bottom: 1px;
  position: relative;
}

.info-label:hover {
  color: #2d3748;
}

/* 悬浮提示框 */
.info-tooltip {
  position: fixed;
  background: rgba(45, 55, 72, 0.95);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  max-width: 300px;
  word-wrap: break-word;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.info-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

/* 输入框悬浮提示的值 */
.info-input-box:hover {
  position: relative;
}

/* 信息输入框 */
.info-input-box {
  padding: 6px 8px;
  border: 1px solid #cbd5e0;
  border-radius: 3px;
  font-size: 13px;
  outline: none;
  background: white;
  transition: all 0.2s ease;
  color: #2d3748;
}

.info-input-box::placeholder {
  color: #a0aec0;
  font-size: 12px;
}

.info-input-box:hover {
  border-color: #a0aec0;
}

.info-input-box:focus {
  border-color: #98DBC6;
  box-shadow: 0 0 0 2px rgba(152, 219, 198, 0.15);
}

/* 响应式：小屏幕时单列显示 */
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .card-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
