:root {
  --color-121212: #121212;
  --color-000000: #000000;
  --color-ffffff: #FFFFFF;
  --color-666666: #666666;
  --color-999999: #999999;
  --color-f5f5f5: #F5F5F5;
  --color-009dff: #009DFF;
  --color-000000-7: rgba(0, 0, 0, 0.7);
  --color-121212-3: rgba(12, 12, 12, 0.3);

  --font-14: clamp(12px, 0.8vw, 14px);
  --font-16: clamp(14px, 0.9vw, 16px);
  --font-18: clamp(15px, 1vw, 18px);
  --font-20: clamp(16px, 1.1vw, 20px);
  --font-22: clamp(16px, 1.2vw, 22px);
  --font-24: clamp(17px, 1.3vw, 24px);
  --font-32: clamp(22px, 1.7vw, 32px);
  --font-40: clamp(24px, 2.2vw, 40px);
  --font-48: clamp(20px, 3.5vw, 48px);

}


.section-con .backgroundPicture {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.section-con .backgroundPicture img {
  width: 100% !important;
}

.section-1 .section-main {
  position: absolute;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.section-1 .section-main .section-textMain {
  max-width: 1440px;
  width: 100%;
}

.section-1 .section-main .main-title {
  font-size: var(--font-48);
  color: var(--color-121212);
  font-weight: bold;
  padding-top: clamp(40px, 8.5vw, 160px);
  letter-spacing: -0.6px;
}

.section-1 .section-main .sub-text {
  font-size: var(--font-20);
  color: var(--color-666666);
  padding-top: clamp(10px, 1.4vw, 26px);
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.6vw, 10px);
}

.section-1 .section-main .sub-text span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(6px, 0.6vw, 10px);
}


.section-2 .section-main {
  width: 100%;
  display: flex;
  justify-content: center;
  background-image: url('https://img.tmotor.com/products/custmized-v1/images/customized-bga.jpg');
  background-repeat: repeat;
  background-position: left top;
  padding: clamp(30px, 6.8vw, 128px) 0 clamp(50px, 8.5vw, 178px) 0;
}

.section-2 .section-main .section-box {
  max-width: 1440px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(200px, 0.25fr) 1fr;
  gap: clamp(12px, 2vw, 36px);

}

.section-2 .section-left {
  width: 100%;
}

.section-2 .section-left-pic {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 22px);
}

.section-2 .section-left-pic picture {
  position: relative;
  display: block;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.1s ease;
}

.section-2 .section-left-pic .pic-text {
  position: absolute;
  bottom: 10px;
  left: 5%;
  color: white;
  font-size: var(--font-20);
  font-weight: bold;
  z-index: 2;
}

.section-2 .section-left-pic img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.section-2 .section-left-pic picture::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-000000-7);
  transition: background-color 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.section-2 .section-left-pic picture.active {
  outline: 4px solid var(--color-121212-3);
}

.section-2 .section-left-pic picture.active::after {
  background-color: rgba(0, 0, 0, 0);
}

.section-2 .section-right {
  background: #fff;
  padding: clamp(14px, 2.7vw, 48px) clamp(40px, 7vw, 135px);
  border-radius: 12px;
  box-shadow: 0 0px 8px 1px rgba(0, 0, 0, 0.25);
}

.section-2 .form-name {
  line-height: 1.3;
  margin-bottom: 5px;
}

.form-title {
  font-size: var(--font-24);
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--color-121212);
  letter-spacing: -0.6px;
}

.form-subtitle {
  font-size: var(--font-20);
  color: var(--color-121212);
  margin-bottom: 30px;
  max-width: 80%;
  line-height: 1.5;
  display: none;
}

.form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  column-gap: 30px;
  row-gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: #f5f5f5;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background-color: #fff;
  border-color: #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.submit-container {
  grid-column: span 2;
  margin-top: 10px;
}

.form-content {
  display: none;
  animation: fadeIn 0.5s;
}

.form-content.active {
  display: block;
}

.section-2 .success-form {
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(20px, 3.1vw, 60px);
  text-align: center;
}

.section-2 .success-form.active {
  display: flex;
}

