.trial-page {
  padding: 80px 0 108px;
  background: rgba(255, 255, 255, .97);
}

.trial-hero {
  position: relative;
  display: grid;
  width: 1140px;
  min-height: 1035px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) 509px;
  /*gap: 34px;*/
  gap: 104px;
  padding: 52px 30px 0 34px;
  background: transparent;
  border-radius: 12px;
}

.trial-hero::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  width: 1140px;
  height: 665px;
  content: "";
  background: #e7e9ea url("../assets/trial/hero-visual.png") center top / cover no-repeat;
  border-radius: 12px;
}

.trial-visual-copy {
  max-width: 500px;
  /*padding-top: 3px;*/
}

.trial-visual-copy,
.trial-form {
  position: relative;
}

.trial-visual-copy h1 {
  width: 462px;
  margin: 0 0 24px;
  color: #191C1E;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}

.trial-intro {
  width: 462px;
  margin: 0;
  color: #3E4A3C;
  font-size: 18px;
  line-height: 1.9;
  font-weight: 500;
}

.trial-benefits {
  display: grid;
  gap: 8px;
  margin: 29px 0 0;
  padding: 0 0 0 20px;
  color: #3E4A3C;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 500;
}

.trial-benefits li {
  padding-left: 2px;
}

.trial-trusted {
  margin-top: 50px;
  color: #58625e;
}

.trial-trusted p {
  margin: 0 0 10px;
  font-size: 18px;
  color: #3E4A3C;
}

.trial-trusted>div {
  display: flex;
  align-items: center;
  gap: 20px;
}

.trial-trusted img {
  display: block;
  width: 100px;
  height: 48px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .76;
}

.trial-form {
  position: relative;
  z-index: 2;
  width: 509px;
  /*margin-top: -22px;*/
  padding: 25px;
  background: #fff;
  border: 1px solid #e6e9e8;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(38, 49, 44, .05);
}

.trial-form h2 {
  margin: 0 0 10px;
  color: #191C1E;
  font-size: 32px;
  line-height: 1.35;
  font-weight: 500;
}

.trial-form-lead {
  margin: 0 0 26px;
  color: #77817c;
  font-size: 16px;
  line-height: 1.6;
}

.trial-fields {
  display: grid;
  /*gap: 16px;*/
}
.form-row{
  margin-top: 20px;
}

.trial-fields label {
  display: block;
  color: #646f69;
  font-size: 16px;
  font-weight: 500;
  justify-items: center;
}

.trial-fields label>span {
  display: inline-block;
  margin-left: 2px;
  color: #df3c3c;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  vertical-align: super;
}

.trial-fields input,
.trial-fields select {
  display: block;
  width: 95%;
  height: 45px;
  /*margin-top: 7px;3a4440*/
  padding: 0 14px;
  background: #FFFFFF;
  border: 1px solid #b8c1c8;
  border-radius: 4px;
  outline: 0;
  font: inherit;
  font-size: 16px;
  outline: none;
}
.trial-fields {
  color: #555555;                 /* 已选：深灰 */
}
/* 当前值为空 → 显示占位灰 */
.trial-fields:has(option[value=""]:checked) {
  color: #555555;
}
/* 展开后的列表项单独定色，避免继承 select 的灰 */
.trial-fields option            { color: #555555; }
.trial-fields option[value=""]  { color: #555555; }
.trial-fields input::placeholder {
  color: #8d98a6;
}

.trial-fields input:focus,
.trial-fields select:focus {
  border-color: #32b84d;
  box-shadow: 0 0 0 2px rgba(50, 184, 77, .13);
}

.trial-fields select {
  color: #8d98a6;
  appearance: auto;
}

.trial-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.trial-privacy {
  margin-top: 26px;
  color: #78827d;
  font-size: 16px;
  line-height: 1.75;
}

.trial-privacy p {
  margin: 0 0 22px;
}

.trial-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  /*gap: 11px;*/
  margin: 1px 0 24px;
  color: #646f69;
  font-size: 16px;
  font-weight: 500;
}

.trial-check input {
  width: 17px;
  height: 17px;
  margin: 3px 10px 0 0;
  accent-color: #2db548;
}

.trial-check b {
  display: inline-block;
  color: #df3c3c;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  vertical-align: super;


}

.trial-submit {
  display: inline-flex;
  width: 118px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  color: #fff;
  background: #2eb849;
  border: 0;
  border-radius: 7px;
  box-shadow: 0 7px 15px rgba(46, 184, 73, .2);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
}

.trial-submit:hover {
  background: #239d3c;
}

.trial-form-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: #239d3c;
  font-size: 13px;
}

.cases-footer {
  margin-top: 0;
}

/**
弹窗
 */
.trial-success-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
}

