* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}


/* ===== Banner ===== */
.header {
  width: 100%;
  overflow: hidden;
}
.header img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}
.container {
  max-width: 1200px;
  width: 100%;
  margin: 1.5rem auto;
  padding: 0 15px;
}

.card-container {
  width: 100%;
}

.card {
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: 40px;
  gap: 30px;
}

.card:nth-child(even) {
  flex-direction: row-reverse;
}

.card:hover {
  transform: translateY(-3px);
}

/* ===== 图片区域：固定尺寸，contain显示全图 ===== */
.card .card-img {
  width: 520px;
  height: 340px;
  flex-shrink: 0;
  border-bottom-left-radius: 20px;
  border-top-right-radius: 20px;
  overflow: hidden;
  position: relative;
  background-color: #e8e8e8;
}

.card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

/* ===== 内容区域 ===== */
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0;
  min-width: 0;
}

.card h3 {
  font-size: 22px;
  line-height: 1.5;
  color: #333333;
  font-weight: bold;
  padding-bottom: 12px;
  border-bottom: 1px solid #cbcbcb;
  transition: color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card:hover h3 {
  color: #004a99;
}

.card p {
  font-size: 14px;
  line-height: 1.8;
  color: #878787;
  margin-top: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn {
  width: 140px;
  height: 38px;
  color: #5a5a5a;
  border-radius: 19px;
  text-decoration: none;
  font-size: 14px;
  line-height: 38px;
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border: 1px solid #787878;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.btn img {
  width: 16px;
  height: 16px;
  transition: opacity 0.3s ease;
  margin-left: 10px;
}

.default-right {
  display: block;
}

.hover-right {
  display: none;
}

.card:hover .btn {
  background: linear-gradient(
    to right,
    rgba(0, 74, 153, 1),
    rgba(0, 74, 153, 0.35)
  );
  border: none;
  color: #ffffff;
}

.card:hover .btn .default-right {
  display: none;
}

.card:hover .btn .hover-right {
  display: block;
}

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  .card {
    flex-direction: column !important;
    gap: 15px;
  }
  .card .card-img {
    width: 100%;
    height: 300px;
    border-bottom-left-radius: 15px;
    border-top-right-radius: 15px;
  }
  .card-content {
    width: 100%;
  }
  .card h3 {
    font-size: 18px;
  }
  .card p {
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  
/* ===== Banner ===== */
.header {
  width: 100%;
  overflow: hidden;
}
.header img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}
.container {
    padding: 0 10px;
    margin: 1rem auto;
  }
  .card {
    margin-bottom: 25px;
  }
  .card .card-img {
    height: 220px;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
  }
  .card h3 {
    font-size: 16px;
  }
  .btn {
    width: 120px;
    height: 34px;
    font-size: 13px;
    line-height: 34px;
  }
  .btn img {
    width: 14px;
    height: 14px;
  }
}
