/* 页面预加载动画 */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.6s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader .spinner {
  width: 70px;
  height: 70px;
  border: 4px solid rgba(255, 255, 255, 0.5);
  border-top: 4px solid #106eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* 添加卡片动画效果 */
.portfolio-item, .team-member, .news-item, .testimonial-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.appear-animation {
  opacity: 1;
  transform: translateY(0);
}

/* 案例展示部分强化 */
.portfolio-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 30px;
  transition: all 0.4s ease;
  position: relative;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.portfolio-img {
  position: relative;
  overflow: hidden;
}

.portfolio-img img {
  transition: transform 0.8s ease;
  width: 100%;
}

.portfolio-item:hover .portfolio-img img {
  transform: scale(1.05);
}

.portfolio-info {
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border-top: 2px solid #f0f0f0;
}

.portfolio-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.portfolio-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.details-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: #106eea;
  color: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.details-link:hover {
  background: #0e58bb;
  color: #fff;
}

/* 团队成员部分优化 */
.team-member {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: all 0.4s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.team-member img {
  width: 100%;
  transition: all 0.4s ease;
}

.team-member:hover img {
  transform: scale(1.03);
}

.team-info {
  padding: 20px;
  text-align: center;
}

.team-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #333;
}

.team-info span {
  display: block;
  font-size: 14px;
  color: #106eea;
  margin-bottom: 15px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.team-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f2f3f5;
  border-radius: 50%;
  color: #106eea;
  transition: all 0.3s ease;
}

.team-social a:hover {
  background: #106eea;
  color: #fff;
}

/* 新闻卡片优化 */
.news-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: all 0.4s ease;
  height: 100%;
}

.news-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.news-img {
  position: relative;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  transition: transform 0.8s ease;
}

.news-item:hover .news-img img {
  transform: scale(1.05);
}

.news-content {
  padding: 25px;
}

.news-date {
  display: inline-block;
  font-size: 13px;
  color: #106eea;
  margin-bottom: 10px;
}

.news-title {
  margin-bottom: 15px;
}

.news-title a {
  color: #333;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.3s ease;
  text-decoration: none;
}

.news-title a:hover {
  color: #106eea;
}

.news-content p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: #106eea;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.read-more i {
  margin-left: 5px;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #0e58bb;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* 联系表单优化 */
.contact-form {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.form-control {
  height: 50px;
  border: 1px solid #e8e8e8;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 15px;
  color: #555;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #106eea;
  box-shadow: 0 0 0 3px rgba(16, 110, 234, 0.1);
}

textarea.form-control {
  min-height: 150px;
}

.contact-submit-btn {
  background: #106eea;
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-submit-btn:hover {
  background: #0e58bb;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(14, 88, 187, 0.2);
}

/* 页脚优化 */
#footer {
  background: #f9f9f9;
  color: #444;
  font-size: 14px;
  border-top: 4px solid #106eea;
}

.footer-top {
  padding: 60px 0 30px;
  background: #fff;
}

.footer-contact h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #106eea;
}

.footer-links h4 {
  font-size: 16px;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
  color: #106eea;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  display: block;
  width: 50px;
  height: 2px;
  background: #106eea;
  bottom: 0;
  left: 0;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  padding: 8px 0;
  display: flex;
  align-items: center;
}

.footer-links ul li:first-child {
  padding-top: 0;
}

.footer-links ul li a {
  color: #666;
  transition: 0.3s;
  text-decoration: none;
}

.footer-links ul li a:hover {
  color: #106eea;
  padding-left: 5px;
}

.footer-links ul i {
  font-size: 12px;
  color: #106eea;
  margin-right: 10px;
  line-height: 1;
}

.footer-newsletter input[type="email"] {
  border: 1px solid #e8e8e8;
  padding: 10px 15px;
  width: 100%;
  border-radius: 5px 0 0 5px;
}

.footer-newsletter input[type="submit"] {
  background: #106eea;
  border: 0;
  border-radius: 0 5px 5px 0;
  padding: 10px 15px;
  color: #fff;
  font-weight: 600;
  transition: 0.3s;
  cursor: pointer;
}

.footer-newsletter input[type="submit"]:hover {
  background: #0e58bb;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.copyright {
  margin-bottom: 10px;
}

.beian a {
  color: #666;
  text-decoration: none;
}

/* 图片悬停效果 */
.portfolio-item {
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

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

.portfolio-item img {
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-info {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  position: absolute;
  bottom: -100px;
  left: 0;
  right: 0;
  text-align: center;
  transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-info {
  bottom: 0;
}

/* 改进团队成员卡片 */
.team-member {
  text-align: center;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.team-member img {
  width: 100%;
  transition: all 0.3s ease;
}

.team-member:hover img {
  filter: brightness(1.05);
}

.team-info {
  padding: 25px 15px;
}

.team-info h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 18px;
  color: #333;
}

.team-info span {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #106eea;
}

.team-social {
  margin-top: 12px;
}

.team-social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: #f6f6f6;
  border-radius: 50%;
  margin: 0 5px;
  color: #106eea;
  transition: all 0.3s ease;
}

.team-social a:hover {
  background: #106eea;
  color: #fff;
}

/* 改进新闻卡片 */
.news-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.news-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.news-img {
  overflow: hidden;
}

.news-img img {
  width: 100%;
  transition: transform 0.5s ease;
}

.news-item:hover .news-img img {
  transform: scale(1.06);
}

.news-content {
  padding: 25px 20px;
}

.news-date {
  display: inline-block;
  font-size: 13px;
  color: #106eea;
  margin-bottom: 10px;
}

.news-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
}

.news-title a {
  color: #333;
  transition: all 0.3s ease;
}

.news-title a:hover {
  color: #106eea;
}

.read-more {
  display: inline-block;
  margin-top: 12px;
  color: #106eea;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #0e58bb;
  padding-left: 5px;
}

/* 改进客户证言 */
.testimonial-item {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  margin-bottom: 30px;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.testimonial-item:before {
  content: "\201C";
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 120px;
  color: rgba(16, 110, 234, 0.1);
  font-family: Georgia, serif;
  line-height: 0;
}

/* 改进滚动到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: #106eea;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateY(15px);
  z-index: 99;
  box-shadow: 0 5px 15px rgba(16, 110, 234, 0.3);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #0e58bb;
  transform: translateY(-5px);
}

/* 确保所有CSS规则正确闭合 */
.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.copyright {
  margin-bottom: 10px;
}

.beian a {
  color: #666;
  text-decoration: none;
}

/* 图片悬停效果 */
.portfolio-item {
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}