/* 遮罩 */
.trial-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 50, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 弹窗 */
.trial-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 790px;
  max-width: calc(100% - 40px);
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 20px;
  padding: 38px 40px;
  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* 关闭按钮 */
.trial-modal-close {
  position: absolute;
  top: 20px;
  right: 28px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 30px;
  line-height: 32px;
  cursor: pointer;
}

/* 内容 */
.trial-modal-content {
  padding-right: 30px;
}

.trial-modal-content h3 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 500;
  color: #191C1E;
}

.trial-modal-content p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #3E4A3C;
}

/* 底部 */
.trial-modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 35px;
}

.trial-modal-footer button {
  min-width: 125px;
  height: 50px;
  padding: 0 25px;
  border: 0;
  border-radius: 10px;
  background: #30B043;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.trial-modal-footer button:hover {
  opacity: 0.9;
}


.field { margin-bottom: 16px; }

.field input,
.field select,
.field textarea {
  width: 95%;
  padding: 10px 12px;
  border: 1px solid #cbd6e2;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}


/* 标红核心样式 */
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #e0301e;
  background-color: #fff6f5;
}

.field.is-invalid input:focus,
.field.is-invalid select:focus,
.field.is-invalid textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(224, 48, 30, .15);
}

/* 错误信息 */
.err {
  display: none;
  margin: 6px 0 0;
  color: #e0301e;
  font-size: 12px;
  line-height: 1.4;
}
.field.is-invalid .err { display: block; }

.req { color: #e0301e; }


@media (max-width: 1080px) {
  .trial-hero {
    grid-template-columns: minmax(0, 1fr) 500px;
    gap: 20px;
    padding-left: 44px;
    padding-right: 25px;
  }

  .trial-form {
    width: 500px;
  }

  .trial-visual-copy h1 {
    font-size: 35px;
  }
}

@media (max-width: 900px) {
  .trial-page {
    padding-top: 42px;
  }

  .trial-hero {
    display: block;
    width: min(720px, calc(100% - 40px));
    min-height: 0;
    padding: 52px 34px 42px;
  }

  .trial-visual-copy {
    max-width: 100%;
  }

  .trial-visual-copy h1,
  .trial-intro {
    max-width: 100%;
  }
  .trial-intro,.trial-benefits {
    line-height: 1.6;
  }
  .trial-visual-copy h1 {
    font-size: 22px;
  }

  .trial-trusted {
    margin-top: 28px;
    margin-bottom: 10px;
  }

  .trial-form {
    width: 100%;
    margin: 52px 0 0;
  }

  .trial-form h2 {
    font-size: 22px;

  }
}

@media (max-width: 780px) {
  .trial-hero::before {
    width: 100%;
    height: 665px;
    background: #e7e9ea url("../assets/trial/hero-visual-small.png") center top / cover no-repeat;
  }
}

/* 手机端 */
@media (max-width: 768px) {


  .trial-trusted p {
    font-size: 16px;
  }
  .trial-form-lead {
    font-size: 14px;
  }
  .trial-fields label{
    font-size: 14px;
  }

  .field input, .field select, .field textarea{
    font-size: 14px;
  }
  .trial-privacy{
    font-size: 14px;
  }
  .trial-check{
    font-size: 14px;
  }
  .trial-check input{
    width: 16px;
    height: 16px;
    margin: 1px 10px 0 0;
  }
  .trial-submit{
    font-size: 14px;
    width: 100px;
    height: 45px;
  }
  .trial-modal {
    width: calc(100% - 30px);
    padding: 30px 25px;
    border-radius: 16px;
  }

  .trial-modal-content h3 {
    font-size: 18px;
  }

  .trial-modal-content p {
    font-size: 14px;
  }

  .trial-modal-footer {
    margin-top: 25px;
  }

  .trial-modal-footer button {
    width: 100%;

  }
}

@media (max-width: 560px) {
  .trial-page {
    padding: 28px 0 60px;
  }

  .trial-hero {
    width: calc(100% - 24px);
    padding: 36px 20px 28px;
    border-radius: 8px;
  }

  .trial-intro,
  .trial-benefits {
    font-size: 14px;
    line-height: 1.6;
  }

  .trial-trusted>div {
    flex-wrap: wrap;
    gap: 10px;
    width: 200px;
  }

  .trial-trusted img {
    width: 82px;
    height: 40px;
  }

  .trial-form {
    padding: 27px 18px 25px;
    border-radius: 10px;
  }


  .trial-field-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}