/* CMS 内容区图片：设备边框 + 玻璃卡片网格 + 全屏查看 */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  align-items: start;
  max-width: 1100px;
  margin: 28px auto;
  padding: 0;
}

.tech-shot {
  margin: 0;
  padding: 0;
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.tech-shot.is-in {
  opacity: 1;
  transform: none;
}

/* 玻璃卡片：白底截图放在深色背景上不再像贴纸 */
.tech-shot-inner {
  position: relative;
  display: block;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(160deg, rgba(24, 44, 72, 0.82) 0%, rgba(10, 20, 36, 0.86) 100%);
  border: 1px solid rgba(94, 196, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 18px 44px rgba(0, 0, 0, 0.42);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  overflow: hidden;
}

/* 四角 HUD 标记，只用极细线，不做霓虹 */
.tech-shot-inner::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 10px;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(94, 196, 255, 0.5) 0 14px, transparent 14px) left top / 100% 1px no-repeat,
    linear-gradient(to bottom, rgba(94, 196, 255, 0.5) 0 14px, transparent 14px) left top / 1px 100% no-repeat,
    linear-gradient(to left, rgba(94, 196, 255, 0.5) 0 14px, transparent 14px) right bottom / 100% 1px no-repeat,
    linear-gradient(to top, rgba(94, 196, 255, 0.5) 0 14px, transparent 14px) right bottom / 1px 100% no-repeat;
  opacity: 0.55;
  transition: opacity 0.28s ease;
}

.tech-shot:hover .tech-shot-inner {
  transform: translateY(-4px);
  border-color: rgba(122, 214, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 26px 60px rgba(0, 0, 0, 0.5),
    0 0 34px rgba(60, 170, 255, 0.18);
}
.tech-shot:hover .tech-shot-inner::after {
  opacity: 1;
}

.tech-shot-inner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 竖版界面截图：套 iPad 风格黑边，呼应首屏设备环 */
.tech-shot.is-device .tech-shot-inner {
  padding: 14px;
  border-radius: 26px;
  background: linear-gradient(155deg, #3a3f47 0%, #1b1e24 42%, #0b0d11 100%);
  border-color: rgba(255, 255, 255, 0.1);
}
.tech-shot.is-device .tech-shot-inner::after {
  inset: 8px;
  border-radius: 20px;
  opacity: 0;
}
.tech-shot.is-device:hover .tech-shot-inner::after {
  opacity: 0;
}
.tech-shot.is-device .tech-shot-inner img {
  border-radius: 14px;
}

/* 横幅 / 表格 / logo：独占整行居中，避免被压窄 */
.tech-shot.is-wide {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: 820px;
}

.tech-section p,
.tech-section span,
.tech-section div {
  line-height: 1.75;
}

/* 全屏查看：截图字小，必须能看原图 */
.tech-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(3, 7, 14, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: zoom-out;
}
.tech-lightbox.is-open {
  display: flex;
}
.tech-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.tech-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(94, 196, 255, 0.35);
  background: rgba(10, 20, 36, 0.8);
  color: #d7e6f5;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.tech-lightbox-close:hover {
  color: #fff;
  border-color: rgba(122, 214, 255, 0.7);
}
html.tech-lightbox-open {
  overflow: hidden;
}

@media screen and (max-width: 800px) {
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 18px auto;
  }
  .tech-shot-inner {
    padding: 8px;
    border-radius: 10px;
  }
  .tech-shot.is-device .tech-shot-inner {
    padding: 8px;
    border-radius: 18px;
  }
  .tech-shot.is-device .tech-shot-inner img {
    border-radius: 10px;
  }
  .tech-lightbox-close {
    top: 10px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}

@media screen and (max-width: 480px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}
