@charset "utf-8";

/* ============================================================
   resource.css — 技术资料 / 工艺视频列表（对齐中捷文件卡 + 视频卡，品牌色欣宇绿）
   ============================================================ */

.page-resource {
  --res: #76B331;
  --res-deep: #5BA323;
  --u: calc(100vw / 19.2);
  background: #fff;
  color: #1a1a1a;
}
@media (min-width: 1920px) {
  .page-resource { --u: 100px; }
}
@media (max-width: 768px) {
  .page-resource { --u: calc(100vw / 7.5); }
}

.page-resource .site-wrap {
  width: var(--site-width-pct);
  max-width: var(--site-max-width);
  box-sizing: border-box;
}
.page-resource ul,
.page-resource ol,
.page-resource li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-resource img {
  max-width: 100%;
  vertical-align: top;
}

.page-resource .common-banner .common-title-module .title {
  color: var(--res);
}
.page-resource .common-banner .common-title-module .desc {
  margin: 0;
  font-size: calc(.28 * var(--u));
  color: #1a1a1a;
  line-height: 1.4;
}
@media (max-width: 990px) {
  .page-resource .common-banner .common-title-module .desc {
    font-size: calc(.24 * var(--u));
  }
}

.resource-intro {
  padding: calc(.6 * var(--u)) 0 0;
  font-size: calc(.18 * var(--u));
  color: #666;
  line-height: 1.7;
}

.resource-section {
  padding: calc(.8 * var(--u)) 0 calc(1.2 * var(--u));
}

/* ---------- 技术资料：平铺文件卡，一行 6 个 ---------- */
.resource-file-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 13px;
  margin: 0 0 30px;
}
.resource-file-card {
  min-width: 0;
}
.resource-file-card__dl {
  display: block;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, .08);
  padding-bottom: 12px;
  color: #1a1a1a;
  text-decoration: none;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, .08);
  transition: box-shadow .3s ease, border-color .3s ease, color .3s ease;
}
.resource-file-card__dl:hover {
  border-color: var(--res);
  color: var(--res);
  box-shadow: inset 0 0 20px rgba(118, 179, 49, .28);
}
.resource-file-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 56'%3E%3Cpath fill='%23E53935' d='M6 2h24l16 16v36a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z'/%3E%3Cpath fill='%23FFCDD2' d='M30 2v14a2 2 0 0 0 2 2h14'/%3E%3Ctext x='24' y='42' text-anchor='middle' fill='%23fff' font-size='12' font-family='Arial,sans-serif' font-weight='700'%3EPDF%3C/text%3E%3C/svg%3E") center / 44px no-repeat;
}
.resource-file-card__name {
  margin: 0 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.resource-file-card__size {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #999;
  font-weight: 400;
}

/* ---------- 工艺视频：四列封面卡（对齐中捷 .ivlists） ---------- */
.resource-video-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 30px;
}
.resource-video-card__link {
  display: block;
  color: #1a1a1a;
  text-decoration: none;
}
.resource-video-card__pic {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f3f4f6;
  aspect-ratio: 16 / 10;
}
.resource-video-card__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.resource-video-card__pic::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, .3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='30' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Cpath fill='%23fff' d='M26 18v28l24-14z'/%3E%3C/svg%3E") center / 50px no-repeat;
  transition: background-color .3s ease;
}
.resource-video-card__link:hover .resource-video-card__pic::after {
  background-color: transparent;
}
.resource-video-card__name {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-empty {
  margin: 0;
  padding: 80px 0;
  text-align: center;
  font-size: 15px;
  color: #808080;
}

.resource-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: calc(.6 * var(--u)) 0 0;
  font-size: 14px;
  line-height: 1;
}
.resource-pagination .btn,
.resource-pagination a,
.resource-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, .12);
  background: #fff;
  color: #1a1a1a;
  text-decoration: none;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}
.resource-pagination a:hover {
  color: var(--res-deep);
  border-color: var(--res);
}
.resource-pagination .active,
.resource-pagination span.active,
.resource-pagination span.btn.active {
  background: var(--res);
  border-color: var(--res);
  color: #fff;
  cursor: default;
}

/* 视频弹层 */
.resource-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .72);
}
.resource-modal.is-open {
  display: flex;
}
.resource-modal__dialog {
  position: relative;
  width: min(960px, 100%);
}
.resource-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.resource-modal__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}
.resource-modal__frame video,
.resource-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1200px) {
  .resource-file-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .resource-video-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 990px) {
  .resource-file-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .resource-video-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (max-width: 640px) {
  .resource-file-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .resource-video-list {
    grid-template-columns: 1fr;
  }
  .page-resource .service-tabs__item a {
    font-size: 14px;
  }
}
