.resource-center {
  color: #17251f;
  background: #f2f5ee;
}

.resource-center-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 58px;
  background:
    linear-gradient(115deg, rgba(5, 137, 81, 0.95) 0%, rgba(7, 92, 62, 0.95) 46%, rgba(19, 44, 35, 0.96) 100%),
    url("/site/static/picture/case-studies-banner-pc.jpg") center/cover no-repeat;
}

.resource-center-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  border: 80px solid rgba(244, 211, 94, 0.16);
}

.resource-center-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  gap: 42px;
  align-items: end;
}

.resource-center-kicker {
  margin: 0 0 14px;
  color: #cde8d8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.resource-center-hero h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.resource-center-hero p:not(.resource-center-kicker) {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

.resource-center-search {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.18);
}

.resource-center-search label {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.resource-center-search__box {
  display: flex;
  gap: 10px;
}

.resource-center-search input {
  min-width: 0;
  flex: 1;
  height: 48px;
  border: none;
  border-radius: 14px;
  padding: 0 15px;
  color: #173529;
  font-size: 15px;
  outline: none;
}

.resource-center-search button {
  flex: 0 0 auto;
  border: none;
  border-radius: 14px;
  padding: 0 18px;
  background: #f4d35e;
  color: #153528;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.resource-center-body {
  padding: 48px 0 76px;
}

.resource-center-layout {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.resource-filter-panel,
.resource-results {
  border: 1px solid rgba(21, 53, 40, 0.1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(20, 52, 38, 0.08);
}

.resource-filter-panel {
  position: sticky;
  top: 18px;
  padding: 22px;
}

.resource-filter-panel__head {
  margin-bottom: 18px;
}

.resource-filter-panel__head span,
.resource-results__eyebrow {
  display: block;
  margin: 0 0 7px;
  color: #839286;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.resource-filter-panel__head h2,
.resource-results__head h2 {
  margin: 0;
  color: #153528;
  font-size: 24px;
  line-height: 1.3;
}

.resource-type-list {
  display: grid;
  gap: 9px;
}

.resource-type-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #dfe7e1;
  border-radius: 14px;
  background: #f8faf7;
  color: #405249;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.resource-type-btn strong {
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e7efe9;
  color: #153528;
  font-size: 12px;
  text-align: center;
}

.resource-type-btn.is-active {
  border-color: #058951;
  background: #058951;
  color: #fff;
}

.resource-type-btn.is-active strong {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.resource-results {
  padding: 28px;
}

.resource-results__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.resource-results__head p:last-child {
  margin: 0;
  color: #6a7a70;
  font-size: 14px;
}

.resource-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid rgba(21, 53, 40, 0.1);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(20, 52, 38, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  border-color: rgba(5, 137, 81, 0.36);
  box-shadow: 0 18px 42px rgba(20, 52, 38, 0.12);
}

.resource-card.is-hidden {
  display: none;
}

.resource-card.is-disabled {
  opacity: 0.62;
  cursor: default;
}

.resource-card.is-disabled:hover {
  transform: none;
  border-color: rgba(21, 53, 40, 0.1);
  box-shadow: 0 10px 26px rgba(20, 52, 38, 0.06);
}

.resource-card__media {
  position: relative;
  height: 156px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #f8fbf8 0%, #e7f0ea 100%);
}

.resource-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.resource-card__type {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(21, 53, 40, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.resource-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.resource-card__body h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 10px;
  overflow: hidden;
  color: #153528;
  font-size: 18px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.resource-card__desc {
  display: -webkit-box;
  flex: 1;
  margin: 0 0 18px;
  overflow: hidden;
  color: #66766d;
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.resource-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #edf2ee;
  color: #058951;
  font-size: 13px;
  font-weight: 800;
}

.resource-card.is-disabled .resource-card__meta {
  color: #999;
}

.resource-empty-state {
  display: none;
  padding: 52px 20px;
  border: 1px dashed #c9d6ce;
  border-radius: 18px;
  text-align: center;
  background: #f8faf7;
}

.resource-empty-state.is-visible,
.resource-empty-state:not(.is-filter-empty) {
  display: block;
}

.resource-empty-state h3 {
  margin: 0 0 8px;
  color: #153528;
  font-size: 20px;
}

.resource-empty-state p {
  margin: 0;
  color: #6a7a70;
  font-size: 14px;
}

.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;
}

.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;
}

.resource-download-form--compact .rd-input:focus,
.resource-download-form--compact .rd-input:focus-visible {
  outline: none !important;
  background: #fff;
  box-shadow:
    0 0 0 2px #058951,
    0 0 0 5px rgba(5, 137, 81, 0.22);
}

.rd-captcha-inline .rd-captcha-inline__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  min-height: 44px;
}

.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;
}

.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);
}