.section-2 .success-icon {
  max-width: 96px;
  max-height: 96px;
  margin-bottom: clamp(8px, 1.1vw, 20px);
}

#goback {
  margin-top: clamp(20px, 2.5vw, 40px);
}

.section-2 .success-title {
  font-size: var(--font-40);
  color: var(--color-121212);
  font-weight: bold;
  margin-bottom: clamp(8px, 1.1vw, 20px);
}

.section-2 .success-text {
  font-size: var(--font-22);
  color: var(--color-121212);
  line-height: 1.6;
}

.section-2 .success-icon img {
  width: 100%;
}

.section-2 .success-blue {
  color: var(--color-009dff);
}

.section-3 .section-main {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding: clamp(50px, 8.5vw, 160px) 0;
}

.tofrom-btn {

  margin-top: clamp(40px, 4.4vw, 80px);
}

.tofrom-btn-link {
  font-size: var(--font-18);
  background-color: var(--color-121212);
  color: var(--color-ffffff);
  padding: clamp(10px, 0.9vw, 17px) clamp(20px, 3vw, 55px);
  border-radius: 5px;
  cursor: pointer;
}

.section-3 .section-main .section-box {
  max-width: 1440px;
  width: 100%;
}

/* .section-3 .custom-process {
  padding: clamp(50px, 8.5vw, 160px) 0;
} */

.section-3 .process-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-3 .process-header .process-header-title {
  font-size: var(--font-32);
  font-weight: bold;
  color: var(--color-121212);
  margin-bottom: clamp(7px, 0.8vw, 15px);
  letter-spacing: -0.6px;
}

.section-3 .process-header .process-header-text {
  font-size: var(--font-22);
  color: var(--color-666666);
  margin-bottom: clamp(10px, 1.3vw, 24px);
}

.section-3 .process-header .header-line {
  width: 88px;
  height: 4px;
  background-color: var(--color-121212);
  margin: 0 auto;
}

.section-3 .process-steps {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  position: relative;
  width: 100%;
}

.section-3 .step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  padding: 0 clamp(10px, 1.6vw, 25px);
}

.section-3 .step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 10%;
  width: 100%;
  border-top: 4px dotted var(--color-121212);
  z-index: 1;
}

.section-3 .icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-bottom: 25px;
}

.section-3 .icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section-3 .content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.section-3 .content .content-title {
  font-size: var(--font-22);
  font-weight: bold;
  color: var(--color-121212);
  text-align: left;
  margin-bottom: clamp(7px, 0.8vw, 15px);
  line-height: 1.2;
  height: clamp(60px, 4.5vw, 80px);
}

.section-3 .content .content-cntitle {
  font-size: var(--font-22);
  font-weight: bold;
  color: var(--color-121212);
  text-align: left;
  margin-bottom: clamp(7px, 0.8vw, 15px);
  line-height: 1.2;
}

.section-3 .content .content-text {
  font-size: var(--font-14);
  color: var(--color-999999);
  line-height: 1.6;
  text-align: left;
  margin: 0;
}

.section-4 {
  background-color: var(--color-f5f5f5);
}

.section-4 .section-main {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding: clamp(50px, 8.5vw, 160px) 0;
}

.section-4 .section-main .section-box {
  max-width: 1440px;
  width: 100%;
}


.section-4 .process-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-4 .process-header .process-header-title {
  font-size: var(--font-32);
  font-weight: bold;
  color: var(--color-121212);
  margin-bottom: clamp(7px, 0.8vw, 15px);
  letter-spacing: -0.6px;
}

.section-4 .process-header .process-header-text {
  font-size: var(--font-22);
  color: var(--color-666666);
  margin-bottom: clamp(10px, 1.3vw, 24px);
  display: none;
}

.section-4 .process-header .header-line {
  width: 88px;
  height: 4px;
  background-color: var(--color-121212);
  margin: 0 auto;
}

.section-4 .tmotor-highlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(6px, 0.8vw, 16px);
}

