/* About Page Enhancements */

/* 全局动画设置 */
* {
  transition: all 0.3s ease;
}

/* 滚动动画基础类 */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s ease;
}

.fade-in-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s ease;
}

.fade-in-right.animate {
  opacity: 1;
  transform: translateX(0);
}

/* Hero 区域美化 */
.about-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.15"/><circle cx="20" cy="60" r="0.5" fill="white" opacity="0.15"/><circle cx="80" cy="40" r="0.5" fill="white" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.about-hero .container {
  position: relative;
  z-index: 2;
}

/* 头像容器动画 */
.profile-avatar-container {
  position: relative;
  display: inline-block;
}

.profile-avatar-container::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

.profile-avatar-container img {
  transition: transform 0.3s ease;
}

.profile-avatar-container:hover img {
  transform: scale(1.05);
}

/* 按钮悬停效果增强 */
.btn {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

/* 经验卡片美化 */
.experience-card {
  background: white;
  border-radius: 8px;
  padding: 40px;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.experience-card:hover::before {
  transform: scaleX(1);
}

/* 图标容器动画 */
.icon-container {
  transition: all 0.3s ease;
  position: relative;
}

.icon-container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.experience-card:hover .icon-container::after {
  width: 80px;
  height: 80px;
}

.experience-card:hover .icon-container {
  transform: scale(1.1);
}

/* 工作理念图标动画 */
.philosophy-icon {
  transition: all 0.4s ease;
  position: relative;
}

.philosophy-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: all 0.4s ease;
}

.philosophy-icon:hover::before {
  transform: translate(-50%, -50%) scale(1.2);
}

.philosophy-icon:hover {
  transform: translateY(-5px) scale(1.05);
}

.philosophy-icon i {
  transition: all 0.3s ease;
}

.philosophy-icon:hover i {
  transform: scale(1.1);
  color: #667eea !important;
}

/* 服务优势动画 */
.advantage-item {
  transition: all 0.3s ease;
  padding: 20px 0;
  border-radius: 8px;
}

.advantage-item:hover {
  background: rgba(102, 126, 234, 0.05);
  padding: 20px 15px;
  transform: translateX(10px);
}

.advantage-icon {
  transition: all 0.3s ease;
  position: relative;
}

.advantage-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.advantage-item:hover .advantage-icon::after {
  width: 60px;
  height: 60px;
}

.advantage-item:hover .advantage-icon {
  transform: scale(1.1);
}

/* CodeJr 产品区域 */
.codejr-section {
  position: relative;
}

.codejr-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.codejr-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  opacity: 0;
  transition: all 0.3s ease;
}

.codejr-image-container:hover::before {
  opacity: 1;
}

.codejr-image-container:hover {
  transform: scale(1.02);
}

/* 特色列表动画 */
.feature-list li {
  transition: all 0.3s ease;
  padding: 5px 0;
  border-radius: 4px;
}

.feature-list li:hover {
  background: rgba(102, 126, 234, 0.05);
  padding: 5px 10px;
  transform: translateX(5px);
}

.feature-list li i {
  transition: all 0.3s ease;
}

.feature-list li:hover i {
  transform: scale(1.2);
  color: #667eea !important;
}

/* CTA 区域美化 */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 响应式优化 */
@media (max-width: 768px) {
  .experience-card {
    padding: 30px 20px;
  }
  
  .philosophy-icon {
    margin-bottom: 20px;
  }
  
  .advantage-item:hover {
    transform: none;
    padding: 20px 10px;
  }
}

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* 加载动画 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* 数字计数动画 */
.counter {
  font-weight: 700;
  color: #667eea;
}

/* 技能进度条 */
.skill-progress {
  height: 6px;
  background: #f8f9fa;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}

.skill-progress-bar {
  height: 100%;
  background: #a5c33c;
  border-radius: 3px;
  width: 0%;
  transition: width 2s ease;
}

/* 悬浮效果 */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* 文字打字机效果 */
.typewriter {
  overflow: hidden;
  border-right: 2px solid #667eea;
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #667eea }
}

/* 粒子背景效果 */
.particles-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  animation: float-particle 6s infinite linear;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}