/* =========================================================
   档案页 · 极简样式（modules/archive.js）
   ---------------------------------------------------------
   只留三种东西：块、线、字。没有纸，没有铁，没有阴影层。

     ┌──────────────────────────────┐
     │ 一级封存层            6/18 ▾ │  ← 层标题行
     │ 这一层的东西被锁起来……        │  ← 层说明（灰）
     ├──────────────────────────────┤
     │ 值班室抽屉           2 / 6 ▾ │  ← 套组分区
     │ 抽屉里翻出来的零碎……          │
     │ 回形针                常规    │  ← 条目行
     │ 空白工牌              异常 ×2 │
     └──────────────────────────────┘

   未解封：虚线框 + 压暗 + 右侧「封存」标。
   ========================================================= */

/* ================= 封存层 ================= */
.layer-block {
  margin-bottom: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.layer-block:last-child {
  margin-bottom: 0;
}

/* 未解封：虚线、压暗，点一下只晃 */
.layer-block.sealed {
  border-style: dashed;
  border-color: var(--border-light);
  opacity: 0.55;
  cursor: pointer;
}

.layer-block.sealed.shake {
  animation: layerShake 0.3s ease;
}

@keyframes layerShake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-2px); }
  70% { transform: translateX(1.5px); }
}

/* ---- 标题行 ---- */
.layer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  min-height: 34px;
}

.layer-head.collapsible {
  cursor: pointer;
  user-select: none;
}

.layer-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  letter-spacing: 1px;
  color: #fff;
}

.layer-block.sealed .layer-name {
  color: var(--text-dim);
}

/* 层进度：monospace，集满转金 */
.layer-count {
  flex-shrink: 0;
  font-family: monospace;
  font-size: 10px;
  color: var(--text-dim);
}

.layer-count.num-done {
  color: var(--gold);
}

/* 封存标：一枚小字，不抢眼 */
.layer-tag {
  flex-shrink: 0;
  padding: 0 4px;
  font-family: monospace;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 1px;
  color: var(--text-dim);
  border: 1px solid var(--border-light);
}

/* ---- 层说明 ---- */
.layer-desc {
  padding: 0 10px 9px;
  font-size: 10px;
  line-height: 1.65;
  color: var(--text-dim);
}

/* ---- 层内容 ---- */
.layer-body {
  border-top: 1px solid var(--border);
}

.layer-block.collapsed .layer-desc,
.layer-block.collapsed .layer-body {
  display: none;
}

/* ================= 套组 ================= */
.set-panel {
  padding: 8px 10px 9px;
  border-top: 1px solid var(--border);
}

.set-panel:first-child {
  border-top: none;
}

.set-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.set-head.collapsible {
  cursor: pointer;
  user-select: none;
}

.set-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: #d5dae2;
}

.set-count {
  flex-shrink: 0;
  font-family: monospace;
  font-size: 10px;
  color: var(--text-dim);
}

.set-count.num-done {
  color: var(--gold);
}

/* 套组说明：灰，最多三行 */
.set-desc {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 共鸣收益：一条淡红细线挂在左边 */
.set-buff {
  margin-top: 5px;
  padding-left: 6px;
  border-left: 1px solid var(--accent);
  font-size: 10px;
  line-height: 1.5;
  color: #a06062;
}

/* ================= 条目行 ================= */
.item-grid {
  margin-top: 7px;
}

.item-card {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  padding: 0 4px;
  font-size: 11.5px;
  color: var(--text);
  border-top: 1px solid #13161b;
  cursor: pointer;
}

.item-card:first-child {
  border-top: none;
}

.ic-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 稀有度：小字，颜色走全局 .tier-* */
.ic-tier {
  flex-shrink: 0;
  font-family: monospace;
  font-size: 9.5px;
  letter-spacing: 0.3px;
  opacity: 0.9;
}

.ic-cnt {
  flex-shrink: 0;
  font-family: monospace;
  font-size: 9.5px;
  color: var(--text-dim);
}

/* 未登记：只留问号 */
.item-card.locked {
  cursor: default;
  color: #333a45;
}

.item-card.locked .ic-name {
  letter-spacing: 3px;
}

/* ================= 特殊条目（已带走） =================
   带没带走都不在档案上标 —— 卡、正文、弹窗都不给特殊样式，
   那是玩家自己知道的事。 */

@media (hover: hover) {
  .item-card:not(.locked):hover {
    background: #14171d;
    color: #fff;
  }
}

.item-card:not(.locked):active {
  background: #1a1e24;
}

/* 套组折叠：只剩标题行 */
.set-panel.collapsed .set-desc,
.set-panel.collapsed .set-buff,
.set-panel.collapsed .item-grid {
  display: none;
}

/* 新收容高亮（.fresh 动画在 fx.css，属于反馈层） */
