/* 通用工具类 */
.content-auto {
  content-visibility: auto;
}

.resume-shadow {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-focus {
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-focus:focus {
  border-color: #165DFF;
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.2);
  outline: none;
}

.section-transition {
  transition: all 0.3s ease-in-out;
}

.btn-hover {
  transition: all 0.2s;
}

.btn-hover:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-0.125rem);
}

.photo-upload-area {
  border: 2px dashed #E4E7ED;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s;
}

.photo-upload-area:hover {
  border-color: #165DFF;
}

/* 打印样式优化 */
@media print {
  body * {
    visibility: hidden;
  }
  
  #resume-preview-container,
  #resume-preview-container * {
    visibility: visible;
  }
  
  #resume-preview-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    box-shadow: none;
    border: none;
  }
  
  .no-print {
    display: none !important;
  }
  
  .print-hide {
    display: none;
  }
  
  /* 确保照片不会覆盖文字 */
  #resume-photo {
    position: relative;
    top: auto;
    right: auto;
    float: right;
    margin: 0 0 10px 10px;
  }
  
  .contact-info {
    clear: both;
  }
}

/* 照片上传样式 */
.photo-preview {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
}

/* 动画效果 */
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out forwards;
}

/* 卡片悬停效果 */
.card-hover {
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}