@charset "UTF-8";

/**
 * GPLPal 2026 Enterprise Archive Layout Engine (SaaS Light Aurora)
 * 5大细节定制版：图7同款贴边黑底印章 + 5:4海报防拉伸 + 纯黑统计 + 琥珀分类 + 图5蓝灰链接
 */

/* 1. 归档主体画布 */
.gplpal-archive-scope {
  background-color: #f8fafc;
  min-height: 80vh;
  padding: 30px 0 80px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #334155;
  box-sizing: border-box;
}

.gplpal-archive-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ================= 2. 顶部极客工具栏 ================= */
.gplpal-archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 12px;
}

.gplpal-toolbar-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: #475569;
}
.stat-icon {
  font-size: 16px;
}

/* 核心优化 2：统计数字换成纯黑 (#0f172a) */
.gplpal-toolbar-stat strong {
  color: #0f172a !important;
  font-weight: 900 !important;
  font-family: ui-monospace, SFMono-Regular, monospace !important;
  font-size: 16.5px !important;
}

/* 纯白圆角胶囊排序器 */
.gplpal-sort-wrap {
  display: flex;
  align-items: center;
}
/* ================= 核心防劫持：彻底抹杀 nice-select 伪元素 ================= */

/* 1. 物理隐藏 nice-select 生成的小圆圈与伪列表 (全屏拔除) */
.gplpal-toolbar-sort .nice-select,
.nice-select.gplpal-sort-select,
.nice-select {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  pointer-events: none !important;
}

/* 2. 强制原生胶囊下拉框 100% 永久可见、绝对防劫持 */
.gplpal-archive-scope select.gplpal-sort-select,
select.gplpal-sort-select {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background: #ffffff url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 12px center !important;
  background-size: 14px 14px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 999px !important;
  padding: 8px 36px 8px 16px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  position: relative !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}

.gplpal-sort-select:hover, .gplpal-sort-select:focus {
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12) !important;
}

/* 3. 手机端全宽胶囊锁定 (防挤压变形) */
@media (max-width: 600px) {
  .gplpal-archive-toolbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .gplpal-toolbar-stat {
    width: 100% !important;
  }
  .gplpal-toolbar-sort,
  .gplpal-sort-form {
    width: 100% !important;
  }
  .gplpal-archive-scope select.gplpal-sort-select {
    width: 100% !important;
    height: 42px !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
  }
}

/* ================= 3. 4 列 x 9 行 (36个产品) 网格体系 ================= */
.gplpal-archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 48px;
}

/* 卡片主体 */
.gplpal-archive-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
  position: relative;
}
.gplpal-archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

/* 核心：与 590x300 原图 1:1 绝对吻合比例 (0 放大、0 裁切、100% 完整展示) */
.gplpal-card-media {
  width: 100% !important;
  aspect-ratio: 590 / 300 !important; /* 👈 锁死 590/300 真实原图比例 */
  background: #0b1120 !important;
  position: relative !important;
  overflow: hidden !important;
}

.gplpal-media-link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.gplpal-card-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* 比例吻合后，cover 不会切掉任何文字 */
  object-position: center center !important;
  display: block !important;
  transition: transform 0.35s ease !important;
}
.gplpal-archive-card:hover .gplpal-card-media img {
  transform: scale(1.05) !important;
}
.gplpal-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

/* 核心：图 7 同款左上角贴边深邃黑底印章 */
.gplpal-card-badge-wrap {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 3 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gplpal-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 5px 12px !important;
  background: #090d16 !important; /* 👈 就是这行控制黑底背景色！ */
  border-top-left-radius: 15px !important; /* 贴合卡片左上角圆角 */
  border-bottom-right-radius: 10px !important; /* 右下角圆弧 */
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  white-space: nowrap !important;
  border: none !important;
  text-shadow: none !important;
}

/* 0/70 Clean 采用明亮翠绿 */
.badge-clean {
  color: #34d399 !important;
}

/* 版本号采用明亮浅紫 */
.badge-version {
  color: #c084fc !important;
}

/* 卡片内容区域 */
.gplpal-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

/* 核心优化 3：分类字体换成上方搜索按钮的金黄色 (#d97706) */
.gplpal-card-eyebrow {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #d97706 !important; /* 👈 100% 匹配搜索按钮的金色 */
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  margin-bottom: 6px !important;
  display: block !important;
}

.gplpal-card-title {
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.4 !important;
  margin: 0 0 14px 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gplpal-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}
.gplpal-card-title a:hover {
  color: #7c3aed;
}

/* 底部价格与链接 */
.gplpal-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f8fafc;
}
.gplpal-card-price {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

/* 核心优化 4：View asset 链接换成图 5 同款高级蓝灰色 (#556885) */
.gplpal-card-link {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #556885 !important; /* 👈 1:1 提取自图 5 的蓝灰 */
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}
.gplpal-archive-card:hover .gplpal-card-link {
  transform: translateX(3px) !important;
  color: #0f172a !important; /* 悬浮加深至纯黑 */
}

/* ================= 4. 2026 SaaS 极光胶囊分页栏 ================= */
.gplpal-archive-pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.gplpal-pagination-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 6px 12px;
  margin: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.pagination-item {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination-item a,
.pagination-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
}
.pagination-item a:hover {
  background: #f5f3ff;
  color: #7c3aed;
}
.pagination-item.is-active span,
.pagination-item span.current {
  background: #7c3aed !important;
  color: #ffffff !important;
}

/* 空仓状态 */
.gplpal-archive-empty {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  max-width: 600px;
  margin: 40px auto;
}
.gplpal-archive-empty h2 {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 10px;
}
.gplpal-archive-empty p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 24px;
}
.gplpal-btn-shop {
  display: inline-flex;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
}

/* ================= 5. 响应式断点 ================= */
@media (max-width: 1100px) {
  .gplpal-archive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 800px) {
  .gplpal-archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .gplpal-card-body {
    padding: 12px;
  }
  .gplpal-card-title {
    font-size: 13.5px !important;
  }
}
@media (max-width: 500px) {
  .gplpal-archive-grid {
    grid-template-columns: 1fr;
  }
  /* 手机端工具栏上下规整排列 */
  .gplpal-archive-toolbar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .gplpal-sort-wrap {
    width: 100% !important;
  }
  .gplpal-sort-select {
    width: 100% !important; /* 手机端下拉框占满宽度，极易点击 */
  }
}