body {
  background-color: rgb(244, 245, 247);
  margin: 0;
  font-family: Arial, sans-serif;
}

/* 内容限制宽度并居中 */
.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 50px;
}

.content-left,
.content-right {
  width: 50%;
}

h1 {
  font-size: 3rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.typing-effect {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  max-width: 15ch;
  border-right: 4px solid;
  animation: typing 1s steps(4, end) forwards, blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { max-width: 0; }
  to { max-width: 15ch; }
}

@keyframes blink-caret {
  50% { border-color: transparent; }
}

.underline {
  position: relative;
  display: inline-block;
  color: #000;
}

.underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 18px;
  background-color: #DC143C;
}

.subtitle {
  font-size: 18px;
  color: #555;
  margin: 0 0 60px 0;
}

.buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.buttons a {
  display: inline-block;
}

.buttons button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  color: white;
  transition: background-color 0.3s ease;
}

.btn-grey { background-color: #757575; }
.btn-red { background-color: #f44336; }
.btn-orange { background-color: #ff5722; }

.buttons button:hover {
  opacity: 0.9;
}

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

.content-right img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.image-slider {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider-image.active {
  opacity: 1;
}

.features {
  margin-top: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.features h2 {
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 10px;
  text-align: center;
  font-weight: 500;
}

.features .subtitle {
  font-size: 1rem;
  color: #777;
  margin: 10px 0 40px 0;
  text-align: center;
}

.feature-item {
  text-align: center;
  flex: 1;
  margin: 10px;
}

.feature-item p {
  font-size: 3rem;
  font-weight: bold;
  color: #333;
  margin: 10px 0;
}

.feature-item span {
  font-size: 1rem;
  color: #777;
}

.features-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

/* 功能介绍部分 */
.function h2 {
  width: 100%;
  font-size: 1.8rem;
  line-height: 1.3;
  text-align: center;
  font-weight: 500;
}

.function {
  max-width: 1200px;
  margin: 60px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.function-warpper {
  width: calc((100% - 40px) / 3);
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 0 .25rem rgba(73, 80, 87, .05) !important;
  box-sizing: border-box;
}

.function-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.function-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 85, 255, .12);
  border-radius: .5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.function-icon svg {
  width: 30px;
  height: 30px;
  object-fit: contain;
  fill: rgba(0, 85, 255, .16);
  color: #05f;
}

.function-text {
  flex: 1;
}

.function-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 5px;
  color: #333;
}

.function-description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* 悬浮客服小窗 */
.contact-widget {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
  z-index: 1000;
}

.widget-header {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.status {
  font-size: 14px;
  color: #555;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}

.status-dot.online { background-color: #4caf50; }
.status-dot.offline { background-color: #f44336; }

.widget-body {
  padding: 10px;
  text-align: center;
}

.contact-btn {
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

/* —— 响应式适配 —— */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 20px;
  }

  .content-left, .content-right {
    width: 100%;
    margin-bottom: 20px;
  }

  .buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .features-content {
    flex-direction: column;
    align-items: center;
  }

  .feature-item {
    width: 100%;
  }

  .function-warpper {
    width: 100%;
  }

  h1 {
    font-size: 2rem;
  }

  .function-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .function-icon {
    margin-bottom: 10px;
  }
}