.resource-download-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

.resource-download-actions__hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #6b7a72;
  text-align: center;
}

@media (max-width: 1180px) {
  .resource-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .resource-center-hero__inner,
  .resource-center-layout {
    grid-template-columns: 1fr;
  }

  .resource-filter-panel {
    position: static;
  }

  .resource-type-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .resource-center-hero {
    padding: 46px 0;
  }

  .resource-center-search__box {
    display: grid;
  }

  .resource-results {
    padding: 18px;
  }

  .resource-results__head {
    display: block;
  }

  .resource-results__head p:last-child {
    margin-top: 10px;
  }

  .resource-card-grid,
  .resource-type-list {
    grid-template-columns: 1fr;
  }

  .rd-compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rd-span-4 {
    grid-column: span 2;
  }
}

@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;
  }
}

/* ===== 视频资源：卡片播放角标 + 下载入口 ===== */
.resource-card.is-video .resource-card__media {
  cursor: pointer;
}

.resource-card.is-video .resource-card__media::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: rgba(5, 137, 81, 0.92);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>');
  background-repeat: no-repeat;
  background-position: 54% center;
  background-size: 24px 24px;
  box-shadow: 0 6px 18px rgba(5, 137, 81, 0.45);
  transition: transform 0.18s ease, background-color 0.18s ease;
  pointer-events: none;
}

.resource-card.is-video:hover .resource-card__media::after {
  transform: translate(-50%, -50%) scale(1.08);
  background-color: rgba(5, 137, 81, 1);
}

.resource-card__dl {
  align-self: flex-start;
  margin-top: 12px;
  padding: 7px 16px;
  border: 1px solid #058951;
  border-radius: 999px;
  background: #fff;
  color: #058951;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.resource-card__dl:hover {
  background: #058951;
  color: #fff;
}

/* ===== 视频播放器弹窗 ===== */
.resource-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  --plyr-color-main: #058951;
}

.resource-video-modal.is-open {
  display: flex;
}

.resource-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 14, 0.66);
  backdrop-filter: blur(4px);
}

.resource-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  max-height: min(96vh, 96dvh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0d1b15;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.resource-video-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.resource-video-modal__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.resource-video-modal__head {
  flex-shrink: 0;
  padding: 12px 48px 12px 18px;
  background: linear-gradient(120deg, #047a48 0%, #058951 55%, #0a6b45 100%);
  color: #fff;
}

.resource-video-modal__kicker {
  margin: 0 0 2px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 600;
}

.resource-video-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resource-video-modal__body {
  flex: 1;
  min-height: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-video-modal__body .plyr {
  width: 100%;
}

.resource-video-player {
  width: 100%;
  max-height: 70vh;
}

.resource-video-modal__foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  background: #12241c;
}

.resource-video-modal__hint {
  color: #9db3a8;
  font-size: 12px;
  line-height: 1.5;
}

.resource-video-download {
  flex-shrink: 0;
  padding: 9px 20px;
  border: none;
  border-radius: 999px;
  background: #058951;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.resource-video-download:hover {
  background: #047a48;
}

@media (max-width: 640px) {
  .resource-video-modal__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .resource-video-download {
    width: 100%;
  }
}
