.quality-page {
  max-width: 100%;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

@media (min-width: 1500px) {
  .quality-page {
    max-width: 1440px;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 750px) {
  .quality-page {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.quality-card {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.quality-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.e-module-202210240904 .main-case-studies .box {
  border: 1px solid #eee;
}

.e-module-202210240904 .main-case-studies .box .text {
  padding: 14px 16px;
}

.e-module-202210240904 .main-case-studies .box .text .h {
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
}

.resource-download-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: #058951;
}

.resource-download-muted {
  margin: 8px 0 0;
  font-size: 13px;
  color: #999;
}

.resource-download-empty {
  padding: 24px 16px;
  text-align: center;
  color: #666;
  font-size: 15px;
}

.resource-download-card.is-disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.resource-download-card:not(.is-disabled) {
  cursor: pointer;
}

/* ---- 下载留资弹窗（紧凑单屏、无内层滚动条、弱边框） ---- */
.resource-download-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.resource-download-modal.is-open {
  display: flex;
}

.resource-download-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 28, 22, 0.48);
  backdrop-filter: blur(3px);
}

.resource-download-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  max-height: min(100vh, 100dvh);
  overflow: hidden;
  background: #f6f8f7;
  border-radius: 10px;
  border: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.resource-download-modal__close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.resource-download-modal__close:hover {
  background: rgba(255, 255, 255, 0.26);
}

.resource-download-modal__head {
  flex-shrink: 0;
  padding: 10px 40px 8px 14px;
  background: linear-gradient(120deg, #047a48 0%, #058951 55%, #0a6b45 100%);
  color: #fff;
}

.resource-download-modal__kicker {
  margin: 0 0 2px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 600;
}

.resource-download-modal__heading {
  margin: 0 0 2px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.resource-download-modal__art {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.95;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resource-download-modal__note {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.88;
}

.resource-download-alert {
  flex-shrink: 0;
  margin: 6px 12px 0;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
}

.resource-download-alert:empty {
  display: none;
}

.resource-download-alert.is-error {
  display: block;
  background: rgba(252, 232, 230, 0.95);
  color: #8b2419;
}

.resource-download-alert.is-success {
  display: block;
  background: rgba(220, 245, 232, 0.95);
  color: #0d5c3a;
}

.resource-download-form--compact {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 8px 12px 10px;
  display: flex;
  flex-direction: column;
}

.rd-compact-grid {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px 10px;
  align-content: start;
}

.rd-span-1 {
  grid-column: span 1;
}

.rd-span-2 {
  grid-column: span 2;
}

.rd-span-4 {
  grid-column: 1 / -1;
}

@media (max-width: 680px) {
  .rd-compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rd-span-4 {
    grid-column: span 2;
  }
}

.resource-download-field {
  margin-bottom: 0;
}

.resource-download-field label {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 600;
  color: #3d4f45;
  letter-spacing: 0.01em;
}

.resource-download-field .req {
  color: #c0392b;
}

.rd-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 11px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.4;
  color: #1a2620;
  background: rgba(255, 255, 255, 0.92);
  appearance: none;
  -webkit-appearance: none;
  transition: box-shadow 0.15s ease, background 0.15s ease, outline-color 0.15s ease;
}

/* 去掉 Firefox 对 :invalid 的红色内阴影 */
.resource-download-form--compact .rd-input:-moz-ui-invalid {
  box-shadow: none;
}

.resource-download-form--compact .rd-input:-moz-ui-invalid:focus {
  box-shadow:
    0 0 0 2px #058951,
    0 0 0 5px rgba(5, 137, 81, 0.22);
}

.rd-input::placeholder {
  color: #95a399;
}

.rd-input:hover {
  background: #fff;
}

/* 主题绿焦点；显式关掉 outline，避免与 Chrome :invalid 等默认红圈叠加 */
.resource-download-form--compact .rd-input:focus,
.resource-download-form--compact .rd-input:focus-visible {
  outline: none !important;
  outline-offset: 0;
  background: #fff;
  box-shadow:
    0 0 0 2px #058951,
    0 0 0 5px rgba(5, 137, 81, 0.22);
}

.resource-download-form--compact .rd-input:invalid {
  outline: none !important;
  box-shadow: none;
}

.resource-download-form--compact .rd-input:invalid:focus,
.resource-download-form--compact .rd-input:invalid:focus-visible {
  outline: none !important;
  box-shadow:
    0 0 0 2px #058951,
    0 0 0 5px rgba(5, 137, 81, 0.22) !important;
}

.resource-download-form--compact .rd-input:-webkit-autofill,
.resource-download-form--compact .rd-input:-webkit-autofill:hover {
  -webkit-text-fill-color: #1a2620;
  transition: background-color 9999s ease-out;
  box-shadow: 0 0 0 40px #fff inset !important;
}

.resource-download-form--compact .rd-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1a2620;
  box-shadow:
    0 0 0 40px #fff inset,
    0 0 0 2px #058951,
    0 0 0 5px rgba(5, 137, 81, 0.22) !important;
}

.rd-captcha-inline .rd-captcha-inline__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  min-height: 44px;
}

/* 验证码框：固定 px（避免全站 rem 过小）；尺寸与其它输入框视觉协调 */
.rd-input--captcha-inline {
  width: 112px;
  min-width: 112px;
  max-width: 112px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  flex: 0 0 112px;
  align-self: center;
  box-sizing: border-box;
  text-align: center;
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.08em;
  padding: 0 10px;
  border-radius: 6px;
}

.resource-download-captcha-q {
  font-size: 15px;
  font-weight: 700;
  color: #1a3328;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.resource-download-captcha-refresh {
  border: none;
  background: rgba(5, 137, 81, 0.12);
  color: #047848;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.resource-download-captcha-refresh:hover {
  background: rgba(5, 137, 81, 0.22);
}

.resource-download-captcha-refresh:focus,
.resource-download-captcha-refresh:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px #058951, 0 0 0 4px rgba(5, 137, 81, 0.2);
}

.resource-download-actions {
  flex-shrink: 0;
  margin-top: 8px;
  padding-top: 6px;
}

.resource-download-submit {
  width: 100%;
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #069d5c 0%, #058951 48%, #047848 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(5, 137, 81, 0.28);
  transition: filter 0.12s ease, transform 0.12s ease;
}

.resource-download-submit:hover:not(:disabled) {
  filter: brightness(1.04);
}

.resource-download-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.resource-download-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

.resource-download-submit__label {
  display: inline-block;
}

.resource-download-actions__hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #6b7a72;
  text-align: center;
}

@media (max-height: 720px) {
  .resource-download-modal__head {
    padding-top: 8px;
    padding-bottom: 6px;
  }

  .resource-download-modal__heading {
    font-size: 17px;
  }

  .resource-download-form--compact {
    padding-top: 6px;
    padding-bottom: 8px;
  }

  .rd-compact-grid {
    gap: 4px 8px;
  }

  .resource-download-field label {
    font-size: 12px;
  }

  .rd-input {
    padding: 6px 9px;
    font-size: 14px;
  }

  .rd-input--captcha-inline {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    flex-basis: 100px;
    font-size: 16px;
    padding: 0 8px;
  }

  .rd-captcha-inline .rd-captcha-inline__row {
    min-height: 40px;
  }

  .resource-download-captcha-q {
    font-size: 14px;
  }
}

/* 极矮屏：允许纵向滚动但隐藏滚动条，避免内容被裁切 */
@media (max-height: 520px) {
  .resource-download-modal__dialog {
    max-height: 100dvh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .resource-download-modal__dialog::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}
