/* ========== Product Showcase（产品列表）+ PDF 预览 ========== */

/* ---- 产品列表：仅名称 ---- */
.product-list {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease;
}

.product-item:active {
  background: rgba(255, 255, 255, 0.1);
}

.product-name {
  flex: 1;
  font-family: "Oswald", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
}

.product-arrow {
  flex: none;
  font-size: 20px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
}

/* ---- PDF 预览页 ---- */
html.pdf-html,
body.pdf-body {
  height: 100%;
  overflow: hidden;
}

/* 返回按钮（顶部栏左侧） */
.back-btn {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  color: #fff;
}

.back-btn:active {
  opacity: 0.6;
}

/* 预览容器：占满顶部栏以下的整屏 */
.pdf-wrap {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  max-width: 750px;
  background: #0b1c52;
}

/* pdf.js 官方 viewer（iframe） */
.pdf-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

/* 加载中 */
.pdf-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
  background: #0b1c52;
  z-index: 2;
}

.pdf-loading[hidden] {
  display: none;
}

.pdf-spinner {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pdf-spin 0.9s linear infinite;
}

@keyframes pdf-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 文件缺失 / 参数错误 */
.pdf-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: #0b1c52;
  z-index: 3;
}

.pdf-error[hidden] {
  display: none;
}

.pdf-error svg {
  width: 40px;
  height: 40px;
  color: #ffd76a;
}

.pdf-error p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}


