/* 主体 */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 60px); /* 减去header的高度 */
}

/* 表单 */
.container .form {
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-box {
  width: 476px;
  height: 600px;
  background: #ffffff;
  box-shadow: 7px 7px 30px 0px rgba(179, 188, 226, 0.4);
  border-radius: 14px;
  border: 2px solid #ffffff;
  padding: 21px;
}

.form-title {
  font-family: PingFang;
  font-weight: bold;
  font-size: 28px;
  color: #333333;
  margin: 0 0 8px 0;
  text-align: left;
  display: flex;
  align-items: baseline;
}

.form-subtitle {
  font-family: PingFang;
  font-weight: 400;
  font-size: 16px;
  color: #999999;
  text-align: left;
}

.form-tabs {
  display: flex;
  margin-bottom: 30px;
}

.form-tab {
  padding: 12px 0;
  margin-right: 40px;
  font-family: PingFang;
  font-weight: 400;
  font-size: 16px;
  color: #666666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.form-tab.active {
  position: relative;
  /* border-bottom-color: #165dff; */
}
.form-tab.active::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #165dff, #1fa3ff);
  position: absolute;
  bottom: 0;
  left: 0;
}
.form-content {
  display: none;
  height: 420px;
  position: relative;
}
.form-group {
  margin-bottom: 20px;
}
.form-group.tips {
  font-family: PingFang;
  font-weight: 400;
  font-size: 12px;
  color: #555555;
}
.form-group.tips a {
  color: #165dff;
  text-decoration: none;
}
.form-input {
  width: 100%;
  height: 50px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 0 16px;
  font-family: PingFang;
  font-size: 14px;
  color: #333333;
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #165dff;
  border-style: solid;
}

.form-input::placeholder {
  color: #cccccc;
  font-family: PingFang;
  font-size: 14px;
}

