/* 文字隐现动画效果 */
.animated-text-philosophy {
  position: relative;
  display: inline-block;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.animated-text-philosophy .char {
  display: inline-block;
  opacity: 1;
  transition: opacity 0.5s ease; /* 从0.3s改为0.5s，使过渡更加平滑 */
  position: relative;
  will-change: opacity;
}

.animated-text-philosophy .char.fade {
  opacity: 0.3;
  transition: opacity 0.5s ease; /* 从0.3s改为0.5s，使过渡更加平滑 */
}

/* 1. 标题底部实线动画 */
.animated-text-philosophy::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ffb366 0%, #6c63ff 100%);
  border-radius: 2px;
  opacity: 0.85;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineGrow 1.2s cubic-bezier(0.4,0,0.2,1) 0.2s forwards;
}

@keyframes underlineGrow {
  0% { transform: scaleX(0); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: scaleX(1); opacity: 1; }
}

/* 设计理念区域 */
#philosophy {
    position: relative;
    background: linear-gradient(135deg, #23293a 0%, #23293a 100%); /* 修改为深色背景 */
    padding: 80px 0;
    overflow: hidden;
    z-index: 1;
}

#philosophy::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244,130,31,0.25) 0%, rgba(244,130,31,0.1) 70%, rgba(244,130,31,0) 100%);
    z-index: 1;
    animation: float 12s ease-in-out infinite;
}

#philosophy::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,102,204,0.25) 0%, rgba(0,102,204,0.1) 70%, rgba(0,102,204,0) 100%);
    z-index: 1;
    animation: float 15s ease-in-out infinite reverse;
}

/* 添加额外的装饰圆形元素 */
#philosophy .decoration-circle-1 {
    position: absolute;
    top: -70px;
    left: -70px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(79, 193, 233, 0.25), rgba(125, 91, 254, 0.25));
    z-index: -1;
    animation: float 12s ease-in-out infinite;
}

#philosophy .decoration-circle-2 {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(106, 130, 251, 0.25), rgba(252, 92, 125, 0.25));
    z-index: -1;
    animation: float 10s ease-in-out infinite reverse;
}

.philosophy .decoration-dots {
    position: absolute;
    bottom: 40px;
    left: 10%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(79, 193, 233, 0.9) 2px, transparent 2px);
    background-size: 20px 20px;
    z-index: -1;
    opacity: 0.6;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* 中间菱形 */
#philosophy .container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.2)); /* 增加透明度 */
    z-index: 1;
    transition: all 0.3s ease;
}

/* 鼠标悬停效果 */
#philosophy:hover::before {
    transform: scale(1.2) translate(20px, 20px);
}

#philosophy:hover::after {
    transform: scale(1.2) translate(-20px, 20px);
}

#philosophy:hover .decoration-circle-1 {
    transform: scale(1.15) translate(10px, -10px);
}

#philosophy:hover .decoration-circle-2 {
    transform: scale(1.15) translate(-15px, 5px);
}

#philosophy:hover .container::before {
    transform: translate(-50%, -50%) rotate(225deg) scale(1.2);
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.3)); /* 增强效果 */
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1); /* 添加发光效果 */
}

/* 内容区域 */
#philosophy .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

#philosophy .row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

#philosophy .philosophy-content {
    flex: 1 1 0;
    max-width: 600px;
    min-width: 0;
}

#philosophy .philosophy-image {
    flex: 1 1 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 2;
}

#philosophy .philosophy-image img {
    max-width: 480px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
    margin-left: 60px;
    margin-right: 0;
    background: #fff;
    position: relative;
    z-index: 2;
}

#philosophy .section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

#philosophy .lead {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

#philosophy p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

/* 响应式调整 */
@media (max-width: 991px) {
    #philosophy .row {
        flex-direction: column;
        gap: 40px;
    }
    #philosophy .philosophy-content,
    #philosophy .philosophy-image {
        max-width: 100%;
        margin-left: 0;
    }
    #philosophy .philosophy-image img {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    #philosophy {
        padding: 60px 0;
    }
    
    #philosophy .section-title {
        font-size: 2rem;
    }
    
    #philosophy .lead {
        font-size: 1.3rem;
    }
    
    #philosophy p {
        font-size: 1.1rem;
    }
}

#philosophy.section-padding {
  padding: 80px 0 80px 0;
  position: relative;
  overflow: hidden;
}
.animated-text-philosophy span {
  display: inline-block;
  opacity: 1;
  transition: opacity 0.3s;
  will-change: opacity;
}
.animated-text-philosophy span.hide {
  opacity: 0.15;
}
