/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 上传区域 */
.upload-section {
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
}

.upload-area {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 3px dashed #e0e0e0;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.upload-area.dragover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.upload-content i {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 20px;
}

.upload-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.upload-content p {
    color: #666;
    margin-bottom: 30px;
}

.upload-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* 预览区域 */
.preview-section {
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
}

/* 文件信息显示 */
.file-info {
  background: #f8f9fa;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e9ecef;
}

.file-name {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  color: #666;
  font-size: 0.9rem;
  background: #e9ecef;
  padding: 4px 8px;
  border-radius: 15px;
  font-weight: 500;
}

/* 预览容器调整 */
.preview-container {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  text-align: center;
}

#previewImage {
  max-width: 100%;
  max-height: 400px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 2px solid #f8f9fa;
}

.preview-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.analyze-btn, .reset-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.analyze-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.reset-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e0e0e0;
}

.reset-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* 加载状态 */
.loading-section {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.loading-content {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.loading-content p {
    color: #666;
}

/* 结果展示区域 - 重新设计 */
.result-section {
    width: 100%;
    max-width: 900px;
}

.result-container {
    background: white;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* 用户头像展示区域 - 放在最顶部，增大尺寸 */
.user-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.avatar-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.user-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.avatar-border {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -1;
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.03);
    }
}

.avatar-label {
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* 分数显示区域 - 移到中央，增大尺寸 */
.score-display {
    text-align: center;
    margin: 20px 0;
}

.score-circle {
    display: inline-block;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.score-circle:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.5);
}

.score-number {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.score-label {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详细分析结果 - 重新设计 */
.result-details {
    width: 100%;
    margin: 20px 0;
}

.result-details h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.detail-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.detail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.detail-label {
    display: block;
    font-size: 1rem;
    color: #666;
    margin-bottom: 12px;
    font-weight: 500;
}

.detail-value {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
}

/* AI幽默评价 - 单独区域，更突出 */
.humor-section {
    width: 100%;
    margin: 20px 0;
}

.humor-comment {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    color: white;
    border: 3px solid #ff4757;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    animation: humorPulse 2s ease-in-out infinite;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.humor-comment:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.humor-label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.humor-value {
    display: block;
    color: white;
    font-size: 1.3rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

@keyframes humorPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
    }
}

/* 操作按钮 - 保持现有设计 */
.result-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.share-btn, .new-analysis-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.share-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.6);
}

.new-analysis-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.new-analysis-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

/* 底部样式 */
.footer {
  text-align: center;
  margin-top: 40px;
  color: white;
  opacity: 0.8;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-content p {
  margin: 0;
  font-size: 0.9rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.author-label {
  color: rgba(255, 255, 255, 0.7);
}

.author-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  font-weight: 500;
}

.author-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
}

.author-link i {
  font-size: 0.8rem;
}

.author-name {
  font-weight: 600;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-body p {
    color: #666;
    line-height: 1.6;
}

.modal-footer {
    text-align: right;
}

.modal-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .upload-content i {
        font-size: 3rem;
    }
    
    .score-circle {
        width: 150px;
        height: 150px;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .preview-actions {
        flex-direction: column;
    }

    /* 响应式调整 */
    .file-info {
      flex-direction: column;
      gap: 10px;
      text-align: center;
    }
    
    .file-name {
      max-width: 100%;
    }
    
    .footer-content {
      gap: 8px;
    }
    
    .author-info {
      flex-direction: column;
      gap: 5px;
    }
    
    .author-link {
      padding: 4px 10px;
      font-size: 0.8rem;
    }

    .result-container {
        padding: 30px 20px;
        gap: 30px;
    }
    
    .avatar-container {
        width: 150px;
        height: 150px;
    }
    
    .score-circle {
        width: 200px;
        height: 200px;
    }
    
    .score-number {
        font-size: 3rem;
    }
    
    .score-label {
        font-size: 1rem;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .detail-item {
        padding: 20px;
    }
    
    .humor-comment {
        padding: 25px;
    }
    
    .humor-value {
        font-size: 1.1rem;
    }
    
    .result-actions {
        gap: 15px;
    }
    
    .share-btn, .new-analysis-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
} 

/* 在现有样式基础上添加用户头像和幽默评价样式 */

/* 用户头像展示区域 */
.user-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px 0;
  padding: 20px;
}

.avatar-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 15px;
}

.user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.avatar-border {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: -1;
  animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

.avatar-label {
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  text-align: center;
}

/* 幽默评价样式 */
.humor-comment {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%) !important;
  color: white !important;
  border: 2px solid #ff4757;
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
  animation: humorPulse 2s ease-in-out infinite;
  grid-column: 1 / -1; /* 让幽默评价占据整行 */
}

.humor-comment .detail-label {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600;
}

.humor-comment .detail-value {
  color: white !important;
  font-size: 1.1rem;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 幽默评价动画 */
@keyframes humorPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
  }
}

/* 性别选择区域 */
.gender-selection-section {
  width: 100%;
  max-width: 600px;
  margin-bottom: 30px;
}

.gender-container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  text-align: center;
}

.gender-container h3 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
}

.gender-subtitle {
  color: #666;
  font-size: 1rem;
  margin-bottom: 30px;
}

.gender-options {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
}

.gender-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 40px;
  border-radius: 20px;
  border: 3px solid #e9ecef;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.gender-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border-color: #667eea;
}

.gender-option.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.gender-option.selected .gender-icon {
  color: white;
}

.gender-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #667eea;
  transition: all 0.3s ease;
}

.gender-label {
  font-size: 1.2rem;
  font-weight: 600;
}

.gender-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #666;
  font-size: 0.9rem;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #e9ecef;
}

.gender-note i {
  color: #667eea;
}

/* 上传区域中的性别信息显示 */
.selected-gender-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 15px 0;
  display: inline-block;
}

.selected-gender-info span:first-child {
  opacity: 0.9;
}

.selected-gender-info span:last-child {
  font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .gender-container {
    padding: 30px 20px;
  }
  
  .gender-container h3 {
    font-size: 1.5rem;
  }
  
  .gender-options {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .gender-option {
    min-width: 120px;
    padding: 25px 30px;
  }
  
  .gender-icon {
    font-size: 2.5rem;
  }
  
  .gender-label {
    font-size: 1.1rem;
  }
} 