/* 虚拟仿真产品入口 · 1920×1080 */

.portal-title {
  position: absolute;
  left: 0;
  top: 100px;
  width: 1920px;
  margin: 0;
  text-align: center;
  font-family: "REEJI-ZhenyanGB2.0", var(--font-display);
  font-size: 56px;
  line-height: 64px;
  font-weight: 700;
  letter-spacing: 8px;
  color: #ffffff;
  text-shadow:
    0 0 18px rgba(121, 191, 249, 0.55),
    0 0 42px rgba(64, 169, 255, 0.28);
  animation: portal-title-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.portal-sub {
  position: absolute;
  left: 0;
  top: 180px;
  width: 1920px;
  margin: 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 26px;
  letter-spacing: 6px;
  color: #bce8ff;
  text-shadow: 0 0 16px rgba(121, 191, 249, 0.35);
  animation: portal-title-in 0.7s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.portal-sub::before,
.portal-sub::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(121, 191, 249, 0.85));
}

.portal-sub::before {
  right: calc(50% + 92px);
  transform: scaleX(-1);
}

.portal-sub::after {
  left: calc(50% + 92px);
}

.portal-grid {
  position: absolute;
  left: 120px;
  top: 260px;
  width: 1680px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
}

.portal-card {
  position: relative;
  height: 248px;
  display: flex;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(18, 58, 108, 0.55) 0%, rgba(4, 18, 40, 0) 42%),
    linear-gradient(180deg, rgba(7, 40, 78, 0.92) 0%, rgba(4, 18, 40, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(212, 236, 255, 0.35),
    inset 0 0 0 1px rgba(76, 182, 255, 0.42),
    0 16px 36px rgba(0, 8, 24, 0.38);
  opacity: 0;
  animation: portal-card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, filter 0.32s ease;
}

.portal-card:nth-child(1) { animation-delay: 0.12s; }
.portal-card:nth-child(2) { animation-delay: 0.2s; }
.portal-card:nth-child(3) { animation-delay: 0.28s; }
.portal-card:nth-child(4) { animation-delay: 0.36s; }

.portal-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(#9ad4ff, #9ad4ff) left top / 16px 1px no-repeat,
    linear-gradient(#9ad4ff, #9ad4ff) left top / 1px 16px no-repeat,
    linear-gradient(#9ad4ff, #9ad4ff) right top / 16px 1px no-repeat,
    linear-gradient(#9ad4ff, #9ad4ff) right top / 1px 16px no-repeat,
    linear-gradient(#9ad4ff, #9ad4ff) left bottom / 16px 1px no-repeat,
    linear-gradient(#9ad4ff, #9ad4ff) left bottom / 1px 16px no-repeat,
    linear-gradient(#9ad4ff, #9ad4ff) right bottom / 16px 1px no-repeat,
    linear-gradient(#9ad4ff, #9ad4ff) right bottom / 1px 16px no-repeat;
  opacity: 0.55;
}

.portal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 36%, rgba(212, 236, 255, 0.22) 48%, transparent 60%);
  transform: translateX(-120%);
}

.portal-card__img {
  width: 360px;
  height: 248px;
  flex-shrink: 0;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.portal-card__body {
  min-width: 0;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.portal-card__name {
  margin: 0;
  font-family: "REEJI-ZhenyanGB2.0", var(--font-display);
  font-size: 26px;
  line-height: 36px;
  font-weight: 700;
}

.portal-card__lead {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: #bce8ff;
}

.portal-card__go {
  margin-top: 8px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 4px;
  color: #40ffd4;
  text-shadow: 0 0 12px rgba(64, 255, 212, 0.35);
}

.portal-card__go::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.28s ease;
}

.portal-card:hover {
  transform: translateY(-8px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(212, 236, 255, 0.5),
    inset 0 0 0 1px rgba(121, 191, 249, 0.75),
    0 22px 48px rgba(0, 24, 56, 0.5),
    0 0 28px rgba(64, 169, 255, 0.22);
}

.portal-card:hover::after {
  animation: portal-card-shine 0.85s ease forwards;
}

.portal-card:hover .portal-card__img {
  transform: scale(1.08);
}

.portal-card:hover .portal-card__go::after {
  transform: rotate(45deg) translate(3px, -3px);
}

.portal-card.is-closed {
  cursor: default;
}

.portal-card.is-closed:hover {
  transform: none;
  filter: none;
}

/* 设计端 / 制作工具 · 与上方实训产品区分 */
.portal-tools {
  position: absolute;
  left: 120px;
  top: 848px;
  width: 1680px;
  pointer-events: none;
}

.portal-tools__title {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: 3px;
  color: rgba(188, 232, 255, 0.72);
}

.portal-tools__title::after {
  content: "";
  display: inline-block;
  width: 120px;
  height: 1px;
  margin-left: 14px;
  vertical-align: middle;
  background: linear-gradient(90deg, rgba(121, 191, 249, 0.7), transparent);
}

.portal-tools__list {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.portal-tool {
  position: relative;
  min-width: 0;
  height: 128px;
  display: flex;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(7, 40, 78, 0.72) 0%, rgba(4, 18, 40, 0.88) 100%);
  box-shadow:
    inset 0 1px 0 rgba(212, 236, 255, 0.22),
    inset 0 0 0 1px rgba(121, 191, 249, 0.28);
  opacity: 0;
  animation: portal-card-in 0.7s 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, filter 0.32s ease;
}

.portal-tool__img {
  width: 128px;
  height: 128px;
  flex-shrink: 0;
  object-fit: contain;
  padding: 22px;
  box-sizing: border-box;
  background: rgba(4, 22, 48, 0.55);
}

.portal-tool__body {
  min-width: 0;
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.portal-tool__name {
  margin: 0;
  font-family: "REEJI-ZhenyanGB2.0", var(--font-display);
  font-size: 22px;
  line-height: 32px;
  font-weight: 700;
}

.portal-tool__lead {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: rgba(188, 232, 255, 0.88);
}

.portal-tool__go {
  margin-top: 4px;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: 4px;
  color: #79bff9;
}

.portal-tool__go::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.28s ease;
}

.portal-tool:hover {
  transform: translateY(-4px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(212, 236, 255, 0.4),
    inset 0 0 0 1px rgba(121, 191, 249, 0.55),
    0 12px 28px rgba(0, 16, 40, 0.4);
}

.portal-tool:hover .portal-tool__go::after {
  transform: rotate(45deg) translate(3px, -3px);
}

@keyframes portal-title-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes portal-card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes portal-card-shine {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  .portal-title,
  .portal-sub,
  .portal-card,
  .portal-tool,
  .portal-card::after {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
