/* 基础样式 */
:root {
  --primary-color: #FF6B6B; /* 主色调 - 二次元常用粉色 */
  --secondary-color: #4ECDC4; /* 辅助色 */
  --dark-color: #292F36; /* 深色 */
  --light-color: #F7FFF7; /* 浅色 */
  --accent-color: #FFE66D; /* 强调色 */
}

body {
  font-family: 'Noto Sans SC', 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  color: var(--dark-color);
  background-color: #fff;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  margin-top: 0;
}

/* 首屏样式 */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.background-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 10;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease;
}

.scroll-down-btn {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 36px;
  animation: bounce 2s infinite;
}

/* 公司简介样式 */
.about-section {
  padding: 80px 0;
  background-color: var(--light-color);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* 主营业务样式 */
.services-section {
  padding: 80px 0;
  background-color: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .roadmap-container::before {
        left: 60px;
    }
    
    .roadmap-item {
        flex-direction: column;
    }
    
    .roadmap-year {
        width: 100%;
        text-align: left;
        margin-bottom: 10px;
        padding-left: 60px;
    }
    
    .roadmap-content {
        padding-left: 60px;
    }
    
    .roadmap-dot {
        left: 52px;
    }
    
    .roadmap-card::before {
        left: -15px;
        top: 20px;
        border-width: 10px 15px 10px 0;
        border-color: transparent white transparent transparent;
    }
}

/* 成功案例版块 */
.success-cases {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.success-cases .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.success-cases .section-title p {
    color: #666;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.cases-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cases-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.case-slide {
    min-width: 100%;
    display: flex;
    background: white;
}

.case-image {
    flex: 1;
    min-height: 400px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.case-slide:hover .case-image img {
    transform: scale(1.05);
}

.case-content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-content h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.case-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.case-tags span {
    background: #f0f0f0;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

.case-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.case-stats {
    display: flex;
    gap: 2rem;
    margin-top: auto;
}

.case-stats li {
    text-align: center;
}

.case-stats strong {
    display: block;
    font-size: 2rem;
    color: #e74c3c;
    line-height: 1;
}

.case-stats span {
    font-size: 0.9rem;
    color: #777;
}

.carousel-controls {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.control-prev, .control-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.control-prev:hover, .control-next:hover {
    background: #e74c3c;
    color: white;
}

.control-prev svg, .control-next svg {
    width: 20px;
    height: 20px;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dots .dot.active {
    background: #e74c3c;
    transform: scale(1.2);
}

/* 轮播容器 */
.cases-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 左右箭头样式 */
.control-prev, .control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0; /* 默认隐藏 */
    visibility: hidden; /* 默认隐藏 */
}

.control-prev {
    left: 20px;
}

.control-next {
    right: 20px;
}

.control-prev:hover, .control-next:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.control-prev svg, .control-next svg {
    width: 24px;
    height: 24px;
}

/* 圆点指示器容器 */
.carousel-dots-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
    opacity: 0; /* 默认隐藏 */
    visibility: hidden; /* 默认隐藏 */
    transition: all 0.3s ease;
}

/* 鼠标悬停时显示控件 */
.cases-carousel:hover .control-prev,
.cases-carousel:hover .control-next,
.cases-carousel:hover .carousel-dots-container {
    opacity: 1;
    visibility: visible;
}

/* 悬停效果保持原有样式 */
.control-prev:hover, .control-next:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* 圆点指示器样式 */
.carousel-dots {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 20px;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.carousel-dots .dot.active {
    background: #e74c3c;
    transform: scale(1.2);
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .control-prev, .control-next {
        width: 40px;
        height: 40px;
    }
    
    .control-prev {
        left: 10px;
    }
    
    .control-next {
        right: 10px;
    }
    
    .carousel-dots {
        padding: 6px 10px;
    }
    
    .carousel-dots .dot {
        width: 10px;
        height: 10px;
    }
}



/* 页脚样式 */
.modern-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 0;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    padding: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.logo-divider {
    margin: 0 0.5rem;
    color: #bdc3c7;
}

.logo-sub {
    font-size: 1rem;
    color: #bdc3c7;
}

.company-name {
    margin-bottom: 0.5rem;
    color: #bdc3c7;
}

.copyright {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #e74c3c;
}

.contact-list {
    list-style: none;
}
/* 联系我们部分样式 */
.footer-contact {
    padding: 1rem;
}

.footer-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 0; /* 移除默认padding */
    text-align: left; /* 确保左对齐 */
}

.contact-list {
    list-style: none;
    padding-left: 0; /* 移除列表默认缩进 */
    margin-top: 0.5rem; /* 调整与标题的间距 */
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #bdc3c7;
    font-size: 0.9rem;
    padding-left: 0; /* 确保没有缩进 */
    text-indent: 0; /* 移除文本缩进 */
}

.contact-icon {
    width: 18px;
    height: 18px;
    margin-right: 0.8rem;
    color: #e74c3c;
    flex-shrink: 0; /* 防止图标被压缩 */
}

/* 确保所有内容左对齐 */
.footer-contact * {
    text-align: left;
}
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    color: #e74c3c;
}

.link-list {
    list-style: none;
}

.link-list li {
    margin-bottom: 0.8rem;
}

.link-list a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.link-list a:hover {
    color: #e74c3c;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #34495e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ecf0f1;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: #e74c3c;
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    background-color: #1a252f;
    padding: 1.5rem 0;
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
}

@media screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-logo, .contact-item {
        justify-content: center;
    }
    
    .footer-heading:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .timeline::before {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item::after {
    left: 21px;
  }
  
  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    left: 21px;
  }
}

/* 动画效果 */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* 社交媒体图标样式 */
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #34495e;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden; /* 确保图片不会超出圆形边界 */
}

.social-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s;
}

.social-icon:hover {
    background-color: #e74c3c;
    transform: translateY(-3px);
}

.social-icon:hover .social-icon-img {
    transform: scale(1.1);
    filter: brightness(0) invert(1); /* 悬停时图标变白色 */
}

/* 微信公众号二维码样式 */
.wechat-icon {
    position: relative;
}

.wechat-qrcode {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    width: 150px;
    text-align: center;
    z-index: 100;
}

.wechat-qrcode img {
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
}

.wechat-qrcode p {
    color: #333;
    font-size: 0.8rem;
    margin: 0;
}

.wechat-icon:hover .wechat-qrcode {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

.social-icon-img {
    width: 24px;
    height: 24px;
    /* 为高清屏准备 */
    background-size: contain;
    background-repeat: no-repeat;
}
/* 响应式调整 */
@media screen and (max-width: 768px) {
    .social-icons {
        justify-content: center;
    }
    
    .wechat-qrcode {
        left: auto;
        right: 0;
        transform: none;
    }
    
    .wechat-icon:hover .wechat-qrcode {
        bottom: calc(100% + 10px);
        left: auto;
        right: 0;
    }
}