/**
 * ============================================================================
 * 底部留资表单（联系我们）样式 —— PC / 移动端双端共用
 * ============================================================================
 * 修改时间：2026-10-13
 * 引用方式：
 *   - PC/pc_cjzdh2026.html 与 mobile/m_cjzdh2026.html 中通过
 *     <link rel="stylesheet" href="../assetsTwo/css/footer-lead-form.css"> 引入
 * ============================================================================
 */

body#page .conference-footer-contact {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  align-items: center;
  width: min(1120px, 100%);
  margin: 0 auto;
  gap: 48px;
  padding-bottom: 96px;
}
.footer-lead-card,
.footer-lead-card * {
  box-sizing: border-box;
}
.footer-lead-card {
  width: 100%;
  padding: 32px 36px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 34px rgba(56, 113, 192, .08);
  color: #1b3155;
}
.footer-lead-mascot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.footer-lead-mascot img {
  display: block;
  width: min(100%, 530px);
  height: auto;
}
.footer-lead-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.footer-lead-toggle {
  position: relative;
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  color: #263b5d;
  font-size: 14px;
  cursor: pointer;
}
.footer-lead-toggle input {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 44px;
  height: 24px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.footer-lead-toggle-track {
  position: relative;
  flex: none;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #dfe2e9;
  transition: background .2s ease;
}
.footer-lead-toggle-track::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(28, 44, 79, .22);
  transition: transform .2s ease;
}
.footer-lead-toggle input:checked + .footer-lead-toggle-track {
  background: #7a4ff4;
}
.footer-lead-toggle input:checked + .footer-lead-toggle-track::before {
  transform: translateX(20px);
}
.footer-lead-toggle input:focus-visible + .footer-lead-toggle-track {
  outline: 2px solid #2074f5;
  outline-offset: 2px;
}
.footer-lead-new {
  padding: 2px 8px;
  border-radius: 10px;
  background: #7a4ff4;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.footer-lead-field {
  min-width: 0;
}
.footer-lead-field > label,
.footer-lead-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.footer-lead-field > label span,
.footer-lead-label span {
  color: #e2465c;
}
.footer-lead-field input:not([type="checkbox"]),
.footer-lead-areas summary {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #cbd6e7;
  border-radius: 8px;
  background: #fff;
  color: #1b3155;
  font: inherit;
  font-size: 14px;
}
.footer-lead-field input::placeholder {
  color: #8e9ab0;
}
.footer-lead-field input:focus,
.footer-lead-areas summary:focus-visible,
.footer-lead-code-row button:focus-visible,
.footer-lead-submit:focus-visible {
  outline: 2px solid #2074f5;
  outline-offset: 2px;
}
.footer-lead-field input[aria-invalid="true"],
.footer-lead-areas[data-invalid="true"] summary {
  border-color: #d43d51;
}
.footer-lead-code-row {
  display: flex;
  gap: 8px;
}
.footer-lead-code-row input {
  min-width: 0;
  flex: 1;
}
.footer-lead-code-row button {
  flex: none;
  min-width: 108px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #1d71f0;
  border-radius: 8px;
  background: #fff;
  color: #176ef1;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.footer-lead-code-row button:hover:not(:disabled) {
  background: #f0f6ff;
}
.footer-lead-code-row button:disabled {
  border-color: #b9c5d7;
  color: #8090a8;
  cursor: default;
}
.footer-lead-areas {
  position: relative;
}
.footer-lead-areas summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  color: #8e9ab0;
  cursor: pointer;
}
.footer-lead-areas summary::-webkit-details-marker {
  display: none;
}
.footer-lead-areas summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-right: 1.5px solid #607695;
  border-bottom: 1.5px solid #607695;
  transform: rotate(45deg) translateY(-2px);
}
.footer-lead-areas[data-selected="true"] summary {
  color: #1b3155;
}
.footer-lead-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid #d5dfed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 74, 134, .15);
}

/* 公司名称智能匹配下拉列表样式 */
.company-search-wrapper {
  position: relative;
}

.company-suggest-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  gap: 2px;
  padding: 8px;
  border: 1px solid #d5dfed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 74, 134, .15);
  max-height: 240px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
}

.company-suggest-list.show {
  display: grid;
}

.company-suggest-list li {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  color: #1b3155;
}

.company-suggest-list li:hover,
.company-suggest-list li.highlighted {
  background: #f1f6ff;
}

.company-suggest-list li.suggest-hint {
  color: #8e9ab0;
  cursor: default;
  justify-content: center;
}

.company-suggest-list li.suggest-hint:hover {
  background: transparent;
}
.footer-lead-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}
.footer-lead-options label:hover {
  background: #f1f6ff;
}
.footer-lead-options input,
.footer-lead-consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #176ef1;
}
.footer-lead-bottom {
  margin-top: 22px;
}
.footer-lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #596b84;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}
.footer-lead-consent input {
  margin-top: 2px;
}
.footer-lead-consent a {
  color: #176ef1;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-lead-submit {
  width: 100%;
  height: 46px;
  margin-top: 20px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(100deg, #126dff, #7145f3);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.footer-lead-submit:hover {
  filter: brightness(1.06);
}
.footer-lead-submit:disabled {
  opacity: .7;
  cursor: not-allowed;
}
.footer-lead-error,
.footer-lead-hint,
.footer-lead-status {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.5;
}
.footer-lead-error {
  color: #c72944;
}
.footer-lead-hint,
.footer-lead-status {
  color: #47709d;
}
.footer-lead-card [hidden] {
  display: none !important;
}

/* ---- Toast 弹框提示 ---- */
.footer-lead-toast {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.footer-lead-toast--show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.footer-lead-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #34c759;
  color: #fff;
  flex-shrink: 0;
}
.footer-lead-toast-icon svg {
  width: 20px;
  height: 20px;
}
.footer-lead-toast-text {
  font-size: 16px;
  font-weight: 600;
  color: #1b3155;
  white-space: nowrap;
}
.footer-lead-toast--error .footer-lead-toast-icon {
  background: #e2465c;
}

/* 响应式：中等屏幕 */
@media (max-width: 1699px) {
  body#page .conference-footer-contact {
    padding-bottom: 72px;
  }
}

/* 响应式：移动端 */
@media (max-width: 639px) {
  body#page .conference-footer-contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .footer-lead-card {
    padding: 24px 20px;
    border-radius: 16px;
  }
  .footer-lead-mascot img {
    width: min(100%, 400px);
  }
  .footer-lead-fields {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
