/* 基础样式设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}

body {
  color: #333;
  line-height: 1.6;
}

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

section {
  padding: 80px 0;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #3366ff;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #254eda;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #222;
}

h2:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #3366ff;
  margin: 15px auto;
  border-radius: 2px;
}

/* 导航栏样式 */
header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #3366ff;
}

.nav-links {
  display: flex;
  list-style: none;
}

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

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #3366ff;
}

/* 英雄区域样式 */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1551650975-87deedd944c3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80")
      no-repeat center center/cover;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  padding-top: 80px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-top: 80px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero-content .qrcode {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero-content .qrcode p {
  height: 30px;
  line-height: 30px;
  text-align: center;
  margin-bottom: 10px;
  color: #dceb0c;
}
.hero-content .qrcode img {
  width: 300px;
}

/* 服务区域样式 */
.services {
  background: #f9f9f9;
}

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

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

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

.service-icon {
  font-size: 3rem;
  color: #3366ff;
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* 案例展示样式 */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

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

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

.case-info {
  padding: 20px;
  background: white;
}

/* 关于我们样式 */
.about {
  background: #f9f9f9;
  display: flex;
  align-items: center;
}

.about-content {
  flex: 1;
  padding-right: 50px;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 联系区域样式 */
.contact {
  background: linear-gradient(to right, #3366ff, #254eda);
  color: white;
  text-align: center;
}

.contact h2:after {
  background: white;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

.form-group textarea {
  height: 150px;
}

.contact .btn {
  background: white;
  color: #3366ff;
  font-weight: bold;
}

.contact .btn:hover {
  background: #f1f1f1;
}

/* 页脚样式 */
footer {
  background: #222;
  color: white;
  padding: 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  list-style: none;
  margin-bottom: 30px;
}

.footer-links li {
  margin: 0 15px;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
}

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

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

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .about {
    flex-direction: column;
  }

  .about-content {
    padding-right: 0;
    margin-bottom: 30px;
  }
}
