/* ============================================================
   首页「更多隐藏文字」卡片墙（原站 assets/index-BzmkH6IX.js 内
   #more-effects 区块的本地重写版，纯 JS/CSS，不依赖 React）
   注意：本站 html 的 font-size 是 100px，本文件一律用 px 写尺寸
   ============================================================ */

.effect-cards-screen {
  padding: 56px 20px 84px;
  margin-top: 24px;
  /* 新版站首页底部有固定的悬浮 dock，留出空间避免最后一行被它挡住 */
  margin-bottom: 104px;
  background: #fff;
  border: 1px solid #e8eaf0;
  box-shadow: 0 10px 40px rgba(15, 23, 42, .06);
  border-radius: 32px;
  scroll-margin-top: 40px;
}

.effect-cards-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 auto 24px;
  max-width: 1120px;
  color: #171717;
}

.effect-cards-heading h2 {
  margin: 0;
  color: #171717;
  text-align: left;
  font-size: 22px;
  line-height: 1.4;
}

.effect-cards-count {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eef0f3;
  color: #64748b;
  font-size: 13px;
  font-weight: 400;
  vertical-align: middle;
}

/* ---- 「查看示例 / 收起示例」按钮（样式取自原站） ---- */
.effect-examples-toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background-color: #000;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 1px;
  border: 1px solid #ffffff1a;
  height: 65px;
  width: 200px;
  max-width: 100%;
  flex-shrink: 0;
  margin-left: auto;
  padding: 12px;
  border-radius: 15px 15px 12px 12px;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  -webkit-user-select: none;
  user-select: none;
  background-image: linear-gradient(to right, #000c, #0000), linear-gradient(to bottom, #000c, #0000);
  background-position: bottom right, bottom right;
  background-size: 100% 100%, 100% 100%;
  background-repeat: no-repeat;
  box-shadow: inset -4px -10px #fff6, inset -4px -8px #0000004d, 0 2px 1px #0000004d, 0 2px 1px #ffffff1a;
  transform: perspective(70px) rotateX(5deg) rotateY(0);
}

.effect-examples-toggle span {
  transform: translateY(-10px);
}

.effect-examples-toggle::before,
.effect-examples-toggle::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  border-radius: 15px;
  pointer-events: none;
}

.effect-examples-toggle::after {
  background-image: linear-gradient(to bottom, #fff3, #00000080);
  box-shadow: inset 4px 0 #ffffff1a, inset 4px -8px #0000004d;
}

.effect-examples-toggle::before {
  background-image: linear-gradient(to right, #000c, #0000), linear-gradient(to bottom, #000c, #0000);
  background-position: bottom right, bottom right;
  background-size: 100% 100%, 100% 100%;
  background-repeat: no-repeat;
}

.effect-examples-toggle:active {
  transform: perspective(80px) rotateX(5deg) rotateY(1deg) translateY(3px) scale(.96);
  border-color: #0003;
  box-shadow: inset -4px -8px #fff3, inset -4px -6px #000c, 0 1px #000000e6, 0 1px #fff3;
}

.effect-examples-toggle:active::after {
  background-image: linear-gradient(to bottom, #00000080, #fff3);
}

.effect-examples-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

/* ---- 画廊 ---- */
.effect-card-gallery {
  position: relative;
  overflow: clip;
  --effect-blur-height: 80px;
}

.chroma-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  max-width: 1120px;
  margin: 0 auto;
}

.chroma-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #171717;
  text-decoration: none;
  transition: border-color .3s ease, box-shadow .3s ease;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(15, 23, 42, .06);
}

.chroma-card:hover {
  border-color: var(--card-border);
  box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
  text-decoration: none;
}

.chroma-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease;
  z-index: 2;
}

.chroma-card:hover::before {
  opacity: 1;
}

.chroma-card:focus-visible {
  outline: 3px solid #94a3b8;
  outline-offset: 3px;
  z-index: 5;
}

/* 2026-09-30：所有卡片均已接入真实入口，占位卡样式（.is-pending / .chroma-card-badge）已移除 */

.chroma-img-wrapper {
  position: relative;
  z-index: 1;
  height: 120px;
  padding: 8px;
  flex: none;
}

/* ---- 等比像素揭幕预览 ---- */
.effect-pixel-preview {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.effect-pixel-preview-title {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
  transition: opacity .25s ease;
}

/* 没有预览图的模块卡：预览区直接用大号图标 + 名称，不参与像素揭幕 */
.effect-pixel-icon {
  display: block;
  font-size: 38px;
  line-height: 1;
  margin-bottom: 8px;
}

.effect-pixel-preview-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #fff;
  opacity: 0;
  transition: opacity .3s ease .1s;
}

.effect-pixel-preview.is-revealed .effect-pixel-preview-title {
  opacity: 0;
}

.effect-pixel-preview.is-revealed .effect-pixel-preview-content {
  opacity: 1;
}

.effect-pixel-tile {
  position: absolute;
  display: block;
  overflow: hidden;
  opacity: 0;
  transform: scale(.15);
  transition: opacity .26s ease, transform .26s ease;
}

.effect-pixel-preview.is-revealed .effect-pixel-tile {
  opacity: 1;
  transform: scale(1);
}

.effect-pixel-tile img {
  position: absolute;
  display: block;
  max-width: none;
  object-fit: contain;
  background: #fff;
}

/* ---- 卡片文字 ---- */
.chroma-info {
  position: relative;
  z-index: 1;
  padding: 10px;
  color: #171717;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  row-gap: 3px;
  column-gap: 5px;
}

.chroma-info .name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.chroma-info .handle {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
}

.chroma-info .role {
  grid-column: 1 / -1;
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* ---- 底部渐隐 ---- */
.effect-card-blur-clearance {
  height: var(--effect-blur-height);
  pointer-events: none;
}

.effect-card-blur-edge {
  position: sticky;
  bottom: 0;
  height: 0;
  z-index: 5;
  pointer-events: none;
}

.effect-card-blur-edge span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--effect-blur-height);
  background: linear-gradient(to top, #ffffff 14%, rgba(255, 255, 255, .82) 48%, rgba(255, 255, 255, 0));
}

@media (max-width: 1100px) {
  .chroma-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .effect-cards-screen {
    padding: 36px 10px 60px;
    border-radius: 20px;
  }

  .chroma-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .chroma-img-wrapper {
    height: 88px;
    padding: 4px;
  }

  .chroma-info {
    padding: 7px 5px;
  }

  .chroma-info .name {
    font-size: 13px;
  }

  .effect-pixel-preview-title {
    font-size: 15px;
    padding: 4px;
  }

  .effect-pixel-icon {
    font-size: 28px;
    margin-bottom: 5px;
  }

  .effect-cards-heading h2 {
    font-size: 19px;
  }
}
