/* 基础样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
}

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

h1, h2, h3 {
  margin-bottom: 20px;
}

p {
  margin-bottom: 15px;
}

a {
  text-decoration: none;
  color: #333;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  background-color: #007BFF;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #0056b3;
}

.active {
  color: #007BFF;
  font-weight: bold;
}

/* 导航栏 */
nav {
  background-color: #fff;
  padding: 20px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.nav-links {
  display: flex;
}

.nav-links li {
  margin-left: 30px;
}

.menu-toggle {
  display: none;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* 响应式导航 */
@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }
}

/* 英雄区域 */
.hero {
  background-image: url('https://picsum.photos/1920/1080?random=20');
  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

/* 页面标题 */
.page-header {
  background-color: #f8f9fa;
  padding: 50px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
}

.page-header p {
  font-size: 18px;
  color: #666;
}

/* 关于我们 */
.about {
  padding: 100px 0;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.about-text, .about-image {
  flex: 1;
  padding: 0 15px;
}

.about-image img {
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 服务 */
.services {
  padding: 100px 0;
  background-color: #f8f9fa;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.service-card {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s;
}

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

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card h3 {
  padding: 20px;
}

.service-card p {
  padding: 0 20px 20px;
}

/* 案例 */
.cases {
  padding: 100px 0;
  text-align: center;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.case-card {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.case-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s;
}

.case-card:hover img {
  transform: scale(1.1);
}

.case-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0,0,0,0.7);
  color: #fff;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.case-card:hover .case-info {
  transform: translateY(0);
}

.case-btn {
  background-color: #007BFF;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  display: inline-block;
  margin-top: 10px;
}

.case-btn:hover {
  background-color: #0056b3;
}

/* 服务详情 */
.service-details {
  padding: 100px 0;
}

.service-item {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 60px;
  align-items: center;
}

.service-item img {
  flex: 1;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-text {
  flex: 1;
  padding: 0 30px;
}

.service-text h2 {
  font-size: 30px;
}

.service-text ul {
  list-style-type: disc;
  padding-left: 20px;
}

/* 案例研究 */
.case-studies {
  padding: 100px 0;
}

.case-filter {
  margin-bottom: 50px;
  text-align: center;
}

.filter-btn {
  background-color: #f8f9fa;
  border: none;
  padding: 10px 20px;
  margin: 0 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.filter-btn:hover, .filter-btn.active {
  background-color: #007BFF;
  color: #fff;
}

/* 客户评价 */
.testimonials {
  padding: 100px 0;
  background-color: #f8f9fa;
  text-align: center;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-item {
  background-color: #fff;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.testimonial-content {
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 20px;
}

.testimonial-author h4 {
  margin-bottom: 5px;
}

.testimonial-author p {
  color: #666;
  margin-bottom: 0;
}

/* 联系我们 */
.contact {
  padding: 100px 0;
  text-align: center;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}

.contact-info {
  margin-right: 50px;
  text-align: left;
}

/* 行动召唤 */
.cta {
  padding: 100px 0;
  background-color: #007BFF;
  color: #fff;
  text-align: center;
}

.cta h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.cta p {
  font-size: 18px;
  margin-bottom: 30px;
}

.cta .btn {
  background-color: #fff;
  color: #007BFF;
  font-weight: bold;
}

.cta .btn:hover {
  background-color: #f8f9fa;
}

/* 页脚 */
footer {
  background-color: #333;
  color: #fff;
  padding: 50px 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 30px;
}

.footer-logo h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.footer-links ul {
  display: flex;
}

.footer-links li {
  margin-right: 20px;
}

.footer-links a {
  color: #fff;
}

.footer-social a {
  color: #fff;
  font-size: 24px;
  margin-right: 15px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
  .services-grid, .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-text, .about-image, .service-item img, .service-text {
    flex: 100%;
    margin-bottom: 30px;
  }

  .contact-info {
    margin-right: 0;
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 768px) {
  .services-grid, .cases-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links ul {
    justify-content: center;
    margin: 20px 0;
  }
}
  