/* 主样式文件 - 思语情感官网 */

/* 变量定义 */
:root {
  --primary-color: #ad1c79;
  --secondary-color: #ff4d59;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

/* 头部导航 */
.header {
  background: #fff;
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-list {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color);
  transition: var(--transition);
  position: relative;
}

.nav-list a:hover {
  color: var(--primary-color);
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-list a:hover::after {
  width: 100%;
}

/* Banner轮播 - CSS3动画 */
.banner {
  margin-top: 80px;
  position: relative;
  height: 600px;
  overflow: hidden;
}

.banner-slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.banner-slide {
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.banner-content {
  animation: slideInLeft 1s ease-out;
}

.banner-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.banner-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.banner-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  animation: bounceIn 1s ease-out 0.5s both;
}

.banner-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(173, 28, 121, 0.3);
}

/* 服务介绍 */
.services {
  padding: 5rem 0;
  background: var(--light-gray);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  animation: slideInUp 0.6s ease-out;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.2rem;
  color: #666;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  animation: slideInUp 0.6s ease-out;
}

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

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

/* 成功案例 */
.cases {
  padding: 5rem 0;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.case-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.case-image {
  height: 250px;
  background-size: cover;
  background-position: center;
}

.case-content {
  padding: 1.5rem;
}

.case-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

/* 页脚 */
.footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 0 1rem;
}

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

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-section p, .footer-section a {
  color: #ccc;
  line-height: 1.8;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  color: #888;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }
  
  .banner {
    height: 400px;
  }
  
  .banner-content h1 {
    font-size: 2rem;
  }
  
  .service-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .case-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .services {
    padding: 60px 0;
  }
  
  .cases {
    padding: 60px 0;
  }
  
  .container {
    padding: 0 10px;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .section-title p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .banner {
    height: 200px;
  }
  
  .banner-content h1 {
    font-size: 1.5rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .service-card {
    padding: 30px 20px;
  }
  
  .case-content {
    padding: 20px;
  }
}