.screen {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  min-width: 1200px;
  min-height: 100vh;
  height: 100vh;
  position: relative;
}

.screen .overlap-group {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.screen .BG {
  width: 100%;
  height: 100%;
}

.screen .BG-img {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.image-wrapper {
  width: 100%;
  height: 100%;
}
.screen .element {
  width: 100%;
  height: 100%;
}

/* 背景图片模糊蒙版效果 - 通过伪元素实现 */
.image-wrapper.blur-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 5;
  transition: all 0.3s ease;
}

/* 结果展示容器 */
.result-container {
  position: absolute;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 1400px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

/* 结果图片网格 */
.result-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.result-image {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 3/4;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.result-image:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* 结果按钮容器 */
.result-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  font-family: "Noto Sans", Helvetica;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  justify-content: center;
}

.btn-generate-again {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #333;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-generate-again:hover {
  background: linear-gradient(135deg, #FFA500, #FF8C00);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 165, 0, 0.6);
}

.btn-back {
  background: #6c757d;
  color: white;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-back:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(90, 98, 104, 0.5);
}

.icon-refresh, .icon-back {
  flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 1600px) {
  .result-container {
    width: 90%;
    min-width: 1200px;
    padding: 10px;
    top: 47%;
    transform: translate(-50%, -50%);
  }
  .screen .groupcontent {
    width: 400px !important;
  }
  
  .result-images {
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  
  .result-image {
    max-width: calc(25% - 8px);
    min-width: 120px;
    flex: 1;
  }
  
  .result-buttons {
    align-items: center;
    margin-top: 20px;
  }
  
  .btn-action {
    width: 100%;
    max-width: 200px;
  }
}


.screen .HUD {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 7;
}

.screen .group {
  position: absolute;
  width: 400px;
  height: 300px;
  top: 5.93%;
  left: 3.72%;
}

.screen .groupcontent {
  width: 500px;
}

.screen .group-2 {
  display: flex;
  align-items: center;
  gap: 20px;
  width: auto;
  height: auto;
}

.screen .text-wrapper {
  font-family: "D-DIN-DIN-Bold", Helvetica;
  font-weight: 700;
  color: #ffffff;
  font-size: 56px;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.screen .get-a-professional-h {
  margin-top: 25px;
  font-family: "Noto Sans", Helvetica;
  font-weight: 700;
  color: #ffffff;
  font-size: 18px;
  letter-spacing: 0;
  line-height: normal;
}

.screen .upload-your-casual-p {
  margin-top: 25px;
  font-family: "Noto Sans", Helvetica;
  font-weight: 400;
  color: #ffffffb8;
  font-size: 16px;
  letter-spacing: 0;
  line-height: normal;
}

/* .path 样式已移除，使用新的响应式装饰边框 */

.screen .img {
  position: absolute;
  width: 0;
  height: 0;
  top: 29.69%;
  left: 0;
}

.screen .path-2 {
  position: absolute;
  width: 0;
  height: 0;
  top: 3.06%;
  left: 20.63%;
}
.upload-section {
  position: absolute;
  width: 520px;
  height: 734px;
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%);
  z-index: 8;
  background-image: url(../img/camera.png);
  background-size: cover;
}
.screen .upload-container {
  z-index: 99;
  position: absolute;
  width: 44%;
  height: 42%;
  top: 41.4%;
  left: 44%;
  cursor: pointer;
  transition: all 0.3s ease;
  /* background-color: pink; */
}

.screen .photo-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0%;
  border-radius: 14px;
}

/* 拍照取景框四角边框 */
.screen .photo-container::before,
.screen .photo-container::after,
.screen .photo-container .corner-tr,
.screen .photo-container .corner-bl {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  border: 4px solid #ffffff;
  z-index: 2;
  opacity: 0.9;
  transition: all 0.3s ease;
}

/* 左上角 */
.screen .photo-container::before {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 3px;
}

/* 右下角 */
.screen .photo-container::after {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 3px;
}

/* 右上角 */
.screen .photo-container .corner-tr {
  top: 8px;
  right: 8px;
  border-left: none;
  border-bottom: none;
  border-top-right-radius: 3px;
}

/* 左下角 */
.screen .photo-container .corner-bl {
  bottom: 8px;
  left: 8px;
  border-right: none;
  border-top: none;
  border-bottom-left-radius: 3px;
}

/* 默认状态下角落是静态的 */
.screen .photo-container::before,
.screen .photo-container::after,
.screen .photo-container .corner-tr,
.screen .photo-container .corner-bl {
  opacity: 0.7;
  animation: none;
}

/* 悬停时触发动画效果 - 分别设置延迟 */
.upload-section .upload-container:hover .photo-container::before {
  opacity: 1;
  border-color: #4a90e2;
  transform: scale(1.1);
  animation: cornerPulse 1.5s ease-in-out infinite;
}

.upload-section .upload-container:hover .photo-container .corner-tr {
  opacity: 1;
  border-color: #4a90e2;
  transform: scale(1.1);
  animation: cornerPulse 1.5s ease-in-out infinite 0.2s;
}

.upload-section .upload-container:hover .photo-container::after {
  opacity: 1;
  border-color: #4a90e2;
  transform: scale(1.1);
  animation: cornerPulse 1.5s ease-in-out infinite 0.4s;
}

.upload-section .upload-container:hover .photo-container .corner-bl {
  opacity: 1;
  border-color: #4a90e2;
  transform: scale(1.1);
  animation: cornerPulse 1.5s ease-in-out infinite 0.6s;
}

/* 悬停时整个容器的效果 */
.upload-section .upload-container:hover .photo-container {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

/* 悬停时上传图标的效果 */
.upload-section .upload-container:hover .uploadicon {
  transform: translate(-50%, -50%) translateY(-3px) scale(1.1);
}

/* 悬停时文字的效果 */
.upload-section .upload-container:hover .upload-your-casual-p-2 {
  color: #4a90e2;
  font-weight: 500;
}

/* 呼吸灯动画 */
@keyframes cornerPulse {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.8; }
}

/* upload-container 的过渡效果已在主样式中定义 */

.screen .photo-container {
  transition: all 0.3s ease;
}

.screen .uploadicon {
  transition: all 0.3s ease;
}

.screen .upload-your-casual-p-2 {
  transition: all 0.3s ease;
}

/* 已移除未使用的 img-frame 样式 */

.screen .uploadicon {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

/* uploadicon悬停效果已在upload-container:hover中定义，避免冲突 */

.screen .upload-your-casual-p-2 {
  position: absolute;
  height: 6.19%;
  top: 61%;
  left: 14.52%;
  font-family: "PingFang SC-Regular", Helvetica;
  font-weight: 400;
  color: #000000;
  font-size: 14px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

/* 上传后的图片显示样式 */
.screen .uploaded-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
}

.screen .uploaded-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* 图片悬停时显示的覆盖层 */
.screen .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

.screen .uploaded-image-container:hover .image-overlay {
  opacity: 1;
}

/* Generate 按钮样式 */
.screen .generate-button {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.screen .btn-generate {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-family: "Noto Sans", Helvetica;
  font-weight: 600;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  min-width: 120px;
}

.screen .btn-generate:hover {
  background: linear-gradient(135deg, #FFA500, #FF8C00);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 165, 0, 0.6);
}

.screen .btn-generate:active {
  transform: translateY(0);
}

/* Generate按钮加载状态 */
.screen .btn-generate.generating {
  background: #ccc !important;
  color: #666 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}

.screen .btn-generate:disabled {
  pointer-events: none;
}

/* 图片容器加载状态 */
.upload-container.loading {
  position: relative;
}

.upload-container.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  z-index: 10;
  border-radius: 15px;
}

.upload-container.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 2px solid #FFD700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
  z-index: 11;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 上传界面的过渡效果 */
.screen .upload-interface {
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease;
}

.screen .upload-interface.hidden {
  opacity: 0;
  pointer-events: none;
}

/* 拖拽上传效果 */
.screen .upload-container.drag-over {
  background-color: rgba(74, 144, 226, 0.1);
  border: 2px dashed #4a90e2;
  transform: scale(1.02);
}

.screen .upload-container.drag-over .photo-container {
  border-color: #4a90e2;
  background-color: rgba(74, 144, 226, 0.05);
}

.screen .element-headshot {
  position: absolute;
  bottom: 27px;
  right: 45px;
  font-family: "Noto Sans", Helvetica;
  font-weight: 400;
  color: #ffffffcc;
  font-size: 12px;
  text-align: right;
  letter-spacing: 0;
  line-height: normal;
  z-index: 7;
}

/* ===============================================
   响应式装饰边框样式 (来自 responsive-path.css)
   =============================================== */

/* 边框效果 */
.custom-border-path {
    position: absolute;
    top: 8%;
    left: 4%;
    width: 92%;
    height: 89%;
    pointer-events: none;
    z-index: 10;
}

.custom-border-path svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.custom-border-path path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* ===============================================
   装饰性边框样式 (来自 decorative-borders.css)
   =============================================== */

/* 响应式装饰边框 */
.decorative-border {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 2px solid transparent;
  border-image: linear-gradient(45deg, 
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.1) 75%,
    rgba(255, 255, 255, 0.3) 100%
  ) 1;
  border-radius: 20px;
  pointer-events: none;
}

/* 虚线边框效果 */
.decorative-border-dashed {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  pointer-events: none;
}

/* 四个角的装饰线条 */
.decorative-corners::before,
.decorative-corners::after {
  content: '';
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.4);
  width: 60px;
  height: 60px;
}

.decorative-corners::before {
  top: 20px;
  left: 20px;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 20px;
}

.decorative-corners::after {
  bottom: 20px;
  right: 20px;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 20px;
}

/* 复杂边框容器 */
.decorative-corners {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
}

/* 响应式版本 - 使用 clip-path 创建相似的形状 */
.decorative-path {
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  clip-path: polygon(
    21% 0%, 
    98% 0%, 
    100% 4%, 
    100% 91%, 
    98% 96%, 
    68% 96%, 
    66% 100%, 
    3% 100%, 
    0% 95%, 
    0% 27%
  );
  transition: all 0.3s ease;
}

/* 装饰边框悬停效果 */
.screen:hover .decorative-path {
  border-color: rgba(255, 255, 255, 0.5);
}

/* Footer链接样式 */
.footer-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #4A90E2;
  cursor: pointer;
}

/* Login按钮样式 */
.login-button-container {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 200;
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  font-family: "Noto Sans", Helvetica;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-login:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 215, 0, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.icon-user {
  flex-shrink: 0;
}



/* Login弹窗样式 */
.login-modal {
  z-index: 99999;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-modal-content {
  background: white;
  border-radius: 20px;
  padding: 0;
  max-width: 440px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

.login-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid #f0f0f0;
}


.login-modal-header h3 {
  margin: 0;
  font-family: "Noto Sans", Helvetica;
  font-weight: 700;
  font-size: 24px;
  color: #333;
}

.close-modal {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: #f5f5f5;
  color: #333;
}

.login-modal-body {
  padding: 30px;
  text-align: center;
}

.login-modal-body p {
  margin-bottom: 25px;
  color: #666;
  font-size: 16px;
  line-height: 1.5;
}

.login-divider {
  margin: 25px 0;
  position: relative;
  text-align: center;
}

.login-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
}

.login-divider span {
  background: white;
  padding: 0 15px;
  color: #999;
  font-size: 14px;
  position: relative;
}

.btn-continue-guest {
  width: 100%;
  padding: 12px 20px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  font-family: "Noto Sans", Helvetica;
  font-weight: 600;
  font-size: 16px;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-continue-guest:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  color: #495057;
}

/* 弹窗动画 */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .login-button-container {
    top: 20px;
    right: 20px;
  }
  
  
  .btn-login {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .login-modal-content {
    margin: 20px;
    width: calc(100% - 40px);
  }
  
  .login-modal-header {
    padding: 20px 25px;
  }
  
  .login-modal-body {
    padding: 25px;
  }
}