.form-submit {
  width: 100%;
  height: 50px;
  background: linear-gradient(90deg, #165dff, #1fa3ff);
  border: none;
  border-radius: 4px;
  color: #ffffff;
  font-family: PingFang;
  font-weight: 400;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: absolute;
  bottom: 0;
}

.form-submit:hover {
  background: linear-gradient(90deg, #0d4fd8, #1a8ae6);
  transform: translateY(-1px);
  box-shadow: 0px 4px 12px 0px rgba(22, 93, 255, 0.3);
}

.form-footer {
  margin-top: 20px;
  font-family: PingFang;
  font-weight: 400;
  font-size: 14px;
  color: #999999;
}

.form-footer a {
  color: #165eff;
  text-decoration: none;
}

.form-footer a:hover {
  text-decoration: underline;
}

/* 新增内容样式 */
.content-section {
  text-align: center;
  height: 650px;
  flex: 1;
}

.title-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0;
}

.main-title {
  font-size: 48px;
  font-weight: bold;
  color: #333;
  text-align: left;
  margin: 0px;
}

.main-title-line1,
.main-title-line2 {
  display: inline;
  white-space: nowrap;
}

.main-title-line1::after {
  content: "，";
  margin: 0 2px;
}
.highlight {
  color: #165dff;
}

.sub-title {
  font-family: PingFang;
  font-weight: 400;
  font-size: 24px;
  color: #666666;
  text-align: left;
  margin-top: 10px;
  font-weight: bold;
  margin: 10px 0;
}

.slash-blue {
  color: #165dff;
  margin-right: 5px; /* 增加斜杠前的间距 */
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  padding: 0;
  margin-top: 120px;
}

.card:nth-child(3n + 2) {
  transform: translateY(-20px);
}

.card:nth-child(3n + 1),
.card:nth-child(3n + 3) {
  transform: translateY(10px);
}

.card {
  background-color: #fff;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(179, 188, 226, 0.4);
  max-width: 310px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  padding: 10px;
  padding-top: 180px;
  padding-bottom: 30px;
  flex: 1;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(179, 188, 226, 0.6);
}

.card .tag {
  position: absolute;
  top: 0;
  right: 0;
  color: #fff;
  padding: 8px 15px;
  border-bottom-left-radius: 30px; /* Increased border-radius */
  font-size: 14px;
  font-weight: bold;
  z-index: 2;
}

.card .tag.tag-purple {
  background: linear-gradient(90deg, #6e5bff, #a857ff);
}

.card .tag.tag-green {
  background: linear-gradient(90deg, #1cc3ea, #12cad2);
}

.card .tag.tag-blue {
  background: linear-gradient(90deg, #1961ff, #2aa6ff);
}

.card-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
}

.card-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.card-title .text-blue {
  color: #165dff;
}

.dot-separator {
  margin-right: 5px;
}

.card-description {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  margin-top: 10px;
  position: relative;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0)
  );
  padding-right: 20px; /* Adjust padding as needed to control the fade effect */
  padding: 5px;
  border-radius: 8px;
}

.btn-experience {
  width: 120px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  background: #fff;
  color: #165dff;
  border: 1px solid #165dff;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

/* 超小屏幕 (480px - 767px) */
@media (max-width: 767px) {
  .container {
    flex-direction: column;
    padding: 10px;
    gap: 15px;
    height: auto;
    min-height: calc(100vh - 60px);
  }
  .container .form {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }
  .form-box {
    width: 100%;
    max-width: 330px;
    height: auto;
    min-height: 400px;
    margin: 0 auto;
    padding: 12px;
  }
  .form-title {
    font-size: 22px;
  }
  .form-subtitle {
    font-size: 13px;
  }
  .form-tab {
    font-size: 13px;
    margin-right: 20px;
    padding: 10px 0;
  }
  .form-input {
    height: 45px;
    font-size: 13px;
  }
  .form-submit {
    height: 45px;
    font-size: 14px;
  }
  .form-group {
    margin-bottom: 15px;
  }

  /* 原max-width: 768px的特有样式 */
  .content-section {
    height: auto;
    padding: 20px;
    width: 100%;
  }
  .title-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .main-title {
    font-size: 32px;
    text-align: center;
  }
  .main-title-line1,
  .main-title-line2 {
    display: block;
    width: 100%;
  }
  .main-title-line1::after {
    content: "";
  }
  .sub-title {
    font-size: 18px;
    text-align: center;
  }
  .cards-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    gap: 15px;
    padding: 0 20px;
    margin-top: 40px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .cards-container::-webkit-scrollbar {
    display: none;
  }

  .card {
    flex-shrink: 0;
    min-width: 280px;
    max-width: none;
    width: 50%;
  }
  .card:nth-child(3n + 2) {
    transform: translateY(0);
  }

  .card:nth-child(3n + 1),
  .card:nth-child(3n + 3) {
    transform: translateY(0);
  }

  .card-title {
    font-size: 20px;
  }
  .card-description {
    font-size: 11px;
  }
  .btn-experience {
    width: 100px;
    height: 30px;
    line-height: 30px;
    font-size: 14px;
  }
}

/* 小屏幕 (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    flex-direction: column;
    padding: 15px;
    gap: 20px;
  }
  .container .form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  .form-box {
    width: 100%;
    max-width: 380px;
    height: auto;
    min-height: 450px;
    margin: 0 auto;
    padding: 15px;
  }
  .form-title {
    font-size: 24px;
  }
  .form-subtitle {
    font-size: 14px;
  }
  .form-tab {
    font-size: 14px;
    margin-right: 30px;
  }
  .cards-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin-top: 40px;
  }
  /* 原max-width: 768px的特有样式 */
  .content-section {
    height: auto;
    padding: 20px;
  }

  /* 原max-width: 1024px的特有样式 */
  .main-title {
    font-size: 40px;
  }
  .sub-title {
    font-size: 20px;
  }
}

/* 中等屏幕 (1024px - 1323px) */
@media (min-width: 1024px) and (max-width: 1323px) {
  .container {
    flex-direction: row;
    padding: 20px;
    gap: 30px;
  }
  .container .form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .form-box {
    width: 100%;
    max-width: 450px;
    height: auto;
    min-height: 500px;
    margin: 0 auto;
  }
  .card {
  }
}

/* 中等屏幕 (1324px - 1439px) */
@media (min-width: 1324px) and (max-width: 1439px) {
  .container {
    flex-direction: row;
    padding: 20px;
    gap: 30px;
  }
  .container .form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .form-box {
    width: 100%;
    max-width: 450px;
    height: auto;
    min-height: 500px;
    margin: 0 auto;
  }
  .card {
  }
}

/* 中大屏幕 (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  .container {
    padding: 0 20px;
    gap: 20px;
    justify-content: space-between;
  }
  .container .form {
    width: 30%;
    display: flex;
    justify-content: flex-end;
  }
  .form-box {
    height: 600px;
  }
  .cards-container {
    flex-wrap: wrap;
    gap: 20px;
  }
  .card {
  }
}

/* 大屏幕 (1920px及以上) */
@media (min-width: 1920px) {
  .container .form {
    width: 35%;
    min-width: 500px;
  }
  .form-box {
    width: 520px;
    height: 650px;
  }
  .form-title {
    font-size: 28px;
  }
  .form-subtitle {
    font-size: 16px;
  }
}
