/* 营销留言弹窗：层级、可输入、关闭按钮、表单项布局 */
/* 双卡区域用 overflow:hidden 包住内部 float；弹窗层独立在 .yksite-marketing-layer */
#yksite-marketing-cta.partone {
  overflow: hidden;
}
/* 挂到 body 末尾 + 高层级，避免被页脚承诺条（DOM 更靠后）盖住 */
.yksite-marketing-layer {
  position: relative;
  z-index: 200000;
  pointer-events: none;
}
.yksite-marketing-layer.is-open {
  pointer-events: auto;
}
.onezz {
  z-index: 200001;
  cursor: pointer;
  pointer-events: auto;
}
.oneform {
  z-index: 200002 !important;
  pointer-events: auto;
  overflow: visible !important;
}
body.yksite-marketing-modal-open {
  overflow: hidden;
}
.oneform .onebox,
.oneform form,
.oneform input,
.oneform textarea,
.oneform button {
  pointer-events: auto;
}
#yksite-marketing-modal .onebox {
  position: relative;
}
/* 弹窗顶栏：比例对齐原版弹窗（logo + 竖线 + 大标题） */
#yksite-marketing-modal .yksite-marketing-modal-head {
  display: flex;
  align-items: center;
  width: 100%;
  height: 70px;
  min-height: 70px;
  margin-bottom: 6px;
  overflow: visible;
  box-sizing: border-box;
}
#yksite-marketing-modal .yksite-marketing-modal-logo {
  float: none !important;
  flex: 0 0 auto;
  display: block;
  max-height: 56px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
#yksite-marketing-modal .yksite-marketing-modal-head .oneline {
  float: none !important;
  flex: 0 0 1px;
  width: 1px;
  height: 50px;
  margin: 0 18px;
  background: rgba(255, 255, 255, 0.5);
}
#yksite-marketing-modal .yksite-marketing-modal-title {
  float: none !important;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 38px !important;
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 关闭钮：虚线框外、弹窗右上角（红底区域） */
#yksite-marketing-modal.oneform {
  position: fixed;
}
#yksite-marketing-modal .oneoff-btn {
  position: absolute;
  top: -18px;
  right: -18px;
  float: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(211, 35, 41, 0.88);
  color: #fff;
  font-size: 0;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.88;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  z-index: 10;
}
#yksite-marketing-modal .oneoff-btn span {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  color: #fff;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}
#yksite-marketing-modal .oneoff-btn:hover {
  opacity: 1;
  background: rgba(185, 28, 28, 0.98);
  border-color: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
#yksite-marketing-modal .oneoff,
#yksite-marketing-modal img.oneoff {
  display: none !important;
}

/* 表单项：Grid 两列，避免 float / nth-child 与蜜罐字段冲突 */
#yksite-marketing-modal .onebox form li {
  float: none !important;
  clear: none !important;
}
#yksite-marketing-modal .onebox form .yksite-msg-fields {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  column-gap: 22px;
  row-gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: visible;
}
#yksite-marketing-modal .onebox form li.yksite-msg-field {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  float: none !important;
  clear: none !important;
  box-sizing: border-box;
  overflow: visible !important;
  width: auto !important;
  max-width: none;
  height: 53px;
  margin-top: 15px;
  border: 1px #e7a8aa solid;
  border-radius: 8px;
  list-style: none;
}
#yksite-marketing-modal .onebox form li.yksite-msg-field img {
  float: none !important;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin: 0 6px 0 10px;
  vertical-align: middle;
}
#yksite-marketing-modal .onebox form li.yksite-msg-field p {
  float: none !important;
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0 8px 0 0;
  pointer-events: none;
  white-space: nowrap !important;
  word-break: keep-all;
  overflow: visible;
  line-height: 1.2 !important;
  font-size: 16px;
  color: #fff;
}
#yksite-marketing-modal .onebox form li.yksite-msg-field input {
  float: none !important;
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  height: 53px;
  position: relative;
  z-index: 2;
  background: transparent;
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-indent: 0;
  padding: 0 8px;
  border: none;
  outline: none;
  font-size: 16px;
}
#yksite-marketing-modal .onebox form li.yksite-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  border: none !important;
}
#yksite-marketing-modal .onebox form li.yksite-msg-field--captcha {
  grid-column: 1 / -1;
  width: 100% !important;
  max-width: 100%;
}
#yksite-marketing-modal .onebox form li.yksite-msg-field--captcha .yksite-captcha-img {
  flex: 0 0 auto;
  display: inline-block;
  margin-left: 8px;
  line-height: 0;
}
#yksite-marketing-modal .onebox form li.yksite-msg-field--captcha .yksite-captcha-img img {
  display: block;
  height: 38px;
  width: auto;
  cursor: pointer;
  border-radius: 2px;
}
#yksite-marketing-modal .onebox form li.yksite-msg-field--captcha #yksite-captcha {
  max-width: 120px;
}
.yksite-msg-login-gate {
  padding: 28px 24px 32px;
  text-align: center;
  color: #fff;
}
.yksite-msg-login-gate__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
}
.yksite-msg-login-gate__desc {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.92;
}
.yksite-msg-login-gate__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.yksite-msg-login-gate__btn {
  display: inline-block;
  min-width: 120px;
  padding: 12px 22px;
  border-radius: 2px;
  font-size: 16px;
  color: #ed1c24;
  background: #fff;
  text-decoration: none;
}
.yksite-msg-login-gate__btn--primary {
  font-weight: 600;
}
.yksite-msg-member-bar {
  margin: 0 0 12px;
  padding: 0 4px;
  font-size: 14px;
  color: #fff;
  opacity: 0.95;
}

/* 弹窗高度随表单内容自适应，避免验证码/会员栏把提交按钮挤出虚线框 */
#yksite-marketing-modal.oneform {
  height: auto;
  min-height: 500px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-sizing: border-box;
}
#yksite-marketing-modal .onebox {
  height: auto;
  min-height: 394px;
  box-sizing: border-box;
  overflow: visible;
  padding-bottom: 32px;
}
#yksite-marketing-modal .onebox form.yksite-message-form {
  display: flex;
  flex-direction: column;
  height: auto !important;
  min-height: 0;
  margin-top: 15px;
  overflow: visible;
}
#yksite-marketing-modal .onebox form.yksite-message-form .yksite-msg-fields {
  flex: 0 0 auto;
}
#yksite-marketing-modal .onebox textarea {
  display: block;
  flex: 0 0 auto;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 70px;
  margin-top: 15px;
}
#yksite-marketing-modal .onebox form #tj {
  flex: 0 0 auto;
  align-self: flex-end;
  float: none !important;
  clear: none !important;
  width: 400px;
  max-width: 100%;
  margin-top: 16px;
  margin-bottom: 0;
  position: static;
}