/* 容器设置为相对定位，作为文字定位的参考基准 */
.section-4 .highlight-item {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* 保证圆角或缩放不溢出 */
  border-radius: 8px;
  /* 可选：根据您的设计添加圆角 */
}

.section-4 .highlight-item picture {
  display: block;
  width: 100%;
}

.section-4 .highlight-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
  /* 增加一个平滑的过渡效果 */
}

/* 鼠标经过时图片微放大（可选） */
.section-4 .highlight-item:hover img {
  transform: scale(1.05);
}

/* 文字蒙层：定位在图片上方 */
.section-4 .highlight-item .pic-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  box-sizing: border-box;
  color: var(--color-ffffff);
  pointer-events: none;
  width: 94%;
}

/* 标题样式 */
.section-4 .highlight-item .pic-title {
  font-size: var(--font-22);
  font-weight: bold;
  margin-bottom: clamp(5px, 0.6vw, 10px);
  color: var(--color-ffffff);
}

/* 内容描述样式 */
.section-4 .highlight-item .pic-content {
  font-size: var(--font-16);
  line-height: 1.5;
  color: var(--color-ffffff);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#dosubmit,
#goback {
  background-color: var(--color-121212);
  color: #fff;
  border: none;
  padding: 12px 72px;
  border-radius: 6px;
  font-size: var(--font-16);
  cursor: pointer;
  transition: opacity 0.3s;
}

#dosubmit:hover,
#goback::hover {
  opacity: 0.85;
}


@media (max-width: 1440px) {

  .section-1 .section-main .section-textMain,
  .section-2 .section-left-pic,
  .section-3 .custom-process,
  .section-4 .custom-process {
    padding-left: 5%;
    padding-right: 5%;
  }


  .section-1 .backgroundPicture img {
    width: 150% !important;
    margin-left: -25%;
  }

  .section-2 .section-left-pic picture.active {
    outline: 3px solid var(--color-121212-3);
  }

  .section-4 .highlight-item .pic-text {
    padding: unset;
    bottom: 3%;
    left: 3%;
    top: unset;
  }
}

@media (max-width: 768px) {
  :root {
    --font-14: clamp(12px, 0.8vw, 14px);
    --font-16: clamp(14px, 0.9vw, 16px);
    --font-18: clamp(15px, 1vw, 18px);
    --font-20: clamp(18px, 2.8vw, 20px);
    --font-22: clamp(16px, 1.2vw, 22px);
    --font-24: clamp(24px, 3.2vw, 24px);
    --font-32: clamp(22px, 1.7vw, 32px);
    --font-40: clamp(24px, 2.2vw, 40px);
    --font-48: clamp(32px, 6.5vw, 48px);

  }

  .section-1 .backgroundPicture img {
    width: 100% !important;
    margin-left: unset;
    margin-top: -15%;
  }

  .section-2 .section-right {
    box-shadow: unset !important;
    padding: clamp(14px, 2.7vw, 20px) clamp(20px, 5.5vw, 40px);
  }

  .section-2 .section-main .section-box {
    display: flex;
    flex-direction: column;
  }

  .section-2 .section-left-pic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .section-2 .section-left-pic .pic-text{
    font-size: var(--font-14);
  }

  .form-container {
    display: flex;
    flex-direction: column;
  }


  .section-3 .step-item:not(:last-child)::after {
    display: none;
  }

  .section-3 .process-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 50px;
    column-gap: 10px;
  }

  .section-3 .content .content-title,
  .section-3 .content .content-text {
    text-align: left;
  }

  .section-3 .step-item {
    padding: 0;
    height: 100%;
  }

  .section-3 .content {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: flex-start
  }

  .section-1 .section-main .main-title {
    padding-top: clamp(80px, 22vw, 160px);
    ;
  }

  .section-1 .section-main .sub-text {
    line-height: 1.5;
    padding-top: clamp(14px, 3.8vw, 26px);
  }

  .section-4 .tmotor-highlight {
    grid-template-columns: 1fr 1fr;
  }
}


@media (max-width: 540px) {

  #dosubmit,
  #goback {
    width: 100%;
  }

  .section-4 .tmotor-highlight {
    grid-template-columns: 1fr;
  }
}